configure 546 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1
  162. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  163. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. PATH=/empty FPATH=/empty; export PATH FPATH
  167. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  168. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in #(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in # ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell [email protected] about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. # as_fn_unset VAR
  246. # ---------------
  247. # Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. # as_fn_set_status STATUS
  254. # -----------------------
  255. # Set $? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } # as_fn_set_status
  260. # as_fn_exit STATUS
  261. # -----------------
  262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } # as_fn_exit
  269. # as_fn_mkdir_p
  270. # -------------
  271. # Create "$as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } # as_fn_mkdir_p
  313. # as_fn_append VAR VALUE
  314. # ----------------------
  315. # Append the text in VALUE to the end of the definition contained in VAR. Take
  316. # advantage of any shell optimizations that allow amortized linear growth over
  317. # repeated appends, instead of the typical quadratic growth present in naive
  318. # implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. # as_fn_arith ARG...
  331. # ------------------
  332. # Perform arithmetic evaluation on the ARGs, and store the result in the
  333. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  334. # must be portable across $(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. # ----------------------------------------
  348. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. # script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } # as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in #(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in #(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIBOBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME=
  520. PACKAGE_TARNAME=
  521. PACKAGE_VERSION=
  522. PACKAGE_STRING=
  523. PACKAGE_BUGREPORT=
  524. PACKAGE_URL=
  525. ac_unique_file="Makefile.am"
  526. # Factoring default headers for most tests.
  527. ac_includes_default="\
  528. #include <stdio.h>
  529. #ifdef HAVE_SYS_TYPES_H
  530. # include <sys/types.h>
  531. #endif
  532. #ifdef HAVE_SYS_STAT_H
  533. # include <sys/stat.h>
  534. #endif
  535. #ifdef STDC_HEADERS
  536. # include <stdlib.h>
  537. # include <stddef.h>
  538. #else
  539. # ifdef HAVE_STDLIB_H
  540. # include <stdlib.h>
  541. # endif
  542. #endif
  543. #ifdef HAVE_STRING_H
  544. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  545. # include <memory.h>
  546. # endif
  547. # include <string.h>
  548. #endif
  549. #ifdef HAVE_STRINGS_H
  550. # include <strings.h>
  551. #endif
  552. #ifdef HAVE_INTTYPES_H
  553. # include <inttypes.h>
  554. #endif
  555. #ifdef HAVE_STDINT_H
  556. # include <stdint.h>
  557. #endif
  558. #ifdef HAVE_UNISTD_H
  559. # include <unistd.h>
  560. #endif"
  561. ac_subst_vars='am__EXEEXT_FALSE
  562. am__EXEEXT_TRUE
  563. LTLIBOBJS
  564. LIBOBJS
  565. MODPLUG_LIBRARY_VERSION
  566. LT_LDFLAGS
  567. OTOOL64
  568. OTOOL
  569. LIPO
  570. NMEDIT
  571. DSYMUTIL
  572. MANIFEST_TOOL
  573. RANLIB
  574. ac_ct_AR
  575. AR
  576. DLLTOOL
  577. OBJDUMP
  578. LN_S
  579. NM
  580. ac_ct_DUMPBIN
  581. DUMPBIN
  582. LD
  583. FGREP
  584. SED
  585. host_os
  586. host_vendor
  587. host_cpu
  588. host
  589. build_os
  590. build_vendor
  591. build_cpu
  592. build
  593. LIBTOOL
  594. EGREP
  595. GREP
  596. CXXCPP
  597. am__fastdepCXX_FALSE
  598. am__fastdepCXX_TRUE
  599. CXXDEPMODE
  600. ac_ct_CXX
  601. CXXFLAGS
  602. CXX
  603. am__fastdepCC_FALSE
  604. am__fastdepCC_TRUE
  605. CCDEPMODE
  606. AMDEPBACKSLASH
  607. AMDEP_FALSE
  608. AMDEP_TRUE
  609. am__quote
  610. am__include
  611. DEPDIR
  612. OBJEXT
  613. EXEEXT
  614. ac_ct_CC
  615. CPPFLAGS
  616. LDFLAGS
  617. CFLAGS
  618. CC
  619. AM_BACKSLASH
  620. AM_DEFAULT_VERBOSITY
  621. am__untar
  622. am__tar
  623. AMTAR
  624. am__leading_dot
  625. SET_MAKE
  626. AWK
  627. mkdir_p
  628. MKDIR_P
  629. INSTALL_STRIP_PROGRAM
  630. STRIP
  631. install_sh
  632. MAKEINFO
  633. AUTOHEADER
  634. AUTOMAKE
  635. AUTOCONF
  636. ACLOCAL
  637. VERSION
  638. PACKAGE
  639. CYGPATH_W
  640. am__isrc
  641. INSTALL_DATA
  642. INSTALL_SCRIPT
  643. INSTALL_PROGRAM
  644. target_alias
  645. host_alias
  646. build_alias
  647. LIBS
  648. ECHO_T
  649. ECHO_N
  650. ECHO_C
  651. DEFS
  652. mandir
  653. localedir
  654. libdir
  655. psdir
  656. pdfdir
  657. dvidir
  658. htmldir
  659. infodir
  660. docdir
  661. oldincludedir
  662. includedir
  663. localstatedir
  664. sharedstatedir
  665. sysconfdir
  666. datadir
  667. datarootdir
  668. libexecdir
  669. sbindir
  670. bindir
  671. program_transform_name
  672. prefix
  673. exec_prefix
  674. PACKAGE_URL
  675. PACKAGE_BUGREPORT
  676. PACKAGE_STRING
  677. PACKAGE_VERSION
  678. PACKAGE_TARNAME
  679. PACKAGE_NAME
  680. PATH_SEPARATOR
  681. SHELL'
  682. ac_subst_files=''
  683. ac_user_opts='
  684. enable_option_checking
  685. enable_silent_rules
  686. enable_static
  687. enable_dependency_tracking
  688. enable_shared
  689. with_pic
  690. enable_fast_install
  691. with_gnu_ld
  692. with_sysroot
  693. enable_libtool_lock
  694. '
  695. ac_precious_vars='build_alias
  696. host_alias
  697. target_alias
  698. CC
  699. CFLAGS
  700. LDFLAGS
  701. LIBS
  702. CPPFLAGS
  703. CXX
  704. CXXFLAGS
  705. CCC
  706. CXXCPP'
  707. # Initialize some variables set by options.
  708. ac_init_help=
  709. ac_init_version=false
  710. ac_unrecognized_opts=
  711. ac_unrecognized_sep=
  712. # The variables have the same names as the options, with
  713. # dashes changed to underlines.
  714. cache_file=/dev/null
  715. exec_prefix=NONE
  716. no_create=
  717. no_recursion=
  718. prefix=NONE
  719. program_prefix=NONE
  720. program_suffix=NONE
  721. program_transform_name=s,x,x,
  722. silent=
  723. site=
  724. srcdir=
  725. verbose=
  726. x_includes=NONE
  727. x_libraries=NONE
  728. # Installation directory options.
  729. # These are left unexpanded so users can "make install exec_prefix=/foo"
  730. # and all the variables that are supposed to be based on exec_prefix
  731. # by default will actually change.
  732. # Use braces instead of parens because sh, perl, etc. also accept them.
  733. # (The list follows the same order as the GNU Coding Standards.)
  734. bindir='${exec_prefix}/bin'
  735. sbindir='${exec_prefix}/sbin'
  736. libexecdir='${exec_prefix}/libexec'
  737. datarootdir='${prefix}/share'
  738. datadir='${datarootdir}'
  739. sysconfdir='${prefix}/etc'
  740. sharedstatedir='${prefix}/com'
  741. localstatedir='${prefix}/var'
  742. includedir='${prefix}/include'
  743. oldincludedir='/usr/include'
  744. docdir='${datarootdir}/doc/${PACKAGE}'
  745. infodir='${datarootdir}/info'
  746. htmldir='${docdir}'
  747. dvidir='${docdir}'
  748. pdfdir='${docdir}'
  749. psdir='${docdir}'
  750. libdir='${exec_prefix}/lib'
  751. localedir='${datarootdir}/locale'
  752. mandir='${datarootdir}/man'
  753. ac_prev=
  754. ac_dashdash=
  755. for ac_option
  756. do
  757. # If the previous option needs an argument, assign it.
  758. if test -n "$ac_prev"; then
  759. eval $ac_prev=\$ac_option
  760. ac_prev=
  761. continue
  762. fi
  763. case $ac_option in
  764. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  765. *=) ac_optarg= ;;
  766. *) ac_optarg=yes ;;
  767. esac
  768. # Accept the important Cygnus configure options, so we can diagnose typos.
  769. case $ac_dashdash$ac_option in
  770. --)
  771. ac_dashdash=yes ;;
  772. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  773. ac_prev=bindir ;;
  774. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  775. bindir=$ac_optarg ;;
  776. -build | --build | --buil | --bui | --bu)
  777. ac_prev=build_alias ;;
  778. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  779. build_alias=$ac_optarg ;;
  780. -cache-file | --cache-file | --cache-fil | --cache-fi \
  781. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  782. ac_prev=cache_file ;;
  783. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  784. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  785. cache_file=$ac_optarg ;;
  786. --config-cache | -C)
  787. cache_file=config.cache ;;
  788. -datadir | --datadir | --datadi | --datad)
  789. ac_prev=datadir ;;
  790. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  791. datadir=$ac_optarg ;;
  792. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  793. | --dataroo | --dataro | --datar)
  794. ac_prev=datarootdir ;;
  795. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  796. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  797. datarootdir=$ac_optarg ;;
  798. -disable-* | --disable-*)
  799. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  800. # Reject names that are not valid shell variable names.
  801. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  802. as_fn_error $? "invalid feature name: $ac_useropt"
  803. ac_useropt_orig=$ac_useropt
  804. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  805. case $ac_user_opts in
  806. *"
  807. "enable_$ac_useropt"
  808. "*) ;;
  809. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  810. ac_unrecognized_sep=', ';;
  811. esac
  812. eval enable_$ac_useropt=no ;;
  813. -docdir | --docdir | --docdi | --doc | --do)
  814. ac_prev=docdir ;;
  815. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  816. docdir=$ac_optarg ;;
  817. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  818. ac_prev=dvidir ;;
  819. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  820. dvidir=$ac_optarg ;;
  821. -enable-* | --enable-*)
  822. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  823. # Reject names that are not valid shell variable names.
  824. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  825. as_fn_error $? "invalid feature name: $ac_useropt"
  826. ac_useropt_orig=$ac_useropt
  827. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  828. case $ac_user_opts in
  829. *"
  830. "enable_$ac_useropt"
  831. "*) ;;
  832. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  833. ac_unrecognized_sep=', ';;
  834. esac
  835. eval enable_$ac_useropt=\$ac_optarg ;;
  836. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  837. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  838. | --exec | --exe | --ex)
  839. ac_prev=exec_prefix ;;
  840. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  841. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  842. | --exec=* | --exe=* | --ex=*)
  843. exec_prefix=$ac_optarg ;;
  844. -gas | --gas | --ga | --g)
  845. # Obsolete; use --with-gas.
  846. with_gas=yes ;;
  847. -help | --help | --hel | --he | -h)
  848. ac_init_help=long ;;
  849. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  850. ac_init_help=recursive ;;
  851. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  852. ac_init_help=short ;;
  853. -host | --host | --hos | --ho)
  854. ac_prev=host_alias ;;
  855. -host=* | --host=* | --hos=* | --ho=*)
  856. host_alias=$ac_optarg ;;
  857. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  858. ac_prev=htmldir ;;
  859. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  860. | --ht=*)
  861. htmldir=$ac_optarg ;;
  862. -includedir | --includedir | --includedi | --included | --include \
  863. | --includ | --inclu | --incl | --inc)
  864. ac_prev=includedir ;;
  865. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  866. | --includ=* | --inclu=* | --incl=* | --inc=*)
  867. includedir=$ac_optarg ;;
  868. -infodir | --infodir | --infodi | --infod | --info | --inf)
  869. ac_prev=infodir ;;
  870. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  871. infodir=$ac_optarg ;;
  872. -libdir | --libdir | --libdi | --libd)
  873. ac_prev=libdir ;;
  874. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  875. libdir=$ac_optarg ;;
  876. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  877. | --libexe | --libex | --libe)
  878. ac_prev=libexecdir ;;
  879. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  880. | --libexe=* | --libex=* | --libe=*)
  881. libexecdir=$ac_optarg ;;
  882. -localedir | --localedir | --localedi | --localed | --locale)
  883. ac_prev=localedir ;;
  884. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  885. localedir=$ac_optarg ;;
  886. -localstatedir | --localstatedir | --localstatedi | --localstated \
  887. | --localstate | --localstat | --localsta | --localst | --locals)
  888. ac_prev=localstatedir ;;
  889. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  890. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  891. localstatedir=$ac_optarg ;;
  892. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  893. ac_prev=mandir ;;
  894. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  895. mandir=$ac_optarg ;;
  896. -nfp | --nfp | --nf)
  897. # Obsolete; use --without-fp.
  898. with_fp=no ;;
  899. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  900. | --no-cr | --no-c | -n)
  901. no_create=yes ;;
  902. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  903. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  904. no_recursion=yes ;;
  905. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  906. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  907. | --oldin | --oldi | --old | --ol | --o)
  908. ac_prev=oldincludedir ;;
  909. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  910. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  911. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  912. oldincludedir=$ac_optarg ;;
  913. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  914. ac_prev=prefix ;;
  915. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  916. prefix=$ac_optarg ;;
  917. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  918. | --program-pre | --program-pr | --program-p)
  919. ac_prev=program_prefix ;;
  920. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  921. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  922. program_prefix=$ac_optarg ;;
  923. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  924. | --program-suf | --program-su | --program-s)
  925. ac_prev=program_suffix ;;
  926. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  927. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  928. program_suffix=$ac_optarg ;;
  929. -program-transform-name | --program-transform-name \
  930. | --program-transform-nam | --program-transform-na \
  931. | --program-transform-n | --program-transform- \
  932. | --program-transform | --program-transfor \
  933. | --program-transfo | --program-transf \
  934. | --program-trans | --program-tran \
  935. | --progr-tra | --program-tr | --program-t)
  936. ac_prev=program_transform_name ;;
  937. -program-transform-name=* | --program-transform-name=* \
  938. | --program-transform-nam=* | --program-transform-na=* \
  939. | --program-transform-n=* | --program-transform-=* \
  940. | --program-transform=* | --program-transfor=* \
  941. | --program-transfo=* | --program-transf=* \
  942. | --program-trans=* | --program-tran=* \
  943. | --progr-tra=* | --program-tr=* | --program-t=*)
  944. program_transform_name=$ac_optarg ;;
  945. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  946. ac_prev=pdfdir ;;
  947. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  948. pdfdir=$ac_optarg ;;
  949. -psdir | --psdir | --psdi | --psd | --ps)
  950. ac_prev=psdir ;;
  951. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  952. psdir=$ac_optarg ;;
  953. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  954. | -silent | --silent | --silen | --sile | --sil)
  955. silent=yes ;;
  956. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  957. ac_prev=sbindir ;;
  958. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  959. | --sbi=* | --sb=*)
  960. sbindir=$ac_optarg ;;
  961. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  962. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  963. | --sharedst | --shareds | --shared | --share | --shar \
  964. | --sha | --sh)
  965. ac_prev=sharedstatedir ;;
  966. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  967. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  968. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  969. | --sha=* | --sh=*)
  970. sharedstatedir=$ac_optarg ;;
  971. -site | --site | --sit)
  972. ac_prev=site ;;
  973. -site=* | --site=* | --sit=*)
  974. site=$ac_optarg ;;
  975. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  976. ac_prev=srcdir ;;
  977. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  978. srcdir=$ac_optarg ;;
  979. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  980. | --syscon | --sysco | --sysc | --sys | --sy)
  981. ac_prev=sysconfdir ;;
  982. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  983. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  984. sysconfdir=$ac_optarg ;;
  985. -target | --target | --targe | --targ | --tar | --ta | --t)
  986. ac_prev=target_alias ;;
  987. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  988. target_alias=$ac_optarg ;;
  989. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  990. verbose=yes ;;
  991. -version | --version | --versio | --versi | --vers | -V)
  992. ac_init_version=: ;;
  993. -with-* | --with-*)
  994. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  995. # Reject names that are not valid shell variable names.
  996. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  997. as_fn_error $? "invalid package name: $ac_useropt"
  998. ac_useropt_orig=$ac_useropt
  999. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1000. case $ac_user_opts in
  1001. *"
  1002. "with_$ac_useropt"
  1003. "*) ;;
  1004. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1005. ac_unrecognized_sep=', ';;
  1006. esac
  1007. eval with_$ac_useropt=\$ac_optarg ;;
  1008. -without-* | --without-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid package name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "with_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval with_$ac_useropt=no ;;
  1023. --x)
  1024. # Obsolete; use --with-x.
  1025. with_x=yes ;;
  1026. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1027. | --x-incl | --x-inc | --x-in | --x-i)
  1028. ac_prev=x_includes ;;
  1029. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1030. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1031. x_includes=$ac_optarg ;;
  1032. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1033. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1034. ac_prev=x_libraries ;;
  1035. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1036. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1037. x_libraries=$ac_optarg ;;
  1038. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1039. Try \`$0 --help' for more information"
  1040. ;;
  1041. *=*)
  1042. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1043. # Reject names that are not valid shell variable names.
  1044. case $ac_envvar in #(
  1045. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1046. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1047. esac
  1048. eval $ac_envvar=\$ac_optarg
  1049. export $ac_envvar ;;
  1050. *)
  1051. # FIXME: should be removed in autoconf 3.0.
  1052. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1053. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1054. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1055. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1056. ;;
  1057. esac
  1058. done
  1059. if test -n "$ac_prev"; then
  1060. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1061. as_fn_error $? "missing argument to $ac_option"
  1062. fi
  1063. if test -n "$ac_unrecognized_opts"; then
  1064. case $enable_option_checking in
  1065. no) ;;
  1066. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1067. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1068. esac
  1069. fi
  1070. # Check all directory arguments for consistency.
  1071. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1072. datadir sysconfdir sharedstatedir localstatedir includedir \
  1073. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1074. libdir localedir mandir
  1075. do
  1076. eval ac_val=\$$ac_var
  1077. # Remove trailing slashes.
  1078. case $ac_val in
  1079. */ )
  1080. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1081. eval $ac_var=\$ac_val;;
  1082. esac
  1083. # Be sure to have absolute directory names.
  1084. case $ac_val in
  1085. [\\/$]* | ?:[\\/]* ) continue;;
  1086. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1087. esac
  1088. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1089. done
  1090. # There might be people who depend on the old broken behavior: `$host'
  1091. # used to hold the argument of --host etc.
  1092. # FIXME: To remove some day.
  1093. build=$build_alias
  1094. host=$host_alias
  1095. target=$target_alias
  1096. # FIXME: To remove some day.
  1097. if test "x$host_alias" != x; then
  1098. if test "x$build_alias" = x; then
  1099. cross_compiling=maybe
  1100. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1101. If a cross compiler is detected then cross compile mode will be used" >&2
  1102. elif test "x$build_alias" != "x$host_alias"; then
  1103. cross_compiling=yes
  1104. fi
  1105. fi
  1106. ac_tool_prefix=
  1107. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1108. test "$silent" = yes && exec 6>/dev/null
  1109. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1110. ac_ls_di=`ls -di .` &&
  1111. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1112. as_fn_error $? "working directory cannot be determined"
  1113. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1114. as_fn_error $? "pwd does not report name of working directory"
  1115. # Find the source files, if location was not specified.
  1116. if test -z "$srcdir"; then
  1117. ac_srcdir_defaulted=yes
  1118. # Try the directory containing this script, then the parent directory.
  1119. ac_confdir=`$as_dirname -- "$as_myself" ||
  1120. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1121. X"$as_myself" : 'X\(//\)[^/]' \| \
  1122. X"$as_myself" : 'X\(//\)$' \| \
  1123. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1124. $as_echo X"$as_myself" |
  1125. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1126. s//\1/
  1127. q
  1128. }
  1129. /^X\(\/\/\)[^/].*/{
  1130. s//\1/
  1131. q
  1132. }
  1133. /^X\(\/\/\)$/{
  1134. s//\1/
  1135. q
  1136. }
  1137. /^X\(\/\).*/{
  1138. s//\1/
  1139. q
  1140. }
  1141. s/.*/./; q'`
  1142. srcdir=$ac_confdir
  1143. if test ! -r "$srcdir/$ac_unique_file"; then
  1144. srcdir=..
  1145. fi
  1146. else
  1147. ac_srcdir_defaulted=no
  1148. fi
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1151. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1152. fi
  1153. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1154. ac_abs_confdir=`(
  1155. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1156. pwd)`
  1157. # When building in place, set srcdir=.
  1158. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1159. srcdir=.
  1160. fi
  1161. # Remove unnecessary trailing slashes from srcdir.
  1162. # Double slashes in file names in object file debugging info
  1163. # mess up M-x gdb in Emacs.
  1164. case $srcdir in
  1165. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1166. esac
  1167. for ac_var in $ac_precious_vars; do
  1168. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1169. eval ac_env_${ac_var}_value=\$${ac_var}
  1170. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1172. done
  1173. #
  1174. # Report the --help message.
  1175. #
  1176. if test "$ac_init_help" = "long"; then
  1177. # Omit some internal or obsolete options to make the list less imposing.
  1178. # This message is too long to be a string in the A/UX 3.1 sh.
  1179. cat <<_ACEOF
  1180. \`configure' configures this package to adapt to many kinds of systems.
  1181. Usage: $0 [OPTION]... [VAR=VALUE]...
  1182. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1183. VAR=VALUE. See below for descriptions of some of the useful variables.
  1184. Defaults for the options are specified in brackets.
  1185. Configuration:
  1186. -h, --help display this help and exit
  1187. --help=short display options specific to this package
  1188. --help=recursive display the short help of all the included packages
  1189. -V, --version display version information and exit
  1190. -q, --quiet, --silent do not print \`checking ...' messages
  1191. --cache-file=FILE cache test results in FILE [disabled]
  1192. -C, --config-cache alias for \`--cache-file=config.cache'
  1193. -n, --no-create do not create output files
  1194. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1195. Installation directories:
  1196. --prefix=PREFIX install architecture-independent files in PREFIX
  1197. [$ac_default_prefix]
  1198. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1199. [PREFIX]
  1200. By default, \`make install' will install all the files in
  1201. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1202. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1203. for instance \`--prefix=\$HOME'.
  1204. For better control, use the options below.
  1205. Fine tuning of the installation directories:
  1206. --bindir=DIR user executables [EPREFIX/bin]
  1207. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1208. --libexecdir=DIR program executables [EPREFIX/libexec]
  1209. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1210. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1211. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1212. --libdir=DIR object code libraries [EPREFIX/lib]
  1213. --includedir=DIR C header files [PREFIX/include]
  1214. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1215. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1216. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1217. --infodir=DIR info documentation [DATAROOTDIR/info]
  1218. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1219. --mandir=DIR man documentation [DATAROOTDIR/man]
  1220. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1221. --htmldir=DIR html documentation [DOCDIR]
  1222. --dvidir=DIR dvi documentation [DOCDIR]
  1223. --pdfdir=DIR pdf documentation [DOCDIR]
  1224. --psdir=DIR ps documentation [DOCDIR]
  1225. _ACEOF
  1226. cat <<\_ACEOF
  1227. Program names:
  1228. --program-prefix=PREFIX prepend PREFIX to installed program names
  1229. --program-suffix=SUFFIX append SUFFIX to installed program names
  1230. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1231. System types:
  1232. --build=BUILD configure for building on BUILD [guessed]
  1233. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1234. _ACEOF
  1235. fi
  1236. if test -n "$ac_init_help"; then
  1237. cat <<\_ACEOF
  1238. Optional Features:
  1239. --disable-option-checking ignore unrecognized --enable/--with options
  1240. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1241. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1242. --enable-silent-rules less verbose build output (undo: `make V=1')
  1243. --disable-silent-rules verbose build output (undo: `make V=0')
  1244. --enable-static[=PKGS] build static libraries [default=no]
  1245. --disable-dependency-tracking speeds up one-time build
  1246. --enable-dependency-tracking do not reject slow dependency extractors
  1247. --enable-shared[=PKGS] build shared libraries [default=yes]
  1248. --enable-fast-install[=PKGS]
  1249. optimize for fast installation [default=yes]
  1250. --disable-libtool-lock avoid locking (might break parallel builds)
  1251. Optional Packages:
  1252. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1253. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1254. --with-pic try to use only PIC/non-PIC objects [default=use
  1255. both]
  1256. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1257. --with-sysroot=DIR Search for dependent libraries within DIR
  1258. (or the compiler's sysroot if not specified).
  1259. Some influential environment variables:
  1260. CC C compiler command
  1261. CFLAGS C compiler flags
  1262. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1263. nonstandard directory <lib dir>
  1264. LIBS libraries to pass to the linker, e.g. -l<library>
  1265. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1266. you have headers in a nonstandard directory <include dir>
  1267. CXX C++ compiler command
  1268. CXXFLAGS C++ compiler flags
  1269. CXXCPP C++ preprocessor
  1270. Use these variables to override the choices made by `configure' or to help
  1271. it to find libraries and programs with nonstandard names/locations.
  1272. Report bugs to the package provider.
  1273. _ACEOF
  1274. ac_status=$?
  1275. fi
  1276. if test "$ac_init_help" = "recursive"; then
  1277. # If there are subdirs, report their specific --help.
  1278. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1279. test -d "$ac_dir" ||
  1280. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1281. continue
  1282. ac_builddir=.
  1283. case "$ac_dir" in
  1284. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1285. *)
  1286. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1287. # A ".." for each directory in $ac_dir_suffix.
  1288. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1289. case $ac_top_builddir_sub in
  1290. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1291. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1292. esac ;;
  1293. esac
  1294. ac_abs_top_builddir=$ac_pwd
  1295. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1296. # for backward compatibility:
  1297. ac_top_builddir=$ac_top_build_prefix
  1298. case $srcdir in
  1299. .) # We are building in place.
  1300. ac_srcdir=.
  1301. ac_top_srcdir=$ac_top_builddir_sub
  1302. ac_abs_top_srcdir=$ac_pwd ;;
  1303. [\\/]* | ?:[\\/]* ) # Absolute name.
  1304. ac_srcdir=$srcdir$ac_dir_suffix;
  1305. ac_top_srcdir=$srcdir
  1306. ac_abs_top_srcdir=$srcdir ;;
  1307. *) # Relative name.
  1308. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1309. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1310. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1311. esac
  1312. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1313. cd "$ac_dir" || { ac_status=$?; continue; }
  1314. # Check for guested configure.
  1315. if test -f "$ac_srcdir/configure.gnu"; then
  1316. echo &&
  1317. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1318. elif test -f "$ac_srcdir/configure"; then
  1319. echo &&
  1320. $SHELL "$ac_srcdir/configure" --help=recursive
  1321. else
  1322. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1323. fi || ac_status=$?
  1324. cd "$ac_pwd" || { ac_status=$?; break; }
  1325. done
  1326. fi
  1327. test -n "$ac_init_help" && exit $ac_status
  1328. if $ac_init_version; then
  1329. cat <<\_ACEOF
  1330. configure
  1331. generated by GNU Autoconf 2.68
  1332. Copyright (C) 2010 Free Software Foundation, Inc.
  1333. This configure script is free software; the Free Software Foundation
  1334. gives unlimited permission to copy, distribute and modify it.
  1335. _ACEOF
  1336. exit
  1337. fi
  1338. ## ------------------------ ##
  1339. ## Autoconf initialization. ##
  1340. ## ------------------------ ##
  1341. # ac_fn_c_try_compile LINENO
  1342. # --------------------------
  1343. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1344. ac_fn_c_try_compile ()
  1345. {
  1346. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1347. rm -f conftest.$ac_objext
  1348. if { { ac_try="$ac_compile"
  1349. case "(($ac_try" in
  1350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1351. *) ac_try_echo=$ac_try;;
  1352. esac
  1353. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1354. $as_echo "$ac_try_echo"; } >&5
  1355. (eval "$ac_compile") 2>conftest.err
  1356. ac_status=$?
  1357. if test -s conftest.err; then
  1358. grep -v '^ *+' conftest.err >conftest.er1
  1359. cat conftest.er1 >&5
  1360. mv -f conftest.er1 conftest.err
  1361. fi
  1362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1363. test $ac_status = 0; } && {
  1364. test -z "$ac_c_werror_flag" ||
  1365. test ! -s conftest.err
  1366. } && test -s conftest.$ac_objext; then :
  1367. ac_retval=0
  1368. else
  1369. $as_echo "$as_me: failed program was:" >&5
  1370. sed 's/^/| /' conftest.$ac_ext >&5
  1371. ac_retval=1
  1372. fi
  1373. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1374. as_fn_set_status $ac_retval
  1375. } # ac_fn_c_try_compile
  1376. # ac_fn_cxx_try_compile LINENO
  1377. # ----------------------------
  1378. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1379. ac_fn_cxx_try_compile ()
  1380. {
  1381. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1382. rm -f conftest.$ac_objext
  1383. if { { ac_try="$ac_compile"
  1384. case "(($ac_try" in
  1385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1386. *) ac_try_echo=$ac_try;;
  1387. esac
  1388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1389. $as_echo "$ac_try_echo"; } >&5
  1390. (eval "$ac_compile") 2>conftest.err
  1391. ac_status=$?
  1392. if test -s conftest.err; then
  1393. grep -v '^ *+' conftest.err >conftest.er1
  1394. cat conftest.er1 >&5
  1395. mv -f conftest.er1 conftest.err
  1396. fi
  1397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1398. test $ac_status = 0; } && {
  1399. test -z "$ac_cxx_werror_flag" ||
  1400. test ! -s conftest.err
  1401. } && test -s conftest.$ac_objext; then :
  1402. ac_retval=0
  1403. else
  1404. $as_echo "$as_me: failed program was:" >&5
  1405. sed 's/^/| /' conftest.$ac_ext >&5
  1406. ac_retval=1
  1407. fi
  1408. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1409. as_fn_set_status $ac_retval
  1410. } # ac_fn_cxx_try_compile
  1411. # ac_fn_cxx_try_run LINENO
  1412. # ------------------------
  1413. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1414. # that executables *can* be run.
  1415. ac_fn_cxx_try_run ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. if { { ac_try="$ac_link"
  1419. case "(($ac_try" in
  1420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1421. *) ac_try_echo=$ac_try;;
  1422. esac
  1423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1424. $as_echo "$ac_try_echo"; } >&5
  1425. (eval "$ac_link") 2>&5
  1426. ac_status=$?
  1427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1428. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1429. { { case "(($ac_try" in
  1430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1431. *) ac_try_echo=$ac_try;;
  1432. esac
  1433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1434. $as_echo "$ac_try_echo"; } >&5
  1435. (eval "$ac_try") 2>&5
  1436. ac_status=$?
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; }; }; then :
  1439. ac_retval=0
  1440. else
  1441. $as_echo "$as_me: program exited with status $ac_status" >&5
  1442. $as_echo "$as_me: failed program was:" >&5
  1443. sed 's/^/| /' conftest.$ac_ext >&5
  1444. ac_retval=$ac_status
  1445. fi
  1446. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_run
  1450. # ac_fn_cxx_try_cpp LINENO
  1451. # ------------------------
  1452. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1453. ac_fn_cxx_try_cpp ()
  1454. {
  1455. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1456. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1457. case "(($ac_try" in
  1458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1459. *) ac_try_echo=$ac_try;;
  1460. esac
  1461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1462. $as_echo "$ac_try_echo"; } >&5
  1463. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1464. ac_status=$?
  1465. if test -s conftest.err; then
  1466. grep -v '^ *+' conftest.err >conftest.er1
  1467. cat conftest.er1 >&5
  1468. mv -f conftest.er1 conftest.err
  1469. fi
  1470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1471. test $ac_status = 0; } > conftest.i && {
  1472. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1473. test ! -s conftest.err
  1474. }; then :
  1475. ac_retval=0
  1476. else
  1477. $as_echo "$as_me: failed program was:" >&5
  1478. sed 's/^/| /' conftest.$ac_ext >&5
  1479. ac_retval=1
  1480. fi
  1481. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1482. as_fn_set_status $ac_retval
  1483. } # ac_fn_cxx_try_cpp
  1484. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1485. # ---------------------------------------------------------
  1486. # Tests whether HEADER exists and can be compiled using the include files in
  1487. # INCLUDES, setting the cache variable VAR accordingly.
  1488. ac_fn_cxx_check_header_compile ()
  1489. {
  1490. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1492. $as_echo_n "checking for $2... " >&6; }
  1493. if eval \${$3+:} false; then :
  1494. $as_echo_n "(cached) " >&6
  1495. else
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. $4
  1499. #include <$2>
  1500. _ACEOF
  1501. if ac_fn_cxx_try_compile "$LINENO"; then :
  1502. eval "$3=yes"
  1503. else
  1504. eval "$3=no"
  1505. fi
  1506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1507. fi
  1508. eval ac_res=\$$3
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1510. $as_echo "$ac_res" >&6; }
  1511. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1512. } # ac_fn_cxx_check_header_compile
  1513. # ac_fn_c_try_link LINENO
  1514. # -----------------------
  1515. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1516. ac_fn_c_try_link ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. rm -f conftest.$ac_objext conftest$ac_exeext
  1520. if { { ac_try="$ac_link"
  1521. case "(($ac_try" in
  1522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1523. *) ac_try_echo=$ac_try;;
  1524. esac
  1525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1526. $as_echo "$ac_try_echo"; } >&5
  1527. (eval "$ac_link") 2>conftest.err
  1528. ac_status=$?
  1529. if test -s conftest.err; then
  1530. grep -v '^ *+' conftest.err >conftest.er1
  1531. cat conftest.er1 >&5
  1532. mv -f conftest.er1 conftest.err
  1533. fi
  1534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; } && {
  1536. test -z "$ac_c_werror_flag" ||
  1537. test ! -s conftest.err
  1538. } && test -s conftest$ac_exeext && {
  1539. test "$cross_compiling" = yes ||
  1540. $as_test_x conftest$ac_exeext
  1541. }; then :
  1542. ac_retval=0
  1543. else
  1544. $as_echo "$as_me: failed program was:" >&5
  1545. sed 's/^/| /' conftest.$ac_ext >&5
  1546. ac_retval=1
  1547. fi
  1548. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1549. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1550. # interfere with the next link command; also delete a directory that is
  1551. # left behind by Apple's compiler. We do this before executing the actions.
  1552. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. as_fn_set_status $ac_retval
  1555. } # ac_fn_c_try_link
  1556. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1557. # -------------------------------------------------------
  1558. # Tests whether HEADER exists and can be compiled using the include files in
  1559. # INCLUDES, setting the cache variable VAR accordingly.
  1560. ac_fn_c_check_header_compile ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1564. $as_echo_n "checking for $2... " >&6; }
  1565. if eval \${$3+:} false; then :
  1566. $as_echo_n "(cached) " >&6
  1567. else
  1568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1569. /* end confdefs.h. */
  1570. $4
  1571. #include <$2>
  1572. _ACEOF
  1573. if ac_fn_c_try_compile "$LINENO"; then :
  1574. eval "$3=yes"
  1575. else
  1576. eval "$3=no"
  1577. fi
  1578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1579. fi
  1580. eval ac_res=\$$3
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1582. $as_echo "$ac_res" >&6; }
  1583. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1584. } # ac_fn_c_check_header_compile
  1585. # ac_fn_c_check_func LINENO FUNC VAR
  1586. # ----------------------------------
  1587. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1588. ac_fn_c_check_func ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1592. $as_echo_n "checking for $2... " >&6; }
  1593. if eval \${$3+:} false; then :
  1594. $as_echo_n "(cached) " >&6
  1595. else
  1596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1597. /* end confdefs.h. */
  1598. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1599. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1600. #define $2 innocuous_$2
  1601. /* System header to define __stub macros and hopefully few prototypes,
  1602. which can conflict with char $2 (); below.
  1603. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1604. <limits.h> exists even on freestanding compilers. */
  1605. #ifdef __STDC__
  1606. # include <limits.h>
  1607. #else
  1608. # include <assert.h>
  1609. #endif
  1610. #undef $2
  1611. /* Override any GCC internal prototype to avoid an error.
  1612. Use char because int might match the return type of a GCC
  1613. builtin and then its argument prototype would still apply. */
  1614. #ifdef __cplusplus
  1615. extern "C"
  1616. #endif
  1617. char $2 ();
  1618. /* The GNU C library defines this for functions which it implements
  1619. to always fail with ENOSYS. Some functions are actually named
  1620. something starting with __ and the normal name is an alias. */
  1621. #if defined __stub_$2 || defined __stub___$2
  1622. choke me
  1623. #endif
  1624. int
  1625. main ()
  1626. {
  1627. return $2 ();
  1628. ;
  1629. return 0;
  1630. }
  1631. _ACEOF
  1632. if ac_fn_c_try_link "$LINENO"; then :
  1633. eval "$3=yes"
  1634. else
  1635. eval "$3=no"
  1636. fi
  1637. rm -f core conftest.err conftest.$ac_objext \
  1638. conftest$ac_exeext conftest.$ac_ext
  1639. fi
  1640. eval ac_res=\$$3
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. $as_echo "$ac_res" >&6; }
  1643. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1644. } # ac_fn_c_check_func
  1645. # ac_fn_cxx_try_link LINENO
  1646. # -------------------------
  1647. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1648. ac_fn_cxx_try_link ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. rm -f conftest.$ac_objext conftest$ac_exeext
  1652. if { { ac_try="$ac_link"
  1653. case "(($ac_try" in
  1654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1655. *) ac_try_echo=$ac_try;;
  1656. esac
  1657. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1658. $as_echo "$ac_try_echo"; } >&5
  1659. (eval "$ac_link") 2>conftest.err
  1660. ac_status=$?
  1661. if test -s conftest.err; then
  1662. grep -v '^ *+' conftest.err >conftest.er1
  1663. cat conftest.er1 >&5
  1664. mv -f conftest.er1 conftest.err
  1665. fi
  1666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667. test $ac_status = 0; } && {
  1668. test -z "$ac_cxx_werror_flag" ||
  1669. test ! -s conftest.err
  1670. } && test -s conftest$ac_exeext && {
  1671. test "$cross_compiling" = yes ||
  1672. $as_test_x conftest$ac_exeext
  1673. }; then :
  1674. ac_retval=0
  1675. else
  1676. $as_echo "$as_me: failed program was:" >&5
  1677. sed 's/^/| /' conftest.$ac_ext >&5
  1678. ac_retval=1
  1679. fi
  1680. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1681. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1682. # interfere with the next link command; also delete a directory that is
  1683. # left behind by Apple's compiler. We do this before executing the actions.
  1684. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. as_fn_set_status $ac_retval
  1687. } # ac_fn_cxx_try_link
  1688. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1689. # ---------------------------------------------------------
  1690. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1691. # the include files in INCLUDES and setting the cache variable VAR
  1692. # accordingly.
  1693. ac_fn_cxx_check_header_mongrel ()
  1694. {
  1695. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1696. if eval \${$3+:} false; then :
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1698. $as_echo_n "checking for $2... " >&6; }
  1699. if eval \${$3+:} false; then :
  1700. $as_echo_n "(cached) " >&6
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. else
  1706. # Is the header compilable?
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1708. $as_echo_n "checking $2 usability... " >&6; }
  1709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1710. /* end confdefs.h. */
  1711. $4
  1712. #include <$2>
  1713. _ACEOF
  1714. if ac_fn_cxx_try_compile "$LINENO"; then :
  1715. ac_header_compiler=yes
  1716. else
  1717. ac_header_compiler=no
  1718. fi
  1719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1721. $as_echo "$ac_header_compiler" >&6; }
  1722. # Is the header present?
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1724. $as_echo_n "checking $2 presence... " >&6; }
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. #include <$2>
  1728. _ACEOF
  1729. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1730. ac_header_preproc=yes
  1731. else
  1732. ac_header_preproc=no
  1733. fi
  1734. rm -f conftest.err conftest.i conftest.$ac_ext
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1736. $as_echo "$ac_header_preproc" >&6; }
  1737. # So? What about this header?
  1738. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1739. yes:no: )
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1741. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1743. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1744. ;;
  1745. no:yes:* )
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1747. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1749. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1751. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1753. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1755. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1756. ;;
  1757. esac
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1759. $as_echo_n "checking for $2... " >&6; }
  1760. if eval \${$3+:} false; then :
  1761. $as_echo_n "(cached) " >&6
  1762. else
  1763. eval "$3=\$ac_header_compiler"
  1764. fi
  1765. eval ac_res=\$$3
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1767. $as_echo "$ac_res" >&6; }
  1768. fi
  1769. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770. } # ac_fn_cxx_check_header_mongrel
  1771. # ac_fn_cxx_check_func LINENO FUNC VAR
  1772. # ------------------------------------
  1773. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1774. ac_fn_cxx_check_func ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1778. $as_echo_n "checking for $2... " >&6; }
  1779. if eval \${$3+:} false; then :
  1780. $as_echo_n "(cached) " >&6
  1781. else
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1785. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1786. #define $2 innocuous_$2
  1787. /* System header to define __stub macros and hopefully few prototypes,
  1788. which can conflict with char $2 (); below.
  1789. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1790. <limits.h> exists even on freestanding compilers. */
  1791. #ifdef __STDC__
  1792. # include <limits.h>
  1793. #else
  1794. # include <assert.h>
  1795. #endif
  1796. #undef $2
  1797. /* Override any GCC internal prototype to avoid an error.
  1798. Use char because int might match the return type of a GCC
  1799. builtin and then its argument prototype would still apply. */
  1800. #ifdef __cplusplus
  1801. extern "C"
  1802. #endif
  1803. char $2 ();
  1804. /* The GNU C library defines this for functions which it implements
  1805. to always fail with ENOSYS. Some functions are actually named
  1806. something starting with __ and the normal name is an alias. */
  1807. #if defined __stub_$2 || defined __stub___$2
  1808. choke me
  1809. #endif
  1810. int
  1811. main ()
  1812. {
  1813. return $2 ();
  1814. ;
  1815. return 0;
  1816. }
  1817. _ACEOF
  1818. if ac_fn_cxx_try_link "$LINENO"; then :
  1819. eval "$3=yes"
  1820. else
  1821. eval "$3=no"
  1822. fi
  1823. rm -f core conftest.err conftest.$ac_objext \
  1824. conftest$ac_exeext 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; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_cxx_check_func
  1831. # ac_fn_c_find_intX_t LINENO BITS VAR
  1832. # -----------------------------------
  1833. # Finds a signed integer type with width BITS, setting cache variable VAR
  1834. # accordingly.
  1835. ac_fn_c_find_intX_t ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1839. $as_echo_n "checking for int$2_t... " >&6; }
  1840. if eval \${$3+:} false; then :
  1841. $as_echo_n "(cached) " >&6
  1842. else
  1843. eval "$3=no"
  1844. # Order is important - never check a type that is potentially smaller
  1845. # than half of the expected target width.
  1846. for ac_type in int$2_t 'int' 'long int' \
  1847. 'long long int' 'short int' 'signed char'; do
  1848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1849. /* end confdefs.h. */
  1850. $ac_includes_default
  1851. enum { N = $2 / 2 - 1 };
  1852. int
  1853. main ()
  1854. {
  1855. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1856. test_array [0] = 0
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_cxx_try_compile "$LINENO"; then :
  1862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1863. /* end confdefs.h. */
  1864. $ac_includes_default
  1865. enum { N = $2 / 2 - 1 };
  1866. int
  1867. main ()
  1868. {
  1869. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1870. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1871. test_array [0] = 0
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. if ac_fn_cxx_try_compile "$LINENO"; then :
  1877. else
  1878. case $ac_type in #(
  1879. int$2_t) :
  1880. eval "$3=yes" ;; #(
  1881. *) :
  1882. eval "$3=\$ac_type" ;;
  1883. esac
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1886. fi
  1887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1888. if eval test \"x\$"$3"\" = x"no"; then :
  1889. else
  1890. break
  1891. fi
  1892. done
  1893. fi
  1894. eval ac_res=\$$3
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1896. $as_echo "$ac_res" >&6; }
  1897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1898. } # ac_fn_c_find_intX_t
  1899. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1900. # ------------------------------------
  1901. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1902. # accordingly.
  1903. ac_fn_c_find_uintX_t ()
  1904. {
  1905. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1907. $as_echo_n "checking for uint$2_t... " >&6; }
  1908. if eval \${$3+:} false; then :
  1909. $as_echo_n "(cached) " >&6
  1910. else
  1911. eval "$3=no"
  1912. # Order is important - never check a type that is potentially smaller
  1913. # than half of the expected target width.
  1914. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1915. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1917. /* end confdefs.h. */
  1918. $ac_includes_default
  1919. int
  1920. main ()
  1921. {
  1922. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1923. test_array [0] = 0
  1924. ;
  1925. return 0;
  1926. }
  1927. _ACEOF
  1928. if ac_fn_cxx_try_compile "$LINENO"; then :
  1929. case $ac_type in #(
  1930. uint$2_t) :
  1931. eval "$3=yes" ;; #(
  1932. *) :
  1933. eval "$3=\$ac_type" ;;
  1934. esac
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. if eval test \"x\$"$3"\" = x"no"; then :
  1938. else
  1939. break
  1940. fi
  1941. done
  1942. fi
  1943. eval ac_res=\$$3
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1945. $as_echo "$ac_res" >&6; }
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. } # ac_fn_c_find_uintX_t
  1948. cat >config.log <<_ACEOF
  1949. This file contains any messages produced by compilers while
  1950. running configure, to aid debugging if configure makes a mistake.
  1951. It was created by $as_me, which was
  1952. generated by GNU Autoconf 2.68. Invocation command line was
  1953. $ $0 $@
  1954. _ACEOF
  1955. exec 5>>config.log
  1956. {
  1957. cat <<_ASUNAME
  1958. ## --------- ##
  1959. ## Platform. ##
  1960. ## --------- ##
  1961. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1962. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1963. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1964. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1965. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1966. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1967. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1968. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1969. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1970. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1971. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1972. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1973. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1974. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1975. _ASUNAME
  1976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1977. for as_dir in $PATH
  1978. do
  1979. IFS=$as_save_IFS
  1980. test -z "$as_dir" && as_dir=.
  1981. $as_echo "PATH: $as_dir"
  1982. done
  1983. IFS=$as_save_IFS
  1984. } >&5
  1985. cat >&5 <<_ACEOF
  1986. ## ----------- ##
  1987. ## Core tests. ##
  1988. ## ----------- ##
  1989. _ACEOF
  1990. # Keep a trace of the command line.
  1991. # Strip out --no-create and --no-recursion so they do not pile up.
  1992. # Strip out --silent because we don't want to record it for future runs.
  1993. # Also quote any args containing shell meta-characters.
  1994. # Make two passes to allow for proper duplicate-argument suppression.
  1995. ac_configure_args=
  1996. ac_configure_args0=
  1997. ac_configure_args1=
  1998. ac_must_keep_next=false
  1999. for ac_pass in 1 2
  2000. do
  2001. for ac_arg
  2002. do
  2003. case $ac_arg in
  2004. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2005. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2006. | -silent | --silent | --silen | --sile | --sil)
  2007. continue ;;
  2008. *\'*)
  2009. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2010. esac
  2011. case $ac_pass in
  2012. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2013. 2)
  2014. as_fn_append ac_configure_args1 " '$ac_arg'"
  2015. if test $ac_must_keep_next = true; then
  2016. ac_must_keep_next=false # Got value, back to normal.
  2017. else
  2018. case $ac_arg in
  2019. *=* | --config-cache | -C | -disable-* | --disable-* \
  2020. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2021. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2022. | -with-* | --with-* | -without-* | --without-* | --x)
  2023. case "$ac_configure_args0 " in
  2024. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2025. esac
  2026. ;;
  2027. -* ) ac_must_keep_next=true ;;
  2028. esac
  2029. fi
  2030. as_fn_append ac_configure_args " '$ac_arg'"
  2031. ;;
  2032. esac
  2033. done
  2034. done
  2035. { ac_configure_args0=; unset ac_configure_args0;}
  2036. { ac_configure_args1=; unset ac_configure_args1;}
  2037. # When interrupted or exit'd, cleanup temporary files, and complete
  2038. # config.log. We remove comments because anyway the quotes in there
  2039. # would cause problems or look ugly.
  2040. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2041. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2042. trap 'exit_status=$?
  2043. # Save into config.log some information that might help in debugging.
  2044. {
  2045. echo
  2046. $as_echo "## ---------------- ##
  2047. ## Cache variables. ##
  2048. ## ---------------- ##"
  2049. echo
  2050. # The following way of writing the cache mishandles newlines in values,
  2051. (
  2052. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2053. eval ac_val=\$$ac_var
  2054. case $ac_val in #(
  2055. *${as_nl}*)
  2056. case $ac_var in #(
  2057. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2058. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2059. esac
  2060. case $ac_var in #(
  2061. _ | IFS | as_nl) ;; #(
  2062. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2063. *) { eval $ac_var=; unset $ac_var;} ;;
  2064. esac ;;
  2065. esac
  2066. done
  2067. (set) 2>&1 |
  2068. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2069. *${as_nl}ac_space=\ *)
  2070. sed -n \
  2071. "s/'\''/'\''\\\\'\'''\''/g;
  2072. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2073. ;; #(
  2074. *)
  2075. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2076. ;;
  2077. esac |
  2078. sort
  2079. )
  2080. echo
  2081. $as_echo "## ----------------- ##
  2082. ## Output variables. ##
  2083. ## ----------------- ##"
  2084. echo
  2085. for ac_var in $ac_subst_vars
  2086. do
  2087. eval ac_val=\$$ac_var
  2088. case $ac_val in
  2089. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2090. esac
  2091. $as_echo "$ac_var='\''$ac_val'\''"
  2092. done | sort
  2093. echo
  2094. if test -n "$ac_subst_files"; then
  2095. $as_echo "## ------------------- ##
  2096. ## File substitutions. ##
  2097. ## ------------------- ##"
  2098. echo
  2099. for ac_var in $ac_subst_files
  2100. do
  2101. eval ac_val=\$$ac_var
  2102. case $ac_val in
  2103. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2104. esac
  2105. $as_echo "$ac_var='\''$ac_val'\''"
  2106. done | sort
  2107. echo
  2108. fi
  2109. if test -s confdefs.h; then
  2110. $as_echo "## ----------- ##
  2111. ## confdefs.h. ##
  2112. ## ----------- ##"
  2113. echo
  2114. cat confdefs.h
  2115. echo
  2116. fi
  2117. test "$ac_signal" != 0 &&
  2118. $as_echo "$as_me: caught signal $ac_signal"
  2119. $as_echo "$as_me: exit $exit_status"
  2120. } >&5
  2121. rm -f core *.core core.conftest.* &&
  2122. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2123. exit $exit_status
  2124. ' 0
  2125. for ac_signal in 1 2 13 15; do
  2126. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2127. done
  2128. ac_signal=0
  2129. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2130. rm -f -r conftest* confdefs.h
  2131. $as_echo "/* confdefs.h */" > confdefs.h
  2132. # Predefined preprocessor variables.
  2133. cat >>confdefs.h <<_ACEOF
  2134. #define PACKAGE_NAME "$PACKAGE_NAME"
  2135. _ACEOF
  2136. cat >>confdefs.h <<_ACEOF
  2137. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2138. _ACEOF
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2141. _ACEOF
  2142. cat >>confdefs.h <<_ACEOF
  2143. #define PACKAGE_STRING "$PACKAGE_STRING"
  2144. _ACEOF
  2145. cat >>confdefs.h <<_ACEOF
  2146. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2147. _ACEOF
  2148. cat >>confdefs.h <<_ACEOF
  2149. #define PACKAGE_URL "$PACKAGE_URL"
  2150. _ACEOF
  2151. # Let the site file select an alternate cache file if it wants to.
  2152. # Prefer an explicitly selected file to automatically selected ones.
  2153. ac_site_file1=NONE
  2154. ac_site_file2=NONE
  2155. if test -n "$CONFIG_SITE"; then
  2156. # We do not want a PATH search for config.site.
  2157. case $CONFIG_SITE in #((
  2158. -*) ac_site_file1=./$CONFIG_SITE;;
  2159. */*) ac_site_file1=$CONFIG_SITE;;
  2160. *) ac_site_file1=./$CONFIG_SITE;;
  2161. esac
  2162. elif test "x$prefix" != xNONE; then
  2163. ac_site_file1=$prefix/share/config.site
  2164. ac_site_file2=$prefix/etc/config.site
  2165. else
  2166. ac_site_file1=$ac_default_prefix/share/config.site
  2167. ac_site_file2=$ac_default_prefix/etc/config.site
  2168. fi
  2169. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2170. do
  2171. test "x$ac_site_file" = xNONE && continue
  2172. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2174. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2175. sed 's/^/| /' "$ac_site_file" >&5
  2176. . "$ac_site_file" \
  2177. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2178. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2179. as_fn_error $? "failed to load site script $ac_site_file
  2180. See \`config.log' for more details" "$LINENO" 5; }
  2181. fi
  2182. done
  2183. if test -r "$cache_file"; then
  2184. # Some versions of bash will fail to source /dev/null (special files
  2185. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2186. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2188. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2189. case $cache_file in
  2190. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2191. *) . "./$cache_file";;
  2192. esac
  2193. fi
  2194. else
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2196. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2197. >$cache_file
  2198. fi
  2199. # Check that the precious variables saved in the cache have kept the same
  2200. # value.
  2201. ac_cache_corrupted=false
  2202. for ac_var in $ac_precious_vars; do
  2203. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2204. eval ac_new_set=\$ac_env_${ac_var}_set
  2205. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2206. eval ac_new_val=\$ac_env_${ac_var}_value
  2207. case $ac_old_set,$ac_new_set in
  2208. set,)
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2210. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2211. ac_cache_corrupted=: ;;
  2212. ,set)
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2214. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2215. ac_cache_corrupted=: ;;
  2216. ,);;
  2217. *)
  2218. if test "x$ac_old_val" != "x$ac_new_val"; then
  2219. # differences in whitespace do not lead to failure.
  2220. ac_old_val_w=`echo x $ac_old_val`
  2221. ac_new_val_w=`echo x $ac_new_val`
  2222. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2224. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2225. ac_cache_corrupted=:
  2226. else
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2228. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2229. eval $ac_var=\$ac_old_val
  2230. fi
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2232. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2234. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2235. fi;;
  2236. esac
  2237. # Pass precious variables to config.status.
  2238. if test "$ac_new_set" = set; then
  2239. case $ac_new_val in
  2240. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2241. *) ac_arg=$ac_var=$ac_new_val ;;
  2242. esac
  2243. case " $ac_configure_args " in
  2244. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2245. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2246. esac
  2247. fi
  2248. done
  2249. if $ac_cache_corrupted; then
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2253. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2254. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2255. fi
  2256. ## -------------------- ##
  2257. ## Main body of script. ##
  2258. ## -------------------- ##
  2259. ac_ext=c
  2260. ac_cpp='$CPP $CPPFLAGS'
  2261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2264. am__api_version='1.11'
  2265. ac_aux_dir=
  2266. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2267. if test -f "$ac_dir/install-sh"; then
  2268. ac_aux_dir=$ac_dir
  2269. ac_install_sh="$ac_aux_dir/install-sh -c"
  2270. break
  2271. elif test -f "$ac_dir/install.sh"; then
  2272. ac_aux_dir=$ac_dir
  2273. ac_install_sh="$ac_aux_dir/install.sh -c"
  2274. break
  2275. elif test -f "$ac_dir/shtool"; then
  2276. ac_aux_dir=$ac_dir
  2277. ac_install_sh="$ac_aux_dir/shtool install -c"
  2278. break
  2279. fi
  2280. done
  2281. if test -z "$ac_aux_dir"; then
  2282. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2283. fi
  2284. # These three variables are undocumented and unsupported,
  2285. # and are intended to be withdrawn in a future Autoconf release.
  2286. # They can cause serious problems if a builder's source tree is in a directory
  2287. # whose full name contains unusual characters.
  2288. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2289. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2290. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2291. # Find a good install program. We prefer a C program (faster),
  2292. # so one script is as good as another. But avoid the broken or
  2293. # incompatible versions:
  2294. # SysV /etc/install, /usr/sbin/install
  2295. # SunOS /usr/etc/install
  2296. # IRIX /sbin/install
  2297. # AIX /bin/install
  2298. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2299. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2300. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2301. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2302. # OS/2's system install, which has a completely different semantic
  2303. # ./install, which can be erroneously created by make from ./install.sh.
  2304. # Reject install programs that cannot install multiple files.
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2306. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2307. if test -z "$INSTALL"; then
  2308. if ${ac_cv_path_install+:} false; then :
  2309. $as_echo_n "(cached) " >&6
  2310. else
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. # Account for people who put trailing slashes in PATH elements.
  2317. case $as_dir/ in #((
  2318. ./ | .// | /[cC]/* | \
  2319. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2320. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2321. /usr/ucb/* ) ;;
  2322. *)
  2323. # OSF1 and SCO ODT 3.0 have their own names for install.
  2324. # Don't use installbsd from OSF since it installs stuff as root
  2325. # by default.
  2326. for ac_prog in ginstall scoinst install; do
  2327. for ac_exec_ext in '' $ac_executable_extensions; do
  2328. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2329. if test $ac_prog = install &&
  2330. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2331. # AIX install. It has an incompatible calling convention.
  2332. :
  2333. elif test $ac_prog = install &&
  2334. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2335. # program-specific install script used by HP pwplus--don't use.
  2336. :
  2337. else
  2338. rm -rf conftest.one conftest.two conftest.dir
  2339. echo one > conftest.one
  2340. echo two > conftest.two
  2341. mkdir conftest.dir
  2342. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2343. test -s conftest.one && test -s conftest.two &&
  2344. test -s conftest.dir/conftest.one &&
  2345. test -s conftest.dir/conftest.two
  2346. then
  2347. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2348. break 3
  2349. fi
  2350. fi
  2351. fi
  2352. done
  2353. done
  2354. ;;
  2355. esac
  2356. done
  2357. IFS=$as_save_IFS
  2358. rm -rf conftest.one conftest.two conftest.dir
  2359. fi
  2360. if test "${ac_cv_path_install+set}" = set; then
  2361. INSTALL=$ac_cv_path_install
  2362. else
  2363. # As a last resort, use the slow shell script. Don't cache a
  2364. # value for INSTALL within a source directory, because that will
  2365. # break other packages using the cache if that directory is
  2366. # removed, or if the value is a relative name.
  2367. INSTALL=$ac_install_sh
  2368. fi
  2369. fi
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2371. $as_echo "$INSTALL" >&6; }
  2372. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2373. # It thinks the first close brace ends the variable substitution.
  2374. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2375. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2376. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2378. $as_echo_n "checking whether build environment is sane... " >&6; }
  2379. # Just in case
  2380. sleep 1
  2381. echo timestamp > conftest.file
  2382. # Reject unsafe characters in $srcdir or the absolute working directory
  2383. # name. Accept space and tab only in the latter.
  2384. am_lf='
  2385. '
  2386. case `pwd` in
  2387. *[\\\"\#\$\&\'\`$am_lf]*)
  2388. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2389. esac
  2390. case $srcdir in
  2391. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2392. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2393. esac
  2394. # Do `set' in a subshell so we don't clobber the current shell's
  2395. # arguments. Must try -L first in case configure is actually a
  2396. # symlink; some systems play weird games with the mod time of symlinks
  2397. # (eg FreeBSD returns the mod time of the symlink's containing
  2398. # directory).
  2399. if (
  2400. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2401. if test "$*" = "X"; then
  2402. # -L didn't work.
  2403. set X `ls -t "$srcdir/configure" conftest.file`
  2404. fi
  2405. rm -f conftest.file
  2406. if test "$*" != "X $srcdir/configure conftest.file" \
  2407. && test "$*" != "X conftest.file $srcdir/configure"; then
  2408. # If neither matched, then we have a broken ls. This can happen
  2409. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2410. # broken ls alias from the environment. This has actually
  2411. # happened. Such a system could not be considered "sane".
  2412. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2413. alias in your environment" "$LINENO" 5
  2414. fi
  2415. test "$2" = conftest.file
  2416. )
  2417. then
  2418. # Ok.
  2419. :
  2420. else
  2421. as_fn_error $? "newly created file is older than distributed files!
  2422. Check your system clock" "$LINENO" 5
  2423. fi
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2425. $as_echo "yes" >&6; }
  2426. test "$program_prefix" != NONE &&
  2427. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2428. # Use a double $ so make ignores it.
  2429. test "$program_suffix" != NONE &&
  2430. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2431. # Double any \ or $.
  2432. # By default was `s,x,x', remove it if useless.
  2433. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2434. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2435. # expand $ac_aux_dir to an absolute path
  2436. am_aux_dir=`cd $ac_aux_dir && pwd`
  2437. if test x"${MISSING+set}" != xset; then
  2438. case $am_aux_dir in
  2439. *\ * | *\ *)
  2440. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2441. *)
  2442. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2443. esac
  2444. fi
  2445. # Use eval to expand $SHELL
  2446. if eval "$MISSING --run true"; then
  2447. am_missing_run="$MISSING --run "
  2448. else
  2449. am_missing_run=
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2451. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2452. fi
  2453. if test x"${install_sh}" != xset; then
  2454. case $am_aux_dir in
  2455. *\ * | *\ *)
  2456. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2457. *)
  2458. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2459. esac
  2460. fi
  2461. # Installed binaries are usually stripped using `strip' when the user
  2462. # run `make install-strip'. However `strip' might not be the right
  2463. # tool to use in cross-compilation environments, therefore Automake
  2464. # will honor the `STRIP' environment variable to overrule this program.
  2465. if test "$cross_compiling" != no; then
  2466. if test -n "$ac_tool_prefix"; then
  2467. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2468. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2470. $as_echo_n "checking for $ac_word... " >&6; }
  2471. if ${ac_cv_prog_STRIP+:} false; then :
  2472. $as_echo_n "(cached) " >&6
  2473. else
  2474. if test -n "$STRIP"; then
  2475. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2476. else
  2477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2478. for as_dir in $PATH
  2479. do
  2480. IFS=$as_save_IFS
  2481. test -z "$as_dir" && as_dir=.
  2482. for ac_exec_ext in '' $ac_executable_extensions; do
  2483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2484. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2486. break 2
  2487. fi
  2488. done
  2489. done
  2490. IFS=$as_save_IFS
  2491. fi
  2492. fi
  2493. STRIP=$ac_cv_prog_STRIP
  2494. if test -n "$STRIP"; then
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2496. $as_echo "$STRIP" >&6; }
  2497. else
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2499. $as_echo "no" >&6; }
  2500. fi
  2501. fi
  2502. if test -z "$ac_cv_prog_STRIP"; then
  2503. ac_ct_STRIP=$STRIP
  2504. # Extract the first word of "strip", so it can be a program name with args.
  2505. set dummy strip; ac_word=$2
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2507. $as_echo_n "checking for $ac_word... " >&6; }
  2508. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. if test -n "$ac_ct_STRIP"; then
  2512. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2513. else
  2514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2515. for as_dir in $PATH
  2516. do
  2517. IFS=$as_save_IFS
  2518. test -z "$as_dir" && as_dir=.
  2519. for ac_exec_ext in '' $ac_executable_extensions; do
  2520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2521. ac_cv_prog_ac_ct_STRIP="strip"
  2522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2523. break 2
  2524. fi
  2525. done
  2526. done
  2527. IFS=$as_save_IFS
  2528. fi
  2529. fi
  2530. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2531. if test -n "$ac_ct_STRIP"; then
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2533. $as_echo "$ac_ct_STRIP" >&6; }
  2534. else
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2536. $as_echo "no" >&6; }
  2537. fi
  2538. if test "x$ac_ct_STRIP" = x; then
  2539. STRIP=":"
  2540. else
  2541. case $cross_compiling:$ac_tool_warned in
  2542. yes:)
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2545. ac_tool_warned=yes ;;
  2546. esac
  2547. STRIP=$ac_ct_STRIP
  2548. fi
  2549. else
  2550. STRIP="$ac_cv_prog_STRIP"
  2551. fi
  2552. fi
  2553. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2555. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2556. if test -z "$MKDIR_P"; then
  2557. if ${ac_cv_path_mkdir+:} false; then :
  2558. $as_echo_n "(cached) " >&6
  2559. else
  2560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2561. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2562. do
  2563. IFS=$as_save_IFS
  2564. test -z "$as_dir" && as_dir=.
  2565. for ac_prog in mkdir gmkdir; do
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2568. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2569. 'mkdir (GNU coreutils) '* | \
  2570. 'mkdir (coreutils) '* | \
  2571. 'mkdir (fileutils) '4.1*)
  2572. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2573. break 3;;
  2574. esac
  2575. done
  2576. done
  2577. done
  2578. IFS=$as_save_IFS
  2579. fi
  2580. test -d ./--version && rmdir ./--version
  2581. if test "${ac_cv_path_mkdir+set}" = set; then
  2582. MKDIR_P="$ac_cv_path_mkdir -p"
  2583. else
  2584. # As a last resort, use the slow shell script. Don't cache a
  2585. # value for MKDIR_P within a source directory, because that will
  2586. # break other packages using the cache if that directory is
  2587. # removed, or if the value is a relative name.
  2588. MKDIR_P="$ac_install_sh -d"
  2589. fi
  2590. fi
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2592. $as_echo "$MKDIR_P" >&6; }
  2593. mkdir_p="$MKDIR_P"
  2594. case $mkdir_p in
  2595. [\\/$]* | ?:[\\/]*) ;;
  2596. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2597. esac
  2598. for ac_prog in gawk mawk nawk awk
  2599. do
  2600. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2601. set dummy $ac_prog; ac_word=$2
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2603. $as_echo_n "checking for $ac_word... " >&6; }
  2604. if ${ac_cv_prog_AWK+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. if test -n "$AWK"; then
  2608. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613. IFS=$as_save_IFS
  2614. test -z "$as_dir" && as_dir=.
  2615. for ac_exec_ext in '' $ac_executable_extensions; do
  2616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2617. ac_cv_prog_AWK="$ac_prog"
  2618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2619. break 2
  2620. fi
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. fi
  2626. AWK=$ac_cv_prog_AWK
  2627. if test -n "$AWK"; then
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2629. $as_echo "$AWK" >&6; }
  2630. else
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2632. $as_echo "no" >&6; }
  2633. fi
  2634. test -n "$AWK" && break
  2635. done
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2637. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2638. set x ${MAKE-make}
  2639. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2640. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. cat >conftest.make <<\_ACEOF
  2644. SHELL = /bin/sh
  2645. all:
  2646. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2647. _ACEOF
  2648. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2649. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2650. *@@@%%%=?*=@@@%%%*)
  2651. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2652. *)
  2653. eval ac_cv_prog_make_${ac_make}_set=no;;
  2654. esac
  2655. rm -f conftest.make
  2656. fi
  2657. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2659. $as_echo "yes" >&6; }
  2660. SET_MAKE=
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. SET_MAKE="MAKE=${MAKE-make}"
  2665. fi
  2666. rm -rf .tst 2>/dev/null
  2667. mkdir .tst 2>/dev/null
  2668. if test -d .tst; then
  2669. am__leading_dot=.
  2670. else
  2671. am__leading_dot=_
  2672. fi
  2673. rmdir .tst 2>/dev/null
  2674. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2675. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2676. # is not polluted with repeated "-I."
  2677. am__isrc=' -I$(srcdir)'
  2678. # test to see if srcdir already configured
  2679. if test -f $srcdir/config.status; then
  2680. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2681. fi
  2682. fi
  2683. # test whether we have cygpath
  2684. if test -z "$CYGPATH_W"; then
  2685. if (cygpath --version) >/dev/null 2>/dev/null; then
  2686. CYGPATH_W='cygpath -w'
  2687. else
  2688. CYGPATH_W=echo
  2689. fi
  2690. fi
  2691. # Define the identity of the package.
  2692. PACKAGE=libmodplug
  2693. VERSION=0.8.8.4
  2694. cat >>confdefs.h <<_ACEOF
  2695. #define PACKAGE "$PACKAGE"
  2696. _ACEOF
  2697. cat >>confdefs.h <<_ACEOF
  2698. #define VERSION "$VERSION"
  2699. _ACEOF
  2700. # Some tools Automake needs.
  2701. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2702. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2703. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2704. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2705. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2706. # We need awk for the "check" target. The system "awk" is bad on
  2707. # some platforms.
  2708. # Always define AMTAR for backward compatibility.
  2709. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2710. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2711. # Check whether --enable-silent-rules was given.
  2712. if test "${enable_silent_rules+set}" = set; then :
  2713. enableval=$enable_silent_rules;
  2714. fi
  2715. case $enable_silent_rules in
  2716. yes) AM_DEFAULT_VERBOSITY=0;;
  2717. no) AM_DEFAULT_VERBOSITY=1;;
  2718. *) AM_DEFAULT_VERBOSITY=1;;
  2719. esac
  2720. AM_BACKSLASH='\'
  2721. ac_config_headers="$ac_config_headers src/config.h"
  2722. # Check whether --enable-static was given.
  2723. if test "${enable_static+set}" = set; then :
  2724. enableval=$enable_static; p=${PACKAGE-default}
  2725. case $enableval in
  2726. yes) enable_static=yes ;;
  2727. no) enable_static=no ;;
  2728. *)
  2729. enable_static=no
  2730. # Look at the argument we got. We use all the common list separators.
  2731. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2732. for pkg in $enableval; do
  2733. IFS="$lt_save_ifs"
  2734. if test "X$pkg" = "X$p"; then
  2735. enable_static=yes
  2736. fi
  2737. done
  2738. IFS="$lt_save_ifs"
  2739. ;;
  2740. esac
  2741. else
  2742. enable_static=no
  2743. fi
  2744. # Check whether --enable-static was given.
  2745. if test "${enable_static+set}" = set; then :
  2746. enableval=$enable_static; p=${PACKAGE-default}
  2747. case $enableval in
  2748. yes) enable_static=yes ;;
  2749. no) enable_static=no ;;
  2750. *)
  2751. enable_static=no
  2752. # Look at the argument we got. We use all the common list separators.
  2753. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2754. for pkg in $enableval; do
  2755. IFS="$lt_save_ifs"
  2756. if test "X$pkg" = "X$p"; then
  2757. enable_static=yes
  2758. fi
  2759. done
  2760. IFS="$lt_save_ifs"
  2761. ;;
  2762. esac
  2763. else
  2764. enable_static=no
  2765. fi
  2766. ac_ext=c
  2767. ac_cpp='$CPP $CPPFLAGS'
  2768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2771. if test -n "$ac_tool_prefix"; then
  2772. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2773. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2775. $as_echo_n "checking for $ac_word... " >&6; }
  2776. if ${ac_cv_prog_CC+:} false; then :
  2777. $as_echo_n "(cached) " >&6
  2778. else
  2779. if test -n "$CC"; then
  2780. ac_cv_prog_CC="$CC" # Let the user override the test.
  2781. else
  2782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2783. for as_dir in $PATH
  2784. do
  2785. IFS=$as_save_IFS
  2786. test -z "$as_dir" && as_dir=.
  2787. for ac_exec_ext in '' $ac_executable_extensions; do
  2788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2789. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2791. break 2
  2792. fi
  2793. done
  2794. done
  2795. IFS=$as_save_IFS
  2796. fi
  2797. fi
  2798. CC=$ac_cv_prog_CC
  2799. if test -n "$CC"; then
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2801. $as_echo "$CC" >&6; }
  2802. else
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804. $as_echo "no" >&6; }
  2805. fi
  2806. fi
  2807. if test -z "$ac_cv_prog_CC"; then
  2808. ac_ct_CC=$CC
  2809. # Extract the first word of "gcc", so it can be a program name with args.
  2810. set dummy gcc; ac_word=$2
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2812. $as_echo_n "checking for $ac_word... " >&6; }
  2813. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. if test -n "$ac_ct_CC"; then
  2817. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2818. else
  2819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2820. for as_dir in $PATH
  2821. do
  2822. IFS=$as_save_IFS
  2823. test -z "$as_dir" && as_dir=.
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2826. ac_cv_prog_ac_ct_CC="gcc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. fi
  2834. fi
  2835. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2836. if test -n "$ac_ct_CC"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2838. $as_echo "$ac_ct_CC" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. if test "x$ac_ct_CC" = x; then
  2844. CC=""
  2845. else
  2846. case $cross_compiling:$ac_tool_warned in
  2847. yes:)
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2850. ac_tool_warned=yes ;;
  2851. esac
  2852. CC=$ac_ct_CC
  2853. fi
  2854. else
  2855. CC="$ac_cv_prog_CC"
  2856. fi
  2857. if test -z "$CC"; then
  2858. if test -n "$ac_tool_prefix"; then
  2859. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2860. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2862. $as_echo_n "checking for $ac_word... " >&6; }
  2863. if ${ac_cv_prog_CC+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. if test -n "$CC"; then
  2867. ac_cv_prog_CC="$CC" # Let the user override the test.
  2868. else
  2869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2870. for as_dir in $PATH
  2871. do
  2872. IFS=$as_save_IFS
  2873. test -z "$as_dir" && as_dir=.
  2874. for ac_exec_ext in '' $ac_executable_extensions; do
  2875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2876. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2878. break 2
  2879. fi
  2880. done
  2881. done
  2882. IFS=$as_save_IFS
  2883. fi
  2884. fi
  2885. CC=$ac_cv_prog_CC
  2886. if test -n "$CC"; then
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2888. $as_echo "$CC" >&6; }
  2889. else
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2891. $as_echo "no" >&6; }
  2892. fi
  2893. fi
  2894. fi
  2895. if test -z "$CC"; then
  2896. # Extract the first word of "cc", so it can be a program name with args.
  2897. set dummy cc; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if ${ac_cv_prog_CC+:} false; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$CC"; then
  2904. ac_cv_prog_CC="$CC" # Let the user override the test.
  2905. else
  2906. ac_prog_rejected=no
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2914. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2915. ac_prog_rejected=yes
  2916. continue
  2917. fi
  2918. ac_cv_prog_CC="cc"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. if test $ac_prog_rejected = yes; then
  2926. # We found a bogon in the path, so make sure we never use it.
  2927. set dummy $ac_cv_prog_CC
  2928. shift
  2929. if test $# != 0; then
  2930. # We chose a different compiler from the bogus one.
  2931. # However, it has the same basename, so the bogon will be chosen
  2932. # first if we set CC to just the basename; use the full file name.
  2933. shift
  2934. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2935. fi
  2936. fi
  2937. fi
  2938. fi
  2939. CC=$ac_cv_prog_CC
  2940. if test -n "$CC"; then
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2942. $as_echo "$CC" >&6; }
  2943. else
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2945. $as_echo "no" >&6; }
  2946. fi
  2947. fi
  2948. if test -z "$CC"; then
  2949. if test -n "$ac_tool_prefix"; then
  2950. for ac_prog in cl.exe
  2951. do
  2952. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2953. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2955. $as_echo_n "checking for $ac_word... " >&6; }
  2956. if ${ac_cv_prog_CC+:} false; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. if test -n "$CC"; then
  2960. ac_cv_prog_CC="$CC" # Let the user override the test.
  2961. else
  2962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963. for as_dir in $PATH
  2964. do
  2965. IFS=$as_save_IFS
  2966. test -z "$as_dir" && as_dir=.
  2967. for ac_exec_ext in '' $ac_executable_extensions; do
  2968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2969. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2971. break 2
  2972. fi
  2973. done
  2974. done
  2975. IFS=$as_save_IFS
  2976. fi
  2977. fi
  2978. CC=$ac_cv_prog_CC
  2979. if test -n "$CC"; then
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2981. $as_echo "$CC" >&6; }
  2982. else
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2984. $as_echo "no" >&6; }
  2985. fi
  2986. test -n "$CC" && break
  2987. done
  2988. fi
  2989. if test -z "$CC"; then
  2990. ac_ct_CC=$CC
  2991. for ac_prog in cl.exe
  2992. do
  2993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2994. set dummy $ac_prog; ac_word=$2
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2996. $as_echo_n "checking for $ac_word... " >&6; }
  2997. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2998. $as_echo_n "(cached) " >&6
  2999. else
  3000. if test -n "$ac_ct_CC"; then
  3001. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3002. else
  3003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3004. for as_dir in $PATH
  3005. do
  3006. IFS=$as_save_IFS
  3007. test -z "$as_dir" && as_dir=.
  3008. for ac_exec_ext in '' $ac_executable_extensions; do
  3009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3010. ac_cv_prog_ac_ct_CC="$ac_prog"
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3012. break 2
  3013. fi
  3014. done
  3015. done
  3016. IFS=$as_save_IFS
  3017. fi
  3018. fi
  3019. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3020. if test -n "$ac_ct_CC"; then
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3022. $as_echo "$ac_ct_CC" >&6; }
  3023. else
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3025. $as_echo "no" >&6; }
  3026. fi
  3027. test -n "$ac_ct_CC" && break
  3028. done
  3029. if test "x$ac_ct_CC" = x; then
  3030. CC=""
  3031. else
  3032. case $cross_compiling:$ac_tool_warned in
  3033. yes:)
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3036. ac_tool_warned=yes ;;
  3037. esac
  3038. CC=$ac_ct_CC
  3039. fi
  3040. fi
  3041. fi
  3042. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. as_fn_error $? "no acceptable C compiler found in \$PATH
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. # Provide some information about the compiler.
  3047. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3048. set X $ac_compile
  3049. ac_compiler=$2
  3050. for ac_option in --version -v -V -qversion; do
  3051. { { ac_try="$ac_compiler $ac_option >&5"
  3052. case "(($ac_try" in
  3053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3054. *) ac_try_echo=$ac_try;;
  3055. esac
  3056. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3057. $as_echo "$ac_try_echo"; } >&5
  3058. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3059. ac_status=$?
  3060. if test -s conftest.err; then
  3061. sed '10a\
  3062. ... rest of stderr output deleted ...
  3063. 10q' conftest.err >conftest.er1
  3064. cat conftest.er1 >&5
  3065. fi
  3066. rm -f conftest.er1 conftest.err
  3067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3068. test $ac_status = 0; }
  3069. done
  3070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3071. /* end confdefs.h. */
  3072. int
  3073. main ()
  3074. {
  3075. ;
  3076. return 0;
  3077. }
  3078. _ACEOF
  3079. ac_clean_files_save=$ac_clean_files
  3080. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3081. # Try to create an executable without -o first, disregard a.out.
  3082. # It will help us diagnose broken compilers, and finding out an intuition
  3083. # of exeext.
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3085. $as_echo_n "checking whether the C compiler works... " >&6; }
  3086. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3087. # The possible output files:
  3088. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3089. ac_rmfiles=
  3090. for ac_file in $ac_files
  3091. do
  3092. case $ac_file in
  3093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3094. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3095. esac
  3096. done
  3097. rm -f $ac_rmfiles
  3098. if { { ac_try="$ac_link_default"
  3099. case "(($ac_try" in
  3100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3101. *) ac_try_echo=$ac_try;;
  3102. esac
  3103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3104. $as_echo "$ac_try_echo"; } >&5
  3105. (eval "$ac_link_default") 2>&5
  3106. ac_status=$?
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3108. test $ac_status = 0; }; then :
  3109. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3110. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3111. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3112. # so that the user can short-circuit this test for compilers unknown to
  3113. # Autoconf.
  3114. for ac_file in $ac_files ''
  3115. do
  3116. test -f "$ac_file" || continue
  3117. case $ac_file in
  3118. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3119. ;;
  3120. [ab].out )
  3121. # We found the default executable, but exeext='' is most
  3122. # certainly right.
  3123. break;;
  3124. *.* )
  3125. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3126. then :; else
  3127. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3128. fi
  3129. # We set ac_cv_exeext here because the later test for it is not
  3130. # safe: cross compilers may not add the suffix if given an `-o'
  3131. # argument, so we may need to know it at that point already.
  3132. # Even if this section looks crufty: it has the advantage of
  3133. # actually working.
  3134. break;;
  3135. * )
  3136. break;;
  3137. esac
  3138. done
  3139. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3140. else
  3141. ac_file=''
  3142. fi
  3143. if test -z "$ac_file"; then :
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3145. $as_echo "no" >&6; }
  3146. $as_echo "$as_me: failed program was:" >&5
  3147. sed 's/^/| /' conftest.$ac_ext >&5
  3148. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3149. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3150. as_fn_error 77 "C compiler cannot create executables
  3151. See \`config.log' for more details" "$LINENO" 5; }
  3152. else
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3154. $as_echo "yes" >&6; }
  3155. fi
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3157. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3159. $as_echo "$ac_file" >&6; }
  3160. ac_exeext=$ac_cv_exeext
  3161. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3162. ac_clean_files=$ac_clean_files_save
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3164. $as_echo_n "checking for suffix of executables... " >&6; }
  3165. if { { ac_try="$ac_link"
  3166. case "(($ac_try" in
  3167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3168. *) ac_try_echo=$ac_try;;
  3169. esac
  3170. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3171. $as_echo "$ac_try_echo"; } >&5
  3172. (eval "$ac_link") 2>&5
  3173. ac_status=$?
  3174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3175. test $ac_status = 0; }; then :
  3176. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3177. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3178. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3179. # `rm'.
  3180. for ac_file in conftest.exe conftest conftest.*; do
  3181. test -f "$ac_file" || continue
  3182. case $ac_file in
  3183. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3184. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3185. break;;
  3186. * ) break;;
  3187. esac
  3188. done
  3189. else
  3190. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3191. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3192. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3193. See \`config.log' for more details" "$LINENO" 5; }
  3194. fi
  3195. rm -f conftest conftest$ac_cv_exeext
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3197. $as_echo "$ac_cv_exeext" >&6; }
  3198. rm -f conftest.$ac_ext
  3199. EXEEXT=$ac_cv_exeext
  3200. ac_exeext=$EXEEXT
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. #include <stdio.h>
  3204. int
  3205. main ()
  3206. {
  3207. FILE *f = fopen ("conftest.out", "w");
  3208. return ferror (f) || fclose (f) != 0;
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. ac_clean_files="$ac_clean_files conftest.out"
  3214. # Check that the compiler produces executables we can run. If not, either
  3215. # the compiler is broken, or we cross compile.
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3217. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3218. if test "$cross_compiling" != yes; then
  3219. { { ac_try="$ac_link"
  3220. case "(($ac_try" in
  3221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3222. *) ac_try_echo=$ac_try;;
  3223. esac
  3224. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3225. $as_echo "$ac_try_echo"; } >&5
  3226. (eval "$ac_link") 2>&5
  3227. ac_status=$?
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3229. test $ac_status = 0; }
  3230. if { ac_try='./conftest$ac_cv_exeext'
  3231. { { case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3236. $as_echo "$ac_try_echo"; } >&5
  3237. (eval "$ac_try") 2>&5
  3238. ac_status=$?
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3240. test $ac_status = 0; }; }; then
  3241. cross_compiling=no
  3242. else
  3243. if test "$cross_compiling" = maybe; then
  3244. cross_compiling=yes
  3245. else
  3246. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3247. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3248. as_fn_error $? "cannot run C compiled programs.
  3249. If you meant to cross compile, use \`--host'.
  3250. See \`config.log' for more details" "$LINENO" 5; }
  3251. fi
  3252. fi
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3255. $as_echo "$cross_compiling" >&6; }
  3256. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3257. ac_clean_files=$ac_clean_files_save
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3259. $as_echo_n "checking for suffix of object files... " >&6; }
  3260. if ${ac_cv_objext+:} false; then :
  3261. $as_echo_n "(cached) " >&6
  3262. else
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. int
  3266. main ()
  3267. {
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. rm -f conftest.o conftest.obj
  3273. if { { ac_try="$ac_compile"
  3274. case "(($ac_try" in
  3275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3276. *) ac_try_echo=$ac_try;;
  3277. esac
  3278. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3279. $as_echo "$ac_try_echo"; } >&5
  3280. (eval "$ac_compile") 2>&5
  3281. ac_status=$?
  3282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3283. test $ac_status = 0; }; then :
  3284. for ac_file in conftest.o conftest.obj conftest.*; do
  3285. test -f "$ac_file" || continue;
  3286. case $ac_file in
  3287. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3288. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3289. break;;
  3290. esac
  3291. done
  3292. else
  3293. $as_echo "$as_me: failed program was:" >&5
  3294. sed 's/^/| /' conftest.$ac_ext >&5
  3295. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3297. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3298. See \`config.log' for more details" "$LINENO" 5; }
  3299. fi
  3300. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3301. fi
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3303. $as_echo "$ac_cv_objext" >&6; }
  3304. OBJEXT=$ac_cv_objext
  3305. ac_objext=$OBJEXT
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3307. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3308. if ${ac_cv_c_compiler_gnu+:} false; then :
  3309. $as_echo_n "(cached) " >&6
  3310. else
  3311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3312. /* end confdefs.h. */
  3313. int
  3314. main ()
  3315. {
  3316. #ifndef __GNUC__
  3317. choke me
  3318. #endif
  3319. ;
  3320. return 0;
  3321. }
  3322. _ACEOF
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. ac_compiler_gnu=yes
  3325. else
  3326. ac_compiler_gnu=no
  3327. fi
  3328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3329. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3332. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3333. if test $ac_compiler_gnu = yes; then
  3334. GCC=yes
  3335. else
  3336. GCC=
  3337. fi
  3338. ac_test_CFLAGS=${CFLAGS+set}
  3339. ac_save_CFLAGS=$CFLAGS
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3341. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3342. if ${ac_cv_prog_cc_g+:} false; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. ac_save_c_werror_flag=$ac_c_werror_flag
  3346. ac_c_werror_flag=yes
  3347. ac_cv_prog_cc_g=no
  3348. CFLAGS="-g"
  3349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3350. /* end confdefs.h. */
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359. ac_cv_prog_cc_g=yes
  3360. else
  3361. CFLAGS=""
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. if ac_fn_c_try_compile "$LINENO"; then :
  3372. else
  3373. ac_c_werror_flag=$ac_save_c_werror_flag
  3374. CFLAGS="-g"
  3375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3376. /* end confdefs.h. */
  3377. int
  3378. main ()
  3379. {
  3380. ;
  3381. return 0;
  3382. }
  3383. _ACEOF
  3384. if ac_fn_c_try_compile "$LINENO"; then :
  3385. ac_cv_prog_cc_g=yes
  3386. fi
  3387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3388. fi
  3389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3390. fi
  3391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3392. ac_c_werror_flag=$ac_save_c_werror_flag
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3395. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3396. if test "$ac_test_CFLAGS" = set; then
  3397. CFLAGS=$ac_save_CFLAGS
  3398. elif test $ac_cv_prog_cc_g = yes; then
  3399. if test "$GCC" = yes; then
  3400. CFLAGS="-g -O2"
  3401. else
  3402. CFLAGS="-g"
  3403. fi
  3404. else
  3405. if test "$GCC" = yes; then
  3406. CFLAGS="-O2"
  3407. else
  3408. CFLAGS=
  3409. fi
  3410. fi
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3412. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3413. if ${ac_cv_prog_cc_c89+:} false; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. ac_cv_prog_cc_c89=no
  3417. ac_save_CC=$CC
  3418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3419. /* end confdefs.h. */
  3420. #include <stdarg.h>
  3421. #include <stdio.h>
  3422. #include <sys/types.h>
  3423. #include <sys/stat.h>
  3424. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3425. struct buf { int x; };
  3426. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3427. static char *e (p, i)
  3428. char **p;
  3429. int i;
  3430. {
  3431. return p[i];
  3432. }
  3433. static char *f (char * (*g) (char **, int), char **p, ...)
  3434. {
  3435. char *s;
  3436. va_list v;
  3437. va_start (v,p);
  3438. s = g (p, va_arg (v,int));
  3439. va_end (v);
  3440. return s;
  3441. }
  3442. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3443. function prototypes and stuff, but not '\xHH' hex character constants.
  3444. These don't provoke an error unfortunately, instead are silently treated
  3445. as 'x'. The following induces an error, until -std is added to get
  3446. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3447. array size at least. It's necessary to write '\x00'==0 to get something
  3448. that's true only with -std. */
  3449. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3450. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3451. inside strings and character constants. */
  3452. #define FOO(x) 'x'
  3453. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3454. int test (int i, double x);
  3455. struct s1 {int (*f) (int a);};
  3456. struct s2 {int (*f) (double a);};
  3457. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3458. int argc;
  3459. char **argv;
  3460. int
  3461. main ()
  3462. {
  3463. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3464. ;
  3465. return 0;
  3466. }
  3467. _ACEOF
  3468. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3469. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3470. do
  3471. CC="$ac_save_CC $ac_arg"
  3472. if ac_fn_c_try_compile "$LINENO"; then :
  3473. ac_cv_prog_cc_c89=$ac_arg
  3474. fi
  3475. rm -f core conftest.err conftest.$ac_objext
  3476. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3477. done
  3478. rm -f conftest.$ac_ext
  3479. CC=$ac_save_CC
  3480. fi
  3481. # AC_CACHE_VAL
  3482. case "x$ac_cv_prog_cc_c89" in
  3483. x)
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3485. $as_echo "none needed" >&6; } ;;
  3486. xno)
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3488. $as_echo "unsupported" >&6; } ;;
  3489. *)
  3490. CC="$CC $ac_cv_prog_cc_c89"
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3492. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3493. esac
  3494. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3495. fi
  3496. ac_ext=c
  3497. ac_cpp='$CPP $CPPFLAGS'
  3498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3501. DEPDIR="${am__leading_dot}deps"
  3502. ac_config_commands="$ac_config_commands depfiles"
  3503. am_make=${MAKE-make}
  3504. cat > confinc << 'END'
  3505. am__doit:
  3506. @echo this is the am__doit target
  3507. .PHONY: am__doit
  3508. END
  3509. # If we don't find an include directive, just comment out the code.
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3511. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3512. am__include="#"
  3513. am__quote=
  3514. _am_result=none
  3515. # First try GNU make style include.
  3516. echo "include confinc" > confmf
  3517. # Ignore all kinds of additional output from `make'.
  3518. case `$am_make -s -f confmf 2> /dev/null` in #(
  3519. *the\ am__doit\ target*)
  3520. am__include=include
  3521. am__quote=
  3522. _am_result=GNU
  3523. ;;
  3524. esac
  3525. # Now try BSD make style include.
  3526. if test "$am__include" = "#"; then
  3527. echo '.include "confinc"' > confmf
  3528. case `$am_make -s -f confmf 2> /dev/null` in #(
  3529. *the\ am__doit\ target*)
  3530. am__include=.include
  3531. am__quote="\""
  3532. _am_result=BSD
  3533. ;;
  3534. esac
  3535. fi
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3537. $as_echo "$_am_result" >&6; }
  3538. rm -f confinc confmf
  3539. # Check whether --enable-dependency-tracking was given.
  3540. if test "${enable_dependency_tracking+set}" = set; then :
  3541. enableval=$enable_dependency_tracking;
  3542. fi
  3543. if test "x$enable_dependency_tracking" != xno; then
  3544. am_depcomp="$ac_aux_dir/depcomp"
  3545. AMDEPBACKSLASH='\'
  3546. fi
  3547. if test "x$enable_dependency_tracking" != xno; then
  3548. AMDEP_TRUE=
  3549. AMDEP_FALSE='#'
  3550. else
  3551. AMDEP_TRUE='#'
  3552. AMDEP_FALSE=
  3553. fi
  3554. depcc="$CC" am_compiler_list=
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3556. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3557. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3558. $as_echo_n "(cached) " >&6
  3559. else
  3560. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3561. # We make a subdir and do the tests there. Otherwise we can end up
  3562. # making bogus files that we don't know about and never remove. For
  3563. # instance it was reported that on HP-UX the gcc test will end up
  3564. # making a dummy file named `D' -- because `-MD' means `put the output
  3565. # in D'.
  3566. mkdir conftest.dir
  3567. # Copy depcomp to subdir because otherwise we won't find it if we're
  3568. # using a relative directory.
  3569. cp "$am_depcomp" conftest.dir
  3570. cd conftest.dir
  3571. # We will build objects and dependencies in a subdirectory because
  3572. # it helps to detect inapplicable dependency modes. For instance
  3573. # both Tru64's cc and ICC support -MD to output dependencies as a
  3574. # side effect of compilation, but ICC will put the dependencies in
  3575. # the current directory while Tru64 will put them in the object
  3576. # directory.
  3577. mkdir sub
  3578. am_cv_CC_dependencies_compiler_type=none
  3579. if test "$am_compiler_list" = ""; then
  3580. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3581. fi
  3582. am__universal=false
  3583. case " $depcc " in #(
  3584. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3585. esac
  3586. for depmode in $am_compiler_list; do
  3587. # Setup a source with many dependencies, because some compilers
  3588. # like to wrap large dependency lists on column 80 (with \), and
  3589. # we should not choose a depcomp mode which is confused by this.
  3590. #
  3591. # We need to recreate these files for each test, as the compiler may
  3592. # overwrite some of them when testing with obscure command lines.
  3593. # This happens at least with the AIX C compiler.
  3594. : > sub/conftest.c
  3595. for i in 1 2 3 4 5 6; do
  3596. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3597. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3598. # Solaris 8's {/usr,}/bin/sh.
  3599. touch sub/conftst$i.h
  3600. done
  3601. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3602. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3603. # mode. It turns out that the SunPro C++ compiler does not properly
  3604. # handle `-M -o', and we need to detect this. Also, some Intel
  3605. # versions had trouble with output in subdirs
  3606. am__obj=sub/conftest.${OBJEXT-o}
  3607. am__minus_obj="-o $am__obj"
  3608. case $depmode in
  3609. gcc)
  3610. # This depmode causes a compiler race in universal mode.
  3611. test "$am__universal" = false || continue
  3612. ;;
  3613. nosideeffect)
  3614. # after this tag, mechanisms are not by side-effect, so they'll
  3615. # only be used when explicitly requested
  3616. if test "x$enable_dependency_tracking" = xyes; then
  3617. continue
  3618. else
  3619. break
  3620. fi
  3621. ;;
  3622. msvisualcpp | msvcmsys)
  3623. # This compiler won't grok `-c -o', but also, the minuso test has
  3624. # not run yet. These depmodes are late enough in the game, and
  3625. # so weak that their functioning should not be impacted.
  3626. am__obj=conftest.${OBJEXT-o}
  3627. am__minus_obj=
  3628. ;;
  3629. none) break ;;
  3630. esac
  3631. if depmode=$depmode \
  3632. source=sub/conftest.c object=$am__obj \
  3633. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3634. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3635. >/dev/null 2>conftest.err &&
  3636. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3637. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3638. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3639. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3640. # icc doesn't choke on unknown options, it will just issue warnings
  3641. # or remarks (even with -Werror). So we grep stderr for any message
  3642. # that says an option was ignored or not supported.
  3643. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3644. # icc: Command line warning: ignoring option '-M'; no argument required
  3645. # The diagnosis changed in icc 8.0:
  3646. # icc: Command line remark: option '-MP' not supported
  3647. if (grep 'ignoring option' conftest.err ||
  3648. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3649. am_cv_CC_dependencies_compiler_type=$depmode
  3650. break
  3651. fi
  3652. fi
  3653. done
  3654. cd ..
  3655. rm -rf conftest.dir
  3656. else
  3657. am_cv_CC_dependencies_compiler_type=none
  3658. fi
  3659. fi
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3661. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3662. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3663. if
  3664. test "x$enable_dependency_tracking" != xno \
  3665. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3666. am__fastdepCC_TRUE=
  3667. am__fastdepCC_FALSE='#'
  3668. else
  3669. am__fastdepCC_TRUE='#'
  3670. am__fastdepCC_FALSE=
  3671. fi
  3672. ac_ext=cpp
  3673. ac_cpp='$CXXCPP $CPPFLAGS'
  3674. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3675. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3676. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3677. if test -z "$CXX"; then
  3678. if test -n "$CCC"; then
  3679. CXX=$CCC
  3680. else
  3681. if test -n "$ac_tool_prefix"; then
  3682. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3683. do
  3684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3687. $as_echo_n "checking for $ac_word... " >&6; }
  3688. if ${ac_cv_prog_CXX+:} false; then :
  3689. $as_echo_n "(cached) " >&6
  3690. else
  3691. if test -n "$CXX"; then
  3692. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3693. else
  3694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3695. for as_dir in $PATH
  3696. do
  3697. IFS=$as_save_IFS
  3698. test -z "$as_dir" && as_dir=.
  3699. for ac_exec_ext in '' $ac_executable_extensions; do
  3700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3701. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3703. break 2
  3704. fi
  3705. done
  3706. done
  3707. IFS=$as_save_IFS
  3708. fi
  3709. fi
  3710. CXX=$ac_cv_prog_CXX
  3711. if test -n "$CXX"; then
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3713. $as_echo "$CXX" >&6; }
  3714. else
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3716. $as_echo "no" >&6; }
  3717. fi
  3718. test -n "$CXX" && break
  3719. done
  3720. fi
  3721. if test -z "$CXX"; then
  3722. ac_ct_CXX=$CXX
  3723. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3724. do
  3725. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3726. set dummy $ac_prog; ac_word=$2
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3728. $as_echo_n "checking for $ac_word... " >&6; }
  3729. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if test -n "$ac_ct_CXX"; then
  3733. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3734. else
  3735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736. for as_dir in $PATH
  3737. do
  3738. IFS=$as_save_IFS
  3739. test -z "$as_dir" && as_dir=.
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3742. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3744. break 2
  3745. fi
  3746. done
  3747. done
  3748. IFS=$as_save_IFS
  3749. fi
  3750. fi
  3751. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3752. if test -n "$ac_ct_CXX"; then
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3754. $as_echo "$ac_ct_CXX" >&6; }
  3755. else
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3757. $as_echo "no" >&6; }
  3758. fi
  3759. test -n "$ac_ct_CXX" && break
  3760. done
  3761. if test "x$ac_ct_CXX" = x; then
  3762. CXX="g++"
  3763. else
  3764. case $cross_compiling:$ac_tool_warned in
  3765. yes:)
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3768. ac_tool_warned=yes ;;
  3769. esac
  3770. CXX=$ac_ct_CXX
  3771. fi
  3772. fi
  3773. fi
  3774. fi
  3775. # Provide some information about the compiler.
  3776. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3777. set X $ac_compile
  3778. ac_compiler=$2
  3779. for ac_option in --version -v -V -qversion; do
  3780. { { ac_try="$ac_compiler $ac_option >&5"
  3781. case "(($ac_try" in
  3782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3783. *) ac_try_echo=$ac_try;;
  3784. esac
  3785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3786. $as_echo "$ac_try_echo"; } >&5
  3787. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3788. ac_status=$?
  3789. if test -s conftest.err; then
  3790. sed '10a\
  3791. ... rest of stderr output deleted ...
  3792. 10q' conftest.err >conftest.er1
  3793. cat conftest.er1 >&5
  3794. fi
  3795. rm -f conftest.er1 conftest.err
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3797. test $ac_status = 0; }
  3798. done
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3800. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3801. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3805. /* end confdefs.h. */
  3806. int
  3807. main ()
  3808. {
  3809. #ifndef __GNUC__
  3810. choke me
  3811. #endif
  3812. ;
  3813. return 0;
  3814. }
  3815. _ACEOF
  3816. if ac_fn_cxx_try_compile "$LINENO"; then :
  3817. ac_compiler_gnu=yes
  3818. else
  3819. ac_compiler_gnu=no
  3820. fi
  3821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3822. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3823. fi
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3825. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3826. if test $ac_compiler_gnu = yes; then
  3827. GXX=yes
  3828. else
  3829. GXX=
  3830. fi
  3831. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3832. ac_save_CXXFLAGS=$CXXFLAGS
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3834. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3835. if ${ac_cv_prog_cxx_g+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3839. ac_cxx_werror_flag=yes
  3840. ac_cv_prog_cxx_g=no
  3841. CXXFLAGS="-g"
  3842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3843. /* end confdefs.h. */
  3844. int
  3845. main ()
  3846. {
  3847. ;
  3848. return 0;
  3849. }
  3850. _ACEOF
  3851. if ac_fn_cxx_try_compile "$LINENO"; then :
  3852. ac_cv_prog_cxx_g=yes
  3853. else
  3854. CXXFLAGS=""
  3855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3856. /* end confdefs.h. */
  3857. int
  3858. main ()
  3859. {
  3860. ;
  3861. return 0;
  3862. }
  3863. _ACEOF
  3864. if ac_fn_cxx_try_compile "$LINENO"; then :
  3865. else
  3866. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3867. CXXFLAGS="-g"
  3868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3869. /* end confdefs.h. */
  3870. int
  3871. main ()
  3872. {
  3873. ;
  3874. return 0;
  3875. }
  3876. _ACEOF
  3877. if ac_fn_cxx_try_compile "$LINENO"; then :
  3878. ac_cv_prog_cxx_g=yes
  3879. fi
  3880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3881. fi
  3882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3883. fi
  3884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3885. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3886. fi
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3888. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3889. if test "$ac_test_CXXFLAGS" = set; then
  3890. CXXFLAGS=$ac_save_CXXFLAGS
  3891. elif test $ac_cv_prog_cxx_g = yes; then
  3892. if test "$GXX" = yes; then
  3893. CXXFLAGS="-g -O2"
  3894. else
  3895. CXXFLAGS="-g"
  3896. fi
  3897. else
  3898. if test "$GXX" = yes; then
  3899. CXXFLAGS="-O2"
  3900. else
  3901. CXXFLAGS=
  3902. fi
  3903. fi
  3904. ac_ext=c
  3905. ac_cpp='$CPP $CPPFLAGS'
  3906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3909. depcc="$CXX" am_compiler_list=
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3911. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3912. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3916. # We make a subdir and do the tests there. Otherwise we can end up
  3917. # making bogus files that we don't know about and never remove. For
  3918. # instance it was reported that on HP-UX the gcc test will end up
  3919. # making a dummy file named `D' -- because `-MD' means `put the output
  3920. # in D'.
  3921. mkdir conftest.dir
  3922. # Copy depcomp to subdir because otherwise we won't find it if we're
  3923. # using a relative directory.
  3924. cp "$am_depcomp" conftest.dir
  3925. cd conftest.dir
  3926. # We will build objects and dependencies in a subdirectory because
  3927. # it helps to detect inapplicable dependency modes. For instance
  3928. # both Tru64's cc and ICC support -MD to output dependencies as a
  3929. # side effect of compilation, but ICC will put the dependencies in
  3930. # the current directory while Tru64 will put them in the object
  3931. # directory.
  3932. mkdir sub
  3933. am_cv_CXX_dependencies_compiler_type=none
  3934. if test "$am_compiler_list" = ""; then
  3935. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3936. fi
  3937. am__universal=false
  3938. case " $depcc " in #(
  3939. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3940. esac
  3941. for depmode in $am_compiler_list; do
  3942. # Setup a source with many dependencies, because some compilers
  3943. # like to wrap large dependency lists on column 80 (with \), and
  3944. # we should not choose a depcomp mode which is confused by this.
  3945. #
  3946. # We need to recreate these files for each test, as the compiler may
  3947. # overwrite some of them when testing with obscure command lines.
  3948. # This happens at least with the AIX C compiler.
  3949. : > sub/conftest.c
  3950. for i in 1 2 3 4 5 6; do
  3951. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3952. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3953. # Solaris 8's {/usr,}/bin/sh.
  3954. touch sub/conftst$i.h
  3955. done
  3956. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3957. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3958. # mode. It turns out that the SunPro C++ compiler does not properly
  3959. # handle `-M -o', and we need to detect this. Also, some Intel
  3960. # versions had trouble with output in subdirs
  3961. am__obj=sub/conftest.${OBJEXT-o}
  3962. am__minus_obj="-o $am__obj"
  3963. case $depmode in
  3964. gcc)
  3965. # This depmode causes a compiler race in universal mode.
  3966. test "$am__universal" = false || continue
  3967. ;;
  3968. nosideeffect)
  3969. # after this tag, mechanisms are not by side-effect, so they'll
  3970. # only be used when explicitly requested
  3971. if test "x$enable_dependency_tracking" = xyes; then
  3972. continue
  3973. else
  3974. break
  3975. fi
  3976. ;;
  3977. msvisualcpp | msvcmsys)
  3978. # This compiler won't grok `-c -o', but also, the minuso test has
  3979. # not run yet. These depmodes are late enough in the game, and
  3980. # so weak that their functioning should not be impacted.
  3981. am__obj=conftest.${OBJEXT-o}
  3982. am__minus_obj=
  3983. ;;
  3984. none) break ;;
  3985. esac
  3986. if depmode=$depmode \
  3987. source=sub/conftest.c object=$am__obj \
  3988. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3989. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3990. >/dev/null 2>conftest.err &&
  3991. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3992. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3993. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3994. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3995. # icc doesn't choke on unknown options, it will just issue warnings
  3996. # or remarks (even with -Werror). So we grep stderr for any message
  3997. # that says an option was ignored or not supported.
  3998. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3999. # icc: Command line warning: ignoring option '-M'; no argument required
  4000. # The diagnosis changed in icc 8.0:
  4001. # icc: Command line remark: option '-MP' not supported
  4002. if (grep 'ignoring option' conftest.err ||
  4003. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4004. am_cv_CXX_dependencies_compiler_type=$depmode
  4005. break
  4006. fi
  4007. fi
  4008. done
  4009. cd ..
  4010. rm -rf conftest.dir
  4011. else
  4012. am_cv_CXX_dependencies_compiler_type=none
  4013. fi
  4014. fi
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4016. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4017. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4018. if
  4019. test "x$enable_dependency_tracking" != xno \
  4020. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4021. am__fastdepCXX_TRUE=
  4022. am__fastdepCXX_FALSE='#'
  4023. else
  4024. am__fastdepCXX_TRUE='#'
  4025. am__fastdepCXX_FALSE=
  4026. fi
  4027. ac_ext=cpp
  4028. ac_cpp='$CXXCPP $CPPFLAGS'
  4029. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4030. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4031. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4032. ac_ext=cpp
  4033. ac_cpp='$CXXCPP $CPPFLAGS'
  4034. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4035. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4036. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4038. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4039. if test -z "$CXXCPP"; then
  4040. if ${ac_cv_prog_CXXCPP+:} false; then :
  4041. $as_echo_n "(cached) " >&6
  4042. else
  4043. # Double quotes because CXXCPP needs to be expanded
  4044. for CXXCPP in "$CXX -E" "/lib/cpp"
  4045. do
  4046. ac_preproc_ok=false
  4047. for ac_cxx_preproc_warn_flag in '' yes
  4048. do
  4049. # Use a header file that comes with gcc, so configuring glibc
  4050. # with a fresh cross-compiler works.
  4051. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4052. # <limits.h> exists even on freestanding compilers.
  4053. # On the NeXT, cc -E runs the code through the compiler's parser,
  4054. # not just through cpp. "Syntax error" is here to catch this case.
  4055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4056. /* end confdefs.h. */
  4057. #ifdef __STDC__
  4058. # include <limits.h>
  4059. #else
  4060. # include <assert.h>
  4061. #endif
  4062. Syntax error
  4063. _ACEOF
  4064. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4065. else
  4066. # Broken: fails on valid input.
  4067. continue
  4068. fi
  4069. rm -f conftest.err conftest.i conftest.$ac_ext
  4070. # OK, works on sane cases. Now check whether nonexistent headers
  4071. # can be detected and how.
  4072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4073. /* end confdefs.h. */
  4074. #include <ac_nonexistent.h>
  4075. _ACEOF
  4076. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4077. # Broken: success on invalid input.
  4078. continue
  4079. else
  4080. # Passes both tests.
  4081. ac_preproc_ok=:
  4082. break
  4083. fi
  4084. rm -f conftest.err conftest.i conftest.$ac_ext
  4085. done
  4086. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4087. rm -f conftest.i conftest.err conftest.$ac_ext
  4088. if $ac_preproc_ok; then :
  4089. break
  4090. fi
  4091. done
  4092. ac_cv_prog_CXXCPP=$CXXCPP
  4093. fi
  4094. CXXCPP=$ac_cv_prog_CXXCPP
  4095. else
  4096. ac_cv_prog_CXXCPP=$CXXCPP
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4099. $as_echo "$CXXCPP" >&6; }
  4100. ac_preproc_ok=false
  4101. for ac_cxx_preproc_warn_flag in '' yes
  4102. do
  4103. # Use a header file that comes with gcc, so configuring glibc
  4104. # with a fresh cross-compiler works.
  4105. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4106. # <limits.h> exists even on freestanding compilers.
  4107. # On the NeXT, cc -E runs the code through the compiler's parser,
  4108. # not just through cpp. "Syntax error" is here to catch this case.
  4109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4110. /* end confdefs.h. */
  4111. #ifdef __STDC__
  4112. # include <limits.h>
  4113. #else
  4114. # include <assert.h>
  4115. #endif
  4116. Syntax error
  4117. _ACEOF
  4118. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4119. else
  4120. # Broken: fails on valid input.
  4121. continue
  4122. fi
  4123. rm -f conftest.err conftest.i conftest.$ac_ext
  4124. # OK, works on sane cases. Now check whether nonexistent headers
  4125. # can be detected and how.
  4126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. /* end confdefs.h. */
  4128. #include <ac_nonexistent.h>
  4129. _ACEOF
  4130. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4131. # Broken: success on invalid input.
  4132. continue
  4133. else
  4134. # Passes both tests.
  4135. ac_preproc_ok=:
  4136. break
  4137. fi
  4138. rm -f conftest.err conftest.i conftest.$ac_ext
  4139. done
  4140. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4141. rm -f conftest.i conftest.err conftest.$ac_ext
  4142. if $ac_preproc_ok; then :
  4143. else
  4144. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4146. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  4147. See \`config.log' for more details" "$LINENO" 5; }
  4148. fi
  4149. ac_ext=cpp
  4150. ac_cpp='$CXXCPP $CPPFLAGS'
  4151. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4152. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4153. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4155. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4156. if ${ac_cv_path_GREP+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. if test -z "$GREP"; then
  4160. ac_path_GREP_found=false
  4161. # Loop through the user's path and test for each of PROGNAME-LIST
  4162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4163. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4164. do
  4165. IFS=$as_save_IFS
  4166. test -z "$as_dir" && as_dir=.
  4167. for ac_prog in grep ggrep; do
  4168. for ac_exec_ext in '' $ac_executable_extensions; do
  4169. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4170. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4171. # Check for GNU ac_path_GREP and select it if it is found.
  4172. # Check for GNU $ac_path_GREP
  4173. case `"$ac_path_GREP" --version 2>&1` in
  4174. *GNU*)
  4175. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4176. *)
  4177. ac_count=0
  4178. $as_echo_n 0123456789 >"conftest.in"
  4179. while :
  4180. do
  4181. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4182. mv "conftest.tmp" "conftest.in"
  4183. cp "conftest.in" "conftest.nl"
  4184. $as_echo 'GREP' >> "conftest.nl"
  4185. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4186. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4187. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4188. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4189. # Best one so far, save it but keep looking for a better one
  4190. ac_cv_path_GREP="$ac_path_GREP"
  4191. ac_path_GREP_max=$ac_count
  4192. fi
  4193. # 10*(2^10) chars as input seems more than enough
  4194. test $ac_count -gt 10 && break
  4195. done
  4196. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4197. esac
  4198. $ac_path_GREP_found && break 3
  4199. done
  4200. done
  4201. done
  4202. IFS=$as_save_IFS
  4203. if test -z "$ac_cv_path_GREP"; then
  4204. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4205. fi
  4206. else
  4207. ac_cv_path_GREP=$GREP
  4208. fi
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4211. $as_echo "$ac_cv_path_GREP" >&6; }
  4212. GREP="$ac_cv_path_GREP"
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4214. $as_echo_n "checking for egrep... " >&6; }
  4215. if ${ac_cv_path_EGREP+:} false; then :
  4216. $as_echo_n "(cached) " >&6
  4217. else
  4218. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4219. then ac_cv_path_EGREP="$GREP -E"
  4220. else
  4221. if test -z "$EGREP"; then
  4222. ac_path_EGREP_found=false
  4223. # Loop through the user's path and test for each of PROGNAME-LIST
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4226. do
  4227. IFS=$as_save_IFS
  4228. test -z "$as_dir" && as_dir=.
  4229. for ac_prog in egrep; do
  4230. for ac_exec_ext in '' $ac_executable_extensions; do
  4231. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4232. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4233. # Check for GNU ac_path_EGREP and select it if it is found.
  4234. # Check for GNU $ac_path_EGREP
  4235. case `"$ac_path_EGREP" --version 2>&1` in
  4236. *GNU*)
  4237. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4238. *)
  4239. ac_count=0
  4240. $as_echo_n 0123456789 >"conftest.in"
  4241. while :
  4242. do
  4243. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4244. mv "conftest.tmp" "conftest.in"
  4245. cp "conftest.in" "conftest.nl"
  4246. $as_echo 'EGREP' >> "conftest.nl"
  4247. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4248. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4249. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4250. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4251. # Best one so far, save it but keep looking for a better one
  4252. ac_cv_path_EGREP="$ac_path_EGREP"
  4253. ac_path_EGREP_max=$ac_count
  4254. fi
  4255. # 10*(2^10) chars as input seems more than enough
  4256. test $ac_count -gt 10 && break
  4257. done
  4258. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4259. esac
  4260. $ac_path_EGREP_found && break 3
  4261. done
  4262. done
  4263. done
  4264. IFS=$as_save_IFS
  4265. if test -z "$ac_cv_path_EGREP"; then
  4266. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4267. fi
  4268. else
  4269. ac_cv_path_EGREP=$EGREP
  4270. fi
  4271. fi
  4272. fi
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4274. $as_echo "$ac_cv_path_EGREP" >&6; }
  4275. EGREP="$ac_cv_path_EGREP"
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4277. $as_echo_n "checking for ANSI C header files... " >&6; }
  4278. if ${ac_cv_header_stdc+:} false; then :
  4279. $as_echo_n "(cached) " >&6
  4280. else
  4281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4282. /* end confdefs.h. */
  4283. #include <stdlib.h>
  4284. #include <stdarg.h>
  4285. #include <string.h>
  4286. #include <float.h>
  4287. int
  4288. main ()
  4289. {
  4290. ;
  4291. return 0;
  4292. }
  4293. _ACEOF
  4294. if ac_fn_cxx_try_compile "$LINENO"; then :
  4295. ac_cv_header_stdc=yes
  4296. else
  4297. ac_cv_header_stdc=no
  4298. fi
  4299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4300. if test $ac_cv_header_stdc = yes; then
  4301. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4303. /* end confdefs.h. */
  4304. #include <string.h>
  4305. _ACEOF
  4306. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4307. $EGREP "memchr" >/dev/null 2>&1; then :
  4308. else
  4309. ac_cv_header_stdc=no
  4310. fi
  4311. rm -f conftest*
  4312. fi
  4313. if test $ac_cv_header_stdc = yes; then
  4314. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. #include <stdlib.h>
  4318. _ACEOF
  4319. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4320. $EGREP "free" >/dev/null 2>&1; then :
  4321. else
  4322. ac_cv_header_stdc=no
  4323. fi
  4324. rm -f conftest*
  4325. fi
  4326. if test $ac_cv_header_stdc = yes; then
  4327. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4328. if test "$cross_compiling" = yes; then :
  4329. :
  4330. else
  4331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4332. /* end confdefs.h. */
  4333. #include <ctype.h>
  4334. #include <stdlib.h>
  4335. #if ((' ' & 0x0FF) == 0x020)
  4336. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4337. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4338. #else
  4339. # define ISLOWER(c) \
  4340. (('a' <= (c) && (c) <= 'i') \
  4341. || ('j' <= (c) && (c) <= 'r') \
  4342. || ('s' <= (c) && (c) <= 'z'))
  4343. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4344. #endif
  4345. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4346. int
  4347. main ()
  4348. {
  4349. int i;
  4350. for (i = 0; i < 256; i++)
  4351. if (XOR (islower (i), ISLOWER (i))
  4352. || toupper (i) != TOUPPER (i))
  4353. return 2;
  4354. return 0;
  4355. }
  4356. _ACEOF
  4357. if ac_fn_cxx_try_run "$LINENO"; then :
  4358. else
  4359. ac_cv_header_stdc=no
  4360. fi
  4361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4362. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4363. fi
  4364. fi
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4367. $as_echo "$ac_cv_header_stdc" >&6; }
  4368. if test $ac_cv_header_stdc = yes; then
  4369. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4370. fi
  4371. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4372. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4373. inttypes.h stdint.h unistd.h
  4374. do :
  4375. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4376. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4377. "
  4378. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4379. cat >>confdefs.h <<_ACEOF
  4380. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4381. _ACEOF
  4382. fi
  4383. done
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4385. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4386. if ${ac_cv_c_bigendian+:} false; then :
  4387. $as_echo_n "(cached) " >&6
  4388. else
  4389. ac_cv_c_bigendian=unknown
  4390. # See if we're dealing with a universal compiler.
  4391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4392. /* end confdefs.h. */
  4393. #ifndef __APPLE_CC__
  4394. not a universal capable compiler
  4395. #endif
  4396. typedef int dummy;
  4397. _ACEOF
  4398. if ac_fn_cxx_try_compile "$LINENO"; then :
  4399. # Check for potential -arch flags. It is not universal unless
  4400. # there are at least two -arch flags with different values.
  4401. ac_arch=
  4402. ac_prev=
  4403. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4404. if test -n "$ac_prev"; then
  4405. case $ac_word in
  4406. i?86 | x86_64 | ppc | ppc64)
  4407. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4408. ac_arch=$ac_word
  4409. else
  4410. ac_cv_c_bigendian=universal
  4411. break
  4412. fi
  4413. ;;
  4414. esac
  4415. ac_prev=
  4416. elif test "x$ac_word" = "x-arch"; then
  4417. ac_prev=arch
  4418. fi
  4419. done
  4420. fi
  4421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4422. if test $ac_cv_c_bigendian = unknown; then
  4423. # See if sys/param.h defines the BYTE_ORDER macro.
  4424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4425. /* end confdefs.h. */
  4426. #include <sys/types.h>
  4427. #include <sys/param.h>
  4428. int
  4429. main ()
  4430. {
  4431. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4432. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4433. && LITTLE_ENDIAN)
  4434. bogus endian macros
  4435. #endif
  4436. ;
  4437. return 0;
  4438. }
  4439. _ACEOF
  4440. if ac_fn_cxx_try_compile "$LINENO"; then :
  4441. # It does; now see whether it defined to BIG_ENDIAN or not.
  4442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4443. /* end confdefs.h. */
  4444. #include <sys/types.h>
  4445. #include <sys/param.h>
  4446. int
  4447. main ()
  4448. {
  4449. #if BYTE_ORDER != BIG_ENDIAN
  4450. not big endian
  4451. #endif
  4452. ;
  4453. return 0;
  4454. }
  4455. _ACEOF
  4456. if ac_fn_cxx_try_compile "$LINENO"; then :
  4457. ac_cv_c_bigendian=yes
  4458. else
  4459. ac_cv_c_bigendian=no
  4460. fi
  4461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4464. fi
  4465. if test $ac_cv_c_bigendian = unknown; then
  4466. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4468. /* end confdefs.h. */
  4469. #include <limits.h>
  4470. int
  4471. main ()
  4472. {
  4473. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4474. bogus endian macros
  4475. #endif
  4476. ;
  4477. return 0;
  4478. }
  4479. _ACEOF
  4480. if ac_fn_cxx_try_compile "$LINENO"; then :
  4481. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4483. /* end confdefs.h. */
  4484. #include <limits.h>
  4485. int
  4486. main ()
  4487. {
  4488. #ifndef _BIG_ENDIAN
  4489. not big endian
  4490. #endif
  4491. ;
  4492. return 0;
  4493. }
  4494. _ACEOF
  4495. if ac_fn_cxx_try_compile "$LINENO"; then :
  4496. ac_cv_c_bigendian=yes
  4497. else
  4498. ac_cv_c_bigendian=no
  4499. fi
  4500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4501. fi
  4502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4503. fi
  4504. if test $ac_cv_c_bigendian = unknown; then
  4505. # Compile a test program.
  4506. if test "$cross_compiling" = yes; then :
  4507. # Try to guess by grepping values from an object file.
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. short int ascii_mm[] =
  4511. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4512. short int ascii_ii[] =
  4513. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4514. int use_ascii (int i) {
  4515. return ascii_mm[i] + ascii_ii[i];
  4516. }
  4517. short int ebcdic_ii[] =
  4518. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4519. short int ebcdic_mm[] =
  4520. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4521. int use_ebcdic (int i) {
  4522. return ebcdic_mm[i] + ebcdic_ii[i];
  4523. }
  4524. extern int foo;
  4525. int
  4526. main ()
  4527. {
  4528. return use_ascii (foo) == use_ebcdic (foo);
  4529. ;
  4530. return 0;
  4531. }
  4532. _ACEOF
  4533. if ac_fn_cxx_try_compile "$LINENO"; then :
  4534. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4535. ac_cv_c_bigendian=yes
  4536. fi
  4537. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4538. if test "$ac_cv_c_bigendian" = unknown; then
  4539. ac_cv_c_bigendian=no
  4540. else
  4541. # finding both strings is unlikely to happen, but who knows?
  4542. ac_cv_c_bigendian=unknown
  4543. fi
  4544. fi
  4545. fi
  4546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4547. else
  4548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4549. /* end confdefs.h. */
  4550. $ac_includes_default
  4551. int
  4552. main ()
  4553. {
  4554. /* Are we little or big endian? From Harbison&Steele. */
  4555. union
  4556. {
  4557. long int l;
  4558. char c[sizeof (long int)];
  4559. } u;
  4560. u.l = 1;
  4561. return u.c[sizeof (long int) - 1] == 1;
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. if ac_fn_cxx_try_run "$LINENO"; then :
  4567. ac_cv_c_bigendian=no
  4568. else
  4569. ac_cv_c_bigendian=yes
  4570. fi
  4571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4573. fi
  4574. fi
  4575. fi
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4577. $as_echo "$ac_cv_c_bigendian" >&6; }
  4578. case $ac_cv_c_bigendian in #(
  4579. yes)
  4580. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4581. ;; #(
  4582. no)
  4583. ;; #(
  4584. universal)
  4585. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4586. ;; #(
  4587. *)
  4588. as_fn_error $? "unknown endianness
  4589. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4590. esac
  4591. #this will cause problems when cross-compiling...
  4592. #AC_REQUIRE([AC_CANONICAL_HOST])_LT_SET_OPTION([LT_INIT],[win32-dll])
  4593. #AC_DIAGNOSE([obsolete],[AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
  4594. #put the `win32-dll' option into LT_INIT's first parameter.])
  4595. case `pwd` in
  4596. *\ * | *\ *)
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4598. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4599. esac
  4600. macro_version='2.4'
  4601. macro_revision='1.3293'
  4602. ltmain="$ac_aux_dir/ltmain.sh"
  4603. # Make sure we can run config.sub.
  4604. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4605. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4607. $as_echo_n "checking build system type... " >&6; }
  4608. if ${ac_cv_build+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. ac_build_alias=$build_alias
  4612. test "x$ac_build_alias" = x &&
  4613. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4614. test "x$ac_build_alias" = x &&
  4615. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4616. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4617. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4618. fi
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4620. $as_echo "$ac_cv_build" >&6; }
  4621. case $ac_cv_build in
  4622. *-*-*) ;;
  4623. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4624. esac
  4625. build=$ac_cv_build
  4626. ac_save_IFS=$IFS; IFS='-'
  4627. set x $ac_cv_build
  4628. shift
  4629. build_cpu=$1
  4630. build_vendor=$2
  4631. shift; shift
  4632. # Remember, the first character of IFS is used to create $*,
  4633. # except with old shells:
  4634. build_os=$*
  4635. IFS=$ac_save_IFS
  4636. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4638. $as_echo_n "checking host system type... " >&6; }
  4639. if ${ac_cv_host+:} false; then :
  4640. $as_echo_n "(cached) " >&6
  4641. else
  4642. if test "x$host_alias" = x; then
  4643. ac_cv_host=$ac_cv_build
  4644. else
  4645. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4646. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4647. fi
  4648. fi
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4650. $as_echo "$ac_cv_host" >&6; }
  4651. case $ac_cv_host in
  4652. *-*-*) ;;
  4653. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4654. esac
  4655. host=$ac_cv_host
  4656. ac_save_IFS=$IFS; IFS='-'
  4657. set x $ac_cv_host
  4658. shift
  4659. host_cpu=$1
  4660. host_vendor=$2
  4661. shift; shift
  4662. # Remember, the first character of IFS is used to create $*,
  4663. # except with old shells:
  4664. host_os=$*
  4665. IFS=$ac_save_IFS
  4666. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4667. # Backslashify metacharacters that are still active within
  4668. # double-quoted strings.
  4669. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4670. # Same as above, but do not quote variable references.
  4671. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4672. # Sed substitution to delay expansion of an escaped shell variable in a
  4673. # double_quote_subst'ed string.
  4674. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4675. # Sed substitution to delay expansion of an escaped single quote.
  4676. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4677. # Sed substitution to avoid accidental globbing in evaled expressions
  4678. no_glob_subst='s/\*/\\\*/g'
  4679. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4680. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4681. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4683. $as_echo_n "checking how to print strings... " >&6; }
  4684. # Test print first, because it will be a builtin if present.
  4685. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4686. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4687. ECHO='print -r --'
  4688. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4689. ECHO='printf %s\n'
  4690. else
  4691. # Use this function as a fallback that always works.
  4692. func_fallback_echo ()
  4693. {
  4694. eval 'cat <<_LTECHO_EOF
  4695. $1
  4696. _LTECHO_EOF'
  4697. }
  4698. ECHO='func_fallback_echo'
  4699. fi
  4700. # func_echo_all arg...
  4701. # Invoke $ECHO with all args, space-separated.
  4702. func_echo_all ()
  4703. {
  4704. $ECHO ""
  4705. }
  4706. case "$ECHO" in
  4707. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4708. $as_echo "printf" >&6; } ;;
  4709. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4710. $as_echo "print -r" >&6; } ;;
  4711. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4712. $as_echo "cat" >&6; } ;;
  4713. esac
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4715. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4716. if ${ac_cv_path_SED+:} false; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4720. for ac_i in 1 2 3 4 5 6 7; do
  4721. ac_script="$ac_script$as_nl$ac_script"
  4722. done
  4723. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4724. { ac_script=; unset ac_script;}
  4725. if test -z "$SED"; then
  4726. ac_path_SED_found=false
  4727. # Loop through the user's path and test for each of PROGNAME-LIST
  4728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4729. for as_dir in $PATH
  4730. do
  4731. IFS=$as_save_IFS
  4732. test -z "$as_dir" && as_dir=.
  4733. for ac_prog in sed gsed; do
  4734. for ac_exec_ext in '' $ac_executable_extensions; do
  4735. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4736. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4737. # Check for GNU ac_path_SED and select it if it is found.
  4738. # Check for GNU $ac_path_SED
  4739. case `"$ac_path_SED" --version 2>&1` in
  4740. *GNU*)
  4741. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4742. *)
  4743. ac_count=0
  4744. $as_echo_n 0123456789 >"conftest.in"
  4745. while :
  4746. do
  4747. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4748. mv "conftest.tmp" "conftest.in"
  4749. cp "conftest.in" "conftest.nl"
  4750. $as_echo '' >> "conftest.nl"
  4751. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4752. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4753. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4754. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4755. # Best one so far, save it but keep looking for a better one
  4756. ac_cv_path_SED="$ac_path_SED"
  4757. ac_path_SED_max=$ac_count
  4758. fi
  4759. # 10*(2^10) chars as input seems more than enough
  4760. test $ac_count -gt 10 && break
  4761. done
  4762. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4763. esac
  4764. $ac_path_SED_found && break 3
  4765. done
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. if test -z "$ac_cv_path_SED"; then
  4770. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4771. fi
  4772. else
  4773. ac_cv_path_SED=$SED
  4774. fi
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4777. $as_echo "$ac_cv_path_SED" >&6; }
  4778. SED="$ac_cv_path_SED"
  4779. rm -f conftest.sed
  4780. test -z "$SED" && SED=sed
  4781. Xsed="$SED -e 1s/^X//"
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4783. $as_echo_n "checking for fgrep... " >&6; }
  4784. if ${ac_cv_path_FGREP+:} false; then :
  4785. $as_echo_n "(cached) " >&6
  4786. else
  4787. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4788. then ac_cv_path_FGREP="$GREP -F"
  4789. else
  4790. if test -z "$FGREP"; then
  4791. ac_path_FGREP_found=false
  4792. # Loop through the user's path and test for each of PROGNAME-LIST
  4793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4794. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4795. do
  4796. IFS=$as_save_IFS
  4797. test -z "$as_dir" && as_dir=.
  4798. for ac_prog in fgrep; do
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4801. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4802. # Check for GNU ac_path_FGREP and select it if it is found.
  4803. # Check for GNU $ac_path_FGREP
  4804. case `"$ac_path_FGREP" --version 2>&1` in
  4805. *GNU*)
  4806. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4807. *)
  4808. ac_count=0
  4809. $as_echo_n 0123456789 >"conftest.in"
  4810. while :
  4811. do
  4812. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4813. mv "conftest.tmp" "conftest.in"
  4814. cp "conftest.in" "conftest.nl"
  4815. $as_echo 'FGREP' >> "conftest.nl"
  4816. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4817. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4818. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4819. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4820. # Best one so far, save it but keep looking for a better one
  4821. ac_cv_path_FGREP="$ac_path_FGREP"
  4822. ac_path_FGREP_max=$ac_count
  4823. fi
  4824. # 10*(2^10) chars as input seems more than enough
  4825. test $ac_count -gt 10 && break
  4826. done
  4827. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4828. esac
  4829. $ac_path_FGREP_found && break 3
  4830. done
  4831. done
  4832. done
  4833. IFS=$as_save_IFS
  4834. if test -z "$ac_cv_path_FGREP"; then
  4835. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4836. fi
  4837. else
  4838. ac_cv_path_FGREP=$FGREP
  4839. fi
  4840. fi
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4843. $as_echo "$ac_cv_path_FGREP" >&6; }
  4844. FGREP="$ac_cv_path_FGREP"
  4845. test -z "$GREP" && GREP=grep
  4846. # Check whether --with-gnu-ld was given.
  4847. if test "${with_gnu_ld+set}" = set; then :
  4848. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4849. else
  4850. with_gnu_ld=no
  4851. fi
  4852. ac_prog=ld
  4853. if test "$GCC" = yes; then
  4854. # Check if gcc -print-prog-name=ld gives a path.
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4856. $as_echo_n "checking for ld used by $CC... " >&6; }
  4857. case $host in
  4858. *-*-mingw*)
  4859. # gcc leaves a trailing carriage return which upsets mingw
  4860. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4861. *)
  4862. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4863. esac
  4864. case $ac_prog in
  4865. # Accept absolute paths.
  4866. [\\/]* | ?:[\\/]*)
  4867. re_direlt='/[^/][^/]*/\.\./'
  4868. # Canonicalize the pathname of ld
  4869. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4870. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4871. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4872. done
  4873. test -z "$LD" && LD="$ac_prog"
  4874. ;;
  4875. "")
  4876. # If it fails, then pretend we aren't using GCC.
  4877. ac_prog=ld
  4878. ;;
  4879. *)
  4880. # If it is relative, then search for the first ld in PATH.
  4881. with_gnu_ld=unknown
  4882. ;;
  4883. esac
  4884. elif test "$with_gnu_ld" = yes; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4886. $as_echo_n "checking for GNU ld... " >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4889. $as_echo_n "checking for non-GNU ld... " >&6; }
  4890. fi
  4891. if ${lt_cv_path_LD+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. if test -z "$LD"; then
  4895. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4896. for ac_dir in $PATH; do
  4897. IFS="$lt_save_ifs"
  4898. test -z "$ac_dir" && ac_dir=.
  4899. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4900. lt_cv_path_LD="$ac_dir/$ac_prog"
  4901. # Check to see if the program is GNU ld. I'd rather use --version,
  4902. # but apparently some variants of GNU ld only accept -v.
  4903. # Break only if it was the GNU/non-GNU ld that we prefer.
  4904. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4905. *GNU* | *'with BFD'*)
  4906. test "$with_gnu_ld" != no && break
  4907. ;;
  4908. *)
  4909. test "$with_gnu_ld" != yes && break
  4910. ;;
  4911. esac
  4912. fi
  4913. done
  4914. IFS="$lt_save_ifs"
  4915. else
  4916. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4917. fi
  4918. fi
  4919. LD="$lt_cv_path_LD"
  4920. if test -n "$LD"; then
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4922. $as_echo "$LD" >&6; }
  4923. else
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4925. $as_echo "no" >&6; }
  4926. fi
  4927. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4929. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4930. if ${lt_cv_prog_gnu_ld+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4934. case `$LD -v 2>&1 </dev/null` in
  4935. *GNU* | *'with BFD'*)
  4936. lt_cv_prog_gnu_ld=yes
  4937. ;;
  4938. *)
  4939. lt_cv_prog_gnu_ld=no
  4940. ;;
  4941. esac
  4942. fi
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4944. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4945. with_gnu_ld=$lt_cv_prog_gnu_ld
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4947. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4948. if ${lt_cv_path_NM+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$NM"; then
  4952. # Let the user override the test.
  4953. lt_cv_path_NM="$NM"
  4954. else
  4955. lt_nm_to_check="${ac_tool_prefix}nm"
  4956. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4957. lt_nm_to_check="$lt_nm_to_check nm"
  4958. fi
  4959. for lt_tmp_nm in $lt_nm_to_check; do
  4960. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4961. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4962. IFS="$lt_save_ifs"
  4963. test -z "$ac_dir" && ac_dir=.
  4964. tmp_nm="$ac_dir/$lt_tmp_nm"
  4965. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4966. # Check to see if the nm accepts a BSD-compat flag.
  4967. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4968. # nm: unknown option "B" ignored
  4969. # Tru64's nm complains that /dev/null is an invalid object file
  4970. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4971. */dev/null* | *'Invalid file or object type'*)
  4972. lt_cv_path_NM="$tmp_nm -B"
  4973. break
  4974. ;;
  4975. *)
  4976. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4977. */dev/null*)
  4978. lt_cv_path_NM="$tmp_nm -p"
  4979. break
  4980. ;;
  4981. *)
  4982. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4983. continue # so that we can try to find one that supports BSD flags
  4984. ;;
  4985. esac
  4986. ;;
  4987. esac
  4988. fi
  4989. done
  4990. IFS="$lt_save_ifs"
  4991. done
  4992. : ${lt_cv_path_NM=no}
  4993. fi
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4996. $as_echo "$lt_cv_path_NM" >&6; }
  4997. if test "$lt_cv_path_NM" != "no"; then
  4998. NM="$lt_cv_path_NM"
  4999. else
  5000. # Didn't find any BSD compatible name lister, look for dumpbin.
  5001. if test -n "$DUMPBIN"; then :
  5002. # Let the user override the test.
  5003. else
  5004. if test -n "$ac_tool_prefix"; then
  5005. for ac_prog in dumpbin "link -dump"
  5006. do
  5007. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5008. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5010. $as_echo_n "checking for $ac_word... " >&6; }
  5011. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -n "$DUMPBIN"; then
  5015. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5016. else
  5017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5018. for as_dir in $PATH
  5019. do
  5020. IFS=$as_save_IFS
  5021. test -z "$as_dir" && as_dir=.
  5022. for ac_exec_ext in '' $ac_executable_extensions; do
  5023. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5024. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5026. break 2
  5027. fi
  5028. done
  5029. done
  5030. IFS=$as_save_IFS
  5031. fi
  5032. fi
  5033. DUMPBIN=$ac_cv_prog_DUMPBIN
  5034. if test -n "$DUMPBIN"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5036. $as_echo "$DUMPBIN" >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. fi
  5041. test -n "$DUMPBIN" && break
  5042. done
  5043. fi
  5044. if test -z "$DUMPBIN"; then
  5045. ac_ct_DUMPBIN=$DUMPBIN
  5046. for ac_prog in dumpbin "link -dump"
  5047. do
  5048. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5049. set dummy $ac_prog; ac_word=$2
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5051. $as_echo_n "checking for $ac_word... " >&6; }
  5052. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5053. $as_echo_n "(cached) " >&6
  5054. else
  5055. if test -n "$ac_ct_DUMPBIN"; then
  5056. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5057. else
  5058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5059. for as_dir in $PATH
  5060. do
  5061. IFS=$as_save_IFS
  5062. test -z "$as_dir" && as_dir=.
  5063. for ac_exec_ext in '' $ac_executable_extensions; do
  5064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5065. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5067. break 2
  5068. fi
  5069. done
  5070. done
  5071. IFS=$as_save_IFS
  5072. fi
  5073. fi
  5074. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5075. if test -n "$ac_ct_DUMPBIN"; then
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5077. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5078. else
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5080. $as_echo "no" >&6; }
  5081. fi
  5082. test -n "$ac_ct_DUMPBIN" && break
  5083. done
  5084. if test "x$ac_ct_DUMPBIN" = x; then
  5085. DUMPBIN=":"
  5086. else
  5087. case $cross_compiling:$ac_tool_warned in
  5088. yes:)
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5091. ac_tool_warned=yes ;;
  5092. esac
  5093. DUMPBIN=$ac_ct_DUMPBIN
  5094. fi
  5095. fi
  5096. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5097. *COFF*)
  5098. DUMPBIN="$DUMPBIN -symbols"
  5099. ;;
  5100. *)
  5101. DUMPBIN=:
  5102. ;;
  5103. esac
  5104. fi
  5105. if test "$DUMPBIN" != ":"; then
  5106. NM="$DUMPBIN"
  5107. fi
  5108. fi
  5109. test -z "$NM" && NM=nm
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5111. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5112. if ${lt_cv_nm_interface+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. lt_cv_nm_interface="BSD nm"
  5116. echo "int some_variable = 0;" > conftest.$ac_ext
  5117. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5118. (eval "$ac_compile" 2>conftest.err)
  5119. cat conftest.err >&5
  5120. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5121. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5122. cat conftest.err >&5
  5123. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5124. cat conftest.out >&5
  5125. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5126. lt_cv_nm_interface="MS dumpbin"
  5127. fi
  5128. rm -f conftest*
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5131. $as_echo "$lt_cv_nm_interface" >&6; }
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5133. $as_echo_n "checking whether ln -s works... " >&6; }
  5134. LN_S=$as_ln_s
  5135. if test "$LN_S" = "ln -s"; then
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5137. $as_echo "yes" >&6; }
  5138. else
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5140. $as_echo "no, using $LN_S" >&6; }
  5141. fi
  5142. # find the maximum length of command line arguments
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5144. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5145. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. i=0
  5149. teststring="ABCD"
  5150. case $build_os in
  5151. msdosdjgpp*)
  5152. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5153. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5154. # during glob expansion). Even if it were fixed, the result of this
  5155. # check would be larger than it should be.
  5156. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5157. ;;
  5158. gnu*)
  5159. # Under GNU Hurd, this test is not required because there is
  5160. # no limit to the length of command line arguments.
  5161. # Libtool will interpret -1 as no limit whatsoever
  5162. lt_cv_sys_max_cmd_len=-1;
  5163. ;;
  5164. cygwin* | mingw* | cegcc*)
  5165. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5166. # about 5 minutes as the teststring grows exponentially.
  5167. # Worse, since 9x/ME are not pre-emptively multitasking,
  5168. # you end up with a "frozen" computer, even though with patience
  5169. # the test eventually succeeds (with a max line length of 256k).
  5170. # Instead, let's just punt: use the minimum linelength reported by
  5171. # all of the supported platforms: 8192 (on NT/2K/XP).
  5172. lt_cv_sys_max_cmd_len=8192;
  5173. ;;
  5174. mint*)
  5175. # On MiNT this can take a long time and run out of memory.
  5176. lt_cv_sys_max_cmd_len=8192;
  5177. ;;
  5178. amigaos*)
  5179. # On AmigaOS with pdksh, this test takes hours, literally.
  5180. # So we just punt and use a minimum line length of 8192.
  5181. lt_cv_sys_max_cmd_len=8192;
  5182. ;;
  5183. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5184. # This has been around since 386BSD, at least. Likely further.
  5185. if test -x /sbin/sysctl; then
  5186. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5187. elif test -x /usr/sbin/sysctl; then
  5188. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5189. else
  5190. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5191. fi
  5192. # And add a safety zone
  5193. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5194. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5195. ;;
  5196. interix*)
  5197. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5198. lt_cv_sys_max_cmd_len=196608
  5199. ;;
  5200. osf*)
  5201. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5202. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5203. # nice to cause kernel panics so lets avoid the loop below.
  5204. # First set a reasonable default.
  5205. lt_cv_sys_max_cmd_len=16384
  5206. #
  5207. if test -x /sbin/sysconfig; then
  5208. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5209. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5210. esac
  5211. fi
  5212. ;;
  5213. sco3.2v5*)
  5214. lt_cv_sys_max_cmd_len=102400
  5215. ;;
  5216. sysv5* | sco5v6* | sysv4.2uw2*)
  5217. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5218. if test -n "$kargmax"; then
  5219. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5220. else
  5221. lt_cv_sys_max_cmd_len=32768
  5222. fi
  5223. ;;
  5224. *)
  5225. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5226. if test -n "$lt_cv_sys_max_cmd_len"; then
  5227. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5228. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5229. else
  5230. # Make teststring a little bigger before we do anything with it.
  5231. # a 1K string should be a reasonable start.
  5232. for i in 1 2 3 4 5 6 7 8 ; do
  5233. teststring=$teststring$teststring
  5234. done
  5235. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5236. # If test is not a shell built-in, we'll probably end up computing a
  5237. # maximum length that is only half of the actual maximum length, but
  5238. # we can't tell.
  5239. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5240. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5241. test $i != 17 # 1/2 MB should be enough
  5242. do
  5243. i=`expr $i + 1`
  5244. teststring=$teststring$teststring
  5245. done
  5246. # Only check the string length outside the loop.
  5247. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5248. teststring=
  5249. # Add a significant safety factor because C++ compilers can tack on
  5250. # massive amounts of additional arguments before passing them to the
  5251. # linker. It appears as though 1/2 is a usable value.
  5252. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5253. fi
  5254. ;;
  5255. esac
  5256. fi
  5257. if test -n $lt_cv_sys_max_cmd_len ; then
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5259. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5260. else
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5262. $as_echo "none" >&6; }
  5263. fi
  5264. max_cmd_len=$lt_cv_sys_max_cmd_len
  5265. : ${CP="cp -f"}
  5266. : ${MV="mv -f"}
  5267. : ${RM="rm -f"}
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5269. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5270. # Try some XSI features
  5271. xsi_shell=no
  5272. ( _lt_dummy="a/b/c"
  5273. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5274. = c,a/b,b/c, \
  5275. && eval 'test $(( 1 + 1 )) -eq 2 \
  5276. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5277. && xsi_shell=yes
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5279. $as_echo "$xsi_shell" >&6; }
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5281. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5282. lt_shell_append=no
  5283. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5284. >/dev/null 2>&1 \
  5285. && lt_shell_append=yes
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5287. $as_echo "$lt_shell_append" >&6; }
  5288. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5289. lt_unset=unset
  5290. else
  5291. lt_unset=false
  5292. fi
  5293. # test EBCDIC or ASCII
  5294. case `echo X|tr X '\101'` in
  5295. A) # ASCII based system
  5296. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5297. lt_SP2NL='tr \040 \012'
  5298. lt_NL2SP='tr \015\012 \040\040'
  5299. ;;
  5300. *) # EBCDIC based system
  5301. lt_SP2NL='tr \100 \n'
  5302. lt_NL2SP='tr \r\n \100\100'
  5303. ;;
  5304. esac
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5306. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5307. if ${lt_cv_to_host_file_cmd+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. case $host in
  5311. *-*-mingw* )
  5312. case $build in
  5313. *-*-mingw* ) # actually msys
  5314. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5315. ;;
  5316. *-*-cygwin* )
  5317. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5318. ;;
  5319. * ) # otherwise, assume *nix
  5320. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5321. ;;
  5322. esac
  5323. ;;
  5324. *-*-cygwin* )
  5325. case $build in
  5326. *-*-mingw* ) # actually msys
  5327. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5328. ;;
  5329. *-*-cygwin* )
  5330. lt_cv_to_host_file_cmd=func_convert_file_noop
  5331. ;;
  5332. * ) # otherwise, assume *nix
  5333. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5334. ;;
  5335. esac
  5336. ;;
  5337. * ) # unhandled hosts (and "normal" native builds)
  5338. lt_cv_to_host_file_cmd=func_convert_file_noop
  5339. ;;
  5340. esac
  5341. fi
  5342. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5344. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5346. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5347. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. #assume ordinary cross tools, or native build.
  5351. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5352. case $host in
  5353. *-*-mingw* )
  5354. case $build in
  5355. *-*-mingw* ) # actually msys
  5356. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5357. ;;
  5358. esac
  5359. ;;
  5360. esac
  5361. fi
  5362. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5364. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5366. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5367. if ${lt_cv_ld_reload_flag+:} false; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. lt_cv_ld_reload_flag='-r'
  5371. fi
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5373. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5374. reload_flag=$lt_cv_ld_reload_flag
  5375. case $reload_flag in
  5376. "" | " "*) ;;
  5377. *) reload_flag=" $reload_flag" ;;
  5378. esac
  5379. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5380. case $host_os in
  5381. cygwin* | mingw* | pw32* | cegcc*)
  5382. if test "$GCC" != yes; then
  5383. reload_cmds=false
  5384. fi
  5385. ;;
  5386. darwin*)
  5387. if test "$GCC" = yes; then
  5388. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5389. else
  5390. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5391. fi
  5392. ;;
  5393. esac
  5394. if test -n "$ac_tool_prefix"; then
  5395. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5396. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5398. $as_echo_n "checking for $ac_word... " >&6; }
  5399. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. if test -n "$OBJDUMP"; then
  5403. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5404. else
  5405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5406. for as_dir in $PATH
  5407. do
  5408. IFS=$as_save_IFS
  5409. test -z "$as_dir" && as_dir=.
  5410. for ac_exec_ext in '' $ac_executable_extensions; do
  5411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5412. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5414. break 2
  5415. fi
  5416. done
  5417. done
  5418. IFS=$as_save_IFS
  5419. fi
  5420. fi
  5421. OBJDUMP=$ac_cv_prog_OBJDUMP
  5422. if test -n "$OBJDUMP"; then
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5424. $as_echo "$OBJDUMP" >&6; }
  5425. else
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. $as_echo "no" >&6; }
  5428. fi
  5429. fi
  5430. if test -z "$ac_cv_prog_OBJDUMP"; then
  5431. ac_ct_OBJDUMP=$OBJDUMP
  5432. # Extract the first word of "objdump", so it can be a program name with args.
  5433. set dummy objdump; ac_word=$2
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5435. $as_echo_n "checking for $ac_word... " >&6; }
  5436. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. if test -n "$ac_ct_OBJDUMP"; then
  5440. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5441. else
  5442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5443. for as_dir in $PATH
  5444. do
  5445. IFS=$as_save_IFS
  5446. test -z "$as_dir" && as_dir=.
  5447. for ac_exec_ext in '' $ac_executable_extensions; do
  5448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5449. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5451. break 2
  5452. fi
  5453. done
  5454. done
  5455. IFS=$as_save_IFS
  5456. fi
  5457. fi
  5458. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5459. if test -n "$ac_ct_OBJDUMP"; then
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5461. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5462. else
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5464. $as_echo "no" >&6; }
  5465. fi
  5466. if test "x$ac_ct_OBJDUMP" = x; then
  5467. OBJDUMP="false"
  5468. else
  5469. case $cross_compiling:$ac_tool_warned in
  5470. yes:)
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5473. ac_tool_warned=yes ;;
  5474. esac
  5475. OBJDUMP=$ac_ct_OBJDUMP
  5476. fi
  5477. else
  5478. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5479. fi
  5480. test -z "$OBJDUMP" && OBJDUMP=objdump
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5482. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5483. if ${lt_cv_deplibs_check_method+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5487. lt_cv_file_magic_test_file=
  5488. lt_cv_deplibs_check_method='unknown'
  5489. # Need to set the preceding variable on all platforms that support
  5490. # interlibrary dependencies.
  5491. # 'none' -- dependencies not supported.
  5492. # `unknown' -- same as none, but documents that we really don't know.
  5493. # 'pass_all' -- all dependencies passed with no checks.
  5494. # 'test_compile' -- check by making test program.
  5495. # 'file_magic [[regex]]' -- check by looking for files in library path
  5496. # which responds to the $file_magic_cmd with a given extended regex.
  5497. # If you have `file' or equivalent on your system and you're not sure
  5498. # whether `pass_all' will *always* work, you probably want this one.
  5499. case $host_os in
  5500. aix[4-9]*)
  5501. lt_cv_deplibs_check_method=pass_all
  5502. ;;
  5503. beos*)
  5504. lt_cv_deplibs_check_method=pass_all
  5505. ;;
  5506. bsdi[45]*)
  5507. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5508. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5509. lt_cv_file_magic_test_file=/shlib/libc.so
  5510. ;;
  5511. cygwin*)
  5512. # func_win32_libid is a shell function defined in ltmain.sh
  5513. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5514. lt_cv_file_magic_cmd='func_win32_libid'
  5515. ;;
  5516. mingw* | pw32*)
  5517. # Base MSYS/MinGW do not provide the 'file' command needed by
  5518. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5519. # unless we find 'file', for example because we are cross-compiling.
  5520. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5521. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5522. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5523. lt_cv_file_magic_cmd='func_win32_libid'
  5524. else
  5525. # Keep this pattern in sync with the one in func_win32_libid.
  5526. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5527. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5528. fi
  5529. ;;
  5530. cegcc*)
  5531. # use the weaker test based on 'objdump'. See mingw*.
  5532. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5533. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5534. ;;
  5535. darwin* | rhapsody*)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. freebsd* | dragonfly*)
  5539. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5540. case $host_cpu in
  5541. i*86 )
  5542. # Not sure whether the presence of OpenBSD here was a mistake.
  5543. # Let's accept both of them until this is cleared up.
  5544. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5545. lt_cv_file_magic_cmd=/usr/bin/file
  5546. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5547. ;;
  5548. esac
  5549. else
  5550. lt_cv_deplibs_check_method=pass_all
  5551. fi
  5552. ;;
  5553. gnu*)
  5554. lt_cv_deplibs_check_method=pass_all
  5555. ;;
  5556. haiku*)
  5557. lt_cv_deplibs_check_method=pass_all
  5558. ;;
  5559. hpux10.20* | hpux11*)
  5560. lt_cv_file_magic_cmd=/usr/bin/file
  5561. case $host_cpu in
  5562. ia64*)
  5563. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5564. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5565. ;;
  5566. hppa*64*)
  5567. 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]'
  5568. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5569. ;;
  5570. *)
  5571. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5572. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5573. ;;
  5574. esac
  5575. ;;
  5576. interix[3-9]*)
  5577. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5578. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5579. ;;
  5580. irix5* | irix6* | nonstopux*)
  5581. case $LD in
  5582. *-32|*"-32 ") libmagic=32-bit;;
  5583. *-n32|*"-n32 ") libmagic=N32;;
  5584. *-64|*"-64 ") libmagic=64-bit;;
  5585. *) libmagic=never-match;;
  5586. esac
  5587. lt_cv_deplibs_check_method=pass_all
  5588. ;;
  5589. # This must be Linux ELF.
  5590. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5591. lt_cv_deplibs_check_method=pass_all
  5592. ;;
  5593. netbsd*)
  5594. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5595. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5596. else
  5597. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5598. fi
  5599. ;;
  5600. newos6*)
  5601. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5602. lt_cv_file_magic_cmd=/usr/bin/file
  5603. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5604. ;;
  5605. *nto* | *qnx*)
  5606. lt_cv_deplibs_check_method=pass_all
  5607. ;;
  5608. openbsd*)
  5609. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5610. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5611. else
  5612. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5613. fi
  5614. ;;
  5615. osf3* | osf4* | osf5*)
  5616. lt_cv_deplibs_check_method=pass_all
  5617. ;;
  5618. rdos*)
  5619. lt_cv_deplibs_check_method=pass_all
  5620. ;;
  5621. solaris*)
  5622. lt_cv_deplibs_check_method=pass_all
  5623. ;;
  5624. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5625. lt_cv_deplibs_check_method=pass_all
  5626. ;;
  5627. sysv4 | sysv4.3*)
  5628. case $host_vendor in
  5629. motorola)
  5630. 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]'
  5631. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5632. ;;
  5633. ncr)
  5634. lt_cv_deplibs_check_method=pass_all
  5635. ;;
  5636. sequent)
  5637. lt_cv_file_magic_cmd='/bin/file'
  5638. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5639. ;;
  5640. sni)
  5641. lt_cv_file_magic_cmd='/bin/file'
  5642. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5643. lt_cv_file_magic_test_file=/lib/libc.so
  5644. ;;
  5645. siemens)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. pc)
  5649. lt_cv_deplibs_check_method=pass_all
  5650. ;;
  5651. esac
  5652. ;;
  5653. tpf*)
  5654. lt_cv_deplibs_check_method=pass_all
  5655. ;;
  5656. esac
  5657. fi
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5659. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5660. file_magic_glob=
  5661. want_nocaseglob=no
  5662. if test "$build" = "$host"; then
  5663. case $host_os in
  5664. mingw* | pw32*)
  5665. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5666. want_nocaseglob=yes
  5667. else
  5668. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5669. fi
  5670. ;;
  5671. esac
  5672. fi
  5673. file_magic_cmd=$lt_cv_file_magic_cmd
  5674. deplibs_check_method=$lt_cv_deplibs_check_method
  5675. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5676. if test -n "$ac_tool_prefix"; then
  5677. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5678. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5680. $as_echo_n "checking for $ac_word... " >&6; }
  5681. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5682. $as_echo_n "(cached) " >&6
  5683. else
  5684. if test -n "$DLLTOOL"; then
  5685. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. test -z "$as_dir" && as_dir=.
  5692. for ac_exec_ext in '' $ac_executable_extensions; do
  5693. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5694. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5696. break 2
  5697. fi
  5698. done
  5699. done
  5700. IFS=$as_save_IFS
  5701. fi
  5702. fi
  5703. DLLTOOL=$ac_cv_prog_DLLTOOL
  5704. if test -n "$DLLTOOL"; then
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5706. $as_echo "$DLLTOOL" >&6; }
  5707. else
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5709. $as_echo "no" >&6; }
  5710. fi
  5711. fi
  5712. if test -z "$ac_cv_prog_DLLTOOL"; then
  5713. ac_ct_DLLTOOL=$DLLTOOL
  5714. # Extract the first word of "dlltool", so it can be a program name with args.
  5715. set dummy dlltool; ac_word=$2
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5717. $as_echo_n "checking for $ac_word... " >&6; }
  5718. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. if test -n "$ac_ct_DLLTOOL"; then
  5722. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5723. else
  5724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5725. for as_dir in $PATH
  5726. do
  5727. IFS=$as_save_IFS
  5728. test -z "$as_dir" && as_dir=.
  5729. for ac_exec_ext in '' $ac_executable_extensions; do
  5730. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5731. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5733. break 2
  5734. fi
  5735. done
  5736. done
  5737. IFS=$as_save_IFS
  5738. fi
  5739. fi
  5740. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5741. if test -n "$ac_ct_DLLTOOL"; then
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5743. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5744. else
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5746. $as_echo "no" >&6; }
  5747. fi
  5748. if test "x$ac_ct_DLLTOOL" = x; then
  5749. DLLTOOL="false"
  5750. else
  5751. case $cross_compiling:$ac_tool_warned in
  5752. yes:)
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5755. ac_tool_warned=yes ;;
  5756. esac
  5757. DLLTOOL=$ac_ct_DLLTOOL
  5758. fi
  5759. else
  5760. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5761. fi
  5762. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5764. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5765. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5769. case $host_os in
  5770. cygwin* | mingw* | pw32* | cegcc*)
  5771. # two different shell functions defined in ltmain.sh
  5772. # decide which to use based on capabilities of $DLLTOOL
  5773. case `$DLLTOOL --help 2>&1` in
  5774. *--identify-strict*)
  5775. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5776. ;;
  5777. *)
  5778. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5779. ;;
  5780. esac
  5781. ;;
  5782. *)
  5783. # fallback: assume linklib IS sharedlib
  5784. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5785. ;;
  5786. esac
  5787. fi
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5789. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5790. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5791. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5792. if test -n "$ac_tool_prefix"; then
  5793. for ac_prog in ar
  5794. do
  5795. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5796. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5798. $as_echo_n "checking for $ac_word... " >&6; }
  5799. if ${ac_cv_prog_AR+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. if test -n "$AR"; then
  5803. ac_cv_prog_AR="$AR" # Let the user override the test.
  5804. else
  5805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806. for as_dir in $PATH
  5807. do
  5808. IFS=$as_save_IFS
  5809. test -z "$as_dir" && as_dir=.
  5810. for ac_exec_ext in '' $ac_executable_extensions; do
  5811. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5812. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814. break 2
  5815. fi
  5816. done
  5817. done
  5818. IFS=$as_save_IFS
  5819. fi
  5820. fi
  5821. AR=$ac_cv_prog_AR
  5822. if test -n "$AR"; then
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5824. $as_echo "$AR" >&6; }
  5825. else
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5827. $as_echo "no" >&6; }
  5828. fi
  5829. test -n "$AR" && break
  5830. done
  5831. fi
  5832. if test -z "$AR"; then
  5833. ac_ct_AR=$AR
  5834. for ac_prog in ar
  5835. do
  5836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5837. set dummy $ac_prog; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$ac_ct_AR"; then
  5844. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5853. ac_cv_prog_ac_ct_AR="$ac_prog"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5863. if test -n "$ac_ct_AR"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5865. $as_echo "$ac_ct_AR" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. test -n "$ac_ct_AR" && break
  5871. done
  5872. if test "x$ac_ct_AR" = x; then
  5873. AR="false"
  5874. else
  5875. case $cross_compiling:$ac_tool_warned in
  5876. yes:)
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5879. ac_tool_warned=yes ;;
  5880. esac
  5881. AR=$ac_ct_AR
  5882. fi
  5883. fi
  5884. : ${AR=ar}
  5885. : ${AR_FLAGS=cru}
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5887. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5888. if ${lt_cv_ar_at_file+:} false; then :
  5889. $as_echo_n "(cached) " >&6
  5890. else
  5891. lt_cv_ar_at_file=no
  5892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5893. /* end confdefs.h. */
  5894. int
  5895. main ()
  5896. {
  5897. ;
  5898. return 0;
  5899. }
  5900. _ACEOF
  5901. if ac_fn_cxx_try_compile "$LINENO"; then :
  5902. echo conftest.$ac_objext > conftest.lst
  5903. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5904. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5905. (eval $lt_ar_try) 2>&5
  5906. ac_status=$?
  5907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5908. test $ac_status = 0; }
  5909. if test "$ac_status" -eq 0; then
  5910. # Ensure the archiver fails upon bogus file names.
  5911. rm -f conftest.$ac_objext libconftest.a
  5912. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5913. (eval $lt_ar_try) 2>&5
  5914. ac_status=$?
  5915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5916. test $ac_status = 0; }
  5917. if test "$ac_status" -ne 0; then
  5918. lt_cv_ar_at_file=@
  5919. fi
  5920. fi
  5921. rm -f conftest.* libconftest.a
  5922. fi
  5923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5926. $as_echo "$lt_cv_ar_at_file" >&6; }
  5927. if test "x$lt_cv_ar_at_file" = xno; then
  5928. archiver_list_spec=
  5929. else
  5930. archiver_list_spec=$lt_cv_ar_at_file
  5931. fi
  5932. if test -n "$ac_tool_prefix"; then
  5933. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5934. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5936. $as_echo_n "checking for $ac_word... " >&6; }
  5937. if ${ac_cv_prog_STRIP+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. if test -n "$STRIP"; then
  5941. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5942. else
  5943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5944. for as_dir in $PATH
  5945. do
  5946. IFS=$as_save_IFS
  5947. test -z "$as_dir" && as_dir=.
  5948. for ac_exec_ext in '' $ac_executable_extensions; do
  5949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5950. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5952. break 2
  5953. fi
  5954. done
  5955. done
  5956. IFS=$as_save_IFS
  5957. fi
  5958. fi
  5959. STRIP=$ac_cv_prog_STRIP
  5960. if test -n "$STRIP"; then
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5962. $as_echo "$STRIP" >&6; }
  5963. else
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5965. $as_echo "no" >&6; }
  5966. fi
  5967. fi
  5968. if test -z "$ac_cv_prog_STRIP"; then
  5969. ac_ct_STRIP=$STRIP
  5970. # Extract the first word of "strip", so it can be a program name with args.
  5971. set dummy strip; ac_word=$2
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5973. $as_echo_n "checking for $ac_word... " >&6; }
  5974. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5975. $as_echo_n "(cached) " >&6
  5976. else
  5977. if test -n "$ac_ct_STRIP"; then
  5978. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5979. else
  5980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5981. for as_dir in $PATH
  5982. do
  5983. IFS=$as_save_IFS
  5984. test -z "$as_dir" && as_dir=.
  5985. for ac_exec_ext in '' $ac_executable_extensions; do
  5986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5987. ac_cv_prog_ac_ct_STRIP="strip"
  5988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5989. break 2
  5990. fi
  5991. done
  5992. done
  5993. IFS=$as_save_IFS
  5994. fi
  5995. fi
  5996. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5997. if test -n "$ac_ct_STRIP"; then
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5999. $as_echo "$ac_ct_STRIP" >&6; }
  6000. else
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6002. $as_echo "no" >&6; }
  6003. fi
  6004. if test "x$ac_ct_STRIP" = x; then
  6005. STRIP=":"
  6006. else
  6007. case $cross_compiling:$ac_tool_warned in
  6008. yes:)
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6011. ac_tool_warned=yes ;;
  6012. esac
  6013. STRIP=$ac_ct_STRIP
  6014. fi
  6015. else
  6016. STRIP="$ac_cv_prog_STRIP"
  6017. fi
  6018. test -z "$STRIP" && STRIP=:
  6019. if test -n "$ac_tool_prefix"; then
  6020. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6021. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6023. $as_echo_n "checking for $ac_word... " >&6; }
  6024. if ${ac_cv_prog_RANLIB+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. if test -n "$RANLIB"; then
  6028. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6029. else
  6030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6031. for as_dir in $PATH
  6032. do
  6033. IFS=$as_save_IFS
  6034. test -z "$as_dir" && as_dir=.
  6035. for ac_exec_ext in '' $ac_executable_extensions; do
  6036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6037. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6039. break 2
  6040. fi
  6041. done
  6042. done
  6043. IFS=$as_save_IFS
  6044. fi
  6045. fi
  6046. RANLIB=$ac_cv_prog_RANLIB
  6047. if test -n "$RANLIB"; then
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6049. $as_echo "$RANLIB" >&6; }
  6050. else
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6052. $as_echo "no" >&6; }
  6053. fi
  6054. fi
  6055. if test -z "$ac_cv_prog_RANLIB"; then
  6056. ac_ct_RANLIB=$RANLIB
  6057. # Extract the first word of "ranlib", so it can be a program name with args.
  6058. set dummy ranlib; ac_word=$2
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6060. $as_echo_n "checking for $ac_word... " >&6; }
  6061. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. if test -n "$ac_ct_RANLIB"; then
  6065. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6066. else
  6067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6068. for as_dir in $PATH
  6069. do
  6070. IFS=$as_save_IFS
  6071. test -z "$as_dir" && as_dir=.
  6072. for ac_exec_ext in '' $ac_executable_extensions; do
  6073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6074. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6076. break 2
  6077. fi
  6078. done
  6079. done
  6080. IFS=$as_save_IFS
  6081. fi
  6082. fi
  6083. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6084. if test -n "$ac_ct_RANLIB"; then
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6086. $as_echo "$ac_ct_RANLIB" >&6; }
  6087. else
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6089. $as_echo "no" >&6; }
  6090. fi
  6091. if test "x$ac_ct_RANLIB" = x; then
  6092. RANLIB=":"
  6093. else
  6094. case $cross_compiling:$ac_tool_warned in
  6095. yes:)
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6097. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6098. ac_tool_warned=yes ;;
  6099. esac
  6100. RANLIB=$ac_ct_RANLIB
  6101. fi
  6102. else
  6103. RANLIB="$ac_cv_prog_RANLIB"
  6104. fi
  6105. test -z "$RANLIB" && RANLIB=:
  6106. # Determine commands to create old-style static archives.
  6107. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6108. old_postinstall_cmds='chmod 644 $oldlib'
  6109. old_postuninstall_cmds=
  6110. if test -n "$RANLIB"; then
  6111. case $host_os in
  6112. openbsd*)
  6113. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6114. ;;
  6115. *)
  6116. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6117. ;;
  6118. esac
  6119. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6120. fi
  6121. case $host_os in
  6122. darwin*)
  6123. lock_old_archive_extraction=yes ;;
  6124. *)
  6125. lock_old_archive_extraction=no ;;
  6126. esac
  6127. # If no C compiler was specified, use CC.
  6128. LTCC=${LTCC-"$CC"}
  6129. # If no C compiler flags were specified, use CFLAGS.
  6130. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6131. # Allow CC to be a program name with arguments.
  6132. compiler=$CC
  6133. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6135. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6136. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. # These are sane defaults that work on at least a few old systems.
  6140. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6141. # Character class describing NM global symbol codes.
  6142. symcode='[BCDEGRST]'
  6143. # Regexp to match symbols that can be accessed directly from C.
  6144. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6145. # Define system-specific variables.
  6146. case $host_os in
  6147. aix*)
  6148. symcode='[BCDT]'
  6149. ;;
  6150. cygwin* | mingw* | pw32* | cegcc*)
  6151. symcode='[ABCDGISTW]'
  6152. ;;
  6153. hpux*)
  6154. if test "$host_cpu" = ia64; then
  6155. symcode='[ABCDEGRST]'
  6156. fi
  6157. ;;
  6158. irix* | nonstopux*)
  6159. symcode='[BCDEGRST]'
  6160. ;;
  6161. osf*)
  6162. symcode='[BCDEGQRST]'
  6163. ;;
  6164. solaris*)
  6165. symcode='[BDRT]'
  6166. ;;
  6167. sco3.2v5*)
  6168. symcode='[DT]'
  6169. ;;
  6170. sysv4.2uw2*)
  6171. symcode='[DT]'
  6172. ;;
  6173. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6174. symcode='[ABDT]'
  6175. ;;
  6176. sysv4)
  6177. symcode='[DFNSTU]'
  6178. ;;
  6179. esac
  6180. # If we're using GNU nm, then use its standard symbol codes.
  6181. case `$NM -V 2>&1` in
  6182. *GNU* | *'with BFD'*)
  6183. symcode='[ABCDGIRSTW]' ;;
  6184. esac
  6185. # Transform an extracted symbol line into a proper C declaration.
  6186. # Some systems (esp. on ia64) link data and code symbols differently,
  6187. # so use this general approach.
  6188. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6189. # Transform an extracted symbol line into symbol name and symbol address
  6190. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6191. 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'"
  6192. # Handle CRLF in mingw tool chain
  6193. opt_cr=
  6194. case $build_os in
  6195. mingw*)
  6196. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6197. ;;
  6198. esac
  6199. # Try without a prefix underscore, then with it.
  6200. for ac_symprfx in "" "_"; do
  6201. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6202. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6203. # Write the raw and C identifiers.
  6204. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6205. # Fake it for dumpbin and say T for any non-static function
  6206. # and D for any global variable.
  6207. # Also find C++ and __fastcall symbols from MSVC++,
  6208. # which start with @ or ?.
  6209. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6210. " {last_section=section; section=\$ 3};"\
  6211. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6212. " \$ 0!~/External *\|/{next};"\
  6213. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6214. " {if(hide[section]) next};"\
  6215. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6216. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6217. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6218. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6219. " ' prfx=^$ac_symprfx"
  6220. else
  6221. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6222. fi
  6223. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6224. # Check to see that the pipe works correctly.
  6225. pipe_works=no
  6226. rm -f conftest*
  6227. cat > conftest.$ac_ext <<_LT_EOF
  6228. #ifdef __cplusplus
  6229. extern "C" {
  6230. #endif
  6231. char nm_test_var;
  6232. void nm_test_func(void);
  6233. void nm_test_func(void){}
  6234. #ifdef __cplusplus
  6235. }
  6236. #endif
  6237. int main(){nm_test_var='a';nm_test_func();return(0);}
  6238. _LT_EOF
  6239. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6240. (eval $ac_compile) 2>&5
  6241. ac_status=$?
  6242. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6243. test $ac_status = 0; }; then
  6244. # Now try to grab the symbols.
  6245. nlist=conftest.nm
  6246. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6247. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6248. ac_status=$?
  6249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6250. test $ac_status = 0; } && test -s "$nlist"; then
  6251. # Try sorting and uniquifying the output.
  6252. if sort "$nlist" | uniq > "$nlist"T; then
  6253. mv -f "$nlist"T "$nlist"
  6254. else
  6255. rm -f "$nlist"T
  6256. fi
  6257. # Make sure that we snagged all the symbols we need.
  6258. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6259. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6260. cat <<_LT_EOF > conftest.$ac_ext
  6261. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6262. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6263. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6264. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6265. # define LT_DLSYM_CONST
  6266. #elif defined(__osf__)
  6267. /* This system does not cope well with relocations in const data. */
  6268. # define LT_DLSYM_CONST
  6269. #else
  6270. # define LT_DLSYM_CONST const
  6271. #endif
  6272. #ifdef __cplusplus
  6273. extern "C" {
  6274. #endif
  6275. _LT_EOF
  6276. # Now generate the symbol file.
  6277. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6278. cat <<_LT_EOF >> conftest.$ac_ext
  6279. /* The mapping between symbol names and symbols. */
  6280. LT_DLSYM_CONST struct {
  6281. const char *name;
  6282. void *address;
  6283. }
  6284. lt__PROGRAM__LTX_preloaded_symbols[] =
  6285. {
  6286. { "@PROGRAM@", (void *) 0 },
  6287. _LT_EOF
  6288. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6289. cat <<\_LT_EOF >> conftest.$ac_ext
  6290. {0, (void *) 0}
  6291. };
  6292. /* This works around a problem in FreeBSD linker */
  6293. #ifdef FREEBSD_WORKAROUND
  6294. static const void *lt_preloaded_setup() {
  6295. return lt__PROGRAM__LTX_preloaded_symbols;
  6296. }
  6297. #endif
  6298. #ifdef __cplusplus
  6299. }
  6300. #endif
  6301. _LT_EOF
  6302. # Now try linking the two files.
  6303. mv conftest.$ac_objext conftstm.$ac_objext
  6304. lt_globsym_save_LIBS=$LIBS
  6305. lt_globsym_save_CFLAGS=$CFLAGS
  6306. LIBS="conftstm.$ac_objext"
  6307. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6309. (eval $ac_link) 2>&5
  6310. ac_status=$?
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6312. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6313. pipe_works=yes
  6314. fi
  6315. LIBS=$lt_globsym_save_LIBS
  6316. CFLAGS=$lt_globsym_save_CFLAGS
  6317. else
  6318. echo "cannot find nm_test_func in $nlist" >&5
  6319. fi
  6320. else
  6321. echo "cannot find nm_test_var in $nlist" >&5
  6322. fi
  6323. else
  6324. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6325. fi
  6326. else
  6327. echo "$progname: failed program was:" >&5
  6328. cat conftest.$ac_ext >&5
  6329. fi
  6330. rm -rf conftest* conftst*
  6331. # Do not use the global_symbol_pipe unless it works.
  6332. if test "$pipe_works" = yes; then
  6333. break
  6334. else
  6335. lt_cv_sys_global_symbol_pipe=
  6336. fi
  6337. done
  6338. fi
  6339. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6340. lt_cv_sys_global_symbol_to_cdecl=
  6341. fi
  6342. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6344. $as_echo "failed" >&6; }
  6345. else
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6347. $as_echo "ok" >&6; }
  6348. fi
  6349. # Response file support.
  6350. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6351. nm_file_list_spec='@'
  6352. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6353. nm_file_list_spec='@'
  6354. fi
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6356. $as_echo_n "checking for sysroot... " >&6; }
  6357. # Check whether --with-sysroot was given.
  6358. if test "${with_sysroot+set}" = set; then :
  6359. withval=$with_sysroot;
  6360. else
  6361. with_sysroot=no
  6362. fi
  6363. lt_sysroot=
  6364. case ${with_sysroot} in #(
  6365. yes)
  6366. if test "$GCC" = yes; then
  6367. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6368. fi
  6369. ;; #(
  6370. /*)
  6371. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6372. ;; #(
  6373. no|'')
  6374. ;; #(
  6375. *)
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6377. $as_echo "${with_sysroot}" >&6; }
  6378. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6379. ;;
  6380. esac
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6382. $as_echo "${lt_sysroot:-no}" >&6; }
  6383. # Check whether --enable-libtool-lock was given.
  6384. if test "${enable_libtool_lock+set}" = set; then :
  6385. enableval=$enable_libtool_lock;
  6386. fi
  6387. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6388. # Some flags need to be propagated to the compiler or linker for good
  6389. # libtool support.
  6390. case $host in
  6391. ia64-*-hpux*)
  6392. # Find out which ABI we are using.
  6393. echo 'int i;' > conftest.$ac_ext
  6394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6395. (eval $ac_compile) 2>&5
  6396. ac_status=$?
  6397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6398. test $ac_status = 0; }; then
  6399. case `/usr/bin/file conftest.$ac_objext` in
  6400. *ELF-32*)
  6401. HPUX_IA64_MODE="32"
  6402. ;;
  6403. *ELF-64*)
  6404. HPUX_IA64_MODE="64"
  6405. ;;
  6406. esac
  6407. fi
  6408. rm -rf conftest*
  6409. ;;
  6410. *-*-irix6*)
  6411. # Find out which ABI we are using.
  6412. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6413. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6414. (eval $ac_compile) 2>&5
  6415. ac_status=$?
  6416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6417. test $ac_status = 0; }; then
  6418. if test "$lt_cv_prog_gnu_ld" = yes; then
  6419. case `/usr/bin/file conftest.$ac_objext` in
  6420. *32-bit*)
  6421. LD="${LD-ld} -melf32bsmip"
  6422. ;;
  6423. *N32*)
  6424. LD="${LD-ld} -melf32bmipn32"
  6425. ;;
  6426. *64-bit*)
  6427. LD="${LD-ld} -melf64bmip"
  6428. ;;
  6429. esac
  6430. else
  6431. case `/usr/bin/file conftest.$ac_objext` in
  6432. *32-bit*)
  6433. LD="${LD-ld} -32"
  6434. ;;
  6435. *N32*)
  6436. LD="${LD-ld} -n32"
  6437. ;;
  6438. *64-bit*)
  6439. LD="${LD-ld} -64"
  6440. ;;
  6441. esac
  6442. fi
  6443. fi
  6444. rm -rf conftest*
  6445. ;;
  6446. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6447. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6448. # Find out which ABI we are using.
  6449. echo 'int i;' > conftest.$ac_ext
  6450. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6451. (eval $ac_compile) 2>&5
  6452. ac_status=$?
  6453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6454. test $ac_status = 0; }; then
  6455. case `/usr/bin/file conftest.o` in
  6456. *32-bit*)
  6457. case $host in
  6458. x86_64-*kfreebsd*-gnu)
  6459. LD="${LD-ld} -m elf_i386_fbsd"
  6460. ;;
  6461. x86_64-*linux*)
  6462. LD="${LD-ld} -m elf_i386"
  6463. ;;
  6464. ppc64-*linux*|powerpc64-*linux*)
  6465. LD="${LD-ld} -m elf32ppclinux"
  6466. ;;
  6467. s390x-*linux*)
  6468. LD="${LD-ld} -m elf_s390"
  6469. ;;
  6470. sparc64-*linux*)
  6471. LD="${LD-ld} -m elf32_sparc"
  6472. ;;
  6473. esac
  6474. ;;
  6475. *64-bit*)
  6476. case $host in
  6477. x86_64-*kfreebsd*-gnu)
  6478. LD="${LD-ld} -m elf_x86_64_fbsd"
  6479. ;;
  6480. x86_64-*linux*)
  6481. LD="${LD-ld} -m elf_x86_64"
  6482. ;;
  6483. ppc*-*linux*|powerpc*-*linux*)
  6484. LD="${LD-ld} -m elf64ppc"
  6485. ;;
  6486. s390*-*linux*|s390*-*tpf*)
  6487. LD="${LD-ld} -m elf64_s390"
  6488. ;;
  6489. sparc*-*linux*)
  6490. LD="${LD-ld} -m elf64_sparc"
  6491. ;;
  6492. esac
  6493. ;;
  6494. esac
  6495. fi
  6496. rm -rf conftest*
  6497. ;;
  6498. *-*-sco3.2v5*)
  6499. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6500. SAVE_CFLAGS="$CFLAGS"
  6501. CFLAGS="$CFLAGS -belf"
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6503. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6504. if ${lt_cv_cc_needs_belf+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. ac_ext=c
  6508. ac_cpp='$CPP $CPPFLAGS'
  6509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6513. /* end confdefs.h. */
  6514. int
  6515. main ()
  6516. {
  6517. ;
  6518. return 0;
  6519. }
  6520. _ACEOF
  6521. if ac_fn_c_try_link "$LINENO"; then :
  6522. lt_cv_cc_needs_belf=yes
  6523. else
  6524. lt_cv_cc_needs_belf=no
  6525. fi
  6526. rm -f core conftest.err conftest.$ac_objext \
  6527. conftest$ac_exeext conftest.$ac_ext
  6528. ac_ext=c
  6529. ac_cpp='$CPP $CPPFLAGS'
  6530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6533. fi
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6535. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6536. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6537. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6538. CFLAGS="$SAVE_CFLAGS"
  6539. fi
  6540. ;;
  6541. sparc*-*solaris*)
  6542. # Find out which ABI we are using.
  6543. echo 'int i;' > conftest.$ac_ext
  6544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6545. (eval $ac_compile) 2>&5
  6546. ac_status=$?
  6547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6548. test $ac_status = 0; }; then
  6549. case `/usr/bin/file conftest.o` in
  6550. *64-bit*)
  6551. case $lt_cv_prog_gnu_ld in
  6552. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6553. *)
  6554. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6555. LD="${LD-ld} -64"
  6556. fi
  6557. ;;
  6558. esac
  6559. ;;
  6560. esac
  6561. fi
  6562. rm -rf conftest*
  6563. ;;
  6564. esac
  6565. need_locks="$enable_libtool_lock"
  6566. if test -n "$ac_tool_prefix"; then
  6567. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6568. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6570. $as_echo_n "checking for $ac_word... " >&6; }
  6571. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. if test -n "$MANIFEST_TOOL"; then
  6575. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6584. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6594. if test -n "$MANIFEST_TOOL"; then
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6596. $as_echo "$MANIFEST_TOOL" >&6; }
  6597. else
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. $as_echo "no" >&6; }
  6600. fi
  6601. fi
  6602. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6603. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6604. # Extract the first word of "mt", so it can be a program name with args.
  6605. set dummy mt; ac_word=$2
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. $as_echo_n "checking for $ac_word... " >&6; }
  6608. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6612. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6613. else
  6614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6615. for as_dir in $PATH
  6616. do
  6617. IFS=$as_save_IFS
  6618. test -z "$as_dir" && as_dir=.
  6619. for ac_exec_ext in '' $ac_executable_extensions; do
  6620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6621. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6623. break 2
  6624. fi
  6625. done
  6626. done
  6627. IFS=$as_save_IFS
  6628. fi
  6629. fi
  6630. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6631. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6633. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6634. else
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6636. $as_echo "no" >&6; }
  6637. fi
  6638. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6639. MANIFEST_TOOL=":"
  6640. else
  6641. case $cross_compiling:$ac_tool_warned in
  6642. yes:)
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6645. ac_tool_warned=yes ;;
  6646. esac
  6647. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6648. fi
  6649. else
  6650. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6651. fi
  6652. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6654. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6655. if ${lt_cv_path_mainfest_tool+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. lt_cv_path_mainfest_tool=no
  6659. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6660. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6661. cat conftest.err >&5
  6662. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6663. lt_cv_path_mainfest_tool=yes
  6664. fi
  6665. rm -f conftest*
  6666. fi
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6668. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6669. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6670. MANIFEST_TOOL=:
  6671. fi
  6672. case $host_os in
  6673. rhapsody* | darwin*)
  6674. if test -n "$ac_tool_prefix"; then
  6675. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6676. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6678. $as_echo_n "checking for $ac_word... " >&6; }
  6679. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. if test -n "$DSYMUTIL"; then
  6683. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6684. else
  6685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6686. for as_dir in $PATH
  6687. do
  6688. IFS=$as_save_IFS
  6689. test -z "$as_dir" && as_dir=.
  6690. for ac_exec_ext in '' $ac_executable_extensions; do
  6691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6692. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6694. break 2
  6695. fi
  6696. done
  6697. done
  6698. IFS=$as_save_IFS
  6699. fi
  6700. fi
  6701. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6702. if test -n "$DSYMUTIL"; then
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6704. $as_echo "$DSYMUTIL" >&6; }
  6705. else
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6707. $as_echo "no" >&6; }
  6708. fi
  6709. fi
  6710. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6711. ac_ct_DSYMUTIL=$DSYMUTIL
  6712. # Extract the first word of "dsymutil", so it can be a program name with args.
  6713. set dummy dsymutil; ac_word=$2
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6715. $as_echo_n "checking for $ac_word... " >&6; }
  6716. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. if test -n "$ac_ct_DSYMUTIL"; then
  6720. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6721. else
  6722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6723. for as_dir in $PATH
  6724. do
  6725. IFS=$as_save_IFS
  6726. test -z "$as_dir" && as_dir=.
  6727. for ac_exec_ext in '' $ac_executable_extensions; do
  6728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6729. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6731. break 2
  6732. fi
  6733. done
  6734. done
  6735. IFS=$as_save_IFS
  6736. fi
  6737. fi
  6738. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6739. if test -n "$ac_ct_DSYMUTIL"; then
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6741. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6742. else
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6744. $as_echo "no" >&6; }
  6745. fi
  6746. if test "x$ac_ct_DSYMUTIL" = x; then
  6747. DSYMUTIL=":"
  6748. else
  6749. case $cross_compiling:$ac_tool_warned in
  6750. yes:)
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6752. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6753. ac_tool_warned=yes ;;
  6754. esac
  6755. DSYMUTIL=$ac_ct_DSYMUTIL
  6756. fi
  6757. else
  6758. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6759. fi
  6760. if test -n "$ac_tool_prefix"; then
  6761. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6762. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6764. $as_echo_n "checking for $ac_word... " >&6; }
  6765. if ${ac_cv_prog_NMEDIT+:} false; then :
  6766. $as_echo_n "(cached) " >&6
  6767. else
  6768. if test -n "$NMEDIT"; then
  6769. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6770. else
  6771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6772. for as_dir in $PATH
  6773. do
  6774. IFS=$as_save_IFS
  6775. test -z "$as_dir" && as_dir=.
  6776. for ac_exec_ext in '' $ac_executable_extensions; do
  6777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6778. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6780. break 2
  6781. fi
  6782. done
  6783. done
  6784. IFS=$as_save_IFS
  6785. fi
  6786. fi
  6787. NMEDIT=$ac_cv_prog_NMEDIT
  6788. if test -n "$NMEDIT"; then
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6790. $as_echo "$NMEDIT" >&6; }
  6791. else
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6793. $as_echo "no" >&6; }
  6794. fi
  6795. fi
  6796. if test -z "$ac_cv_prog_NMEDIT"; then
  6797. ac_ct_NMEDIT=$NMEDIT
  6798. # Extract the first word of "nmedit", so it can be a program name with args.
  6799. set dummy nmedit; ac_word=$2
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6801. $as_echo_n "checking for $ac_word... " >&6; }
  6802. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6803. $as_echo_n "(cached) " >&6
  6804. else
  6805. if test -n "$ac_ct_NMEDIT"; then
  6806. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6807. else
  6808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6809. for as_dir in $PATH
  6810. do
  6811. IFS=$as_save_IFS
  6812. test -z "$as_dir" && as_dir=.
  6813. for ac_exec_ext in '' $ac_executable_extensions; do
  6814. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6815. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6817. break 2
  6818. fi
  6819. done
  6820. done
  6821. IFS=$as_save_IFS
  6822. fi
  6823. fi
  6824. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6825. if test -n "$ac_ct_NMEDIT"; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6827. $as_echo "$ac_ct_NMEDIT" >&6; }
  6828. else
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6830. $as_echo "no" >&6; }
  6831. fi
  6832. if test "x$ac_ct_NMEDIT" = x; then
  6833. NMEDIT=":"
  6834. else
  6835. case $cross_compiling:$ac_tool_warned in
  6836. yes:)
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6839. ac_tool_warned=yes ;;
  6840. esac
  6841. NMEDIT=$ac_ct_NMEDIT
  6842. fi
  6843. else
  6844. NMEDIT="$ac_cv_prog_NMEDIT"
  6845. fi
  6846. if test -n "$ac_tool_prefix"; then
  6847. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6848. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6850. $as_echo_n "checking for $ac_word... " >&6; }
  6851. if ${ac_cv_prog_LIPO+:} false; then :
  6852. $as_echo_n "(cached) " >&6
  6853. else
  6854. if test -n "$LIPO"; then
  6855. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6856. else
  6857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6858. for as_dir in $PATH
  6859. do
  6860. IFS=$as_save_IFS
  6861. test -z "$as_dir" && as_dir=.
  6862. for ac_exec_ext in '' $ac_executable_extensions; do
  6863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6864. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6866. break 2
  6867. fi
  6868. done
  6869. done
  6870. IFS=$as_save_IFS
  6871. fi
  6872. fi
  6873. LIPO=$ac_cv_prog_LIPO
  6874. if test -n "$LIPO"; then
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6876. $as_echo "$LIPO" >&6; }
  6877. else
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6879. $as_echo "no" >&6; }
  6880. fi
  6881. fi
  6882. if test -z "$ac_cv_prog_LIPO"; then
  6883. ac_ct_LIPO=$LIPO
  6884. # Extract the first word of "lipo", so it can be a program name with args.
  6885. set dummy lipo; ac_word=$2
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6887. $as_echo_n "checking for $ac_word... " >&6; }
  6888. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6889. $as_echo_n "(cached) " >&6
  6890. else
  6891. if test -n "$ac_ct_LIPO"; then
  6892. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6893. else
  6894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6895. for as_dir in $PATH
  6896. do
  6897. IFS=$as_save_IFS
  6898. test -z "$as_dir" && as_dir=.
  6899. for ac_exec_ext in '' $ac_executable_extensions; do
  6900. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6901. ac_cv_prog_ac_ct_LIPO="lipo"
  6902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6903. break 2
  6904. fi
  6905. done
  6906. done
  6907. IFS=$as_save_IFS
  6908. fi
  6909. fi
  6910. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6911. if test -n "$ac_ct_LIPO"; then
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6913. $as_echo "$ac_ct_LIPO" >&6; }
  6914. else
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6916. $as_echo "no" >&6; }
  6917. fi
  6918. if test "x$ac_ct_LIPO" = x; then
  6919. LIPO=":"
  6920. else
  6921. case $cross_compiling:$ac_tool_warned in
  6922. yes:)
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6925. ac_tool_warned=yes ;;
  6926. esac
  6927. LIPO=$ac_ct_LIPO
  6928. fi
  6929. else
  6930. LIPO="$ac_cv_prog_LIPO"
  6931. fi
  6932. if test -n "$ac_tool_prefix"; then
  6933. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6934. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6936. $as_echo_n "checking for $ac_word... " >&6; }
  6937. if ${ac_cv_prog_OTOOL+:} false; then :
  6938. $as_echo_n "(cached) " >&6
  6939. else
  6940. if test -n "$OTOOL"; then
  6941. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6942. else
  6943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6944. for as_dir in $PATH
  6945. do
  6946. IFS=$as_save_IFS
  6947. test -z "$as_dir" && as_dir=.
  6948. for ac_exec_ext in '' $ac_executable_extensions; do
  6949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6950. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6952. break 2
  6953. fi
  6954. done
  6955. done
  6956. IFS=$as_save_IFS
  6957. fi
  6958. fi
  6959. OTOOL=$ac_cv_prog_OTOOL
  6960. if test -n "$OTOOL"; then
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6962. $as_echo "$OTOOL" >&6; }
  6963. else
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6965. $as_echo "no" >&6; }
  6966. fi
  6967. fi
  6968. if test -z "$ac_cv_prog_OTOOL"; then
  6969. ac_ct_OTOOL=$OTOOL
  6970. # Extract the first word of "otool", so it can be a program name with args.
  6971. set dummy otool; ac_word=$2
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6973. $as_echo_n "checking for $ac_word... " >&6; }
  6974. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6975. $as_echo_n "(cached) " >&6
  6976. else
  6977. if test -n "$ac_ct_OTOOL"; then
  6978. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6979. else
  6980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6981. for as_dir in $PATH
  6982. do
  6983. IFS=$as_save_IFS
  6984. test -z "$as_dir" && as_dir=.
  6985. for ac_exec_ext in '' $ac_executable_extensions; do
  6986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6987. ac_cv_prog_ac_ct_OTOOL="otool"
  6988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6989. break 2
  6990. fi
  6991. done
  6992. done
  6993. IFS=$as_save_IFS
  6994. fi
  6995. fi
  6996. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6997. if test -n "$ac_ct_OTOOL"; then
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6999. $as_echo "$ac_ct_OTOOL" >&6; }
  7000. else
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7002. $as_echo "no" >&6; }
  7003. fi
  7004. if test "x$ac_ct_OTOOL" = x; then
  7005. OTOOL=":"
  7006. else
  7007. case $cross_compiling:$ac_tool_warned in
  7008. yes:)
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7011. ac_tool_warned=yes ;;
  7012. esac
  7013. OTOOL=$ac_ct_OTOOL
  7014. fi
  7015. else
  7016. OTOOL="$ac_cv_prog_OTOOL"
  7017. fi
  7018. if test -n "$ac_tool_prefix"; then
  7019. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7020. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7022. $as_echo_n "checking for $ac_word... " >&6; }
  7023. if ${ac_cv_prog_OTOOL64+:} false; then :
  7024. $as_echo_n "(cached) " >&6
  7025. else
  7026. if test -n "$OTOOL64"; then
  7027. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7028. else
  7029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7030. for as_dir in $PATH
  7031. do
  7032. IFS=$as_save_IFS
  7033. test -z "$as_dir" && as_dir=.
  7034. for ac_exec_ext in '' $ac_executable_extensions; do
  7035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7036. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7038. break 2
  7039. fi
  7040. done
  7041. done
  7042. IFS=$as_save_IFS
  7043. fi
  7044. fi
  7045. OTOOL64=$ac_cv_prog_OTOOL64
  7046. if test -n "$OTOOL64"; then
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7048. $as_echo "$OTOOL64" >&6; }
  7049. else
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7051. $as_echo "no" >&6; }
  7052. fi
  7053. fi
  7054. if test -z "$ac_cv_prog_OTOOL64"; then
  7055. ac_ct_OTOOL64=$OTOOL64
  7056. # Extract the first word of "otool64", so it can be a program name with args.
  7057. set dummy otool64; ac_word=$2
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7059. $as_echo_n "checking for $ac_word... " >&6; }
  7060. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7061. $as_echo_n "(cached) " >&6
  7062. else
  7063. if test -n "$ac_ct_OTOOL64"; then
  7064. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7065. else
  7066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7067. for as_dir in $PATH
  7068. do
  7069. IFS=$as_save_IFS
  7070. test -z "$as_dir" && as_dir=.
  7071. for ac_exec_ext in '' $ac_executable_extensions; do
  7072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7073. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7075. break 2
  7076. fi
  7077. done
  7078. done
  7079. IFS=$as_save_IFS
  7080. fi
  7081. fi
  7082. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7083. if test -n "$ac_ct_OTOOL64"; then
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7085. $as_echo "$ac_ct_OTOOL64" >&6; }
  7086. else
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. $as_echo "no" >&6; }
  7089. fi
  7090. if test "x$ac_ct_OTOOL64" = x; then
  7091. OTOOL64=":"
  7092. else
  7093. case $cross_compiling:$ac_tool_warned in
  7094. yes:)
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7096. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7097. ac_tool_warned=yes ;;
  7098. esac
  7099. OTOOL64=$ac_ct_OTOOL64
  7100. fi
  7101. else
  7102. OTOOL64="$ac_cv_prog_OTOOL64"
  7103. fi
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7105. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7106. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7107. $as_echo_n "(cached) " >&6
  7108. else
  7109. lt_cv_apple_cc_single_mod=no
  7110. if test -z "${LT_MULTI_MODULE}"; then
  7111. # By default we will add the -single_module flag. You can override
  7112. # by either setting the environment variable LT_MULTI_MODULE
  7113. # non-empty at configure time, or by adding -multi_module to the
  7114. # link flags.
  7115. rm -rf libconftest.dylib*
  7116. echo "int foo(void){return 1;}" > conftest.c
  7117. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7118. -dynamiclib -Wl,-single_module conftest.c" >&5
  7119. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7120. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7121. _lt_result=$?
  7122. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7123. lt_cv_apple_cc_single_mod=yes
  7124. else
  7125. cat conftest.err >&5
  7126. fi
  7127. rm -rf libconftest.dylib*
  7128. rm -f conftest.*
  7129. fi
  7130. fi
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7132. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7134. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7135. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7136. $as_echo_n "(cached) " >&6
  7137. else
  7138. lt_cv_ld_exported_symbols_list=no
  7139. save_LDFLAGS=$LDFLAGS
  7140. echo "_main" > conftest.sym
  7141. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7143. /* end confdefs.h. */
  7144. int
  7145. main ()
  7146. {
  7147. ;
  7148. return 0;
  7149. }
  7150. _ACEOF
  7151. if ac_fn_c_try_link "$LINENO"; then :
  7152. lt_cv_ld_exported_symbols_list=yes
  7153. else
  7154. lt_cv_ld_exported_symbols_list=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext \
  7157. conftest$ac_exeext conftest.$ac_ext
  7158. LDFLAGS="$save_LDFLAGS"
  7159. fi
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7161. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7163. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7164. if ${lt_cv_ld_force_load+:} false; then :
  7165. $as_echo_n "(cached) " >&6
  7166. else
  7167. lt_cv_ld_force_load=no
  7168. cat > conftest.c << _LT_EOF
  7169. int forced_loaded() { return 2;}
  7170. _LT_EOF
  7171. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7172. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7173. echo "$AR cru libconftest.a conftest.o" >&5
  7174. $AR cru libconftest.a conftest.o 2>&5
  7175. echo "$RANLIB libconftest.a" >&5
  7176. $RANLIB libconftest.a 2>&5
  7177. cat > conftest.c << _LT_EOF
  7178. int main() { return 0;}
  7179. _LT_EOF
  7180. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7181. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7182. _lt_result=$?
  7183. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7184. lt_cv_ld_force_load=yes
  7185. else
  7186. cat conftest.err >&5
  7187. fi
  7188. rm -f conftest.err libconftest.a conftest conftest.c
  7189. rm -rf conftest.dSYM
  7190. fi
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7192. $as_echo "$lt_cv_ld_force_load" >&6; }
  7193. case $host_os in
  7194. rhapsody* | darwin1.[012])
  7195. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7196. darwin1.*)
  7197. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7198. darwin*) # darwin 5.x on
  7199. # if running on 10.5 or later, the deployment target defaults
  7200. # to the OS version, if on x86, and 10.4, the deployment
  7201. # target defaults to 10.4. Don't you love it?
  7202. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7203. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7204. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7205. 10.[012]*)
  7206. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7207. 10.*)
  7208. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7209. esac
  7210. ;;
  7211. esac
  7212. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7213. _lt_dar_single_mod='$single_module'
  7214. fi
  7215. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7216. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7217. else
  7218. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7219. fi
  7220. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7221. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7222. else
  7223. _lt_dsymutil=
  7224. fi
  7225. ;;
  7226. esac
  7227. for ac_header in dlfcn.h
  7228. do :
  7229. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7230. "
  7231. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7232. cat >>confdefs.h <<_ACEOF
  7233. #define HAVE_DLFCN_H 1
  7234. _ACEOF
  7235. fi
  7236. done
  7237. func_stripname_cnf ()
  7238. {
  7239. case ${2} in
  7240. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7241. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7242. esac
  7243. } # func_stripname_cnf
  7244. # Set options
  7245. enable_dlopen=no
  7246. enable_win32_dll=no
  7247. # Check whether --enable-shared was given.
  7248. if test "${enable_shared+set}" = set; then :
  7249. enableval=$enable_shared; p=${PACKAGE-default}
  7250. case $enableval in
  7251. yes) enable_shared=yes ;;
  7252. no) enable_shared=no ;;
  7253. *)
  7254. enable_shared=no
  7255. # Look at the argument we got. We use all the common list separators.
  7256. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7257. for pkg in $enableval; do
  7258. IFS="$lt_save_ifs"
  7259. if test "X$pkg" = "X$p"; then
  7260. enable_shared=yes
  7261. fi
  7262. done
  7263. IFS="$lt_save_ifs"
  7264. ;;
  7265. esac
  7266. else
  7267. enable_shared=yes
  7268. fi
  7269. # Check whether --with-pic was given.
  7270. if test "${with_pic+set}" = set; then :
  7271. withval=$with_pic; pic_mode="$withval"
  7272. else
  7273. pic_mode=default
  7274. fi
  7275. test -z "$pic_mode" && pic_mode=default
  7276. # Check whether --enable-fast-install was given.
  7277. if test "${enable_fast_install+set}" = set; then :
  7278. enableval=$enable_fast_install; p=${PACKAGE-default}
  7279. case $enableval in
  7280. yes) enable_fast_install=yes ;;
  7281. no) enable_fast_install=no ;;
  7282. *)
  7283. enable_fast_install=no
  7284. # Look at the argument we got. We use all the common list separators.
  7285. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7286. for pkg in $enableval; do
  7287. IFS="$lt_save_ifs"
  7288. if test "X$pkg" = "X$p"; then
  7289. enable_fast_install=yes
  7290. fi
  7291. done
  7292. IFS="$lt_save_ifs"
  7293. ;;
  7294. esac
  7295. else
  7296. enable_fast_install=yes
  7297. fi
  7298. # This can be used to rebuild libtool when needed
  7299. LIBTOOL_DEPS="$ltmain"
  7300. # Always use our own libtool.
  7301. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7302. test -z "$LN_S" && LN_S="ln -s"
  7303. if test -n "${ZSH_VERSION+set}" ; then
  7304. setopt NO_GLOB_SUBST
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7307. $as_echo_n "checking for objdir... " >&6; }
  7308. if ${lt_cv_objdir+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. rm -f .libs 2>/dev/null
  7312. mkdir .libs 2>/dev/null
  7313. if test -d .libs; then
  7314. lt_cv_objdir=.libs
  7315. else
  7316. # MS-DOS does not allow filenames that begin with a dot.
  7317. lt_cv_objdir=_libs
  7318. fi
  7319. rmdir .libs 2>/dev/null
  7320. fi
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7322. $as_echo "$lt_cv_objdir" >&6; }
  7323. objdir=$lt_cv_objdir
  7324. cat >>confdefs.h <<_ACEOF
  7325. #define LT_OBJDIR "$lt_cv_objdir/"
  7326. _ACEOF
  7327. case $host_os in
  7328. aix3*)
  7329. # AIX sometimes has problems with the GCC collect2 program. For some
  7330. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7331. # vanish in a puff of smoke.
  7332. if test "X${COLLECT_NAMES+set}" != Xset; then
  7333. COLLECT_NAMES=
  7334. export COLLECT_NAMES
  7335. fi
  7336. ;;
  7337. esac
  7338. # Global variables:
  7339. ofile=libtool
  7340. can_build_shared=yes
  7341. # All known linkers require a `.a' archive for static linking (except MSVC,
  7342. # which needs '.lib').
  7343. libext=a
  7344. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7345. old_CC="$CC"
  7346. old_CFLAGS="$CFLAGS"
  7347. # Set sane defaults for various variables
  7348. test -z "$CC" && CC=cc
  7349. test -z "$LTCC" && LTCC=$CC
  7350. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7351. test -z "$LD" && LD=ld
  7352. test -z "$ac_objext" && ac_objext=o
  7353. for cc_temp in $compiler""; do
  7354. case $cc_temp in
  7355. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7356. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7357. \-*) ;;
  7358. *) break;;
  7359. esac
  7360. done
  7361. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7362. # Only perform the check for file, if the check method requires it
  7363. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7364. case $deplibs_check_method in
  7365. file_magic*)
  7366. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7368. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7369. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7370. $as_echo_n "(cached) " >&6
  7371. else
  7372. case $MAGIC_CMD in
  7373. [\\/*] | ?:[\\/]*)
  7374. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7375. ;;
  7376. *)
  7377. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7378. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7379. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7380. for ac_dir in $ac_dummy; do
  7381. IFS="$lt_save_ifs"
  7382. test -z "$ac_dir" && ac_dir=.
  7383. if test -f $ac_dir/${ac_tool_prefix}file; then
  7384. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7385. if test -n "$file_magic_test_file"; then
  7386. case $deplibs_check_method in
  7387. "file_magic "*)
  7388. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7389. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7390. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7391. $EGREP "$file_magic_regex" > /dev/null; then
  7392. :
  7393. else
  7394. cat <<_LT_EOF 1>&2
  7395. *** Warning: the command libtool uses to detect shared libraries,
  7396. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7397. *** The result is that libtool may fail to recognize shared libraries
  7398. *** as such. This will affect the creation of libtool libraries that
  7399. *** depend on shared libraries, but programs linked with such libtool
  7400. *** libraries will work regardless of this problem. Nevertheless, you
  7401. *** may want to report the problem to your system manager and/or to
  7402. *** [email protected]
  7403. _LT_EOF
  7404. fi ;;
  7405. esac
  7406. fi
  7407. break
  7408. fi
  7409. done
  7410. IFS="$lt_save_ifs"
  7411. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7412. ;;
  7413. esac
  7414. fi
  7415. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7416. if test -n "$MAGIC_CMD"; then
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7418. $as_echo "$MAGIC_CMD" >&6; }
  7419. else
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7421. $as_echo "no" >&6; }
  7422. fi
  7423. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7424. if test -n "$ac_tool_prefix"; then
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7426. $as_echo_n "checking for file... " >&6; }
  7427. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7428. $as_echo_n "(cached) " >&6
  7429. else
  7430. case $MAGIC_CMD in
  7431. [\\/*] | ?:[\\/]*)
  7432. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7433. ;;
  7434. *)
  7435. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7436. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7437. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7438. for ac_dir in $ac_dummy; do
  7439. IFS="$lt_save_ifs"
  7440. test -z "$ac_dir" && ac_dir=.
  7441. if test -f $ac_dir/file; then
  7442. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7443. if test -n "$file_magic_test_file"; then
  7444. case $deplibs_check_method in
  7445. "file_magic "*)
  7446. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7447. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7448. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7449. $EGREP "$file_magic_regex" > /dev/null; then
  7450. :
  7451. else
  7452. cat <<_LT_EOF 1>&2
  7453. *** Warning: the command libtool uses to detect shared libraries,
  7454. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7455. *** The result is that libtool may fail to recognize shared libraries
  7456. *** as such. This will affect the creation of libtool libraries that
  7457. *** depend on shared libraries, but programs linked with such libtool
  7458. *** libraries will work regardless of this problem. Nevertheless, you
  7459. *** may want to report the problem to your system manager and/or to
  7460. *** [email protected]
  7461. _LT_EOF
  7462. fi ;;
  7463. esac
  7464. fi
  7465. break
  7466. fi
  7467. done
  7468. IFS="$lt_save_ifs"
  7469. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7470. ;;
  7471. esac
  7472. fi
  7473. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7474. if test -n "$MAGIC_CMD"; then
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7476. $as_echo "$MAGIC_CMD" >&6; }
  7477. else
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7479. $as_echo "no" >&6; }
  7480. fi
  7481. else
  7482. MAGIC_CMD=:
  7483. fi
  7484. fi
  7485. fi
  7486. ;;
  7487. esac
  7488. # Use C for the default configuration in the libtool script
  7489. lt_save_CC="$CC"
  7490. ac_ext=c
  7491. ac_cpp='$CPP $CPPFLAGS'
  7492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7495. # Source file extension for C test sources.
  7496. ac_ext=c
  7497. # Object file extension for compiled C test sources.
  7498. objext=o
  7499. objext=$objext
  7500. # Code to be used in simple compile tests
  7501. lt_simple_compile_test_code="int some_variable = 0;"
  7502. # Code to be used in simple link tests
  7503. lt_simple_link_test_code='int main(){return(0);}'
  7504. # If no C compiler was specified, use CC.
  7505. LTCC=${LTCC-"$CC"}
  7506. # If no C compiler flags were specified, use CFLAGS.
  7507. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7508. # Allow CC to be a program name with arguments.
  7509. compiler=$CC
  7510. # Save the default compiler, since it gets overwritten when the other
  7511. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7512. compiler_DEFAULT=$CC
  7513. # save warnings/boilerplate of simple test code
  7514. ac_outfile=conftest.$ac_objext
  7515. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7516. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7517. _lt_compiler_boilerplate=`cat conftest.err`
  7518. $RM conftest*
  7519. ac_outfile=conftest.$ac_objext
  7520. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7521. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7522. _lt_linker_boilerplate=`cat conftest.err`
  7523. $RM -r conftest*
  7524. if test -n "$compiler"; then
  7525. lt_prog_compiler_no_builtin_flag=
  7526. if test "$GCC" = yes; then
  7527. case $cc_basename in
  7528. nvcc*)
  7529. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7530. *)
  7531. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7532. esac
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7534. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7535. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7536. $as_echo_n "(cached) " >&6
  7537. else
  7538. lt_cv_prog_compiler_rtti_exceptions=no
  7539. ac_outfile=conftest.$ac_objext
  7540. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7541. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7542. # Insert the option either (1) after the last *FLAGS variable, or
  7543. # (2) before a word containing "conftest.", or (3) at the end.
  7544. # Note that $ac_compile itself does not contain backslashes and begins
  7545. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7546. # The option is referenced via a variable to avoid confusing sed.
  7547. lt_compile=`echo "$ac_compile" | $SED \
  7548. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7549. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7550. -e 's:$: $lt_compiler_flag:'`
  7551. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7552. (eval "$lt_compile" 2>conftest.err)
  7553. ac_status=$?
  7554. cat conftest.err >&5
  7555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7556. if (exit $ac_status) && test -s "$ac_outfile"; then
  7557. # The compiler can only warn and ignore the option if not recognized
  7558. # So say no if there are warnings other than the usual output.
  7559. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7560. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7561. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7562. lt_cv_prog_compiler_rtti_exceptions=yes
  7563. fi
  7564. fi
  7565. $RM conftest*
  7566. fi
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7568. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7569. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7570. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7571. else
  7572. :
  7573. fi
  7574. fi
  7575. lt_prog_compiler_wl=
  7576. lt_prog_compiler_pic=
  7577. lt_prog_compiler_static=
  7578. if test "$GCC" = yes; then
  7579. lt_prog_compiler_wl='-Wl,'
  7580. lt_prog_compiler_static='-static'
  7581. case $host_os in
  7582. aix*)
  7583. # All AIX code is PIC.
  7584. if test "$host_cpu" = ia64; then
  7585. # AIX 5 now supports IA64 processor
  7586. lt_prog_compiler_static='-Bstatic'
  7587. fi
  7588. ;;
  7589. amigaos*)
  7590. case $host_cpu in
  7591. powerpc)
  7592. # see comment about AmigaOS4 .so support
  7593. lt_prog_compiler_pic='-fPIC'
  7594. ;;
  7595. m68k)
  7596. # FIXME: we need at least 68020 code to build shared libraries, but
  7597. # adding the `-m68020' flag to GCC prevents building anything better,
  7598. # like `-m68040'.
  7599. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7600. ;;
  7601. esac
  7602. ;;
  7603. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7604. # PIC is the default for these OSes.
  7605. ;;
  7606. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7607. # This hack is so that the source file can tell whether it is being
  7608. # built for inclusion in a dll (and should export symbols for example).
  7609. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7610. # (--disable-auto-import) libraries
  7611. lt_prog_compiler_pic='-DDLL_EXPORT'
  7612. ;;
  7613. darwin* | rhapsody*)
  7614. # PIC is the default on this platform
  7615. # Common symbols not allowed in MH_DYLIB files
  7616. lt_prog_compiler_pic='-fno-common'
  7617. ;;
  7618. haiku*)
  7619. # PIC is the default for Haiku.
  7620. # The "-static" flag exists, but is broken.
  7621. lt_prog_compiler_static=
  7622. ;;
  7623. hpux*)
  7624. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7625. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7626. # sets the default TLS model and affects inlining.
  7627. case $host_cpu in
  7628. hppa*64*)
  7629. # +Z the default
  7630. ;;
  7631. *)
  7632. lt_prog_compiler_pic='-fPIC'
  7633. ;;
  7634. esac
  7635. ;;
  7636. interix[3-9]*)
  7637. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7638. # Instead, we relocate shared libraries at runtime.
  7639. ;;
  7640. msdosdjgpp*)
  7641. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7642. # on systems that don't support them.
  7643. lt_prog_compiler_can_build_shared=no
  7644. enable_shared=no
  7645. ;;
  7646. *nto* | *qnx*)
  7647. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7648. # it will coredump.
  7649. lt_prog_compiler_pic='-fPIC -shared'
  7650. ;;
  7651. sysv4*MP*)
  7652. if test -d /usr/nec; then
  7653. lt_prog_compiler_pic=-Kconform_pic
  7654. fi
  7655. ;;
  7656. *)
  7657. lt_prog_compiler_pic='-fPIC'
  7658. ;;
  7659. esac
  7660. case $cc_basename in
  7661. nvcc*) # Cuda Compiler Driver 2.2
  7662. lt_prog_compiler_wl='-Xlinker '
  7663. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7664. ;;
  7665. esac
  7666. else
  7667. # PORTME Check for flag to pass linker flags through the system compiler.
  7668. case $host_os in
  7669. aix*)
  7670. lt_prog_compiler_wl='-Wl,'
  7671. if test "$host_cpu" = ia64; then
  7672. # AIX 5 now supports IA64 processor
  7673. lt_prog_compiler_static='-Bstatic'
  7674. else
  7675. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7676. fi
  7677. ;;
  7678. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7679. # This hack is so that the source file can tell whether it is being
  7680. # built for inclusion in a dll (and should export symbols for example).
  7681. lt_prog_compiler_pic='-DDLL_EXPORT'
  7682. ;;
  7683. hpux9* | hpux10* | hpux11*)
  7684. lt_prog_compiler_wl='-Wl,'
  7685. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7686. # not for PA HP-UX.
  7687. case $host_cpu in
  7688. hppa*64*|ia64*)
  7689. # +Z the default
  7690. ;;
  7691. *)
  7692. lt_prog_compiler_pic='+Z'
  7693. ;;
  7694. esac
  7695. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7696. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7697. ;;
  7698. irix5* | irix6* | nonstopux*)
  7699. lt_prog_compiler_wl='-Wl,'
  7700. # PIC (with -KPIC) is the default.
  7701. lt_prog_compiler_static='-non_shared'
  7702. ;;
  7703. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7704. case $cc_basename in
  7705. # old Intel for x86_64 which still supported -KPIC.
  7706. ecc*)
  7707. lt_prog_compiler_wl='-Wl,'
  7708. lt_prog_compiler_pic='-KPIC'
  7709. lt_prog_compiler_static='-static'
  7710. ;;
  7711. # icc used to be incompatible with GCC.
  7712. # ICC 10 doesn't accept -KPIC any more.
  7713. icc* | ifort*)
  7714. lt_prog_compiler_wl='-Wl,'
  7715. lt_prog_compiler_pic='-fPIC'
  7716. lt_prog_compiler_static='-static'
  7717. ;;
  7718. # Lahey Fortran 8.1.
  7719. lf95*)
  7720. lt_prog_compiler_wl='-Wl,'
  7721. lt_prog_compiler_pic='--shared'
  7722. lt_prog_compiler_static='--static'
  7723. ;;
  7724. nagfor*)
  7725. # NAG Fortran compiler
  7726. lt_prog_compiler_wl='-Wl,-Wl,,'
  7727. lt_prog_compiler_pic='-PIC'
  7728. lt_prog_compiler_static='-Bstatic'
  7729. ;;
  7730. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7731. # Portland Group compilers (*not* the Pentium gcc compiler,
  7732. # which looks to be a dead project)
  7733. lt_prog_compiler_wl='-Wl,'
  7734. lt_prog_compiler_pic='-fpic'
  7735. lt_prog_compiler_static='-Bstatic'
  7736. ;;
  7737. ccc*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. # All Alpha code is PIC.
  7740. lt_prog_compiler_static='-non_shared'
  7741. ;;
  7742. xl* | bgxl* | bgf* | mpixl*)
  7743. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7744. lt_prog_compiler_wl='-Wl,'
  7745. lt_prog_compiler_pic='-qpic'
  7746. lt_prog_compiler_static='-qstaticlink'
  7747. ;;
  7748. *)
  7749. case `$CC -V 2>&1 | sed 5q` in
  7750. *Sun\ F* | *Sun*Fortran*)
  7751. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7752. lt_prog_compiler_pic='-KPIC'
  7753. lt_prog_compiler_static='-Bstatic'
  7754. lt_prog_compiler_wl=''
  7755. ;;
  7756. *Sun\ C*)
  7757. # Sun C 5.9
  7758. lt_prog_compiler_pic='-KPIC'
  7759. lt_prog_compiler_static='-Bstatic'
  7760. lt_prog_compiler_wl='-Wl,'
  7761. ;;
  7762. esac
  7763. ;;
  7764. esac
  7765. ;;
  7766. newsos6)
  7767. lt_prog_compiler_pic='-KPIC'
  7768. lt_prog_compiler_static='-Bstatic'
  7769. ;;
  7770. *nto* | *qnx*)
  7771. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7772. # it will coredump.
  7773. lt_prog_compiler_pic='-fPIC -shared'
  7774. ;;
  7775. osf3* | osf4* | osf5*)
  7776. lt_prog_compiler_wl='-Wl,'
  7777. # All OSF/1 code is PIC.
  7778. lt_prog_compiler_static='-non_shared'
  7779. ;;
  7780. rdos*)
  7781. lt_prog_compiler_static='-non_shared'
  7782. ;;
  7783. solaris*)
  7784. lt_prog_compiler_pic='-KPIC'
  7785. lt_prog_compiler_static='-Bstatic'
  7786. case $cc_basename in
  7787. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7788. lt_prog_compiler_wl='-Qoption ld ';;
  7789. *)
  7790. lt_prog_compiler_wl='-Wl,';;
  7791. esac
  7792. ;;
  7793. sunos4*)
  7794. lt_prog_compiler_wl='-Qoption ld '
  7795. lt_prog_compiler_pic='-PIC'
  7796. lt_prog_compiler_static='-Bstatic'
  7797. ;;
  7798. sysv4 | sysv4.2uw2* | sysv4.3*)
  7799. lt_prog_compiler_wl='-Wl,'
  7800. lt_prog_compiler_pic='-KPIC'
  7801. lt_prog_compiler_static='-Bstatic'
  7802. ;;
  7803. sysv4*MP*)
  7804. if test -d /usr/nec ;then
  7805. lt_prog_compiler_pic='-Kconform_pic'
  7806. lt_prog_compiler_static='-Bstatic'
  7807. fi
  7808. ;;
  7809. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7810. lt_prog_compiler_wl='-Wl,'
  7811. lt_prog_compiler_pic='-KPIC'
  7812. lt_prog_compiler_static='-Bstatic'
  7813. ;;
  7814. unicos*)
  7815. lt_prog_compiler_wl='-Wl,'
  7816. lt_prog_compiler_can_build_shared=no
  7817. ;;
  7818. uts4*)
  7819. lt_prog_compiler_pic='-pic'
  7820. lt_prog_compiler_static='-Bstatic'
  7821. ;;
  7822. *)
  7823. lt_prog_compiler_can_build_shared=no
  7824. ;;
  7825. esac
  7826. fi
  7827. case $host_os in
  7828. # For platforms which do not support PIC, -DPIC is meaningless:
  7829. *djgpp*)
  7830. lt_prog_compiler_pic=
  7831. ;;
  7832. *)
  7833. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7834. ;;
  7835. esac
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7837. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7838. if ${lt_cv_prog_compiler_pic+:} false; then :
  7839. $as_echo_n "(cached) " >&6
  7840. else
  7841. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7842. fi
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7844. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7845. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7846. #
  7847. # Check to make sure the PIC flag actually works.
  7848. #
  7849. if test -n "$lt_prog_compiler_pic"; then
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7851. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7852. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7853. $as_echo_n "(cached) " >&6
  7854. else
  7855. lt_cv_prog_compiler_pic_works=no
  7856. ac_outfile=conftest.$ac_objext
  7857. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7858. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7859. # Insert the option either (1) after the last *FLAGS variable, or
  7860. # (2) before a word containing "conftest.", or (3) at the end.
  7861. # Note that $ac_compile itself does not contain backslashes and begins
  7862. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7863. # The option is referenced via a variable to avoid confusing sed.
  7864. lt_compile=`echo "$ac_compile" | $SED \
  7865. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7866. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7867. -e 's:$: $lt_compiler_flag:'`
  7868. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7869. (eval "$lt_compile" 2>conftest.err)
  7870. ac_status=$?
  7871. cat conftest.err >&5
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. if (exit $ac_status) && test -s "$ac_outfile"; then
  7874. # The compiler can only warn and ignore the option if not recognized
  7875. # So say no if there are warnings other than the usual output.
  7876. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7877. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7878. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7879. lt_cv_prog_compiler_pic_works=yes
  7880. fi
  7881. fi
  7882. $RM conftest*
  7883. fi
  7884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7885. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7886. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7887. case $lt_prog_compiler_pic in
  7888. "" | " "*) ;;
  7889. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7890. esac
  7891. else
  7892. lt_prog_compiler_pic=
  7893. lt_prog_compiler_can_build_shared=no
  7894. fi
  7895. fi
  7896. #
  7897. # Check to make sure the static flag actually works.
  7898. #
  7899. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7901. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7902. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. lt_cv_prog_compiler_static_works=no
  7906. save_LDFLAGS="$LDFLAGS"
  7907. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7908. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7909. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7910. # The linker can only warn and ignore the option if not recognized
  7911. # So say no if there are warnings
  7912. if test -s conftest.err; then
  7913. # Append any errors to the config.log.
  7914. cat conftest.err 1>&5
  7915. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7916. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7917. if diff conftest.exp conftest.er2 >/dev/null; then
  7918. lt_cv_prog_compiler_static_works=yes
  7919. fi
  7920. else
  7921. lt_cv_prog_compiler_static_works=yes
  7922. fi
  7923. fi
  7924. $RM -r conftest*
  7925. LDFLAGS="$save_LDFLAGS"
  7926. fi
  7927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7928. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7929. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7930. :
  7931. else
  7932. lt_prog_compiler_static=
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7935. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7936. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7937. $as_echo_n "(cached) " >&6
  7938. else
  7939. lt_cv_prog_compiler_c_o=no
  7940. $RM -r conftest 2>/dev/null
  7941. mkdir conftest
  7942. cd conftest
  7943. mkdir out
  7944. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7945. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7946. # Insert the option either (1) after the last *FLAGS variable, or
  7947. # (2) before a word containing "conftest.", or (3) at the end.
  7948. # Note that $ac_compile itself does not contain backslashes and begins
  7949. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7950. lt_compile=`echo "$ac_compile" | $SED \
  7951. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7952. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7953. -e 's:$: $lt_compiler_flag:'`
  7954. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7955. (eval "$lt_compile" 2>out/conftest.err)
  7956. ac_status=$?
  7957. cat out/conftest.err >&5
  7958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7959. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7960. then
  7961. # The compiler can only warn and ignore the option if not recognized
  7962. # So say no if there are warnings
  7963. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7964. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7965. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7966. lt_cv_prog_compiler_c_o=yes
  7967. fi
  7968. fi
  7969. chmod u+w . 2>&5
  7970. $RM conftest*
  7971. # SGI C++ compiler will create directory out/ii_files/ for
  7972. # template instantiation
  7973. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7974. $RM out/* && rmdir out
  7975. cd ..
  7976. $RM -r conftest
  7977. $RM conftest*
  7978. fi
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7980. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7982. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7983. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7984. $as_echo_n "(cached) " >&6
  7985. else
  7986. lt_cv_prog_compiler_c_o=no
  7987. $RM -r conftest 2>/dev/null
  7988. mkdir conftest
  7989. cd conftest
  7990. mkdir out
  7991. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7992. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7993. # Insert the option either (1) after the last *FLAGS variable, or
  7994. # (2) before a word containing "conftest.", or (3) at the end.
  7995. # Note that $ac_compile itself does not contain backslashes and begins
  7996. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7997. lt_compile=`echo "$ac_compile" | $SED \
  7998. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7999. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8000. -e 's:$: $lt_compiler_flag:'`
  8001. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8002. (eval "$lt_compile" 2>out/conftest.err)
  8003. ac_status=$?
  8004. cat out/conftest.err >&5
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8007. then
  8008. # The compiler can only warn and ignore the option if not recognized
  8009. # So say no if there are warnings
  8010. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8011. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8012. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8013. lt_cv_prog_compiler_c_o=yes
  8014. fi
  8015. fi
  8016. chmod u+w . 2>&5
  8017. $RM conftest*
  8018. # SGI C++ compiler will create directory out/ii_files/ for
  8019. # template instantiation
  8020. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8021. $RM out/* && rmdir out
  8022. cd ..
  8023. $RM -r conftest
  8024. $RM conftest*
  8025. fi
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8027. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8028. hard_links="nottested"
  8029. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8030. # do not overwrite the value of need_locks provided by the user
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8032. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8033. hard_links=yes
  8034. $RM conftest*
  8035. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8036. touch conftest.a
  8037. ln conftest.a conftest.b 2>&5 || hard_links=no
  8038. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8040. $as_echo "$hard_links" >&6; }
  8041. if test "$hard_links" = no; then
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8043. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8044. need_locks=warn
  8045. fi
  8046. else
  8047. need_locks=no
  8048. fi
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8050. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8051. runpath_var=
  8052. allow_undefined_flag=
  8053. always_export_symbols=no
  8054. archive_cmds=
  8055. archive_expsym_cmds=
  8056. compiler_needs_object=no
  8057. enable_shared_with_static_runtimes=no
  8058. export_dynamic_flag_spec=
  8059. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8060. hardcode_automatic=no
  8061. hardcode_direct=no
  8062. hardcode_direct_absolute=no
  8063. hardcode_libdir_flag_spec=
  8064. hardcode_libdir_flag_spec_ld=
  8065. hardcode_libdir_separator=
  8066. hardcode_minus_L=no
  8067. hardcode_shlibpath_var=unsupported
  8068. inherit_rpath=no
  8069. link_all_deplibs=unknown
  8070. module_cmds=
  8071. module_expsym_cmds=
  8072. old_archive_from_new_cmds=
  8073. old_archive_from_expsyms_cmds=
  8074. thread_safe_flag_spec=
  8075. whole_archive_flag_spec=
  8076. # include_expsyms should be a list of space-separated symbols to be *always*
  8077. # included in the symbol list
  8078. include_expsyms=
  8079. # exclude_expsyms can be an extended regexp of symbols to exclude
  8080. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8081. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8082. # as well as any symbol that contains `d'.
  8083. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8084. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8085. # platforms (ab)use it in PIC code, but their linkers get confused if
  8086. # the symbol is explicitly referenced. Since portable code cannot
  8087. # rely on this symbol name, it's probably fine to never include it in
  8088. # preloaded symbol tables.
  8089. # Exclude shared library initialization/finalization symbols.
  8090. extract_expsyms_cmds=
  8091. case $host_os in
  8092. cygwin* | mingw* | pw32* | cegcc*)
  8093. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8094. # When not using gcc, we currently assume that we are using
  8095. # Microsoft Visual C++.
  8096. if test "$GCC" != yes; then
  8097. with_gnu_ld=no
  8098. fi
  8099. ;;
  8100. interix*)
  8101. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8102. with_gnu_ld=yes
  8103. ;;
  8104. openbsd*)
  8105. with_gnu_ld=no
  8106. ;;
  8107. esac
  8108. ld_shlibs=yes
  8109. # On some targets, GNU ld is compatible enough with the native linker
  8110. # that we're better off using the native interface for both.
  8111. lt_use_gnu_ld_interface=no
  8112. if test "$with_gnu_ld" = yes; then
  8113. case $host_os in
  8114. aix*)
  8115. # The AIX port of GNU ld has always aspired to compatibility
  8116. # with the native linker. However, as the warning in the GNU ld
  8117. # block says, versions before 2.19.5* couldn't really create working
  8118. # shared libraries, regardless of the interface used.
  8119. case `$LD -v 2>&1` in
  8120. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8121. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8122. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8123. *)
  8124. lt_use_gnu_ld_interface=yes
  8125. ;;
  8126. esac
  8127. ;;
  8128. *)
  8129. lt_use_gnu_ld_interface=yes
  8130. ;;
  8131. esac
  8132. fi
  8133. if test "$lt_use_gnu_ld_interface" = yes; then
  8134. # If archive_cmds runs LD, not CC, wlarc should be empty
  8135. wlarc='${wl}'
  8136. # Set some defaults for GNU ld with shared library support. These
  8137. # are reset later if shared libraries are not supported. Putting them
  8138. # here allows them to be overridden if necessary.
  8139. runpath_var=LD_RUN_PATH
  8140. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8141. export_dynamic_flag_spec='${wl}--export-dynamic'
  8142. # ancient GNU ld didn't support --whole-archive et. al.
  8143. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8144. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8145. else
  8146. whole_archive_flag_spec=
  8147. fi
  8148. supports_anon_versioning=no
  8149. case `$LD -v 2>&1` in
  8150. *GNU\ gold*) supports_anon_versioning=yes ;;
  8151. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8152. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8153. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8154. *\ 2.11.*) ;; # other 2.11 versions
  8155. *) supports_anon_versioning=yes ;;
  8156. esac
  8157. # See if GNU ld supports shared libraries.
  8158. case $host_os in
  8159. aix[3-9]*)
  8160. # On AIX/PPC, the GNU linker is very broken
  8161. if test "$host_cpu" != ia64; then
  8162. ld_shlibs=no
  8163. cat <<_LT_EOF 1>&2
  8164. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8165. *** to be unable to reliably create shared libraries on AIX.
  8166. *** Therefore, libtool is disabling shared libraries support. If you
  8167. *** really care for shared libraries, you may want to install binutils
  8168. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8169. *** You will then need to restart the configuration process.
  8170. _LT_EOF
  8171. fi
  8172. ;;
  8173. amigaos*)
  8174. case $host_cpu in
  8175. powerpc)
  8176. # see comment about AmigaOS4 .so support
  8177. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8178. archive_expsym_cmds=''
  8179. ;;
  8180. m68k)
  8181. 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)'
  8182. hardcode_libdir_flag_spec='-L$libdir'
  8183. hardcode_minus_L=yes
  8184. ;;
  8185. esac
  8186. ;;
  8187. beos*)
  8188. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8189. allow_undefined_flag=unsupported
  8190. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8191. # support --undefined. This deserves some investigation. FIXME
  8192. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8193. else
  8194. ld_shlibs=no
  8195. fi
  8196. ;;
  8197. cygwin* | mingw* | pw32* | cegcc*)
  8198. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8199. # as there is no search path for DLLs.
  8200. hardcode_libdir_flag_spec='-L$libdir'
  8201. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8202. allow_undefined_flag=unsupported
  8203. always_export_symbols=no
  8204. enable_shared_with_static_runtimes=yes
  8205. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8206. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8207. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8208. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8209. # If the export-symbols file already is a .def file (1st line
  8210. # is EXPORTS), use it as is; otherwise, prepend...
  8211. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8212. cp $export_symbols $output_objdir/$soname.def;
  8213. else
  8214. echo EXPORTS > $output_objdir/$soname.def;
  8215. cat $export_symbols >> $output_objdir/$soname.def;
  8216. fi~
  8217. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8218. else
  8219. ld_shlibs=no
  8220. fi
  8221. ;;
  8222. haiku*)
  8223. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8224. link_all_deplibs=yes
  8225. ;;
  8226. interix[3-9]*)
  8227. hardcode_direct=no
  8228. hardcode_shlibpath_var=no
  8229. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8232. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8233. # default) and relocated if they conflict, which is a slow very memory
  8234. # consuming and fragmenting process. To avoid this, we pick a random,
  8235. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8236. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8237. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8238. 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'
  8239. ;;
  8240. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8241. tmp_diet=no
  8242. if test "$host_os" = linux-dietlibc; then
  8243. case $cc_basename in
  8244. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8245. esac
  8246. fi
  8247. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8248. && test "$tmp_diet" = no
  8249. then
  8250. tmp_addflag=' $pic_flag'
  8251. tmp_sharedflag='-shared'
  8252. case $cc_basename,$host_cpu in
  8253. pgcc*) # Portland Group C compiler
  8254. 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'
  8255. tmp_addflag=' $pic_flag'
  8256. ;;
  8257. pgf77* | pgf90* | pgf95* | pgfortran*)
  8258. # Portland Group f77 and f90 compilers
  8259. 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'
  8260. tmp_addflag=' $pic_flag -Mnomain' ;;
  8261. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8262. tmp_addflag=' -i_dynamic' ;;
  8263. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8264. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8265. ifc* | ifort*) # Intel Fortran compiler
  8266. tmp_addflag=' -nofor_main' ;;
  8267. lf95*) # Lahey Fortran 8.1
  8268. whole_archive_flag_spec=
  8269. tmp_sharedflag='--shared' ;;
  8270. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8271. tmp_sharedflag='-qmkshrobj'
  8272. tmp_addflag= ;;
  8273. nvcc*) # Cuda Compiler Driver 2.2
  8274. 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'
  8275. compiler_needs_object=yes
  8276. ;;
  8277. esac
  8278. case `$CC -V 2>&1 | sed 5q` in
  8279. *Sun\ C*) # Sun C 5.9
  8280. 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'
  8281. compiler_needs_object=yes
  8282. tmp_sharedflag='-G' ;;
  8283. *Sun\ F*) # Sun Fortran 8.3
  8284. tmp_sharedflag='-G' ;;
  8285. esac
  8286. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8287. if test "x$supports_anon_versioning" = xyes; then
  8288. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8289. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8290. echo "local: *; };" >> $output_objdir/$libname.ver~
  8291. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8292. fi
  8293. case $cc_basename in
  8294. xlf* | bgf* | bgxlf* | mpixlf*)
  8295. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8296. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8297. hardcode_libdir_flag_spec=
  8298. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8299. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8300. if test "x$supports_anon_versioning" = xyes; then
  8301. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8302. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8303. echo "local: *; };" >> $output_objdir/$libname.ver~
  8304. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8305. fi
  8306. ;;
  8307. esac
  8308. else
  8309. ld_shlibs=no
  8310. fi
  8311. ;;
  8312. netbsd*)
  8313. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8314. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8315. wlarc=
  8316. else
  8317. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8319. fi
  8320. ;;
  8321. solaris*)
  8322. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8323. ld_shlibs=no
  8324. cat <<_LT_EOF 1>&2
  8325. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8326. *** create shared libraries on Solaris systems. Therefore, libtool
  8327. *** is disabling shared libraries support. We urge you to upgrade GNU
  8328. *** binutils to release 2.9.1 or newer. Another option is to modify
  8329. *** your PATH or compiler configuration so that the native linker is
  8330. *** used, and then restart.
  8331. _LT_EOF
  8332. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8333. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8334. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8335. else
  8336. ld_shlibs=no
  8337. fi
  8338. ;;
  8339. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8340. case `$LD -v 2>&1` in
  8341. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8342. ld_shlibs=no
  8343. cat <<_LT_EOF 1>&2
  8344. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8345. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8346. *** is disabling shared libraries support. We urge you to upgrade GNU
  8347. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8348. *** your PATH or compiler configuration so that the native linker is
  8349. *** used, and then restart.
  8350. _LT_EOF
  8351. ;;
  8352. *)
  8353. # For security reasons, it is highly recommended that you always
  8354. # use absolute paths for naming shared libraries, and exclude the
  8355. # DT_RUNPATH tag from executables and libraries. But doing so
  8356. # requires that you compile everything twice, which is a pain.
  8357. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8358. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8359. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8360. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8361. else
  8362. ld_shlibs=no
  8363. fi
  8364. ;;
  8365. esac
  8366. ;;
  8367. sunos4*)
  8368. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8369. wlarc=
  8370. hardcode_direct=yes
  8371. hardcode_shlibpath_var=no
  8372. ;;
  8373. *)
  8374. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8375. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8376. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8377. else
  8378. ld_shlibs=no
  8379. fi
  8380. ;;
  8381. esac
  8382. if test "$ld_shlibs" = no; then
  8383. runpath_var=
  8384. hardcode_libdir_flag_spec=
  8385. export_dynamic_flag_spec=
  8386. whole_archive_flag_spec=
  8387. fi
  8388. else
  8389. # PORTME fill in a description of your system's linker (not GNU ld)
  8390. case $host_os in
  8391. aix3*)
  8392. allow_undefined_flag=unsupported
  8393. always_export_symbols=yes
  8394. 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'
  8395. # Note: this linker hardcodes the directories in LIBPATH if there
  8396. # are no directories specified by -L.
  8397. hardcode_minus_L=yes
  8398. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8399. # Neither direct hardcoding nor static linking is supported with a
  8400. # broken collect2.
  8401. hardcode_direct=unsupported
  8402. fi
  8403. ;;
  8404. aix[4-9]*)
  8405. if test "$host_cpu" = ia64; then
  8406. # On IA64, the linker does run time linking by default, so we don't
  8407. # have to do anything special.
  8408. aix_use_runtimelinking=no
  8409. exp_sym_flag='-Bexport'
  8410. no_entry_flag=""
  8411. else
  8412. # If we're using GNU nm, then we don't want the "-C" option.
  8413. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8414. # Also, AIX nm treats weak defined symbols like other global
  8415. # defined symbols, whereas GNU nm marks them as "W".
  8416. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8417. 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'
  8418. else
  8419. 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'
  8420. fi
  8421. aix_use_runtimelinking=no
  8422. # Test if we are trying to use run time linking or normal
  8423. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8424. # need to do runtime linking.
  8425. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8426. for ld_flag in $LDFLAGS; do
  8427. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8428. aix_use_runtimelinking=yes
  8429. break
  8430. fi
  8431. done
  8432. ;;
  8433. esac
  8434. exp_sym_flag='-bexport'
  8435. no_entry_flag='-bnoentry'
  8436. fi
  8437. # When large executables or shared objects are built, AIX ld can
  8438. # have problems creating the table of contents. If linking a library
  8439. # or program results in "error TOC overflow" add -mminimal-toc to
  8440. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8441. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8442. archive_cmds=''
  8443. hardcode_direct=yes
  8444. hardcode_direct_absolute=yes
  8445. hardcode_libdir_separator=':'
  8446. link_all_deplibs=yes
  8447. file_list_spec='${wl}-f,'
  8448. if test "$GCC" = yes; then
  8449. case $host_os in aix4.[012]|aix4.[012].*)
  8450. # We only want to do this on AIX 4.2 and lower, the check
  8451. # below for broken collect2 doesn't work under 4.3+
  8452. collect2name=`${CC} -print-prog-name=collect2`
  8453. if test -f "$collect2name" &&
  8454. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8455. then
  8456. # We have reworked collect2
  8457. :
  8458. else
  8459. # We have old collect2
  8460. hardcode_direct=unsupported
  8461. # It fails to find uninstalled libraries when the uninstalled
  8462. # path is not listed in the libpath. Setting hardcode_minus_L
  8463. # to unsupported forces relinking
  8464. hardcode_minus_L=yes
  8465. hardcode_libdir_flag_spec='-L$libdir'
  8466. hardcode_libdir_separator=
  8467. fi
  8468. ;;
  8469. esac
  8470. shared_flag='-shared'
  8471. if test "$aix_use_runtimelinking" = yes; then
  8472. shared_flag="$shared_flag "'${wl}-G'
  8473. fi
  8474. else
  8475. # not using gcc
  8476. if test "$host_cpu" = ia64; then
  8477. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8478. # chokes on -Wl,-G. The following line is correct:
  8479. shared_flag='-G'
  8480. else
  8481. if test "$aix_use_runtimelinking" = yes; then
  8482. shared_flag='${wl}-G'
  8483. else
  8484. shared_flag='${wl}-bM:SRE'
  8485. fi
  8486. fi
  8487. fi
  8488. export_dynamic_flag_spec='${wl}-bexpall'
  8489. # It seems that -bexpall does not export symbols beginning with
  8490. # underscore (_), so it is better to generate a list of symbols to export.
  8491. always_export_symbols=yes
  8492. if test "$aix_use_runtimelinking" = yes; then
  8493. # Warning - without using the other runtime loading flags (-brtl),
  8494. # -berok will link without error, but may produce a broken library.
  8495. allow_undefined_flag='-berok'
  8496. # Determine the default libpath from the value encoded in an
  8497. # empty executable.
  8498. if test "${lt_cv_aix_libpath+set}" = set; then
  8499. aix_libpath=$lt_cv_aix_libpath
  8500. else
  8501. if ${lt_cv_aix_libpath_+:} false; then :
  8502. $as_echo_n "(cached) " >&6
  8503. else
  8504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8505. /* end confdefs.h. */
  8506. int
  8507. main ()
  8508. {
  8509. ;
  8510. return 0;
  8511. }
  8512. _ACEOF
  8513. if ac_fn_c_try_link "$LINENO"; then :
  8514. lt_aix_libpath_sed='
  8515. /Import File Strings/,/^$/ {
  8516. /^0/ {
  8517. s/^0 *\([^ ]*\) *$/\1/
  8518. p
  8519. }
  8520. }'
  8521. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8522. # Check for a 64-bit object if we didn't find anything.
  8523. if test -z "$lt_cv_aix_libpath_"; then
  8524. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8525. fi
  8526. fi
  8527. rm -f core conftest.err conftest.$ac_objext \
  8528. conftest$ac_exeext conftest.$ac_ext
  8529. if test -z "$lt_cv_aix_libpath_"; then
  8530. lt_cv_aix_libpath_="/usr/lib:/lib"
  8531. fi
  8532. fi
  8533. aix_libpath=$lt_cv_aix_libpath_
  8534. fi
  8535. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8536. 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"
  8537. else
  8538. if test "$host_cpu" = ia64; then
  8539. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8540. allow_undefined_flag="-z nodefs"
  8541. 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"
  8542. else
  8543. # Determine the default libpath from the value encoded in an
  8544. # empty executable.
  8545. if test "${lt_cv_aix_libpath+set}" = set; then
  8546. aix_libpath=$lt_cv_aix_libpath
  8547. else
  8548. if ${lt_cv_aix_libpath_+:} false; then :
  8549. $as_echo_n "(cached) " >&6
  8550. else
  8551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8552. /* end confdefs.h. */
  8553. int
  8554. main ()
  8555. {
  8556. ;
  8557. return 0;
  8558. }
  8559. _ACEOF
  8560. if ac_fn_c_try_link "$LINENO"; then :
  8561. lt_aix_libpath_sed='
  8562. /Import File Strings/,/^$/ {
  8563. /^0/ {
  8564. s/^0 *\([^ ]*\) *$/\1/
  8565. p
  8566. }
  8567. }'
  8568. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8569. # Check for a 64-bit object if we didn't find anything.
  8570. if test -z "$lt_cv_aix_libpath_"; then
  8571. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8572. fi
  8573. fi
  8574. rm -f core conftest.err conftest.$ac_objext \
  8575. conftest$ac_exeext conftest.$ac_ext
  8576. if test -z "$lt_cv_aix_libpath_"; then
  8577. lt_cv_aix_libpath_="/usr/lib:/lib"
  8578. fi
  8579. fi
  8580. aix_libpath=$lt_cv_aix_libpath_
  8581. fi
  8582. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8583. # Warning - without using the other run time loading flags,
  8584. # -berok will link without error, but may produce a broken library.
  8585. no_undefined_flag=' ${wl}-bernotok'
  8586. allow_undefined_flag=' ${wl}-berok'
  8587. if test "$with_gnu_ld" = yes; then
  8588. # We only use this code for GNU lds that support --whole-archive.
  8589. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8590. else
  8591. # Exported symbols can be pulled into shared objects from archives
  8592. whole_archive_flag_spec='$convenience'
  8593. fi
  8594. archive_cmds_need_lc=yes
  8595. # This is similar to how AIX traditionally builds its shared libraries.
  8596. 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'
  8597. fi
  8598. fi
  8599. ;;
  8600. amigaos*)
  8601. case $host_cpu in
  8602. powerpc)
  8603. # see comment about AmigaOS4 .so support
  8604. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8605. archive_expsym_cmds=''
  8606. ;;
  8607. m68k)
  8608. 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)'
  8609. hardcode_libdir_flag_spec='-L$libdir'
  8610. hardcode_minus_L=yes
  8611. ;;
  8612. esac
  8613. ;;
  8614. bsdi[45]*)
  8615. export_dynamic_flag_spec=-rdynamic
  8616. ;;
  8617. cygwin* | mingw* | pw32* | cegcc*)
  8618. # When not using gcc, we currently assume that we are using
  8619. # Microsoft Visual C++.
  8620. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8621. # no search path for DLLs.
  8622. case $cc_basename in
  8623. cl*)
  8624. # Native MSVC
  8625. hardcode_libdir_flag_spec=' '
  8626. allow_undefined_flag=unsupported
  8627. always_export_symbols=yes
  8628. file_list_spec='@'
  8629. # Tell ltmain to make .lib files, not .a files.
  8630. libext=lib
  8631. # Tell ltmain to make .dll files, not .so files.
  8632. shrext_cmds=".dll"
  8633. # FIXME: Setting linknames here is a bad hack.
  8634. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8635. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8636. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8637. else
  8638. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8639. fi~
  8640. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8641. linknames='
  8642. # The linker will not automatically build a static lib if we build a DLL.
  8643. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8644. enable_shared_with_static_runtimes=yes
  8645. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8646. # Don't use ranlib
  8647. old_postinstall_cmds='chmod 644 $oldlib'
  8648. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8649. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8650. case $lt_outputfile in
  8651. *.exe|*.EXE) ;;
  8652. *)
  8653. lt_outputfile="$lt_outputfile.exe"
  8654. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8655. ;;
  8656. esac~
  8657. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8658. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8659. $RM "$lt_outputfile.manifest";
  8660. fi'
  8661. ;;
  8662. *)
  8663. # Assume MSVC wrapper
  8664. hardcode_libdir_flag_spec=' '
  8665. allow_undefined_flag=unsupported
  8666. # Tell ltmain to make .lib files, not .a files.
  8667. libext=lib
  8668. # Tell ltmain to make .dll files, not .so files.
  8669. shrext_cmds=".dll"
  8670. # FIXME: Setting linknames here is a bad hack.
  8671. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8672. # The linker will automatically build a .lib file if we build a DLL.
  8673. old_archive_from_new_cmds='true'
  8674. # FIXME: Should let the user specify the lib program.
  8675. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8676. enable_shared_with_static_runtimes=yes
  8677. ;;
  8678. esac
  8679. ;;
  8680. darwin* | rhapsody*)
  8681. archive_cmds_need_lc=no
  8682. hardcode_direct=no
  8683. hardcode_automatic=yes
  8684. hardcode_shlibpath_var=unsupported
  8685. if test "$lt_cv_ld_force_load" = "yes"; then
  8686. 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\"`'
  8687. else
  8688. whole_archive_flag_spec=''
  8689. fi
  8690. link_all_deplibs=yes
  8691. allow_undefined_flag="$_lt_dar_allow_undefined"
  8692. case $cc_basename in
  8693. ifort*) _lt_dar_can_shared=yes ;;
  8694. *) _lt_dar_can_shared=$GCC ;;
  8695. esac
  8696. if test "$_lt_dar_can_shared" = "yes"; then
  8697. output_verbose_link_cmd=func_echo_all
  8698. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8699. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8700. 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}"
  8701. 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}"
  8702. else
  8703. ld_shlibs=no
  8704. fi
  8705. ;;
  8706. dgux*)
  8707. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8708. hardcode_libdir_flag_spec='-L$libdir'
  8709. hardcode_shlibpath_var=no
  8710. ;;
  8711. freebsd1*)
  8712. ld_shlibs=no
  8713. ;;
  8714. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8715. # support. Future versions do this automatically, but an explicit c++rt0.o
  8716. # does not break anything, and helps significantly (at the cost of a little
  8717. # extra space).
  8718. freebsd2.2*)
  8719. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8720. hardcode_libdir_flag_spec='-R$libdir'
  8721. hardcode_direct=yes
  8722. hardcode_shlibpath_var=no
  8723. ;;
  8724. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8725. freebsd2*)
  8726. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8727. hardcode_direct=yes
  8728. hardcode_minus_L=yes
  8729. hardcode_shlibpath_var=no
  8730. ;;
  8731. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8732. freebsd* | dragonfly*)
  8733. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8734. hardcode_libdir_flag_spec='-R$libdir'
  8735. hardcode_direct=yes
  8736. hardcode_shlibpath_var=no
  8737. ;;
  8738. hpux9*)
  8739. if test "$GCC" = yes; then
  8740. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8741. else
  8742. 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'
  8743. fi
  8744. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8745. hardcode_libdir_separator=:
  8746. hardcode_direct=yes
  8747. # hardcode_minus_L: Not really in the search PATH,
  8748. # but as the default location of the library.
  8749. hardcode_minus_L=yes
  8750. export_dynamic_flag_spec='${wl}-E'
  8751. ;;
  8752. hpux10*)
  8753. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8754. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8755. else
  8756. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8757. fi
  8758. if test "$with_gnu_ld" = no; then
  8759. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8760. hardcode_libdir_flag_spec_ld='+b $libdir'
  8761. hardcode_libdir_separator=:
  8762. hardcode_direct=yes
  8763. hardcode_direct_absolute=yes
  8764. export_dynamic_flag_spec='${wl}-E'
  8765. # hardcode_minus_L: Not really in the search PATH,
  8766. # but as the default location of the library.
  8767. hardcode_minus_L=yes
  8768. fi
  8769. ;;
  8770. hpux11*)
  8771. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8772. case $host_cpu in
  8773. hppa*64*)
  8774. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8775. ;;
  8776. ia64*)
  8777. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8778. ;;
  8779. *)
  8780. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8781. ;;
  8782. esac
  8783. else
  8784. case $host_cpu in
  8785. hppa*64*)
  8786. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8787. ;;
  8788. ia64*)
  8789. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8790. ;;
  8791. *)
  8792. # Older versions of the 11.00 compiler do not understand -b yet
  8793. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8795. $as_echo_n "checking if $CC understands -b... " >&6; }
  8796. if ${lt_cv_prog_compiler__b+:} false; then :
  8797. $as_echo_n "(cached) " >&6
  8798. else
  8799. lt_cv_prog_compiler__b=no
  8800. save_LDFLAGS="$LDFLAGS"
  8801. LDFLAGS="$LDFLAGS -b"
  8802. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8803. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8804. # The linker can only warn and ignore the option if not recognized
  8805. # So say no if there are warnings
  8806. if test -s conftest.err; then
  8807. # Append any errors to the config.log.
  8808. cat conftest.err 1>&5
  8809. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8810. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8811. if diff conftest.exp conftest.er2 >/dev/null; then
  8812. lt_cv_prog_compiler__b=yes
  8813. fi
  8814. else
  8815. lt_cv_prog_compiler__b=yes
  8816. fi
  8817. fi
  8818. $RM -r conftest*
  8819. LDFLAGS="$save_LDFLAGS"
  8820. fi
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8822. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8823. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8824. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8825. else
  8826. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8827. fi
  8828. ;;
  8829. esac
  8830. fi
  8831. if test "$with_gnu_ld" = no; then
  8832. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8833. hardcode_libdir_separator=:
  8834. case $host_cpu in
  8835. hppa*64*|ia64*)
  8836. hardcode_direct=no
  8837. hardcode_shlibpath_var=no
  8838. ;;
  8839. *)
  8840. hardcode_direct=yes
  8841. hardcode_direct_absolute=yes
  8842. export_dynamic_flag_spec='${wl}-E'
  8843. # hardcode_minus_L: Not really in the search PATH,
  8844. # but as the default location of the library.
  8845. hardcode_minus_L=yes
  8846. ;;
  8847. esac
  8848. fi
  8849. ;;
  8850. irix5* | irix6* | nonstopux*)
  8851. if test "$GCC" = yes; then
  8852. archive_cmds='$CC -shared $pic_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'
  8853. # Try to use the -exported_symbol ld option, if it does not
  8854. # work, assume that -exports_file does not work either and
  8855. # implicitly export all symbols.
  8856. # This should be the same for all languages, so no per-tag cache variable.
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8858. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8859. if ${lt_cv_irix_exported_symbol+:} false; then :
  8860. $as_echo_n "(cached) " >&6
  8861. else
  8862. save_LDFLAGS="$LDFLAGS"
  8863. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8865. /* end confdefs.h. */
  8866. int foo (void) { return 0; }
  8867. _ACEOF
  8868. if ac_fn_c_try_link "$LINENO"; then :
  8869. lt_cv_irix_exported_symbol=yes
  8870. else
  8871. lt_cv_irix_exported_symbol=no
  8872. fi
  8873. rm -f core conftest.err conftest.$ac_objext \
  8874. conftest$ac_exeext conftest.$ac_ext
  8875. LDFLAGS="$save_LDFLAGS"
  8876. fi
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8878. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8879. if test "$lt_cv_irix_exported_symbol" = yes; then
  8880. archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8881. fi
  8882. else
  8883. 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'
  8884. 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'
  8885. fi
  8886. archive_cmds_need_lc='no'
  8887. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8888. hardcode_libdir_separator=:
  8889. inherit_rpath=yes
  8890. link_all_deplibs=yes
  8891. ;;
  8892. netbsd*)
  8893. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8894. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8895. else
  8896. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8897. fi
  8898. hardcode_libdir_flag_spec='-R$libdir'
  8899. hardcode_direct=yes
  8900. hardcode_shlibpath_var=no
  8901. ;;
  8902. newsos6)
  8903. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8904. hardcode_direct=yes
  8905. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8906. hardcode_libdir_separator=:
  8907. hardcode_shlibpath_var=no
  8908. ;;
  8909. *nto* | *qnx*)
  8910. ;;
  8911. openbsd*)
  8912. if test -f /usr/libexec/ld.so; then
  8913. hardcode_direct=yes
  8914. hardcode_shlibpath_var=no
  8915. hardcode_direct_absolute=yes
  8916. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8917. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8918. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8919. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8920. export_dynamic_flag_spec='${wl}-E'
  8921. else
  8922. case $host_os in
  8923. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8924. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8925. hardcode_libdir_flag_spec='-R$libdir'
  8926. ;;
  8927. *)
  8928. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8929. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8930. ;;
  8931. esac
  8932. fi
  8933. else
  8934. ld_shlibs=no
  8935. fi
  8936. ;;
  8937. os2*)
  8938. hardcode_libdir_flag_spec='-L$libdir'
  8939. hardcode_minus_L=yes
  8940. allow_undefined_flag=unsupported
  8941. 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'
  8942. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8943. ;;
  8944. osf3*)
  8945. if test "$GCC" = yes; then
  8946. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8947. 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'
  8948. else
  8949. allow_undefined_flag=' -expect_unresolved \*'
  8950. 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'
  8951. fi
  8952. archive_cmds_need_lc='no'
  8953. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8954. hardcode_libdir_separator=:
  8955. ;;
  8956. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8957. if test "$GCC" = yes; then
  8958. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8959. archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
  8960. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8961. else
  8962. allow_undefined_flag=' -expect_unresolved \*'
  8963. 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'
  8964. 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~
  8965. $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'
  8966. # Both c and cxx compiler support -rpath directly
  8967. hardcode_libdir_flag_spec='-rpath $libdir'
  8968. fi
  8969. archive_cmds_need_lc='no'
  8970. hardcode_libdir_separator=:
  8971. ;;
  8972. solaris*)
  8973. no_undefined_flag=' -z defs'
  8974. if test "$GCC" = yes; then
  8975. wlarc='${wl}'
  8976. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8977. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8978. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8979. else
  8980. case `$CC -V 2>&1` in
  8981. *"Compilers 5.0"*)
  8982. wlarc=''
  8983. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8984. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8985. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8986. ;;
  8987. *)
  8988. wlarc='${wl}'
  8989. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8990. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8991. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8992. ;;
  8993. esac
  8994. fi
  8995. hardcode_libdir_flag_spec='-R$libdir'
  8996. hardcode_shlibpath_var=no
  8997. case $host_os in
  8998. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8999. *)
  9000. # The compiler driver will combine and reorder linker options,
  9001. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9002. # but is careful enough not to reorder.
  9003. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9004. if test "$GCC" = yes; then
  9005. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9006. else
  9007. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9008. fi
  9009. ;;
  9010. esac
  9011. link_all_deplibs=yes
  9012. ;;
  9013. sunos4*)
  9014. if test "x$host_vendor" = xsequent; then
  9015. # Use $CC to link under sequent, because it throws in some extra .o
  9016. # files that make .init and .fini sections work.
  9017. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9018. else
  9019. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9020. fi
  9021. hardcode_libdir_flag_spec='-L$libdir'
  9022. hardcode_direct=yes
  9023. hardcode_minus_L=yes
  9024. hardcode_shlibpath_var=no
  9025. ;;
  9026. sysv4)
  9027. case $host_vendor in
  9028. sni)
  9029. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9030. hardcode_direct=yes # is this really true???
  9031. ;;
  9032. siemens)
  9033. ## LD is ld it makes a PLAMLIB
  9034. ## CC just makes a GrossModule.
  9035. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9036. reload_cmds='$CC -r -o $output$reload_objs'
  9037. hardcode_direct=no
  9038. ;;
  9039. motorola)
  9040. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9041. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9042. ;;
  9043. esac
  9044. runpath_var='LD_RUN_PATH'
  9045. hardcode_shlibpath_var=no
  9046. ;;
  9047. sysv4.3*)
  9048. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9049. hardcode_shlibpath_var=no
  9050. export_dynamic_flag_spec='-Bexport'
  9051. ;;
  9052. sysv4*MP*)
  9053. if test -d /usr/nec; then
  9054. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9055. hardcode_shlibpath_var=no
  9056. runpath_var=LD_RUN_PATH
  9057. hardcode_runpath_var=yes
  9058. ld_shlibs=yes
  9059. fi
  9060. ;;
  9061. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9062. no_undefined_flag='${wl}-z,text'
  9063. archive_cmds_need_lc=no
  9064. hardcode_shlibpath_var=no
  9065. runpath_var='LD_RUN_PATH'
  9066. if test "$GCC" = yes; then
  9067. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9068. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9069. else
  9070. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9071. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9072. fi
  9073. ;;
  9074. sysv5* | sco3.2v5* | sco5v6*)
  9075. # Note: We can NOT use -z defs as we might desire, because we do not
  9076. # link with -lc, and that would cause any symbols used from libc to
  9077. # always be unresolved, which means just about no library would
  9078. # ever link correctly. If we're not using GNU ld we use -z text
  9079. # though, which does catch some bad symbols but isn't as heavy-handed
  9080. # as -z defs.
  9081. no_undefined_flag='${wl}-z,text'
  9082. allow_undefined_flag='${wl}-z,nodefs'
  9083. archive_cmds_need_lc=no
  9084. hardcode_shlibpath_var=no
  9085. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9086. hardcode_libdir_separator=':'
  9087. link_all_deplibs=yes
  9088. export_dynamic_flag_spec='${wl}-Bexport'
  9089. runpath_var='LD_RUN_PATH'
  9090. if test "$GCC" = yes; then
  9091. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9092. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9093. else
  9094. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9095. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9096. fi
  9097. ;;
  9098. uts4*)
  9099. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9100. hardcode_libdir_flag_spec='-L$libdir'
  9101. hardcode_shlibpath_var=no
  9102. ;;
  9103. *)
  9104. ld_shlibs=no
  9105. ;;
  9106. esac
  9107. if test x$host_vendor = xsni; then
  9108. case $host in
  9109. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9110. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9111. ;;
  9112. esac
  9113. fi
  9114. fi
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9116. $as_echo "$ld_shlibs" >&6; }
  9117. test "$ld_shlibs" = no && can_build_shared=no
  9118. with_gnu_ld=$with_gnu_ld
  9119. #
  9120. # Do we need to explicitly link libc?
  9121. #
  9122. case "x$archive_cmds_need_lc" in
  9123. x|xyes)
  9124. # Assume -lc should be added
  9125. archive_cmds_need_lc=yes
  9126. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9127. case $archive_cmds in
  9128. *'~'*)
  9129. # FIXME: we may have to deal with multi-command sequences.
  9130. ;;
  9131. '$CC '*)
  9132. # Test whether the compiler implicitly links with -lc since on some
  9133. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9134. # to ld, don't add -lc before -lgcc.
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9136. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9137. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. $RM conftest*
  9141. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9143. (eval $ac_compile) 2>&5
  9144. ac_status=$?
  9145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9146. test $ac_status = 0; } 2>conftest.err; then
  9147. soname=conftest
  9148. lib=conftest
  9149. libobjs=conftest.$ac_objext
  9150. deplibs=
  9151. wl=$lt_prog_compiler_wl
  9152. pic_flag=$lt_prog_compiler_pic
  9153. compiler_flags=-v
  9154. linker_flags=-v
  9155. verstring=
  9156. output_objdir=.
  9157. libname=conftest
  9158. lt_save_allow_undefined_flag=$allow_undefined_flag
  9159. allow_undefined_flag=
  9160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9161. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9162. ac_status=$?
  9163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9164. test $ac_status = 0; }
  9165. then
  9166. lt_cv_archive_cmds_need_lc=no
  9167. else
  9168. lt_cv_archive_cmds_need_lc=yes
  9169. fi
  9170. allow_undefined_flag=$lt_save_allow_undefined_flag
  9171. else
  9172. cat conftest.err 1>&5
  9173. fi
  9174. $RM conftest*
  9175. fi
  9176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9177. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9178. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9179. ;;
  9180. esac
  9181. fi
  9182. ;;
  9183. esac
  9184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9185. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9186. if test "$GCC" = yes; then
  9187. case $host_os in
  9188. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9189. *) lt_awk_arg="/^libraries:/" ;;
  9190. esac
  9191. case $host_os in
  9192. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9193. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9194. esac
  9195. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9196. case $lt_search_path_spec in
  9197. *\;*)
  9198. # if the path contains ";" then we assume it to be the separator
  9199. # otherwise default to the standard path separator (i.e. ":") - it is
  9200. # assumed that no part of a normal pathname contains ";" but that should
  9201. # okay in the real world where ";" in dirpaths is itself problematic.
  9202. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9203. ;;
  9204. *)
  9205. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9206. ;;
  9207. esac
  9208. # Ok, now we have the path, separated by spaces, we can step through it
  9209. # and add multilib dir if necessary.
  9210. lt_tmp_lt_search_path_spec=
  9211. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9212. for lt_sys_path in $lt_search_path_spec; do
  9213. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9214. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9215. else
  9216. test -d "$lt_sys_path" && \
  9217. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9218. fi
  9219. done
  9220. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9221. BEGIN {RS=" "; FS="/|\n";} {
  9222. lt_foo="";
  9223. lt_count=0;
  9224. for (lt_i = NF; lt_i > 0; lt_i--) {
  9225. if ($lt_i != "" && $lt_i != ".") {
  9226. if ($lt_i == "..") {
  9227. lt_count++;
  9228. } else {
  9229. if (lt_count == 0) {
  9230. lt_foo="/" $lt_i lt_foo;
  9231. } else {
  9232. lt_count--;
  9233. }
  9234. }
  9235. }
  9236. }
  9237. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9238. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9239. }'`
  9240. # AWK program above erroneously prepends '/' to C:/dos/paths
  9241. # for these hosts.
  9242. case $host_os in
  9243. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9244. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9245. esac
  9246. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9247. else
  9248. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9249. fi
  9250. library_names_spec=
  9251. libname_spec='lib$name'
  9252. soname_spec=
  9253. shrext_cmds=".so"
  9254. postinstall_cmds=
  9255. postuninstall_cmds=
  9256. finish_cmds=
  9257. finish_eval=
  9258. shlibpath_var=
  9259. shlibpath_overrides_runpath=unknown
  9260. version_type=none
  9261. dynamic_linker="$host_os ld.so"
  9262. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9263. need_lib_prefix=unknown
  9264. hardcode_into_libs=no
  9265. # when you set need_version to no, make sure it does not cause -set_version
  9266. # flags to be left without arguments
  9267. need_version=unknown
  9268. case $host_os in
  9269. aix3*)
  9270. version_type=linux
  9271. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9272. shlibpath_var=LIBPATH
  9273. # AIX 3 has no versioning support, so we append a major version to the name.
  9274. soname_spec='${libname}${release}${shared_ext}$major'
  9275. ;;
  9276. aix[4-9]*)
  9277. version_type=linux
  9278. need_lib_prefix=no
  9279. need_version=no
  9280. hardcode_into_libs=yes
  9281. if test "$host_cpu" = ia64; then
  9282. # AIX 5 supports IA64
  9283. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. else
  9286. # With GCC up to 2.95.x, collect2 would create an import file
  9287. # for dependence libraries. The import file would start with
  9288. # the line `#! .'. This would cause the generated library to
  9289. # depend on `.', always an invalid library. This was fixed in
  9290. # development snapshots of GCC prior to 3.0.
  9291. case $host_os in
  9292. aix4 | aix4.[01] | aix4.[01].*)
  9293. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9294. echo ' yes '
  9295. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9296. :
  9297. else
  9298. can_build_shared=no
  9299. fi
  9300. ;;
  9301. esac
  9302. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9303. # soname into executable. Probably we can add versioning support to
  9304. # collect2, so additional links can be useful in future.
  9305. if test "$aix_use_runtimelinking" = yes; then
  9306. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9307. # instead of lib<name>.a to let people know that these are not
  9308. # typical AIX shared libraries.
  9309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9310. else
  9311. # We preserve .a as extension for shared libraries through AIX4.2
  9312. # and later when we are not doing run time linking.
  9313. library_names_spec='${libname}${release}.a $libname.a'
  9314. soname_spec='${libname}${release}${shared_ext}$major'
  9315. fi
  9316. shlibpath_var=LIBPATH
  9317. fi
  9318. ;;
  9319. amigaos*)
  9320. case $host_cpu in
  9321. powerpc)
  9322. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9323. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9325. ;;
  9326. m68k)
  9327. library_names_spec='$libname.ixlibrary $libname.a'
  9328. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9329. 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'
  9330. ;;
  9331. esac
  9332. ;;
  9333. beos*)
  9334. library_names_spec='${libname}${shared_ext}'
  9335. dynamic_linker="$host_os ld.so"
  9336. shlibpath_var=LIBRARY_PATH
  9337. ;;
  9338. bsdi[45]*)
  9339. version_type=linux
  9340. need_version=no
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9344. shlibpath_var=LD_LIBRARY_PATH
  9345. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9346. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9347. # the default ld.so.conf also contains /usr/contrib/lib and
  9348. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9349. # libtool to hard-code these into programs
  9350. ;;
  9351. cygwin* | mingw* | pw32* | cegcc*)
  9352. version_type=windows
  9353. shrext_cmds=".dll"
  9354. need_version=no
  9355. need_lib_prefix=no
  9356. case $GCC,$cc_basename in
  9357. yes,*)
  9358. # gcc
  9359. library_names_spec='$libname.dll.a'
  9360. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9361. postinstall_cmds='base_file=`basename \${file}`~
  9362. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9363. dldir=$destdir/`dirname \$dlpath`~
  9364. test -d \$dldir || mkdir -p \$dldir~
  9365. $install_prog $dir/$dlname \$dldir/$dlname~
  9366. chmod a+x \$dldir/$dlname~
  9367. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9368. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9369. fi'
  9370. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9371. dlpath=$dir/\$dldll~
  9372. $RM \$dlpath'
  9373. shlibpath_overrides_runpath=yes
  9374. case $host_os in
  9375. cygwin*)
  9376. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9377. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9378. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9379. ;;
  9380. mingw* | cegcc*)
  9381. # MinGW DLLs use traditional 'lib' prefix
  9382. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9383. ;;
  9384. pw32*)
  9385. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9386. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9387. ;;
  9388. esac
  9389. dynamic_linker='Win32 ld.exe'
  9390. ;;
  9391. *,cl*)
  9392. # Native MSVC
  9393. libname_spec='$name'
  9394. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9395. library_names_spec='${libname}.dll.lib'
  9396. case $build_os in
  9397. mingw*)
  9398. sys_lib_search_path_spec=
  9399. lt_save_ifs=$IFS
  9400. IFS=';'
  9401. for lt_path in $LIB
  9402. do
  9403. IFS=$lt_save_ifs
  9404. # Let DOS variable expansion print the short 8.3 style file name.
  9405. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9406. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9407. done
  9408. IFS=$lt_save_ifs
  9409. # Convert to MSYS style.
  9410. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9411. ;;
  9412. cygwin*)
  9413. # Convert to unix form, then to dos form, then back to unix form
  9414. # but this time dos style (no spaces!) so that the unix form looks
  9415. # like /cygdrive/c/PROGRA~1:/cygdr...
  9416. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9417. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9418. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9419. ;;
  9420. *)
  9421. sys_lib_search_path_spec="$LIB"
  9422. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9423. # It is most probably a Windows format PATH.
  9424. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9425. else
  9426. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9427. fi
  9428. # FIXME: find the short name or the path components, as spaces are
  9429. # common. (e.g. "Program Files" -> "PROGRA~1")
  9430. ;;
  9431. esac
  9432. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9433. postinstall_cmds='base_file=`basename \${file}`~
  9434. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9435. dldir=$destdir/`dirname \$dlpath`~
  9436. test -d \$dldir || mkdir -p \$dldir~
  9437. $install_prog $dir/$dlname \$dldir/$dlname'
  9438. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9439. dlpath=$dir/\$dldll~
  9440. $RM \$dlpath'
  9441. shlibpath_overrides_runpath=yes
  9442. dynamic_linker='Win32 link.exe'
  9443. ;;
  9444. *)
  9445. # Assume MSVC wrapper
  9446. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9447. dynamic_linker='Win32 ld.exe'
  9448. ;;
  9449. esac
  9450. # FIXME: first we should search . and the directory the executable is in
  9451. shlibpath_var=PATH
  9452. ;;
  9453. darwin* | rhapsody*)
  9454. dynamic_linker="$host_os dyld"
  9455. version_type=darwin
  9456. need_lib_prefix=no
  9457. need_version=no
  9458. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9459. soname_spec='${libname}${release}${major}$shared_ext'
  9460. shlibpath_overrides_runpath=yes
  9461. shlibpath_var=DYLD_LIBRARY_PATH
  9462. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9463. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9464. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9465. ;;
  9466. dgux*)
  9467. version_type=linux
  9468. need_lib_prefix=no
  9469. need_version=no
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9471. soname_spec='${libname}${release}${shared_ext}$major'
  9472. shlibpath_var=LD_LIBRARY_PATH
  9473. ;;
  9474. freebsd1*)
  9475. dynamic_linker=no
  9476. ;;
  9477. freebsd* | dragonfly*)
  9478. # DragonFly does not have aout. When/if they implement a new
  9479. # versioning mechanism, adjust this.
  9480. if test -x /usr/bin/objformat; then
  9481. objformat=`/usr/bin/objformat`
  9482. else
  9483. case $host_os in
  9484. freebsd[123]*) objformat=aout ;;
  9485. *) objformat=elf ;;
  9486. esac
  9487. fi
  9488. version_type=freebsd-$objformat
  9489. case $version_type in
  9490. freebsd-elf*)
  9491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9492. need_version=no
  9493. need_lib_prefix=no
  9494. ;;
  9495. freebsd-*)
  9496. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9497. need_version=yes
  9498. ;;
  9499. esac
  9500. shlibpath_var=LD_LIBRARY_PATH
  9501. case $host_os in
  9502. freebsd2*)
  9503. shlibpath_overrides_runpath=yes
  9504. ;;
  9505. freebsd3.[01]* | freebsdelf3.[01]*)
  9506. shlibpath_overrides_runpath=yes
  9507. hardcode_into_libs=yes
  9508. ;;
  9509. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9510. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9511. shlibpath_overrides_runpath=no
  9512. hardcode_into_libs=yes
  9513. ;;
  9514. *) # from 4.6 on, and DragonFly
  9515. shlibpath_overrides_runpath=yes
  9516. hardcode_into_libs=yes
  9517. ;;
  9518. esac
  9519. ;;
  9520. gnu*)
  9521. version_type=linux
  9522. need_lib_prefix=no
  9523. need_version=no
  9524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9525. soname_spec='${libname}${release}${shared_ext}$major'
  9526. shlibpath_var=LD_LIBRARY_PATH
  9527. hardcode_into_libs=yes
  9528. ;;
  9529. haiku*)
  9530. version_type=linux
  9531. need_lib_prefix=no
  9532. need_version=no
  9533. dynamic_linker="$host_os runtime_loader"
  9534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9535. soname_spec='${libname}${release}${shared_ext}$major'
  9536. shlibpath_var=LIBRARY_PATH
  9537. shlibpath_overrides_runpath=yes
  9538. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9539. hardcode_into_libs=yes
  9540. ;;
  9541. hpux9* | hpux10* | hpux11*)
  9542. # Give a soname corresponding to the major version so that dld.sl refuses to
  9543. # link against other versions.
  9544. version_type=sunos
  9545. need_lib_prefix=no
  9546. need_version=no
  9547. case $host_cpu in
  9548. ia64*)
  9549. shrext_cmds='.so'
  9550. hardcode_into_libs=yes
  9551. dynamic_linker="$host_os dld.so"
  9552. shlibpath_var=LD_LIBRARY_PATH
  9553. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9555. soname_spec='${libname}${release}${shared_ext}$major'
  9556. if test "X$HPUX_IA64_MODE" = X32; then
  9557. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9558. else
  9559. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9560. fi
  9561. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9562. ;;
  9563. hppa*64*)
  9564. shrext_cmds='.sl'
  9565. hardcode_into_libs=yes
  9566. dynamic_linker="$host_os dld.sl"
  9567. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9568. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9570. soname_spec='${libname}${release}${shared_ext}$major'
  9571. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9572. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9573. ;;
  9574. *)
  9575. shrext_cmds='.sl'
  9576. dynamic_linker="$host_os dld.sl"
  9577. shlibpath_var=SHLIB_PATH
  9578. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9580. soname_spec='${libname}${release}${shared_ext}$major'
  9581. ;;
  9582. esac
  9583. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9584. postinstall_cmds='chmod 555 $lib'
  9585. # or fails outright, so override atomically:
  9586. install_override_mode=555
  9587. ;;
  9588. interix[3-9]*)
  9589. version_type=linux
  9590. need_lib_prefix=no
  9591. need_version=no
  9592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9593. soname_spec='${libname}${release}${shared_ext}$major'
  9594. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9595. shlibpath_var=LD_LIBRARY_PATH
  9596. shlibpath_overrides_runpath=no
  9597. hardcode_into_libs=yes
  9598. ;;
  9599. irix5* | irix6* | nonstopux*)
  9600. case $host_os in
  9601. nonstopux*) version_type=nonstopux ;;
  9602. *)
  9603. if test "$lt_cv_prog_gnu_ld" = yes; then
  9604. version_type=linux
  9605. else
  9606. version_type=irix
  9607. fi ;;
  9608. esac
  9609. need_lib_prefix=no
  9610. need_version=no
  9611. soname_spec='${libname}${release}${shared_ext}$major'
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9613. case $host_os in
  9614. irix5* | nonstopux*)
  9615. libsuff= shlibsuff=
  9616. ;;
  9617. *)
  9618. case $LD in # libtool.m4 will add one of these switches to LD
  9619. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9620. libsuff= shlibsuff= libmagic=32-bit;;
  9621. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9622. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9623. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9624. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9625. *) libsuff= shlibsuff= libmagic=never-match;;
  9626. esac
  9627. ;;
  9628. esac
  9629. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9630. shlibpath_overrides_runpath=no
  9631. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9632. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9633. hardcode_into_libs=yes
  9634. ;;
  9635. # No shared lib support for Linux oldld, aout, or coff.
  9636. linux*oldld* | linux*aout* | linux*coff*)
  9637. dynamic_linker=no
  9638. ;;
  9639. # This must be Linux ELF.
  9640. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9641. version_type=linux
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9645. soname_spec='${libname}${release}${shared_ext}$major'
  9646. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9647. shlibpath_var=LD_LIBRARY_PATH
  9648. shlibpath_overrides_runpath=no
  9649. # Some binutils ld are patched to set DT_RUNPATH
  9650. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9651. $as_echo_n "(cached) " >&6
  9652. else
  9653. lt_cv_shlibpath_overrides_runpath=no
  9654. save_LDFLAGS=$LDFLAGS
  9655. save_libdir=$libdir
  9656. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9657. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9659. /* end confdefs.h. */
  9660. int
  9661. main ()
  9662. {
  9663. ;
  9664. return 0;
  9665. }
  9666. _ACEOF
  9667. if ac_fn_c_try_link "$LINENO"; then :
  9668. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9669. lt_cv_shlibpath_overrides_runpath=yes
  9670. fi
  9671. fi
  9672. rm -f core conftest.err conftest.$ac_objext \
  9673. conftest$ac_exeext conftest.$ac_ext
  9674. LDFLAGS=$save_LDFLAGS
  9675. libdir=$save_libdir
  9676. fi
  9677. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9678. # This implies no fast_install, which is unacceptable.
  9679. # Some rework will be needed to allow for fast_install
  9680. # before this can be enabled.
  9681. hardcode_into_libs=yes
  9682. # Add ABI-specific directories to the system library path.
  9683. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9684. # Append ld.so.conf contents to the search path
  9685. if test -f /etc/ld.so.conf; then
  9686. 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' ' '`
  9687. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9688. fi
  9689. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9690. # powerpc, because MkLinux only supported shared libraries with the
  9691. # GNU dynamic linker. Since this was broken with cross compilers,
  9692. # most powerpc-linux boxes support dynamic linking these days and
  9693. # people can always --disable-shared, the test was removed, and we
  9694. # assume the GNU/Linux dynamic linker is in use.
  9695. dynamic_linker='GNU/Linux ld.so'
  9696. ;;
  9697. netbsd*)
  9698. version_type=sunos
  9699. need_lib_prefix=no
  9700. need_version=no
  9701. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9703. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9704. dynamic_linker='NetBSD (a.out) ld.so'
  9705. else
  9706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9707. soname_spec='${libname}${release}${shared_ext}$major'
  9708. dynamic_linker='NetBSD ld.elf_so'
  9709. fi
  9710. shlibpath_var=LD_LIBRARY_PATH
  9711. shlibpath_overrides_runpath=yes
  9712. hardcode_into_libs=yes
  9713. ;;
  9714. newsos6)
  9715. version_type=linux
  9716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9717. shlibpath_var=LD_LIBRARY_PATH
  9718. shlibpath_overrides_runpath=yes
  9719. ;;
  9720. *nto* | *qnx*)
  9721. version_type=qnx
  9722. need_lib_prefix=no
  9723. need_version=no
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9725. soname_spec='${libname}${release}${shared_ext}$major'
  9726. shlibpath_var=LD_LIBRARY_PATH
  9727. shlibpath_overrides_runpath=no
  9728. hardcode_into_libs=yes
  9729. dynamic_linker='ldqnx.so'
  9730. ;;
  9731. openbsd*)
  9732. version_type=sunos
  9733. sys_lib_dlsearch_path_spec="/usr/lib"
  9734. need_lib_prefix=no
  9735. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9736. case $host_os in
  9737. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9738. *) need_version=no ;;
  9739. esac
  9740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9741. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9742. shlibpath_var=LD_LIBRARY_PATH
  9743. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9744. case $host_os in
  9745. openbsd2.[89] | openbsd2.[89].*)
  9746. shlibpath_overrides_runpath=no
  9747. ;;
  9748. *)
  9749. shlibpath_overrides_runpath=yes
  9750. ;;
  9751. esac
  9752. else
  9753. shlibpath_overrides_runpath=yes
  9754. fi
  9755. ;;
  9756. os2*)
  9757. libname_spec='$name'
  9758. shrext_cmds=".dll"
  9759. need_lib_prefix=no
  9760. library_names_spec='$libname${shared_ext} $libname.a'
  9761. dynamic_linker='OS/2 ld.exe'
  9762. shlibpath_var=LIBPATH
  9763. ;;
  9764. osf3* | osf4* | osf5*)
  9765. version_type=osf
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. soname_spec='${libname}${release}${shared_ext}$major'
  9769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9772. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9773. ;;
  9774. rdos*)
  9775. dynamic_linker=no
  9776. ;;
  9777. solaris*)
  9778. version_type=linux
  9779. need_lib_prefix=no
  9780. need_version=no
  9781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9782. soname_spec='${libname}${release}${shared_ext}$major'
  9783. shlibpath_var=LD_LIBRARY_PATH
  9784. shlibpath_overrides_runpath=yes
  9785. hardcode_into_libs=yes
  9786. # ldd complains unless libraries are executable
  9787. postinstall_cmds='chmod +x $lib'
  9788. ;;
  9789. sunos4*)
  9790. version_type=sunos
  9791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9792. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. shlibpath_overrides_runpath=yes
  9795. if test "$with_gnu_ld" = yes; then
  9796. need_lib_prefix=no
  9797. fi
  9798. need_version=yes
  9799. ;;
  9800. sysv4 | sysv4.3*)
  9801. version_type=linux
  9802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9803. soname_spec='${libname}${release}${shared_ext}$major'
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. case $host_vendor in
  9806. sni)
  9807. shlibpath_overrides_runpath=no
  9808. need_lib_prefix=no
  9809. runpath_var=LD_RUN_PATH
  9810. ;;
  9811. siemens)
  9812. need_lib_prefix=no
  9813. ;;
  9814. motorola)
  9815. need_lib_prefix=no
  9816. need_version=no
  9817. shlibpath_overrides_runpath=no
  9818. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9819. ;;
  9820. esac
  9821. ;;
  9822. sysv4*MP*)
  9823. if test -d /usr/nec ;then
  9824. version_type=linux
  9825. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9826. soname_spec='$libname${shared_ext}.$major'
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. fi
  9829. ;;
  9830. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9831. version_type=freebsd-elf
  9832. need_lib_prefix=no
  9833. need_version=no
  9834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9835. soname_spec='${libname}${release}${shared_ext}$major'
  9836. shlibpath_var=LD_LIBRARY_PATH
  9837. shlibpath_overrides_runpath=yes
  9838. hardcode_into_libs=yes
  9839. if test "$with_gnu_ld" = yes; then
  9840. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9841. else
  9842. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9843. case $host_os in
  9844. sco3.2v5*)
  9845. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9846. ;;
  9847. esac
  9848. fi
  9849. sys_lib_dlsearch_path_spec='/usr/lib'
  9850. ;;
  9851. tpf*)
  9852. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9853. version_type=linux
  9854. need_lib_prefix=no
  9855. need_version=no
  9856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9857. shlibpath_var=LD_LIBRARY_PATH
  9858. shlibpath_overrides_runpath=no
  9859. hardcode_into_libs=yes
  9860. ;;
  9861. uts4*)
  9862. version_type=linux
  9863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9864. soname_spec='${libname}${release}${shared_ext}$major'
  9865. shlibpath_var=LD_LIBRARY_PATH
  9866. ;;
  9867. *)
  9868. dynamic_linker=no
  9869. ;;
  9870. esac
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9872. $as_echo "$dynamic_linker" >&6; }
  9873. test "$dynamic_linker" = no && can_build_shared=no
  9874. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9875. if test "$GCC" = yes; then
  9876. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9877. fi
  9878. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9879. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9880. fi
  9881. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9882. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9883. fi
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9885. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9886. hardcode_action=
  9887. if test -n "$hardcode_libdir_flag_spec" ||
  9888. test -n "$runpath_var" ||
  9889. test "X$hardcode_automatic" = "Xyes" ; then
  9890. # We can hardcode non-existent directories.
  9891. if test "$hardcode_direct" != no &&
  9892. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9893. # have to relink, otherwise we might link with an installed library
  9894. # when we should be linking with a yet-to-be-installed one
  9895. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9896. test "$hardcode_minus_L" != no; then
  9897. # Linking always hardcodes the temporary library directory.
  9898. hardcode_action=relink
  9899. else
  9900. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9901. hardcode_action=immediate
  9902. fi
  9903. else
  9904. # We cannot hardcode anything, or else we can only hardcode existing
  9905. # directories.
  9906. hardcode_action=unsupported
  9907. fi
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9909. $as_echo "$hardcode_action" >&6; }
  9910. if test "$hardcode_action" = relink ||
  9911. test "$inherit_rpath" = yes; then
  9912. # Fast installation is not supported
  9913. enable_fast_install=no
  9914. elif test "$shlibpath_overrides_runpath" = yes ||
  9915. test "$enable_shared" = no; then
  9916. # Fast installation is not necessary
  9917. enable_fast_install=needless
  9918. fi
  9919. if test "x$enable_dlopen" != xyes; then
  9920. enable_dlopen=unknown
  9921. enable_dlopen_self=unknown
  9922. enable_dlopen_self_static=unknown
  9923. else
  9924. lt_cv_dlopen=no
  9925. lt_cv_dlopen_libs=
  9926. case $host_os in
  9927. beos*)
  9928. lt_cv_dlopen="load_add_on"
  9929. lt_cv_dlopen_libs=
  9930. lt_cv_dlopen_self=yes
  9931. ;;
  9932. mingw* | pw32* | cegcc*)
  9933. lt_cv_dlopen="LoadLibrary"
  9934. lt_cv_dlopen_libs=
  9935. ;;
  9936. cygwin*)
  9937. lt_cv_dlopen="dlopen"
  9938. lt_cv_dlopen_libs=
  9939. ;;
  9940. darwin*)
  9941. # if libdl is installed we need to link against it
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9943. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9944. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9945. $as_echo_n "(cached) " >&6
  9946. else
  9947. ac_check_lib_save_LIBS=$LIBS
  9948. LIBS="-ldl $LIBS"
  9949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9950. /* end confdefs.h. */
  9951. /* Override any GCC internal prototype to avoid an error.
  9952. Use char because int might match the return type of a GCC
  9953. builtin and then its argument prototype would still apply. */
  9954. #ifdef __cplusplus
  9955. extern "C"
  9956. #endif
  9957. char dlopen ();
  9958. int
  9959. main ()
  9960. {
  9961. return dlopen ();
  9962. ;
  9963. return 0;
  9964. }
  9965. _ACEOF
  9966. if ac_fn_c_try_link "$LINENO"; then :
  9967. ac_cv_lib_dl_dlopen=yes
  9968. else
  9969. ac_cv_lib_dl_dlopen=no
  9970. fi
  9971. rm -f core conftest.err conftest.$ac_objext \
  9972. conftest$ac_exeext conftest.$ac_ext
  9973. LIBS=$ac_check_lib_save_LIBS
  9974. fi
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9976. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9977. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9978. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9979. else
  9980. lt_cv_dlopen="dyld"
  9981. lt_cv_dlopen_libs=
  9982. lt_cv_dlopen_self=yes
  9983. fi
  9984. ;;
  9985. *)
  9986. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9987. if test "x$ac_cv_func_shl_load" = xyes; then :
  9988. lt_cv_dlopen="shl_load"
  9989. else
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9991. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9992. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9993. $as_echo_n "(cached) " >&6
  9994. else
  9995. ac_check_lib_save_LIBS=$LIBS
  9996. LIBS="-ldld $LIBS"
  9997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9998. /* end confdefs.h. */
  9999. /* Override any GCC internal prototype to avoid an error.
  10000. Use char because int might match the return type of a GCC
  10001. builtin and then its argument prototype would still apply. */
  10002. #ifdef __cplusplus
  10003. extern "C"
  10004. #endif
  10005. char shl_load ();
  10006. int
  10007. main ()
  10008. {
  10009. return shl_load ();
  10010. ;
  10011. return 0;
  10012. }
  10013. _ACEOF
  10014. if ac_fn_c_try_link "$LINENO"; then :
  10015. ac_cv_lib_dld_shl_load=yes
  10016. else
  10017. ac_cv_lib_dld_shl_load=no
  10018. fi
  10019. rm -f core conftest.err conftest.$ac_objext \
  10020. conftest$ac_exeext conftest.$ac_ext
  10021. LIBS=$ac_check_lib_save_LIBS
  10022. fi
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10024. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10025. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10026. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10027. else
  10028. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10029. if test "x$ac_cv_func_dlopen" = xyes; then :
  10030. lt_cv_dlopen="dlopen"
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10033. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10034. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10035. $as_echo_n "(cached) " >&6
  10036. else
  10037. ac_check_lib_save_LIBS=$LIBS
  10038. LIBS="-ldl $LIBS"
  10039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10040. /* end confdefs.h. */
  10041. /* Override any GCC internal prototype to avoid an error.
  10042. Use char because int might match the return type of a GCC
  10043. builtin and then its argument prototype would still apply. */
  10044. #ifdef __cplusplus
  10045. extern "C"
  10046. #endif
  10047. char dlopen ();
  10048. int
  10049. main ()
  10050. {
  10051. return dlopen ();
  10052. ;
  10053. return 0;
  10054. }
  10055. _ACEOF
  10056. if ac_fn_c_try_link "$LINENO"; then :
  10057. ac_cv_lib_dl_dlopen=yes
  10058. else
  10059. ac_cv_lib_dl_dlopen=no
  10060. fi
  10061. rm -f core conftest.err conftest.$ac_objext \
  10062. conftest$ac_exeext conftest.$ac_ext
  10063. LIBS=$ac_check_lib_save_LIBS
  10064. fi
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10066. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10067. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10068. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10069. else
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10071. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10072. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. ac_check_lib_save_LIBS=$LIBS
  10076. LIBS="-lsvld $LIBS"
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. /* Override any GCC internal prototype to avoid an error.
  10080. Use char because int might match the return type of a GCC
  10081. builtin and then its argument prototype would still apply. */
  10082. #ifdef __cplusplus
  10083. extern "C"
  10084. #endif
  10085. char dlopen ();
  10086. int
  10087. main ()
  10088. {
  10089. return dlopen ();
  10090. ;
  10091. return 0;
  10092. }
  10093. _ACEOF
  10094. if ac_fn_c_try_link "$LINENO"; then :
  10095. ac_cv_lib_svld_dlopen=yes
  10096. else
  10097. ac_cv_lib_svld_dlopen=no
  10098. fi
  10099. rm -f core conftest.err conftest.$ac_objext \
  10100. conftest$ac_exeext conftest.$ac_ext
  10101. LIBS=$ac_check_lib_save_LIBS
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10104. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10105. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10106. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10107. else
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10109. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10110. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. ac_check_lib_save_LIBS=$LIBS
  10114. LIBS="-ldld $LIBS"
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. /* Override any GCC internal prototype to avoid an error.
  10118. Use char because int might match the return type of a GCC
  10119. builtin and then its argument prototype would still apply. */
  10120. #ifdef __cplusplus
  10121. extern "C"
  10122. #endif
  10123. char dld_link ();
  10124. int
  10125. main ()
  10126. {
  10127. return dld_link ();
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_c_try_link "$LINENO"; then :
  10133. ac_cv_lib_dld_dld_link=yes
  10134. else
  10135. ac_cv_lib_dld_dld_link=no
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext \
  10138. conftest$ac_exeext conftest.$ac_ext
  10139. LIBS=$ac_check_lib_save_LIBS
  10140. fi
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10142. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10143. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10144. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10145. fi
  10146. fi
  10147. fi
  10148. fi
  10149. fi
  10150. fi
  10151. ;;
  10152. esac
  10153. if test "x$lt_cv_dlopen" != xno; then
  10154. enable_dlopen=yes
  10155. else
  10156. enable_dlopen=no
  10157. fi
  10158. case $lt_cv_dlopen in
  10159. dlopen)
  10160. save_CPPFLAGS="$CPPFLAGS"
  10161. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10162. save_LDFLAGS="$LDFLAGS"
  10163. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10164. save_LIBS="$LIBS"
  10165. LIBS="$lt_cv_dlopen_libs $LIBS"
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10167. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10168. if ${lt_cv_dlopen_self+:} false; then :
  10169. $as_echo_n "(cached) " >&6
  10170. else
  10171. if test "$cross_compiling" = yes; then :
  10172. lt_cv_dlopen_self=cross
  10173. else
  10174. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10175. lt_status=$lt_dlunknown
  10176. cat > conftest.$ac_ext <<_LT_EOF
  10177. #line $LINENO "configure"
  10178. #include "confdefs.h"
  10179. #if HAVE_DLFCN_H
  10180. #include <dlfcn.h>
  10181. #endif
  10182. #include <stdio.h>
  10183. #ifdef RTLD_GLOBAL
  10184. # define LT_DLGLOBAL RTLD_GLOBAL
  10185. #else
  10186. # ifdef DL_GLOBAL
  10187. # define LT_DLGLOBAL DL_GLOBAL
  10188. # else
  10189. # define LT_DLGLOBAL 0
  10190. # endif
  10191. #endif
  10192. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10193. find out it does not work in some platform. */
  10194. #ifndef LT_DLLAZY_OR_NOW
  10195. # ifdef RTLD_LAZY
  10196. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10197. # else
  10198. # ifdef DL_LAZY
  10199. # define LT_DLLAZY_OR_NOW DL_LAZY
  10200. # else
  10201. # ifdef RTLD_NOW
  10202. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10203. # else
  10204. # ifdef DL_NOW
  10205. # define LT_DLLAZY_OR_NOW DL_NOW
  10206. # else
  10207. # define LT_DLLAZY_OR_NOW 0
  10208. # endif
  10209. # endif
  10210. # endif
  10211. # endif
  10212. #endif
  10213. /* When -fvisbility=hidden is used, assume the code has been annotated
  10214. correspondingly for the symbols needed. */
  10215. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10216. int fnord () __attribute__((visibility("default")));
  10217. #endif
  10218. int fnord () { return 42; }
  10219. int main ()
  10220. {
  10221. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10222. int status = $lt_dlunknown;
  10223. if (self)
  10224. {
  10225. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10226. else
  10227. {
  10228. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10229. else puts (dlerror ());
  10230. }
  10231. /* dlclose (self); */
  10232. }
  10233. else
  10234. puts (dlerror ());
  10235. return status;
  10236. }
  10237. _LT_EOF
  10238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10239. (eval $ac_link) 2>&5
  10240. ac_status=$?
  10241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10242. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10243. (./conftest; exit; ) >&5 2>/dev/null
  10244. lt_status=$?
  10245. case x$lt_status in
  10246. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10247. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10248. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10249. esac
  10250. else :
  10251. # compilation failed
  10252. lt_cv_dlopen_self=no
  10253. fi
  10254. fi
  10255. rm -fr conftest*
  10256. fi
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10258. $as_echo "$lt_cv_dlopen_self" >&6; }
  10259. if test "x$lt_cv_dlopen_self" = xyes; then
  10260. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10262. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10263. if ${lt_cv_dlopen_self_static+:} false; then :
  10264. $as_echo_n "(cached) " >&6
  10265. else
  10266. if test "$cross_compiling" = yes; then :
  10267. lt_cv_dlopen_self_static=cross
  10268. else
  10269. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10270. lt_status=$lt_dlunknown
  10271. cat > conftest.$ac_ext <<_LT_EOF
  10272. #line $LINENO "configure"
  10273. #include "confdefs.h"
  10274. #if HAVE_DLFCN_H
  10275. #include <dlfcn.h>
  10276. #endif
  10277. #include <stdio.h>
  10278. #ifdef RTLD_GLOBAL
  10279. # define LT_DLGLOBAL RTLD_GLOBAL
  10280. #else
  10281. # ifdef DL_GLOBAL
  10282. # define LT_DLGLOBAL DL_GLOBAL
  10283. # else
  10284. # define LT_DLGLOBAL 0
  10285. # endif
  10286. #endif
  10287. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10288. find out it does not work in some platform. */
  10289. #ifndef LT_DLLAZY_OR_NOW
  10290. # ifdef RTLD_LAZY
  10291. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10292. # else
  10293. # ifdef DL_LAZY
  10294. # define LT_DLLAZY_OR_NOW DL_LAZY
  10295. # else
  10296. # ifdef RTLD_NOW
  10297. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10298. # else
  10299. # ifdef DL_NOW
  10300. # define LT_DLLAZY_OR_NOW DL_NOW
  10301. # else
  10302. # define LT_DLLAZY_OR_NOW 0
  10303. # endif
  10304. # endif
  10305. # endif
  10306. # endif
  10307. #endif
  10308. /* When -fvisbility=hidden is used, assume the code has been annotated
  10309. correspondingly for the symbols needed. */
  10310. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10311. int fnord () __attribute__((visibility("default")));
  10312. #endif
  10313. int fnord () { return 42; }
  10314. int main ()
  10315. {
  10316. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10317. int status = $lt_dlunknown;
  10318. if (self)
  10319. {
  10320. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10321. else
  10322. {
  10323. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10324. else puts (dlerror ());
  10325. }
  10326. /* dlclose (self); */
  10327. }
  10328. else
  10329. puts (dlerror ());
  10330. return status;
  10331. }
  10332. _LT_EOF
  10333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10334. (eval $ac_link) 2>&5
  10335. ac_status=$?
  10336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10337. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10338. (./conftest; exit; ) >&5 2>/dev/null
  10339. lt_status=$?
  10340. case x$lt_status in
  10341. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10342. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10343. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10344. esac
  10345. else :
  10346. # compilation failed
  10347. lt_cv_dlopen_self_static=no
  10348. fi
  10349. fi
  10350. rm -fr conftest*
  10351. fi
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10353. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10354. fi
  10355. CPPFLAGS="$save_CPPFLAGS"
  10356. LDFLAGS="$save_LDFLAGS"
  10357. LIBS="$save_LIBS"
  10358. ;;
  10359. esac
  10360. case $lt_cv_dlopen_self in
  10361. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10362. *) enable_dlopen_self=unknown ;;
  10363. esac
  10364. case $lt_cv_dlopen_self_static in
  10365. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10366. *) enable_dlopen_self_static=unknown ;;
  10367. esac
  10368. fi
  10369. striplib=
  10370. old_striplib=
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10372. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10373. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10374. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10375. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10377. $as_echo "yes" >&6; }
  10378. else
  10379. # FIXME - insert some real tests, host_os isn't really good enough
  10380. case $host_os in
  10381. darwin*)
  10382. if test -n "$STRIP" ; then
  10383. striplib="$STRIP -x"
  10384. old_striplib="$STRIP -S"
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10386. $as_echo "yes" >&6; }
  10387. else
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10389. $as_echo "no" >&6; }
  10390. fi
  10391. ;;
  10392. *)
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10394. $as_echo "no" >&6; }
  10395. ;;
  10396. esac
  10397. fi
  10398. # Report which library types will actually be built
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10400. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10402. $as_echo "$can_build_shared" >&6; }
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10404. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10405. test "$can_build_shared" = "no" && enable_shared=no
  10406. # On AIX, shared libraries and static libraries use the same namespace, and
  10407. # are all built from PIC.
  10408. case $host_os in
  10409. aix3*)
  10410. test "$enable_shared" = yes && enable_static=no
  10411. if test -n "$RANLIB"; then
  10412. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10413. postinstall_cmds='$RANLIB $lib'
  10414. fi
  10415. ;;
  10416. aix[4-9]*)
  10417. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10418. test "$enable_shared" = yes && enable_static=no
  10419. fi
  10420. ;;
  10421. esac
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10423. $as_echo "$enable_shared" >&6; }
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10425. $as_echo_n "checking whether to build static libraries... " >&6; }
  10426. # Make sure either enable_shared or enable_static is yes.
  10427. test "$enable_shared" = yes || enable_static=yes
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10429. $as_echo "$enable_static" >&6; }
  10430. fi
  10431. ac_ext=cpp
  10432. ac_cpp='$CXXCPP $CPPFLAGS'
  10433. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10434. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10435. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10436. CC="$lt_save_CC"
  10437. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10438. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10439. (test "X$CXX" != "Xg++"))) ; then
  10440. ac_ext=cpp
  10441. ac_cpp='$CXXCPP $CPPFLAGS'
  10442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10446. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10447. if test -z "$CXXCPP"; then
  10448. if ${ac_cv_prog_CXXCPP+:} false; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. # Double quotes because CXXCPP needs to be expanded
  10452. for CXXCPP in "$CXX -E" "/lib/cpp"
  10453. do
  10454. ac_preproc_ok=false
  10455. for ac_cxx_preproc_warn_flag in '' yes
  10456. do
  10457. # Use a header file that comes with gcc, so configuring glibc
  10458. # with a fresh cross-compiler works.
  10459. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10460. # <limits.h> exists even on freestanding compilers.
  10461. # On the NeXT, cc -E runs the code through the compiler's parser,
  10462. # not just through cpp. "Syntax error" is here to catch this case.
  10463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10464. /* end confdefs.h. */
  10465. #ifdef __STDC__
  10466. # include <limits.h>
  10467. #else
  10468. # include <assert.h>
  10469. #endif
  10470. Syntax error
  10471. _ACEOF
  10472. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10473. else
  10474. # Broken: fails on valid input.
  10475. continue
  10476. fi
  10477. rm -f conftest.err conftest.i conftest.$ac_ext
  10478. # OK, works on sane cases. Now check whether nonexistent headers
  10479. # can be detected and how.
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. #include <ac_nonexistent.h>
  10483. _ACEOF
  10484. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10485. # Broken: success on invalid input.
  10486. continue
  10487. else
  10488. # Passes both tests.
  10489. ac_preproc_ok=:
  10490. break
  10491. fi
  10492. rm -f conftest.err conftest.i conftest.$ac_ext
  10493. done
  10494. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10495. rm -f conftest.i conftest.err conftest.$ac_ext
  10496. if $ac_preproc_ok; then :
  10497. break
  10498. fi
  10499. done
  10500. ac_cv_prog_CXXCPP=$CXXCPP
  10501. fi
  10502. CXXCPP=$ac_cv_prog_CXXCPP
  10503. else
  10504. ac_cv_prog_CXXCPP=$CXXCPP
  10505. fi
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10507. $as_echo "$CXXCPP" >&6; }
  10508. ac_preproc_ok=false
  10509. for ac_cxx_preproc_warn_flag in '' yes
  10510. do
  10511. # Use a header file that comes with gcc, so configuring glibc
  10512. # with a fresh cross-compiler works.
  10513. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10514. # <limits.h> exists even on freestanding compilers.
  10515. # On the NeXT, cc -E runs the code through the compiler's parser,
  10516. # not just through cpp. "Syntax error" is here to catch this case.
  10517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10518. /* end confdefs.h. */
  10519. #ifdef __STDC__
  10520. # include <limits.h>
  10521. #else
  10522. # include <assert.h>
  10523. #endif
  10524. Syntax error
  10525. _ACEOF
  10526. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10527. else
  10528. # Broken: fails on valid input.
  10529. continue
  10530. fi
  10531. rm -f conftest.err conftest.i conftest.$ac_ext
  10532. # OK, works on sane cases. Now check whether nonexistent headers
  10533. # can be detected and how.
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. #include <ac_nonexistent.h>
  10537. _ACEOF
  10538. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10539. # Broken: success on invalid input.
  10540. continue
  10541. else
  10542. # Passes both tests.
  10543. ac_preproc_ok=:
  10544. break
  10545. fi
  10546. rm -f conftest.err conftest.i conftest.$ac_ext
  10547. done
  10548. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10549. rm -f conftest.i conftest.err conftest.$ac_ext
  10550. if $ac_preproc_ok; then :
  10551. else
  10552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10554. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10555. See \`config.log' for more details" "$LINENO" 5; }
  10556. fi
  10557. ac_ext=cpp
  10558. ac_cpp='$CXXCPP $CPPFLAGS'
  10559. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10560. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10561. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10562. else
  10563. _lt_caught_CXX_error=yes
  10564. fi
  10565. ac_ext=cpp
  10566. ac_cpp='$CXXCPP $CPPFLAGS'
  10567. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10568. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10569. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10570. archive_cmds_need_lc_CXX=no
  10571. allow_undefined_flag_CXX=
  10572. always_export_symbols_CXX=no
  10573. archive_expsym_cmds_CXX=
  10574. compiler_needs_object_CXX=no
  10575. export_dynamic_flag_spec_CXX=
  10576. hardcode_direct_CXX=no
  10577. hardcode_direct_absolute_CXX=no
  10578. hardcode_libdir_flag_spec_CXX=
  10579. hardcode_libdir_flag_spec_ld_CXX=
  10580. hardcode_libdir_separator_CXX=
  10581. hardcode_minus_L_CXX=no
  10582. hardcode_shlibpath_var_CXX=unsupported
  10583. hardcode_automatic_CXX=no
  10584. inherit_rpath_CXX=no
  10585. module_cmds_CXX=
  10586. module_expsym_cmds_CXX=
  10587. link_all_deplibs_CXX=unknown
  10588. old_archive_cmds_CXX=$old_archive_cmds
  10589. reload_flag_CXX=$reload_flag
  10590. reload_cmds_CXX=$reload_cmds
  10591. no_undefined_flag_CXX=
  10592. whole_archive_flag_spec_CXX=
  10593. enable_shared_with_static_runtimes_CXX=no
  10594. # Source file extension for C++ test sources.
  10595. ac_ext=cpp
  10596. # Object file extension for compiled C++ test sources.
  10597. objext=o
  10598. objext_CXX=$objext
  10599. # No sense in running all these tests if we already determined that
  10600. # the CXX compiler isn't working. Some variables (like enable_shared)
  10601. # are currently assumed to apply to all compilers on this platform,
  10602. # and will be corrupted by setting them based on a non-working compiler.
  10603. if test "$_lt_caught_CXX_error" != yes; then
  10604. # Code to be used in simple compile tests
  10605. lt_simple_compile_test_code="int some_variable = 0;"
  10606. # Code to be used in simple link tests
  10607. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10608. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10609. # If no C compiler was specified, use CC.
  10610. LTCC=${LTCC-"$CC"}
  10611. # If no C compiler flags were specified, use CFLAGS.
  10612. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10613. # Allow CC to be a program name with arguments.
  10614. compiler=$CC
  10615. # save warnings/boilerplate of simple test code
  10616. ac_outfile=conftest.$ac_objext
  10617. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10618. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10619. _lt_compiler_boilerplate=`cat conftest.err`
  10620. $RM conftest*
  10621. ac_outfile=conftest.$ac_objext
  10622. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10623. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10624. _lt_linker_boilerplate=`cat conftest.err`
  10625. $RM -r conftest*
  10626. # Allow CC to be a program name with arguments.
  10627. lt_save_CC=$CC
  10628. lt_save_CFLAGS=$CFLAGS
  10629. lt_save_LD=$LD
  10630. lt_save_GCC=$GCC
  10631. GCC=$GXX
  10632. lt_save_with_gnu_ld=$with_gnu_ld
  10633. lt_save_path_LD=$lt_cv_path_LD
  10634. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10635. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10636. else
  10637. $as_unset lt_cv_prog_gnu_ld
  10638. fi
  10639. if test -n "${lt_cv_path_LDCXX+set}"; then
  10640. lt_cv_path_LD=$lt_cv_path_LDCXX
  10641. else
  10642. $as_unset lt_cv_path_LD
  10643. fi
  10644. test -z "${LDCXX+set}" || LD=$LDCXX
  10645. CC=${CXX-"c++"}
  10646. CFLAGS=$CXXFLAGS
  10647. compiler=$CC
  10648. compiler_CXX=$CC
  10649. for cc_temp in $compiler""; do
  10650. case $cc_temp in
  10651. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10652. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10653. \-*) ;;
  10654. *) break;;
  10655. esac
  10656. done
  10657. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10658. if test -n "$compiler"; then
  10659. # We don't want -fno-exception when compiling C++ code, so set the
  10660. # no_builtin_flag separately
  10661. if test "$GXX" = yes; then
  10662. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10663. else
  10664. lt_prog_compiler_no_builtin_flag_CXX=
  10665. fi
  10666. if test "$GXX" = yes; then
  10667. # Set up default GNU C++ configuration
  10668. # Check whether --with-gnu-ld was given.
  10669. if test "${with_gnu_ld+set}" = set; then :
  10670. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10671. else
  10672. with_gnu_ld=no
  10673. fi
  10674. ac_prog=ld
  10675. if test "$GCC" = yes; then
  10676. # Check if gcc -print-prog-name=ld gives a path.
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10678. $as_echo_n "checking for ld used by $CC... " >&6; }
  10679. case $host in
  10680. *-*-mingw*)
  10681. # gcc leaves a trailing carriage return which upsets mingw
  10682. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10683. *)
  10684. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10685. esac
  10686. case $ac_prog in
  10687. # Accept absolute paths.
  10688. [\\/]* | ?:[\\/]*)
  10689. re_direlt='/[^/][^/]*/\.\./'
  10690. # Canonicalize the pathname of ld
  10691. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10692. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10693. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10694. done
  10695. test -z "$LD" && LD="$ac_prog"
  10696. ;;
  10697. "")
  10698. # If it fails, then pretend we aren't using GCC.
  10699. ac_prog=ld
  10700. ;;
  10701. *)
  10702. # If it is relative, then search for the first ld in PATH.
  10703. with_gnu_ld=unknown
  10704. ;;
  10705. esac
  10706. elif test "$with_gnu_ld" = yes; then
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10708. $as_echo_n "checking for GNU ld... " >&6; }
  10709. else
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10711. $as_echo_n "checking for non-GNU ld... " >&6; }
  10712. fi
  10713. if ${lt_cv_path_LD+:} false; then :
  10714. $as_echo_n "(cached) " >&6
  10715. else
  10716. if test -z "$LD"; then
  10717. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10718. for ac_dir in $PATH; do
  10719. IFS="$lt_save_ifs"
  10720. test -z "$ac_dir" && ac_dir=.
  10721. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10722. lt_cv_path_LD="$ac_dir/$ac_prog"
  10723. # Check to see if the program is GNU ld. I'd rather use --version,
  10724. # but apparently some variants of GNU ld only accept -v.
  10725. # Break only if it was the GNU/non-GNU ld that we prefer.
  10726. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10727. *GNU* | *'with BFD'*)
  10728. test "$with_gnu_ld" != no && break
  10729. ;;
  10730. *)
  10731. test "$with_gnu_ld" != yes && break
  10732. ;;
  10733. esac
  10734. fi
  10735. done
  10736. IFS="$lt_save_ifs"
  10737. else
  10738. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10739. fi
  10740. fi
  10741. LD="$lt_cv_path_LD"
  10742. if test -n "$LD"; then
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10744. $as_echo "$LD" >&6; }
  10745. else
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10747. $as_echo "no" >&6; }
  10748. fi
  10749. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10751. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10752. if ${lt_cv_prog_gnu_ld+:} false; then :
  10753. $as_echo_n "(cached) " >&6
  10754. else
  10755. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10756. case `$LD -v 2>&1 </dev/null` in
  10757. *GNU* | *'with BFD'*)
  10758. lt_cv_prog_gnu_ld=yes
  10759. ;;
  10760. *)
  10761. lt_cv_prog_gnu_ld=no
  10762. ;;
  10763. esac
  10764. fi
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10766. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10767. with_gnu_ld=$lt_cv_prog_gnu_ld
  10768. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10769. # archiving commands below assume that GNU ld is being used.
  10770. if test "$with_gnu_ld" = yes; then
  10771. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10772. 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'
  10773. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10774. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10775. # If archive_cmds runs LD, not CC, wlarc should be empty
  10776. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10777. # investigate it a little bit more. (MM)
  10778. wlarc='${wl}'
  10779. # ancient GNU ld didn't support --whole-archive et. al.
  10780. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10781. $GREP 'no-whole-archive' > /dev/null; then
  10782. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10783. else
  10784. whole_archive_flag_spec_CXX=
  10785. fi
  10786. else
  10787. with_gnu_ld=no
  10788. wlarc=
  10789. # A generic and very simple default shared library creation
  10790. # command for GNU C++ for the case where it uses the native
  10791. # linker, instead of GNU ld. If possible, this setting should
  10792. # overridden to take advantage of the native linker features on
  10793. # the platform it is being used on.
  10794. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10795. fi
  10796. # Commands to make compiler produce verbose output that lists
  10797. # what "hidden" libraries, object files and flags are used when
  10798. # linking a shared library.
  10799. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10800. else
  10801. GXX=no
  10802. with_gnu_ld=no
  10803. wlarc=
  10804. fi
  10805. # PORTME: fill in a description of your system's C++ link characteristics
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10807. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10808. ld_shlibs_CXX=yes
  10809. case $host_os in
  10810. aix3*)
  10811. # FIXME: insert proper C++ library support
  10812. ld_shlibs_CXX=no
  10813. ;;
  10814. aix[4-9]*)
  10815. if test "$host_cpu" = ia64; then
  10816. # On IA64, the linker does run time linking by default, so we don't
  10817. # have to do anything special.
  10818. aix_use_runtimelinking=no
  10819. exp_sym_flag='-Bexport'
  10820. no_entry_flag=""
  10821. else
  10822. aix_use_runtimelinking=no
  10823. # Test if we are trying to use run time linking or normal
  10824. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10825. # need to do runtime linking.
  10826. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10827. for ld_flag in $LDFLAGS; do
  10828. case $ld_flag in
  10829. *-brtl*)
  10830. aix_use_runtimelinking=yes
  10831. break
  10832. ;;
  10833. esac
  10834. done
  10835. ;;
  10836. esac
  10837. exp_sym_flag='-bexport'
  10838. no_entry_flag='-bnoentry'
  10839. fi
  10840. # When large executables or shared objects are built, AIX ld can
  10841. # have problems creating the table of contents. If linking a library
  10842. # or program results in "error TOC overflow" add -mminimal-toc to
  10843. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10844. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10845. archive_cmds_CXX=''
  10846. hardcode_direct_CXX=yes
  10847. hardcode_direct_absolute_CXX=yes
  10848. hardcode_libdir_separator_CXX=':'
  10849. link_all_deplibs_CXX=yes
  10850. file_list_spec_CXX='${wl}-f,'
  10851. if test "$GXX" = yes; then
  10852. case $host_os in aix4.[012]|aix4.[012].*)
  10853. # We only want to do this on AIX 4.2 and lower, the check
  10854. # below for broken collect2 doesn't work under 4.3+
  10855. collect2name=`${CC} -print-prog-name=collect2`
  10856. if test -f "$collect2name" &&
  10857. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10858. then
  10859. # We have reworked collect2
  10860. :
  10861. else
  10862. # We have old collect2
  10863. hardcode_direct_CXX=unsupported
  10864. # It fails to find uninstalled libraries when the uninstalled
  10865. # path is not listed in the libpath. Setting hardcode_minus_L
  10866. # to unsupported forces relinking
  10867. hardcode_minus_L_CXX=yes
  10868. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10869. hardcode_libdir_separator_CXX=
  10870. fi
  10871. esac
  10872. shared_flag='-shared'
  10873. if test "$aix_use_runtimelinking" = yes; then
  10874. shared_flag="$shared_flag "'${wl}-G'
  10875. fi
  10876. else
  10877. # not using gcc
  10878. if test "$host_cpu" = ia64; then
  10879. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10880. # chokes on -Wl,-G. The following line is correct:
  10881. shared_flag='-G'
  10882. else
  10883. if test "$aix_use_runtimelinking" = yes; then
  10884. shared_flag='${wl}-G'
  10885. else
  10886. shared_flag='${wl}-bM:SRE'
  10887. fi
  10888. fi
  10889. fi
  10890. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10891. # It seems that -bexpall does not export symbols beginning with
  10892. # underscore (_), so it is better to generate a list of symbols to
  10893. # export.
  10894. always_export_symbols_CXX=yes
  10895. if test "$aix_use_runtimelinking" = yes; then
  10896. # Warning - without using the other runtime loading flags (-brtl),
  10897. # -berok will link without error, but may produce a broken library.
  10898. allow_undefined_flag_CXX='-berok'
  10899. # Determine the default libpath from the value encoded in an empty
  10900. # executable.
  10901. if test "${lt_cv_aix_libpath+set}" = set; then
  10902. aix_libpath=$lt_cv_aix_libpath
  10903. else
  10904. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10905. $as_echo_n "(cached) " >&6
  10906. else
  10907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10908. /* end confdefs.h. */
  10909. int
  10910. main ()
  10911. {
  10912. ;
  10913. return 0;
  10914. }
  10915. _ACEOF
  10916. if ac_fn_cxx_try_link "$LINENO"; then :
  10917. lt_aix_libpath_sed='
  10918. /Import File Strings/,/^$/ {
  10919. /^0/ {
  10920. s/^0 *\([^ ]*\) *$/\1/
  10921. p
  10922. }
  10923. }'
  10924. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10925. # Check for a 64-bit object if we didn't find anything.
  10926. if test -z "$lt_cv_aix_libpath__CXX"; then
  10927. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10928. fi
  10929. fi
  10930. rm -f core conftest.err conftest.$ac_objext \
  10931. conftest$ac_exeext conftest.$ac_ext
  10932. if test -z "$lt_cv_aix_libpath__CXX"; then
  10933. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10934. fi
  10935. fi
  10936. aix_libpath=$lt_cv_aix_libpath__CXX
  10937. fi
  10938. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10939. 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"
  10940. else
  10941. if test "$host_cpu" = ia64; then
  10942. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10943. allow_undefined_flag_CXX="-z nodefs"
  10944. 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"
  10945. else
  10946. # Determine the default libpath from the value encoded in an
  10947. # empty executable.
  10948. if test "${lt_cv_aix_libpath+set}" = set; then
  10949. aix_libpath=$lt_cv_aix_libpath
  10950. else
  10951. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10952. $as_echo_n "(cached) " >&6
  10953. else
  10954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10955. /* end confdefs.h. */
  10956. int
  10957. main ()
  10958. {
  10959. ;
  10960. return 0;
  10961. }
  10962. _ACEOF
  10963. if ac_fn_cxx_try_link "$LINENO"; then :
  10964. lt_aix_libpath_sed='
  10965. /Import File Strings/,/^$/ {
  10966. /^0/ {
  10967. s/^0 *\([^ ]*\) *$/\1/
  10968. p
  10969. }
  10970. }'
  10971. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10972. # Check for a 64-bit object if we didn't find anything.
  10973. if test -z "$lt_cv_aix_libpath__CXX"; then
  10974. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10975. fi
  10976. fi
  10977. rm -f core conftest.err conftest.$ac_objext \
  10978. conftest$ac_exeext conftest.$ac_ext
  10979. if test -z "$lt_cv_aix_libpath__CXX"; then
  10980. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10981. fi
  10982. fi
  10983. aix_libpath=$lt_cv_aix_libpath__CXX
  10984. fi
  10985. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10986. # Warning - without using the other run time loading flags,
  10987. # -berok will link without error, but may produce a broken library.
  10988. no_undefined_flag_CXX=' ${wl}-bernotok'
  10989. allow_undefined_flag_CXX=' ${wl}-berok'
  10990. if test "$with_gnu_ld" = yes; then
  10991. # We only use this code for GNU lds that support --whole-archive.
  10992. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10993. else
  10994. # Exported symbols can be pulled into shared objects from archives
  10995. whole_archive_flag_spec_CXX='$convenience'
  10996. fi
  10997. archive_cmds_need_lc_CXX=yes
  10998. # This is similar to how AIX traditionally builds its shared
  10999. # libraries.
  11000. 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'
  11001. fi
  11002. fi
  11003. ;;
  11004. beos*)
  11005. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11006. allow_undefined_flag_CXX=unsupported
  11007. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11008. # support --undefined. This deserves some investigation. FIXME
  11009. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11010. else
  11011. ld_shlibs_CXX=no
  11012. fi
  11013. ;;
  11014. chorus*)
  11015. case $cc_basename in
  11016. *)
  11017. # FIXME: insert proper C++ library support
  11018. ld_shlibs_CXX=no
  11019. ;;
  11020. esac
  11021. ;;
  11022. cygwin* | mingw* | pw32* | cegcc*)
  11023. case $GXX,$cc_basename in
  11024. ,cl* | no,cl*)
  11025. # Native MSVC
  11026. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11027. # no search path for DLLs.
  11028. hardcode_libdir_flag_spec_CXX=' '
  11029. allow_undefined_flag_CXX=unsupported
  11030. always_export_symbols_CXX=yes
  11031. file_list_spec_CXX='@'
  11032. # Tell ltmain to make .lib files, not .a files.
  11033. libext=lib
  11034. # Tell ltmain to make .dll files, not .so files.
  11035. shrext_cmds=".dll"
  11036. # FIXME: Setting linknames here is a bad hack.
  11037. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11038. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11039. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11040. else
  11041. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11042. fi~
  11043. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11044. linknames='
  11045. # The linker will not automatically build a static lib if we build a DLL.
  11046. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11047. enable_shared_with_static_runtimes_CXX=yes
  11048. # Don't use ranlib
  11049. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11050. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11051. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11052. case $lt_outputfile in
  11053. *.exe|*.EXE) ;;
  11054. *)
  11055. lt_outputfile="$lt_outputfile.exe"
  11056. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11057. ;;
  11058. esac~
  11059. func_to_tool_file "$lt_outputfile"~
  11060. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11061. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11062. $RM "$lt_outputfile.manifest";
  11063. fi'
  11064. ;;
  11065. *)
  11066. # g++
  11067. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11068. # as there is no search path for DLLs.
  11069. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11070. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11071. allow_undefined_flag_CXX=unsupported
  11072. always_export_symbols_CXX=no
  11073. enable_shared_with_static_runtimes_CXX=yes
  11074. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11075. 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'
  11076. # If the export-symbols file already is a .def file (1st line
  11077. # is EXPORTS), use it as is; otherwise, prepend...
  11078. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11079. cp $export_symbols $output_objdir/$soname.def;
  11080. else
  11081. echo EXPORTS > $output_objdir/$soname.def;
  11082. cat $export_symbols >> $output_objdir/$soname.def;
  11083. fi~
  11084. $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'
  11085. else
  11086. ld_shlibs_CXX=no
  11087. fi
  11088. ;;
  11089. esac
  11090. ;;
  11091. darwin* | rhapsody*)
  11092. archive_cmds_need_lc_CXX=no
  11093. hardcode_direct_CXX=no
  11094. hardcode_automatic_CXX=yes
  11095. hardcode_shlibpath_var_CXX=unsupported
  11096. if test "$lt_cv_ld_force_load" = "yes"; then
  11097. 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\"`'
  11098. else
  11099. whole_archive_flag_spec_CXX=''
  11100. fi
  11101. link_all_deplibs_CXX=yes
  11102. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11103. case $cc_basename in
  11104. ifort*) _lt_dar_can_shared=yes ;;
  11105. *) _lt_dar_can_shared=$GCC ;;
  11106. esac
  11107. if test "$_lt_dar_can_shared" = "yes"; then
  11108. output_verbose_link_cmd=func_echo_all
  11109. 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}"
  11110. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11111. 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}"
  11112. 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}"
  11113. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11114. 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}"
  11115. 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}"
  11116. fi
  11117. else
  11118. ld_shlibs_CXX=no
  11119. fi
  11120. ;;
  11121. dgux*)
  11122. case $cc_basename in
  11123. ec++*)
  11124. # FIXME: insert proper C++ library support
  11125. ld_shlibs_CXX=no
  11126. ;;
  11127. ghcx*)
  11128. # Green Hills C++ Compiler
  11129. # FIXME: insert proper C++ library support
  11130. ld_shlibs_CXX=no
  11131. ;;
  11132. *)
  11133. # FIXME: insert proper C++ library support
  11134. ld_shlibs_CXX=no
  11135. ;;
  11136. esac
  11137. ;;
  11138. freebsd[12]*)
  11139. # C++ shared libraries reported to be fairly broken before
  11140. # switch to ELF
  11141. ld_shlibs_CXX=no
  11142. ;;
  11143. freebsd-elf*)
  11144. archive_cmds_need_lc_CXX=no
  11145. ;;
  11146. freebsd* | dragonfly*)
  11147. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11148. # conventions
  11149. ld_shlibs_CXX=yes
  11150. ;;
  11151. gnu*)
  11152. ;;
  11153. haiku*)
  11154. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11155. link_all_deplibs_CXX=yes
  11156. ;;
  11157. hpux9*)
  11158. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11159. hardcode_libdir_separator_CXX=:
  11160. export_dynamic_flag_spec_CXX='${wl}-E'
  11161. hardcode_direct_CXX=yes
  11162. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11163. # but as the default
  11164. # location of the library.
  11165. case $cc_basename in
  11166. CC*)
  11167. # FIXME: insert proper C++ library support
  11168. ld_shlibs_CXX=no
  11169. ;;
  11170. aCC*)
  11171. 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'
  11172. # Commands to make compiler produce verbose output that lists
  11173. # what "hidden" libraries, object files and flags are used when
  11174. # linking a shared library.
  11175. #
  11176. # There doesn't appear to be a way to prevent this compiler from
  11177. # explicitly linking system object files so we need to strip them
  11178. # from the output so that they don't get included in the library
  11179. # dependencies.
  11180. 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"'
  11181. ;;
  11182. *)
  11183. if test "$GXX" = yes; then
  11184. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  11185. else
  11186. # FIXME: insert proper C++ library support
  11187. ld_shlibs_CXX=no
  11188. fi
  11189. ;;
  11190. esac
  11191. ;;
  11192. hpux10*|hpux11*)
  11193. if test $with_gnu_ld = no; then
  11194. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11195. hardcode_libdir_separator_CXX=:
  11196. case $host_cpu in
  11197. hppa*64*|ia64*)
  11198. ;;
  11199. *)
  11200. export_dynamic_flag_spec_CXX='${wl}-E'
  11201. ;;
  11202. esac
  11203. fi
  11204. case $host_cpu in
  11205. hppa*64*|ia64*)
  11206. hardcode_direct_CXX=no
  11207. hardcode_shlibpath_var_CXX=no
  11208. ;;
  11209. *)
  11210. hardcode_direct_CXX=yes
  11211. hardcode_direct_absolute_CXX=yes
  11212. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11213. # but as the default
  11214. # location of the library.
  11215. ;;
  11216. esac
  11217. case $cc_basename in
  11218. CC*)
  11219. # FIXME: insert proper C++ library support
  11220. ld_shlibs_CXX=no
  11221. ;;
  11222. aCC*)
  11223. case $host_cpu in
  11224. hppa*64*)
  11225. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11226. ;;
  11227. ia64*)
  11228. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11229. ;;
  11230. *)
  11231. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11232. ;;
  11233. esac
  11234. # Commands to make compiler produce verbose output that lists
  11235. # what "hidden" libraries, object files and flags are used when
  11236. # linking a shared library.
  11237. #
  11238. # There doesn't appear to be a way to prevent this compiler from
  11239. # explicitly linking system object files so we need to strip them
  11240. # from the output so that they don't get included in the library
  11241. # dependencies.
  11242. 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"'
  11243. ;;
  11244. *)
  11245. if test "$GXX" = yes; then
  11246. if test $with_gnu_ld = no; then
  11247. case $host_cpu in
  11248. hppa*64*)
  11249. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11250. ;;
  11251. ia64*)
  11252. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11253. ;;
  11254. *)
  11255. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11256. ;;
  11257. esac
  11258. fi
  11259. else
  11260. # FIXME: insert proper C++ library support
  11261. ld_shlibs_CXX=no
  11262. fi
  11263. ;;
  11264. esac
  11265. ;;
  11266. interix[3-9]*)
  11267. hardcode_direct_CXX=no
  11268. hardcode_shlibpath_var_CXX=no
  11269. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11270. export_dynamic_flag_spec_CXX='${wl}-E'
  11271. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11272. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11273. # default) and relocated if they conflict, which is a slow very memory
  11274. # consuming and fragmenting process. To avoid this, we pick a random,
  11275. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11276. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11277. 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'
  11278. 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'
  11279. ;;
  11280. irix5* | irix6*)
  11281. case $cc_basename in
  11282. CC*)
  11283. # SGI C++
  11284. 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'
  11285. # Archives containing C++ object files must be created using
  11286. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11287. # necessary to make sure instantiated templates are included
  11288. # in the archive.
  11289. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11290. ;;
  11291. *)
  11292. if test "$GXX" = yes; then
  11293. if test "$with_gnu_ld" = no; then
  11294. archive_cmds_CXX='$CC -shared $pic_flag -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'
  11295. else
  11296. archive_cmds_CXX='$CC -shared $pic_flag -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'
  11297. fi
  11298. fi
  11299. link_all_deplibs_CXX=yes
  11300. ;;
  11301. esac
  11302. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11303. hardcode_libdir_separator_CXX=:
  11304. inherit_rpath_CXX=yes
  11305. ;;
  11306. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11307. case $cc_basename in
  11308. KCC*)
  11309. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11310. # KCC will only create a shared library if the output file
  11311. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11312. # to its proper name (with version) after linking.
  11313. 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'
  11314. 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'
  11315. # Commands to make compiler produce verbose output that lists
  11316. # what "hidden" libraries, object files and flags are used when
  11317. # linking a shared library.
  11318. #
  11319. # There doesn't appear to be a way to prevent this compiler from
  11320. # explicitly linking system object files so we need to strip them
  11321. # from the output so that they don't get included in the library
  11322. # dependencies.
  11323. 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"'
  11324. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11325. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11326. # Archives containing C++ object files must be created using
  11327. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11328. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11329. ;;
  11330. icpc* | ecpc* )
  11331. # Intel C++
  11332. with_gnu_ld=yes
  11333. # version 8.0 and above of icpc choke on multiply defined symbols
  11334. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11335. # earlier do not add the objects themselves.
  11336. case `$CC -V 2>&1` in
  11337. *"Version 7."*)
  11338. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11339. 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'
  11340. ;;
  11341. *) # Version 8.0 or newer
  11342. tmp_idyn=
  11343. case $host_cpu in
  11344. ia64*) tmp_idyn=' -i_dynamic';;
  11345. esac
  11346. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11347. 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'
  11348. ;;
  11349. esac
  11350. archive_cmds_need_lc_CXX=no
  11351. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11352. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11353. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11354. ;;
  11355. pgCC* | pgcpp*)
  11356. # Portland Group C++ compiler
  11357. case `$CC -V` in
  11358. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11359. prelink_cmds_CXX='tpldir=Template.dir~
  11360. rm -rf $tpldir~
  11361. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11362. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11363. old_archive_cmds_CXX='tpldir=Template.dir~
  11364. rm -rf $tpldir~
  11365. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11366. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11367. $RANLIB $oldlib'
  11368. archive_cmds_CXX='tpldir=Template.dir~
  11369. rm -rf $tpldir~
  11370. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11371. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11372. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11373. rm -rf $tpldir~
  11374. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11375. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11376. ;;
  11377. *) # Version 6 and above use weak symbols
  11378. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11379. 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'
  11380. ;;
  11381. esac
  11382. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11383. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11384. 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'
  11385. ;;
  11386. cxx*)
  11387. # Compaq C++
  11388. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11389. 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'
  11390. runpath_var=LD_RUN_PATH
  11391. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11392. hardcode_libdir_separator_CXX=:
  11393. # Commands to make compiler produce verbose output that lists
  11394. # what "hidden" libraries, object files and flags are used when
  11395. # linking a shared library.
  11396. #
  11397. # There doesn't appear to be a way to prevent this compiler from
  11398. # explicitly linking system object files so we need to strip them
  11399. # from the output so that they don't get included in the library
  11400. # dependencies.
  11401. 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'
  11402. ;;
  11403. xl* | mpixl* | bgxl*)
  11404. # IBM XL 8.0 on PPC, with GNU ld
  11405. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11406. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11407. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11408. if test "x$supports_anon_versioning" = xyes; then
  11409. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11410. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11411. echo "local: *; };" >> $output_objdir/$libname.ver~
  11412. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11413. fi
  11414. ;;
  11415. *)
  11416. case `$CC -V 2>&1 | sed 5q` in
  11417. *Sun\ C*)
  11418. # Sun C++ 5.9
  11419. no_undefined_flag_CXX=' -zdefs'
  11420. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11421. 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'
  11422. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11423. 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'
  11424. compiler_needs_object_CXX=yes
  11425. # Not sure whether something based on
  11426. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11427. # would be better.
  11428. output_verbose_link_cmd='func_echo_all'
  11429. # Archives containing C++ object files must be created using
  11430. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11431. # necessary to make sure instantiated templates are included
  11432. # in the archive.
  11433. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11434. ;;
  11435. esac
  11436. ;;
  11437. esac
  11438. ;;
  11439. lynxos*)
  11440. # FIXME: insert proper C++ library support
  11441. ld_shlibs_CXX=no
  11442. ;;
  11443. m88k*)
  11444. # FIXME: insert proper C++ library support
  11445. ld_shlibs_CXX=no
  11446. ;;
  11447. mvs*)
  11448. case $cc_basename in
  11449. cxx*)
  11450. # FIXME: insert proper C++ library support
  11451. ld_shlibs_CXX=no
  11452. ;;
  11453. *)
  11454. # FIXME: insert proper C++ library support
  11455. ld_shlibs_CXX=no
  11456. ;;
  11457. esac
  11458. ;;
  11459. netbsd*)
  11460. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11461. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11462. wlarc=
  11463. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11464. hardcode_direct_CXX=yes
  11465. hardcode_shlibpath_var_CXX=no
  11466. fi
  11467. # Workaround some broken pre-1.5 toolchains
  11468. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11469. ;;
  11470. *nto* | *qnx*)
  11471. ld_shlibs_CXX=yes
  11472. ;;
  11473. openbsd2*)
  11474. # C++ shared libraries are fairly broken
  11475. ld_shlibs_CXX=no
  11476. ;;
  11477. openbsd*)
  11478. if test -f /usr/libexec/ld.so; then
  11479. hardcode_direct_CXX=yes
  11480. hardcode_shlibpath_var_CXX=no
  11481. hardcode_direct_absolute_CXX=yes
  11482. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11483. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11484. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11485. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11486. export_dynamic_flag_spec_CXX='${wl}-E'
  11487. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11488. fi
  11489. output_verbose_link_cmd=func_echo_all
  11490. else
  11491. ld_shlibs_CXX=no
  11492. fi
  11493. ;;
  11494. osf3* | osf4* | osf5*)
  11495. case $cc_basename in
  11496. KCC*)
  11497. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11498. # KCC will only create a shared library if the output file
  11499. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11500. # to its proper name (with version) after linking.
  11501. 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'
  11502. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11503. hardcode_libdir_separator_CXX=:
  11504. # Archives containing C++ object files must be created using
  11505. # the KAI C++ compiler.
  11506. case $host in
  11507. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11508. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11509. esac
  11510. ;;
  11511. RCC*)
  11512. # Rational C++ 2.4.1
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. ;;
  11516. cxx*)
  11517. case $host in
  11518. osf3*)
  11519. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11520. 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'
  11521. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11522. ;;
  11523. *)
  11524. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11525. 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'
  11526. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11527. echo "-hidden">> $lib.exp~
  11528. $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~
  11529. $RM $lib.exp'
  11530. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11531. ;;
  11532. esac
  11533. hardcode_libdir_separator_CXX=:
  11534. # Commands to make compiler produce verbose output that lists
  11535. # what "hidden" libraries, object files and flags are used when
  11536. # linking a shared library.
  11537. #
  11538. # There doesn't appear to be a way to prevent this compiler from
  11539. # explicitly linking system object files so we need to strip them
  11540. # from the output so that they don't get included in the library
  11541. # dependencies.
  11542. 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"'
  11543. ;;
  11544. *)
  11545. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11546. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11547. case $host in
  11548. osf3*)
  11549. 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'
  11550. ;;
  11551. *)
  11552. archive_cmds_CXX='$CC -shared $pic_flag -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'
  11553. ;;
  11554. esac
  11555. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11556. hardcode_libdir_separator_CXX=:
  11557. # Commands to make compiler produce verbose output that lists
  11558. # what "hidden" libraries, object files and flags are used when
  11559. # linking a shared library.
  11560. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11561. else
  11562. # FIXME: insert proper C++ library support
  11563. ld_shlibs_CXX=no
  11564. fi
  11565. ;;
  11566. esac
  11567. ;;
  11568. psos*)
  11569. # FIXME: insert proper C++ library support
  11570. ld_shlibs_CXX=no
  11571. ;;
  11572. sunos4*)
  11573. case $cc_basename in
  11574. CC*)
  11575. # Sun C++ 4.x
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. lcc*)
  11580. # Lucid
  11581. # FIXME: insert proper C++ library support
  11582. ld_shlibs_CXX=no
  11583. ;;
  11584. *)
  11585. # FIXME: insert proper C++ library support
  11586. ld_shlibs_CXX=no
  11587. ;;
  11588. esac
  11589. ;;
  11590. solaris*)
  11591. case $cc_basename in
  11592. CC* | sunCC*)
  11593. # Sun C++ 4.2, 5.x and Centerline C++
  11594. archive_cmds_need_lc_CXX=yes
  11595. no_undefined_flag_CXX=' -zdefs'
  11596. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11597. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11598. $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'
  11599. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11600. hardcode_shlibpath_var_CXX=no
  11601. case $host_os in
  11602. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11603. *)
  11604. # The compiler driver will combine and reorder linker options,
  11605. # but understands `-z linker_flag'.
  11606. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11607. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11608. ;;
  11609. esac
  11610. link_all_deplibs_CXX=yes
  11611. output_verbose_link_cmd='func_echo_all'
  11612. # Archives containing C++ object files must be created using
  11613. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11614. # necessary to make sure instantiated templates are included
  11615. # in the archive.
  11616. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11617. ;;
  11618. gcx*)
  11619. # Green Hills C++ Compiler
  11620. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11621. # The C++ compiler must be used to create the archive.
  11622. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11623. ;;
  11624. *)
  11625. # GNU C++ compiler with Solaris linker
  11626. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11627. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11628. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11629. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11630. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11631. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11632. # Commands to make compiler produce verbose output that lists
  11633. # what "hidden" libraries, object files and flags are used when
  11634. # linking a shared library.
  11635. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11636. else
  11637. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11638. # platform.
  11639. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11640. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11641. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11642. # Commands to make compiler produce verbose output that lists
  11643. # what "hidden" libraries, object files and flags are used when
  11644. # linking a shared library.
  11645. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11646. fi
  11647. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11648. case $host_os in
  11649. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11650. *)
  11651. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11652. ;;
  11653. esac
  11654. fi
  11655. ;;
  11656. esac
  11657. ;;
  11658. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11659. no_undefined_flag_CXX='${wl}-z,text'
  11660. archive_cmds_need_lc_CXX=no
  11661. hardcode_shlibpath_var_CXX=no
  11662. runpath_var='LD_RUN_PATH'
  11663. case $cc_basename in
  11664. CC*)
  11665. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11666. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11667. ;;
  11668. *)
  11669. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11670. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11671. ;;
  11672. esac
  11673. ;;
  11674. sysv5* | sco3.2v5* | sco5v6*)
  11675. # Note: We can NOT use -z defs as we might desire, because we do not
  11676. # link with -lc, and that would cause any symbols used from libc to
  11677. # always be unresolved, which means just about no library would
  11678. # ever link correctly. If we're not using GNU ld we use -z text
  11679. # though, which does catch some bad symbols but isn't as heavy-handed
  11680. # as -z defs.
  11681. no_undefined_flag_CXX='${wl}-z,text'
  11682. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11683. archive_cmds_need_lc_CXX=no
  11684. hardcode_shlibpath_var_CXX=no
  11685. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11686. hardcode_libdir_separator_CXX=':'
  11687. link_all_deplibs_CXX=yes
  11688. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11689. runpath_var='LD_RUN_PATH'
  11690. case $cc_basename in
  11691. CC*)
  11692. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11693. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11694. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11695. '"$old_archive_cmds_CXX"
  11696. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11697. '"$reload_cmds_CXX"
  11698. ;;
  11699. *)
  11700. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11701. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11702. ;;
  11703. esac
  11704. ;;
  11705. tandem*)
  11706. case $cc_basename in
  11707. NCC*)
  11708. # NonStop-UX NCC 3.20
  11709. # FIXME: insert proper C++ library support
  11710. ld_shlibs_CXX=no
  11711. ;;
  11712. *)
  11713. # FIXME: insert proper C++ library support
  11714. ld_shlibs_CXX=no
  11715. ;;
  11716. esac
  11717. ;;
  11718. vxworks*)
  11719. # FIXME: insert proper C++ library support
  11720. ld_shlibs_CXX=no
  11721. ;;
  11722. *)
  11723. # FIXME: insert proper C++ library support
  11724. ld_shlibs_CXX=no
  11725. ;;
  11726. esac
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11728. $as_echo "$ld_shlibs_CXX" >&6; }
  11729. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11730. GCC_CXX="$GXX"
  11731. LD_CXX="$LD"
  11732. ## CAVEAT EMPTOR:
  11733. ## There is no encapsulation within the following macros, do not change
  11734. ## the running order or otherwise move them around unless you know exactly
  11735. ## what you are doing...
  11736. # Dependencies to place before and after the object being linked:
  11737. predep_objects_CXX=
  11738. postdep_objects_CXX=
  11739. predeps_CXX=
  11740. postdeps_CXX=
  11741. compiler_lib_search_path_CXX=
  11742. cat > conftest.$ac_ext <<_LT_EOF
  11743. class Foo
  11744. {
  11745. public:
  11746. Foo (void) { a = 0; }
  11747. private:
  11748. int a;
  11749. };
  11750. _LT_EOF
  11751. _lt_libdeps_save_CFLAGS=$CFLAGS
  11752. case "$CC $CFLAGS " in #(
  11753. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11754. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11755. esac
  11756. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11757. (eval $ac_compile) 2>&5
  11758. ac_status=$?
  11759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11760. test $ac_status = 0; }; then
  11761. # Parse the compiler output and extract the necessary
  11762. # objects, libraries and library flags.
  11763. # Sentinel used to keep track of whether or not we are before
  11764. # the conftest object file.
  11765. pre_test_object_deps_done=no
  11766. for p in `eval "$output_verbose_link_cmd"`; do
  11767. case ${prev}${p} in
  11768. -L* | -R* | -l*)
  11769. # Some compilers place space between "-{L,R}" and the path.
  11770. # Remove the space.
  11771. if test $p = "-L" ||
  11772. test $p = "-R"; then
  11773. prev=$p
  11774. continue
  11775. fi
  11776. # Expand the sysroot to ease extracting the directories later.
  11777. if test -z "$prev"; then
  11778. case $p in
  11779. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11780. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11781. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11782. esac
  11783. fi
  11784. case $p in
  11785. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11786. esac
  11787. if test "$pre_test_object_deps_done" = no; then
  11788. case ${prev} in
  11789. -L | -R)
  11790. # Internal compiler library paths should come after those
  11791. # provided the user. The postdeps already come after the
  11792. # user supplied libs so there is no need to process them.
  11793. if test -z "$compiler_lib_search_path_CXX"; then
  11794. compiler_lib_search_path_CXX="${prev}${p}"
  11795. else
  11796. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11797. fi
  11798. ;;
  11799. # The "-l" case would never come before the object being
  11800. # linked, so don't bother handling this case.
  11801. esac
  11802. else
  11803. if test -z "$postdeps_CXX"; then
  11804. postdeps_CXX="${prev}${p}"
  11805. else
  11806. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11807. fi
  11808. fi
  11809. prev=
  11810. ;;
  11811. *.lto.$objext) ;; # Ignore GCC LTO objects
  11812. *.$objext)
  11813. # This assumes that the test object file only shows up
  11814. # once in the compiler output.
  11815. if test "$p" = "conftest.$objext"; then
  11816. pre_test_object_deps_done=yes
  11817. continue
  11818. fi
  11819. if test "$pre_test_object_deps_done" = no; then
  11820. if test -z "$predep_objects_CXX"; then
  11821. predep_objects_CXX="$p"
  11822. else
  11823. predep_objects_CXX="$predep_objects_CXX $p"
  11824. fi
  11825. else
  11826. if test -z "$postdep_objects_CXX"; then
  11827. postdep_objects_CXX="$p"
  11828. else
  11829. postdep_objects_CXX="$postdep_objects_CXX $p"
  11830. fi
  11831. fi
  11832. ;;
  11833. *) ;; # Ignore the rest.
  11834. esac
  11835. done
  11836. # Clean up.
  11837. rm -f a.out a.exe
  11838. else
  11839. echo "libtool.m4: error: problem compiling CXX test program"
  11840. fi
  11841. $RM -f confest.$objext
  11842. CFLAGS=$_lt_libdeps_save_CFLAGS
  11843. # PORTME: override above test on systems where it is broken
  11844. case $host_os in
  11845. interix[3-9]*)
  11846. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11847. # hack all around it, let's just trust "g++" to DTRT.
  11848. predep_objects_CXX=
  11849. postdep_objects_CXX=
  11850. postdeps_CXX=
  11851. ;;
  11852. linux*)
  11853. case `$CC -V 2>&1 | sed 5q` in
  11854. *Sun\ C*)
  11855. # Sun C++ 5.9
  11856. # The more standards-conforming stlport4 library is
  11857. # incompatible with the Cstd library. Avoid specifying
  11858. # it if it's in CXXFLAGS. Ignore libCrun as
  11859. # -library=stlport4 depends on it.
  11860. case " $CXX $CXXFLAGS " in
  11861. *" -library=stlport4 "*)
  11862. solaris_use_stlport4=yes
  11863. ;;
  11864. esac
  11865. if test "$solaris_use_stlport4" != yes; then
  11866. postdeps_CXX='-library=Cstd -library=Crun'
  11867. fi
  11868. ;;
  11869. esac
  11870. ;;
  11871. solaris*)
  11872. case $cc_basename in
  11873. CC* | sunCC*)
  11874. # The more standards-conforming stlport4 library is
  11875. # incompatible with the Cstd library. Avoid specifying
  11876. # it if it's in CXXFLAGS. Ignore libCrun as
  11877. # -library=stlport4 depends on it.
  11878. case " $CXX $CXXFLAGS " in
  11879. *" -library=stlport4 "*)
  11880. solaris_use_stlport4=yes
  11881. ;;
  11882. esac
  11883. # Adding this requires a known-good setup of shared libraries for
  11884. # Sun compiler versions before 5.6, else PIC objects from an old
  11885. # archive will be linked into the output, leading to subtle bugs.
  11886. if test "$solaris_use_stlport4" != yes; then
  11887. postdeps_CXX='-library=Cstd -library=Crun'
  11888. fi
  11889. ;;
  11890. esac
  11891. ;;
  11892. esac
  11893. case " $postdeps_CXX " in
  11894. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11895. esac
  11896. compiler_lib_search_dirs_CXX=
  11897. if test -n "${compiler_lib_search_path_CXX}"; then
  11898. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11899. fi
  11900. lt_prog_compiler_wl_CXX=
  11901. lt_prog_compiler_pic_CXX=
  11902. lt_prog_compiler_static_CXX=
  11903. # C++ specific cases for pic, static, wl, etc.
  11904. if test "$GXX" = yes; then
  11905. lt_prog_compiler_wl_CXX='-Wl,'
  11906. lt_prog_compiler_static_CXX='-static'
  11907. case $host_os in
  11908. aix*)
  11909. # All AIX code is PIC.
  11910. if test "$host_cpu" = ia64; then
  11911. # AIX 5 now supports IA64 processor
  11912. lt_prog_compiler_static_CXX='-Bstatic'
  11913. fi
  11914. ;;
  11915. amigaos*)
  11916. case $host_cpu in
  11917. powerpc)
  11918. # see comment about AmigaOS4 .so support
  11919. lt_prog_compiler_pic_CXX='-fPIC'
  11920. ;;
  11921. m68k)
  11922. # FIXME: we need at least 68020 code to build shared libraries, but
  11923. # adding the `-m68020' flag to GCC prevents building anything better,
  11924. # like `-m68040'.
  11925. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11926. ;;
  11927. esac
  11928. ;;
  11929. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11930. # PIC is the default for these OSes.
  11931. ;;
  11932. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11933. # This hack is so that the source file can tell whether it is being
  11934. # built for inclusion in a dll (and should export symbols for example).
  11935. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11936. # (--disable-auto-import) libraries
  11937. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11938. ;;
  11939. darwin* | rhapsody*)
  11940. # PIC is the default on this platform
  11941. # Common symbols not allowed in MH_DYLIB files
  11942. lt_prog_compiler_pic_CXX='-fno-common'
  11943. ;;
  11944. *djgpp*)
  11945. # DJGPP does not support shared libraries at all
  11946. lt_prog_compiler_pic_CXX=
  11947. ;;
  11948. haiku*)
  11949. # PIC is the default for Haiku.
  11950. # The "-static" flag exists, but is broken.
  11951. lt_prog_compiler_static_CXX=
  11952. ;;
  11953. interix[3-9]*)
  11954. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11955. # Instead, we relocate shared libraries at runtime.
  11956. ;;
  11957. sysv4*MP*)
  11958. if test -d /usr/nec; then
  11959. lt_prog_compiler_pic_CXX=-Kconform_pic
  11960. fi
  11961. ;;
  11962. hpux*)
  11963. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11964. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11965. # sets the default TLS model and affects inlining.
  11966. case $host_cpu in
  11967. hppa*64*)
  11968. ;;
  11969. *)
  11970. lt_prog_compiler_pic_CXX='-fPIC'
  11971. ;;
  11972. esac
  11973. ;;
  11974. *qnx* | *nto*)
  11975. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11976. # it will coredump.
  11977. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11978. ;;
  11979. *)
  11980. lt_prog_compiler_pic_CXX='-fPIC'
  11981. ;;
  11982. esac
  11983. else
  11984. case $host_os in
  11985. aix[4-9]*)
  11986. # All AIX code is PIC.
  11987. if test "$host_cpu" = ia64; then
  11988. # AIX 5 now supports IA64 processor
  11989. lt_prog_compiler_static_CXX='-Bstatic'
  11990. else
  11991. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11992. fi
  11993. ;;
  11994. chorus*)
  11995. case $cc_basename in
  11996. cxch68*)
  11997. # Green Hills C++ Compiler
  11998. # _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"
  11999. ;;
  12000. esac
  12001. ;;
  12002. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12003. # This hack is so that the source file can tell whether it is being
  12004. # built for inclusion in a dll (and should export symbols for example).
  12005. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12006. ;;
  12007. dgux*)
  12008. case $cc_basename in
  12009. ec++*)
  12010. lt_prog_compiler_pic_CXX='-KPIC'
  12011. ;;
  12012. ghcx*)
  12013. # Green Hills C++ Compiler
  12014. lt_prog_compiler_pic_CXX='-pic'
  12015. ;;
  12016. *)
  12017. ;;
  12018. esac
  12019. ;;
  12020. freebsd* | dragonfly*)
  12021. # FreeBSD uses GNU C++
  12022. ;;
  12023. hpux9* | hpux10* | hpux11*)
  12024. case $cc_basename in
  12025. CC*)
  12026. lt_prog_compiler_wl_CXX='-Wl,'
  12027. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12028. if test "$host_cpu" != ia64; then
  12029. lt_prog_compiler_pic_CXX='+Z'
  12030. fi
  12031. ;;
  12032. aCC*)
  12033. lt_prog_compiler_wl_CXX='-Wl,'
  12034. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12035. case $host_cpu in
  12036. hppa*64*|ia64*)
  12037. # +Z the default
  12038. ;;
  12039. *)
  12040. lt_prog_compiler_pic_CXX='+Z'
  12041. ;;
  12042. esac
  12043. ;;
  12044. *)
  12045. ;;
  12046. esac
  12047. ;;
  12048. interix*)
  12049. # This is c89, which is MS Visual C++ (no shared libs)
  12050. # Anyone wants to do a port?
  12051. ;;
  12052. irix5* | irix6* | nonstopux*)
  12053. case $cc_basename in
  12054. CC*)
  12055. lt_prog_compiler_wl_CXX='-Wl,'
  12056. lt_prog_compiler_static_CXX='-non_shared'
  12057. # CC pic flag -KPIC is the default.
  12058. ;;
  12059. *)
  12060. ;;
  12061. esac
  12062. ;;
  12063. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12064. case $cc_basename in
  12065. KCC*)
  12066. # KAI C++ Compiler
  12067. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12068. lt_prog_compiler_pic_CXX='-fPIC'
  12069. ;;
  12070. ecpc* )
  12071. # old Intel C++ for x86_64 which still supported -KPIC.
  12072. lt_prog_compiler_wl_CXX='-Wl,'
  12073. lt_prog_compiler_pic_CXX='-KPIC'
  12074. lt_prog_compiler_static_CXX='-static'
  12075. ;;
  12076. icpc* )
  12077. # Intel C++, used to be incompatible with GCC.
  12078. # ICC 10 doesn't accept -KPIC any more.
  12079. lt_prog_compiler_wl_CXX='-Wl,'
  12080. lt_prog_compiler_pic_CXX='-fPIC'
  12081. lt_prog_compiler_static_CXX='-static'
  12082. ;;
  12083. pgCC* | pgcpp*)
  12084. # Portland Group C++ compiler
  12085. lt_prog_compiler_wl_CXX='-Wl,'
  12086. lt_prog_compiler_pic_CXX='-fpic'
  12087. lt_prog_compiler_static_CXX='-Bstatic'
  12088. ;;
  12089. cxx*)
  12090. # Compaq C++
  12091. # Make sure the PIC flag is empty. It appears that all Alpha
  12092. # Linux and Compaq Tru64 Unix objects are PIC.
  12093. lt_prog_compiler_pic_CXX=
  12094. lt_prog_compiler_static_CXX='-non_shared'
  12095. ;;
  12096. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12097. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12098. lt_prog_compiler_wl_CXX='-Wl,'
  12099. lt_prog_compiler_pic_CXX='-qpic'
  12100. lt_prog_compiler_static_CXX='-qstaticlink'
  12101. ;;
  12102. *)
  12103. case `$CC -V 2>&1 | sed 5q` in
  12104. *Sun\ C*)
  12105. # Sun C++ 5.9
  12106. lt_prog_compiler_pic_CXX='-KPIC'
  12107. lt_prog_compiler_static_CXX='-Bstatic'
  12108. lt_prog_compiler_wl_CXX='-Qoption ld '
  12109. ;;
  12110. esac
  12111. ;;
  12112. esac
  12113. ;;
  12114. lynxos*)
  12115. ;;
  12116. m88k*)
  12117. ;;
  12118. mvs*)
  12119. case $cc_basename in
  12120. cxx*)
  12121. lt_prog_compiler_pic_CXX='-W c,exportall'
  12122. ;;
  12123. *)
  12124. ;;
  12125. esac
  12126. ;;
  12127. netbsd*)
  12128. ;;
  12129. *qnx* | *nto*)
  12130. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12131. # it will coredump.
  12132. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12133. ;;
  12134. osf3* | osf4* | osf5*)
  12135. case $cc_basename in
  12136. KCC*)
  12137. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12138. ;;
  12139. RCC*)
  12140. # Rational C++ 2.4.1
  12141. lt_prog_compiler_pic_CXX='-pic'
  12142. ;;
  12143. cxx*)
  12144. # Digital/Compaq C++
  12145. lt_prog_compiler_wl_CXX='-Wl,'
  12146. # Make sure the PIC flag is empty. It appears that all Alpha
  12147. # Linux and Compaq Tru64 Unix objects are PIC.
  12148. lt_prog_compiler_pic_CXX=
  12149. lt_prog_compiler_static_CXX='-non_shared'
  12150. ;;
  12151. *)
  12152. ;;
  12153. esac
  12154. ;;
  12155. psos*)
  12156. ;;
  12157. solaris*)
  12158. case $cc_basename in
  12159. CC* | sunCC*)
  12160. # Sun C++ 4.2, 5.x and Centerline C++
  12161. lt_prog_compiler_pic_CXX='-KPIC'
  12162. lt_prog_compiler_static_CXX='-Bstatic'
  12163. lt_prog_compiler_wl_CXX='-Qoption ld '
  12164. ;;
  12165. gcx*)
  12166. # Green Hills C++ Compiler
  12167. lt_prog_compiler_pic_CXX='-PIC'
  12168. ;;
  12169. *)
  12170. ;;
  12171. esac
  12172. ;;
  12173. sunos4*)
  12174. case $cc_basename in
  12175. CC*)
  12176. # Sun C++ 4.x
  12177. lt_prog_compiler_pic_CXX='-pic'
  12178. lt_prog_compiler_static_CXX='-Bstatic'
  12179. ;;
  12180. lcc*)
  12181. # Lucid
  12182. lt_prog_compiler_pic_CXX='-pic'
  12183. ;;
  12184. *)
  12185. ;;
  12186. esac
  12187. ;;
  12188. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12189. case $cc_basename in
  12190. CC*)
  12191. lt_prog_compiler_wl_CXX='-Wl,'
  12192. lt_prog_compiler_pic_CXX='-KPIC'
  12193. lt_prog_compiler_static_CXX='-Bstatic'
  12194. ;;
  12195. esac
  12196. ;;
  12197. tandem*)
  12198. case $cc_basename in
  12199. NCC*)
  12200. # NonStop-UX NCC 3.20
  12201. lt_prog_compiler_pic_CXX='-KPIC'
  12202. ;;
  12203. *)
  12204. ;;
  12205. esac
  12206. ;;
  12207. vxworks*)
  12208. ;;
  12209. *)
  12210. lt_prog_compiler_can_build_shared_CXX=no
  12211. ;;
  12212. esac
  12213. fi
  12214. case $host_os in
  12215. # For platforms which do not support PIC, -DPIC is meaningless:
  12216. *djgpp*)
  12217. lt_prog_compiler_pic_CXX=
  12218. ;;
  12219. *)
  12220. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12221. ;;
  12222. esac
  12223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12224. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12225. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12226. $as_echo_n "(cached) " >&6
  12227. else
  12228. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12229. fi
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12231. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12232. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12233. #
  12234. # Check to make sure the PIC flag actually works.
  12235. #
  12236. if test -n "$lt_prog_compiler_pic_CXX"; then
  12237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12238. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12239. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12240. $as_echo_n "(cached) " >&6
  12241. else
  12242. lt_cv_prog_compiler_pic_works_CXX=no
  12243. ac_outfile=conftest.$ac_objext
  12244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12245. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12246. # Insert the option either (1) after the last *FLAGS variable, or
  12247. # (2) before a word containing "conftest.", or (3) at the end.
  12248. # Note that $ac_compile itself does not contain backslashes and begins
  12249. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12250. # The option is referenced via a variable to avoid confusing sed.
  12251. lt_compile=`echo "$ac_compile" | $SED \
  12252. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12253. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12254. -e 's:$: $lt_compiler_flag:'`
  12255. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12256. (eval "$lt_compile" 2>conftest.err)
  12257. ac_status=$?
  12258. cat conftest.err >&5
  12259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12260. if (exit $ac_status) && test -s "$ac_outfile"; then
  12261. # The compiler can only warn and ignore the option if not recognized
  12262. # So say no if there are warnings other than the usual output.
  12263. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12264. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12265. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12266. lt_cv_prog_compiler_pic_works_CXX=yes
  12267. fi
  12268. fi
  12269. $RM conftest*
  12270. fi
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12272. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12273. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12274. case $lt_prog_compiler_pic_CXX in
  12275. "" | " "*) ;;
  12276. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12277. esac
  12278. else
  12279. lt_prog_compiler_pic_CXX=
  12280. lt_prog_compiler_can_build_shared_CXX=no
  12281. fi
  12282. fi
  12283. #
  12284. # Check to make sure the static flag actually works.
  12285. #
  12286. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12288. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12289. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12290. $as_echo_n "(cached) " >&6
  12291. else
  12292. lt_cv_prog_compiler_static_works_CXX=no
  12293. save_LDFLAGS="$LDFLAGS"
  12294. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12295. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12296. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12297. # The linker can only warn and ignore the option if not recognized
  12298. # So say no if there are warnings
  12299. if test -s conftest.err; then
  12300. # Append any errors to the config.log.
  12301. cat conftest.err 1>&5
  12302. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12303. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12304. if diff conftest.exp conftest.er2 >/dev/null; then
  12305. lt_cv_prog_compiler_static_works_CXX=yes
  12306. fi
  12307. else
  12308. lt_cv_prog_compiler_static_works_CXX=yes
  12309. fi
  12310. fi
  12311. $RM -r conftest*
  12312. LDFLAGS="$save_LDFLAGS"
  12313. fi
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12315. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12316. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12317. :
  12318. else
  12319. lt_prog_compiler_static_CXX=
  12320. fi
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12322. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12323. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12324. $as_echo_n "(cached) " >&6
  12325. else
  12326. lt_cv_prog_compiler_c_o_CXX=no
  12327. $RM -r conftest 2>/dev/null
  12328. mkdir conftest
  12329. cd conftest
  12330. mkdir out
  12331. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12332. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12333. # Insert the option either (1) after the last *FLAGS variable, or
  12334. # (2) before a word containing "conftest.", or (3) at the end.
  12335. # Note that $ac_compile itself does not contain backslashes and begins
  12336. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12337. lt_compile=`echo "$ac_compile" | $SED \
  12338. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12339. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12340. -e 's:$: $lt_compiler_flag:'`
  12341. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12342. (eval "$lt_compile" 2>out/conftest.err)
  12343. ac_status=$?
  12344. cat out/conftest.err >&5
  12345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12346. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12347. then
  12348. # The compiler can only warn and ignore the option if not recognized
  12349. # So say no if there are warnings
  12350. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12351. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12352. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12353. lt_cv_prog_compiler_c_o_CXX=yes
  12354. fi
  12355. fi
  12356. chmod u+w . 2>&5
  12357. $RM conftest*
  12358. # SGI C++ compiler will create directory out/ii_files/ for
  12359. # template instantiation
  12360. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12361. $RM out/* && rmdir out
  12362. cd ..
  12363. $RM -r conftest
  12364. $RM conftest*
  12365. fi
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12367. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12369. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12370. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12371. $as_echo_n "(cached) " >&6
  12372. else
  12373. lt_cv_prog_compiler_c_o_CXX=no
  12374. $RM -r conftest 2>/dev/null
  12375. mkdir conftest
  12376. cd conftest
  12377. mkdir out
  12378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12379. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12380. # Insert the option either (1) after the last *FLAGS variable, or
  12381. # (2) before a word containing "conftest.", or (3) at the end.
  12382. # Note that $ac_compile itself does not contain backslashes and begins
  12383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12384. lt_compile=`echo "$ac_compile" | $SED \
  12385. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12386. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12387. -e 's:$: $lt_compiler_flag:'`
  12388. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12389. (eval "$lt_compile" 2>out/conftest.err)
  12390. ac_status=$?
  12391. cat out/conftest.err >&5
  12392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12393. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12394. then
  12395. # The compiler can only warn and ignore the option if not recognized
  12396. # So say no if there are warnings
  12397. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12398. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12399. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12400. lt_cv_prog_compiler_c_o_CXX=yes
  12401. fi
  12402. fi
  12403. chmod u+w . 2>&5
  12404. $RM conftest*
  12405. # SGI C++ compiler will create directory out/ii_files/ for
  12406. # template instantiation
  12407. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12408. $RM out/* && rmdir out
  12409. cd ..
  12410. $RM -r conftest
  12411. $RM conftest*
  12412. fi
  12413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12414. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12415. hard_links="nottested"
  12416. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12417. # do not overwrite the value of need_locks provided by the user
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12419. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12420. hard_links=yes
  12421. $RM conftest*
  12422. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12423. touch conftest.a
  12424. ln conftest.a conftest.b 2>&5 || hard_links=no
  12425. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12427. $as_echo "$hard_links" >&6; }
  12428. if test "$hard_links" = no; then
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12430. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12431. need_locks=warn
  12432. fi
  12433. else
  12434. need_locks=no
  12435. fi
  12436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12437. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12438. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12439. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12440. case $host_os in
  12441. aix[4-9]*)
  12442. # If we're using GNU nm, then we don't want the "-C" option.
  12443. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12444. # Also, AIX nm treats weak defined symbols like other global defined
  12445. # symbols, whereas GNU nm marks them as "W".
  12446. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12447. 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'
  12448. else
  12449. 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'
  12450. fi
  12451. ;;
  12452. pw32*)
  12453. export_symbols_cmds_CXX="$ltdll_cmds"
  12454. ;;
  12455. cygwin* | mingw* | cegcc*)
  12456. case $cc_basename in
  12457. cl*) ;;
  12458. *)
  12459. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12460. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12461. ;;
  12462. esac
  12463. ;;
  12464. *)
  12465. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12466. ;;
  12467. esac
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12469. $as_echo "$ld_shlibs_CXX" >&6; }
  12470. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12471. with_gnu_ld_CXX=$with_gnu_ld
  12472. #
  12473. # Do we need to explicitly link libc?
  12474. #
  12475. case "x$archive_cmds_need_lc_CXX" in
  12476. x|xyes)
  12477. # Assume -lc should be added
  12478. archive_cmds_need_lc_CXX=yes
  12479. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12480. case $archive_cmds_CXX in
  12481. *'~'*)
  12482. # FIXME: we may have to deal with multi-command sequences.
  12483. ;;
  12484. '$CC '*)
  12485. # Test whether the compiler implicitly links with -lc since on some
  12486. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12487. # to ld, don't add -lc before -lgcc.
  12488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12489. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12490. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12491. $as_echo_n "(cached) " >&6
  12492. else
  12493. $RM conftest*
  12494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12496. (eval $ac_compile) 2>&5
  12497. ac_status=$?
  12498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12499. test $ac_status = 0; } 2>conftest.err; then
  12500. soname=conftest
  12501. lib=conftest
  12502. libobjs=conftest.$ac_objext
  12503. deplibs=
  12504. wl=$lt_prog_compiler_wl_CXX
  12505. pic_flag=$lt_prog_compiler_pic_CXX
  12506. compiler_flags=-v
  12507. linker_flags=-v
  12508. verstring=
  12509. output_objdir=.
  12510. libname=conftest
  12511. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12512. allow_undefined_flag_CXX=
  12513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12514. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12515. ac_status=$?
  12516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12517. test $ac_status = 0; }
  12518. then
  12519. lt_cv_archive_cmds_need_lc_CXX=no
  12520. else
  12521. lt_cv_archive_cmds_need_lc_CXX=yes
  12522. fi
  12523. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12524. else
  12525. cat conftest.err 1>&5
  12526. fi
  12527. $RM conftest*
  12528. fi
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12530. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12531. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12532. ;;
  12533. esac
  12534. fi
  12535. ;;
  12536. esac
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12538. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12539. library_names_spec=
  12540. libname_spec='lib$name'
  12541. soname_spec=
  12542. shrext_cmds=".so"
  12543. postinstall_cmds=
  12544. postuninstall_cmds=
  12545. finish_cmds=
  12546. finish_eval=
  12547. shlibpath_var=
  12548. shlibpath_overrides_runpath=unknown
  12549. version_type=none
  12550. dynamic_linker="$host_os ld.so"
  12551. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12552. need_lib_prefix=unknown
  12553. hardcode_into_libs=no
  12554. # when you set need_version to no, make sure it does not cause -set_version
  12555. # flags to be left without arguments
  12556. need_version=unknown
  12557. case $host_os in
  12558. aix3*)
  12559. version_type=linux
  12560. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12561. shlibpath_var=LIBPATH
  12562. # AIX 3 has no versioning support, so we append a major version to the name.
  12563. soname_spec='${libname}${release}${shared_ext}$major'
  12564. ;;
  12565. aix[4-9]*)
  12566. version_type=linux
  12567. need_lib_prefix=no
  12568. need_version=no
  12569. hardcode_into_libs=yes
  12570. if test "$host_cpu" = ia64; then
  12571. # AIX 5 supports IA64
  12572. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12573. shlibpath_var=LD_LIBRARY_PATH
  12574. else
  12575. # With GCC up to 2.95.x, collect2 would create an import file
  12576. # for dependence libraries. The import file would start with
  12577. # the line `#! .'. This would cause the generated library to
  12578. # depend on `.', always an invalid library. This was fixed in
  12579. # development snapshots of GCC prior to 3.0.
  12580. case $host_os in
  12581. aix4 | aix4.[01] | aix4.[01].*)
  12582. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12583. echo ' yes '
  12584. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12585. :
  12586. else
  12587. can_build_shared=no
  12588. fi
  12589. ;;
  12590. esac
  12591. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12592. # soname into executable. Probably we can add versioning support to
  12593. # collect2, so additional links can be useful in future.
  12594. if test "$aix_use_runtimelinking" = yes; then
  12595. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12596. # instead of lib<name>.a to let people know that these are not
  12597. # typical AIX shared libraries.
  12598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12599. else
  12600. # We preserve .a as extension for shared libraries through AIX4.2
  12601. # and later when we are not doing run time linking.
  12602. library_names_spec='${libname}${release}.a $libname.a'
  12603. soname_spec='${libname}${release}${shared_ext}$major'
  12604. fi
  12605. shlibpath_var=LIBPATH
  12606. fi
  12607. ;;
  12608. amigaos*)
  12609. case $host_cpu in
  12610. powerpc)
  12611. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12612. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12614. ;;
  12615. m68k)
  12616. library_names_spec='$libname.ixlibrary $libname.a'
  12617. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12618. 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'
  12619. ;;
  12620. esac
  12621. ;;
  12622. beos*)
  12623. library_names_spec='${libname}${shared_ext}'
  12624. dynamic_linker="$host_os ld.so"
  12625. shlibpath_var=LIBRARY_PATH
  12626. ;;
  12627. bsdi[45]*)
  12628. version_type=linux
  12629. need_version=no
  12630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12631. soname_spec='${libname}${release}${shared_ext}$major'
  12632. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12633. shlibpath_var=LD_LIBRARY_PATH
  12634. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12635. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12636. # the default ld.so.conf also contains /usr/contrib/lib and
  12637. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12638. # libtool to hard-code these into programs
  12639. ;;
  12640. cygwin* | mingw* | pw32* | cegcc*)
  12641. version_type=windows
  12642. shrext_cmds=".dll"
  12643. need_version=no
  12644. need_lib_prefix=no
  12645. case $GCC,$cc_basename in
  12646. yes,*)
  12647. # gcc
  12648. library_names_spec='$libname.dll.a'
  12649. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12650. postinstall_cmds='base_file=`basename \${file}`~
  12651. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12652. dldir=$destdir/`dirname \$dlpath`~
  12653. test -d \$dldir || mkdir -p \$dldir~
  12654. $install_prog $dir/$dlname \$dldir/$dlname~
  12655. chmod a+x \$dldir/$dlname~
  12656. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12657. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12658. fi'
  12659. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12660. dlpath=$dir/\$dldll~
  12661. $RM \$dlpath'
  12662. shlibpath_overrides_runpath=yes
  12663. case $host_os in
  12664. cygwin*)
  12665. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12666. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12667. ;;
  12668. mingw* | cegcc*)
  12669. # MinGW DLLs use traditional 'lib' prefix
  12670. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12671. ;;
  12672. pw32*)
  12673. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12674. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12675. ;;
  12676. esac
  12677. dynamic_linker='Win32 ld.exe'
  12678. ;;
  12679. *,cl*)
  12680. # Native MSVC
  12681. libname_spec='$name'
  12682. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12683. library_names_spec='${libname}.dll.lib'
  12684. case $build_os in
  12685. mingw*)
  12686. sys_lib_search_path_spec=
  12687. lt_save_ifs=$IFS
  12688. IFS=';'
  12689. for lt_path in $LIB
  12690. do
  12691. IFS=$lt_save_ifs
  12692. # Let DOS variable expansion print the short 8.3 style file name.
  12693. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12694. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12695. done
  12696. IFS=$lt_save_ifs
  12697. # Convert to MSYS style.
  12698. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12699. ;;
  12700. cygwin*)
  12701. # Convert to unix form, then to dos form, then back to unix form
  12702. # but this time dos style (no spaces!) so that the unix form looks
  12703. # like /cygdrive/c/PROGRA~1:/cygdr...
  12704. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12705. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12706. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12707. ;;
  12708. *)
  12709. sys_lib_search_path_spec="$LIB"
  12710. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12711. # It is most probably a Windows format PATH.
  12712. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12713. else
  12714. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12715. fi
  12716. # FIXME: find the short name or the path components, as spaces are
  12717. # common. (e.g. "Program Files" -> "PROGRA~1")
  12718. ;;
  12719. esac
  12720. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12721. postinstall_cmds='base_file=`basename \${file}`~
  12722. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12723. dldir=$destdir/`dirname \$dlpath`~
  12724. test -d \$dldir || mkdir -p \$dldir~
  12725. $install_prog $dir/$dlname \$dldir/$dlname'
  12726. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12727. dlpath=$dir/\$dldll~
  12728. $RM \$dlpath'
  12729. shlibpath_overrides_runpath=yes
  12730. dynamic_linker='Win32 link.exe'
  12731. ;;
  12732. *)
  12733. # Assume MSVC wrapper
  12734. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12735. dynamic_linker='Win32 ld.exe'
  12736. ;;
  12737. esac
  12738. # FIXME: first we should search . and the directory the executable is in
  12739. shlibpath_var=PATH
  12740. ;;
  12741. darwin* | rhapsody*)
  12742. dynamic_linker="$host_os dyld"
  12743. version_type=darwin
  12744. need_lib_prefix=no
  12745. need_version=no
  12746. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12747. soname_spec='${libname}${release}${major}$shared_ext'
  12748. shlibpath_overrides_runpath=yes
  12749. shlibpath_var=DYLD_LIBRARY_PATH
  12750. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12751. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12752. ;;
  12753. dgux*)
  12754. version_type=linux
  12755. need_lib_prefix=no
  12756. need_version=no
  12757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12758. soname_spec='${libname}${release}${shared_ext}$major'
  12759. shlibpath_var=LD_LIBRARY_PATH
  12760. ;;
  12761. freebsd1*)
  12762. dynamic_linker=no
  12763. ;;
  12764. freebsd* | dragonfly*)
  12765. # DragonFly does not have aout. When/if they implement a new
  12766. # versioning mechanism, adjust this.
  12767. if test -x /usr/bin/objformat; then
  12768. objformat=`/usr/bin/objformat`
  12769. else
  12770. case $host_os in
  12771. freebsd[123]*) objformat=aout ;;
  12772. *) objformat=elf ;;
  12773. esac
  12774. fi
  12775. version_type=freebsd-$objformat
  12776. case $version_type in
  12777. freebsd-elf*)
  12778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12779. need_version=no
  12780. need_lib_prefix=no
  12781. ;;
  12782. freebsd-*)
  12783. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12784. need_version=yes
  12785. ;;
  12786. esac
  12787. shlibpath_var=LD_LIBRARY_PATH
  12788. case $host_os in
  12789. freebsd2*)
  12790. shlibpath_overrides_runpath=yes
  12791. ;;
  12792. freebsd3.[01]* | freebsdelf3.[01]*)
  12793. shlibpath_overrides_runpath=yes
  12794. hardcode_into_libs=yes
  12795. ;;
  12796. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12797. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12798. shlibpath_overrides_runpath=no
  12799. hardcode_into_libs=yes
  12800. ;;
  12801. *) # from 4.6 on, and DragonFly
  12802. shlibpath_overrides_runpath=yes
  12803. hardcode_into_libs=yes
  12804. ;;
  12805. esac
  12806. ;;
  12807. gnu*)
  12808. version_type=linux
  12809. need_lib_prefix=no
  12810. need_version=no
  12811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12812. soname_spec='${libname}${release}${shared_ext}$major'
  12813. shlibpath_var=LD_LIBRARY_PATH
  12814. hardcode_into_libs=yes
  12815. ;;
  12816. haiku*)
  12817. version_type=linux
  12818. need_lib_prefix=no
  12819. need_version=no
  12820. dynamic_linker="$host_os runtime_loader"
  12821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12822. soname_spec='${libname}${release}${shared_ext}$major'
  12823. shlibpath_var=LIBRARY_PATH
  12824. shlibpath_overrides_runpath=yes
  12825. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12826. hardcode_into_libs=yes
  12827. ;;
  12828. hpux9* | hpux10* | hpux11*)
  12829. # Give a soname corresponding to the major version so that dld.sl refuses to
  12830. # link against other versions.
  12831. version_type=sunos
  12832. need_lib_prefix=no
  12833. need_version=no
  12834. case $host_cpu in
  12835. ia64*)
  12836. shrext_cmds='.so'
  12837. hardcode_into_libs=yes
  12838. dynamic_linker="$host_os dld.so"
  12839. shlibpath_var=LD_LIBRARY_PATH
  12840. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12842. soname_spec='${libname}${release}${shared_ext}$major'
  12843. if test "X$HPUX_IA64_MODE" = X32; then
  12844. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12845. else
  12846. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12847. fi
  12848. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12849. ;;
  12850. hppa*64*)
  12851. shrext_cmds='.sl'
  12852. hardcode_into_libs=yes
  12853. dynamic_linker="$host_os dld.sl"
  12854. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12855. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12857. soname_spec='${libname}${release}${shared_ext}$major'
  12858. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12859. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12860. ;;
  12861. *)
  12862. shrext_cmds='.sl'
  12863. dynamic_linker="$host_os dld.sl"
  12864. shlibpath_var=SHLIB_PATH
  12865. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12867. soname_spec='${libname}${release}${shared_ext}$major'
  12868. ;;
  12869. esac
  12870. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12871. postinstall_cmds='chmod 555 $lib'
  12872. # or fails outright, so override atomically:
  12873. install_override_mode=555
  12874. ;;
  12875. interix[3-9]*)
  12876. version_type=linux
  12877. need_lib_prefix=no
  12878. need_version=no
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12882. shlibpath_var=LD_LIBRARY_PATH
  12883. shlibpath_overrides_runpath=no
  12884. hardcode_into_libs=yes
  12885. ;;
  12886. irix5* | irix6* | nonstopux*)
  12887. case $host_os in
  12888. nonstopux*) version_type=nonstopux ;;
  12889. *)
  12890. if test "$lt_cv_prog_gnu_ld" = yes; then
  12891. version_type=linux
  12892. else
  12893. version_type=irix
  12894. fi ;;
  12895. esac
  12896. need_lib_prefix=no
  12897. need_version=no
  12898. soname_spec='${libname}${release}${shared_ext}$major'
  12899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12900. case $host_os in
  12901. irix5* | nonstopux*)
  12902. libsuff= shlibsuff=
  12903. ;;
  12904. *)
  12905. case $LD in # libtool.m4 will add one of these switches to LD
  12906. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12907. libsuff= shlibsuff= libmagic=32-bit;;
  12908. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12909. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12910. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12911. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12912. *) libsuff= shlibsuff= libmagic=never-match;;
  12913. esac
  12914. ;;
  12915. esac
  12916. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12917. shlibpath_overrides_runpath=no
  12918. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12919. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. # No shared lib support for Linux oldld, aout, or coff.
  12923. linux*oldld* | linux*aout* | linux*coff*)
  12924. dynamic_linker=no
  12925. ;;
  12926. # This must be Linux ELF.
  12927. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12928. version_type=linux
  12929. need_lib_prefix=no
  12930. need_version=no
  12931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12932. soname_spec='${libname}${release}${shared_ext}$major'
  12933. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12934. shlibpath_var=LD_LIBRARY_PATH
  12935. shlibpath_overrides_runpath=no
  12936. # Some binutils ld are patched to set DT_RUNPATH
  12937. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12938. $as_echo_n "(cached) " >&6
  12939. else
  12940. lt_cv_shlibpath_overrides_runpath=no
  12941. save_LDFLAGS=$LDFLAGS
  12942. save_libdir=$libdir
  12943. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12944. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12946. /* end confdefs.h. */
  12947. int
  12948. main ()
  12949. {
  12950. ;
  12951. return 0;
  12952. }
  12953. _ACEOF
  12954. if ac_fn_cxx_try_link "$LINENO"; then :
  12955. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12956. lt_cv_shlibpath_overrides_runpath=yes
  12957. fi
  12958. fi
  12959. rm -f core conftest.err conftest.$ac_objext \
  12960. conftest$ac_exeext conftest.$ac_ext
  12961. LDFLAGS=$save_LDFLAGS
  12962. libdir=$save_libdir
  12963. fi
  12964. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12965. # This implies no fast_install, which is unacceptable.
  12966. # Some rework will be needed to allow for fast_install
  12967. # before this can be enabled.
  12968. hardcode_into_libs=yes
  12969. # Add ABI-specific directories to the system library path.
  12970. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  12971. # Append ld.so.conf contents to the search path
  12972. if test -f /etc/ld.so.conf; then
  12973. 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' ' '`
  12974. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12975. fi
  12976. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12977. # powerpc, because MkLinux only supported shared libraries with the
  12978. # GNU dynamic linker. Since this was broken with cross compilers,
  12979. # most powerpc-linux boxes support dynamic linking these days and
  12980. # people can always --disable-shared, the test was removed, and we
  12981. # assume the GNU/Linux dynamic linker is in use.
  12982. dynamic_linker='GNU/Linux ld.so'
  12983. ;;
  12984. netbsd*)
  12985. version_type=sunos
  12986. need_lib_prefix=no
  12987. need_version=no
  12988. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12990. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12991. dynamic_linker='NetBSD (a.out) ld.so'
  12992. else
  12993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12994. soname_spec='${libname}${release}${shared_ext}$major'
  12995. dynamic_linker='NetBSD ld.elf_so'
  12996. fi
  12997. shlibpath_var=LD_LIBRARY_PATH
  12998. shlibpath_overrides_runpath=yes
  12999. hardcode_into_libs=yes
  13000. ;;
  13001. newsos6)
  13002. version_type=linux
  13003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13004. shlibpath_var=LD_LIBRARY_PATH
  13005. shlibpath_overrides_runpath=yes
  13006. ;;
  13007. *nto* | *qnx*)
  13008. version_type=qnx
  13009. need_lib_prefix=no
  13010. need_version=no
  13011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13012. soname_spec='${libname}${release}${shared_ext}$major'
  13013. shlibpath_var=LD_LIBRARY_PATH
  13014. shlibpath_overrides_runpath=no
  13015. hardcode_into_libs=yes
  13016. dynamic_linker='ldqnx.so'
  13017. ;;
  13018. openbsd*)
  13019. version_type=sunos
  13020. sys_lib_dlsearch_path_spec="/usr/lib"
  13021. need_lib_prefix=no
  13022. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13023. case $host_os in
  13024. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13025. *) need_version=no ;;
  13026. esac
  13027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13029. shlibpath_var=LD_LIBRARY_PATH
  13030. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13031. case $host_os in
  13032. openbsd2.[89] | openbsd2.[89].*)
  13033. shlibpath_overrides_runpath=no
  13034. ;;
  13035. *)
  13036. shlibpath_overrides_runpath=yes
  13037. ;;
  13038. esac
  13039. else
  13040. shlibpath_overrides_runpath=yes
  13041. fi
  13042. ;;
  13043. os2*)
  13044. libname_spec='$name'
  13045. shrext_cmds=".dll"
  13046. need_lib_prefix=no
  13047. library_names_spec='$libname${shared_ext} $libname.a'
  13048. dynamic_linker='OS/2 ld.exe'
  13049. shlibpath_var=LIBPATH
  13050. ;;
  13051. osf3* | osf4* | osf5*)
  13052. version_type=osf
  13053. need_lib_prefix=no
  13054. need_version=no
  13055. soname_spec='${libname}${release}${shared_ext}$major'
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13057. shlibpath_var=LD_LIBRARY_PATH
  13058. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13059. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13060. ;;
  13061. rdos*)
  13062. dynamic_linker=no
  13063. ;;
  13064. solaris*)
  13065. version_type=linux
  13066. need_lib_prefix=no
  13067. need_version=no
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13069. soname_spec='${libname}${release}${shared_ext}$major'
  13070. shlibpath_var=LD_LIBRARY_PATH
  13071. shlibpath_overrides_runpath=yes
  13072. hardcode_into_libs=yes
  13073. # ldd complains unless libraries are executable
  13074. postinstall_cmds='chmod +x $lib'
  13075. ;;
  13076. sunos4*)
  13077. version_type=sunos
  13078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13079. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13080. shlibpath_var=LD_LIBRARY_PATH
  13081. shlibpath_overrides_runpath=yes
  13082. if test "$with_gnu_ld" = yes; then
  13083. need_lib_prefix=no
  13084. fi
  13085. need_version=yes
  13086. ;;
  13087. sysv4 | sysv4.3*)
  13088. version_type=linux
  13089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13090. soname_spec='${libname}${release}${shared_ext}$major'
  13091. shlibpath_var=LD_LIBRARY_PATH
  13092. case $host_vendor in
  13093. sni)
  13094. shlibpath_overrides_runpath=no
  13095. need_lib_prefix=no
  13096. runpath_var=LD_RUN_PATH
  13097. ;;
  13098. siemens)
  13099. need_lib_prefix=no
  13100. ;;
  13101. motorola)
  13102. need_lib_prefix=no
  13103. need_version=no
  13104. shlibpath_overrides_runpath=no
  13105. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13106. ;;
  13107. esac
  13108. ;;
  13109. sysv4*MP*)
  13110. if test -d /usr/nec ;then
  13111. version_type=linux
  13112. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13113. soname_spec='$libname${shared_ext}.$major'
  13114. shlibpath_var=LD_LIBRARY_PATH
  13115. fi
  13116. ;;
  13117. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13118. version_type=freebsd-elf
  13119. need_lib_prefix=no
  13120. need_version=no
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13122. soname_spec='${libname}${release}${shared_ext}$major'
  13123. shlibpath_var=LD_LIBRARY_PATH
  13124. shlibpath_overrides_runpath=yes
  13125. hardcode_into_libs=yes
  13126. if test "$with_gnu_ld" = yes; then
  13127. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13128. else
  13129. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13130. case $host_os in
  13131. sco3.2v5*)
  13132. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13133. ;;
  13134. esac
  13135. fi
  13136. sys_lib_dlsearch_path_spec='/usr/lib'
  13137. ;;
  13138. tpf*)
  13139. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13140. version_type=linux
  13141. need_lib_prefix=no
  13142. need_version=no
  13143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13144. shlibpath_var=LD_LIBRARY_PATH
  13145. shlibpath_overrides_runpath=no
  13146. hardcode_into_libs=yes
  13147. ;;
  13148. uts4*)
  13149. version_type=linux
  13150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13151. soname_spec='${libname}${release}${shared_ext}$major'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. ;;
  13154. *)
  13155. dynamic_linker=no
  13156. ;;
  13157. esac
  13158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13159. $as_echo "$dynamic_linker" >&6; }
  13160. test "$dynamic_linker" = no && can_build_shared=no
  13161. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13162. if test "$GCC" = yes; then
  13163. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13164. fi
  13165. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13166. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13167. fi
  13168. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13169. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13172. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13173. hardcode_action_CXX=
  13174. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13175. test -n "$runpath_var_CXX" ||
  13176. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13177. # We can hardcode non-existent directories.
  13178. if test "$hardcode_direct_CXX" != no &&
  13179. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13180. # have to relink, otherwise we might link with an installed library
  13181. # when we should be linking with a yet-to-be-installed one
  13182. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13183. test "$hardcode_minus_L_CXX" != no; then
  13184. # Linking always hardcodes the temporary library directory.
  13185. hardcode_action_CXX=relink
  13186. else
  13187. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13188. hardcode_action_CXX=immediate
  13189. fi
  13190. else
  13191. # We cannot hardcode anything, or else we can only hardcode existing
  13192. # directories.
  13193. hardcode_action_CXX=unsupported
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13196. $as_echo "$hardcode_action_CXX" >&6; }
  13197. if test "$hardcode_action_CXX" = relink ||
  13198. test "$inherit_rpath_CXX" = yes; then
  13199. # Fast installation is not supported
  13200. enable_fast_install=no
  13201. elif test "$shlibpath_overrides_runpath" = yes ||
  13202. test "$enable_shared" = no; then
  13203. # Fast installation is not necessary
  13204. enable_fast_install=needless
  13205. fi
  13206. fi # test -n "$compiler"
  13207. CC=$lt_save_CC
  13208. CFLAGS=$lt_save_CFLAGS
  13209. LDCXX=$LD
  13210. LD=$lt_save_LD
  13211. GCC=$lt_save_GCC
  13212. with_gnu_ld=$lt_save_with_gnu_ld
  13213. lt_cv_path_LDCXX=$lt_cv_path_LD
  13214. lt_cv_path_LD=$lt_save_path_LD
  13215. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13216. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13217. fi # test "$_lt_caught_CXX_error" != yes
  13218. ac_ext=cpp
  13219. ac_cpp='$CXXCPP $CPPFLAGS'
  13220. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13221. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13222. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13223. ac_config_commands="$ac_config_commands libtool"
  13224. # Only expand once:
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13226. $as_echo_n "checking for ANSI C header files... " >&6; }
  13227. if ${ac_cv_header_stdc+:} false; then :
  13228. $as_echo_n "(cached) " >&6
  13229. else
  13230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13231. /* end confdefs.h. */
  13232. #include <stdlib.h>
  13233. #include <stdarg.h>
  13234. #include <string.h>
  13235. #include <float.h>
  13236. int
  13237. main ()
  13238. {
  13239. ;
  13240. return 0;
  13241. }
  13242. _ACEOF
  13243. if ac_fn_cxx_try_compile "$LINENO"; then :
  13244. ac_cv_header_stdc=yes
  13245. else
  13246. ac_cv_header_stdc=no
  13247. fi
  13248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13249. if test $ac_cv_header_stdc = yes; then
  13250. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13252. /* end confdefs.h. */
  13253. #include <string.h>
  13254. _ACEOF
  13255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13256. $EGREP "memchr" >/dev/null 2>&1; then :
  13257. else
  13258. ac_cv_header_stdc=no
  13259. fi
  13260. rm -f conftest*
  13261. fi
  13262. if test $ac_cv_header_stdc = yes; then
  13263. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13265. /* end confdefs.h. */
  13266. #include <stdlib.h>
  13267. _ACEOF
  13268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13269. $EGREP "free" >/dev/null 2>&1; then :
  13270. else
  13271. ac_cv_header_stdc=no
  13272. fi
  13273. rm -f conftest*
  13274. fi
  13275. if test $ac_cv_header_stdc = yes; then
  13276. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13277. if test "$cross_compiling" = yes; then :
  13278. :
  13279. else
  13280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13281. /* end confdefs.h. */
  13282. #include <ctype.h>
  13283. #include <stdlib.h>
  13284. #if ((' ' & 0x0FF) == 0x020)
  13285. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13286. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13287. #else
  13288. # define ISLOWER(c) \
  13289. (('a' <= (c) && (c) <= 'i') \
  13290. || ('j' <= (c) && (c) <= 'r') \
  13291. || ('s' <= (c) && (c) <= 'z'))
  13292. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13293. #endif
  13294. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13295. int
  13296. main ()
  13297. {
  13298. int i;
  13299. for (i = 0; i < 256; i++)
  13300. if (XOR (islower (i), ISLOWER (i))
  13301. || toupper (i) != TOUPPER (i))
  13302. return 2;
  13303. return 0;
  13304. }
  13305. _ACEOF
  13306. if ac_fn_cxx_try_run "$LINENO"; then :
  13307. else
  13308. ac_cv_header_stdc=no
  13309. fi
  13310. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13311. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13312. fi
  13313. fi
  13314. fi
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13316. $as_echo "$ac_cv_header_stdc" >&6; }
  13317. if test $ac_cv_header_stdc = yes; then
  13318. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13319. fi
  13320. for ac_header in inttypes.h stdint.h malloc.h
  13321. do :
  13322. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13323. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13324. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13325. cat >>confdefs.h <<_ACEOF
  13326. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13327. _ACEOF
  13328. fi
  13329. done
  13330. for ac_func in setenv sinf
  13331. do :
  13332. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13333. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13334. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13335. cat >>confdefs.h <<_ACEOF
  13336. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13337. _ACEOF
  13338. fi
  13339. done
  13340. CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
  13341. # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
  13342. case "$host" in
  13343. *mingw* | *cygwin*)
  13344. LT_LDFLAGS="-no-undefined"
  13345. ;;
  13346. *)
  13347. LT_LDFLAGS=""
  13348. ;;
  13349. esac
  13350. case ${target_os} in
  13351. *sun* | *solaris*)
  13352. CXXFLAGS="$CXXFLAGS -fpermissive"
  13353. ;;
  13354. esac
  13355. # portable types. requires autoconf 2.60
  13356. # `configure' will check if these are defined in system headers.
  13357. # if not, it will auto-detect and define them in `config.h'
  13358. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  13359. case $ac_cv_c_int8_t in #(
  13360. no|yes) ;; #(
  13361. *)
  13362. cat >>confdefs.h <<_ACEOF
  13363. #define int8_t $ac_cv_c_int8_t
  13364. _ACEOF
  13365. ;;
  13366. esac
  13367. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  13368. case $ac_cv_c_uint8_t in #(
  13369. no|yes) ;; #(
  13370. *)
  13371. $as_echo "#define _UINT8_T 1" >>confdefs.h
  13372. cat >>confdefs.h <<_ACEOF
  13373. #define uint8_t $ac_cv_c_uint8_t
  13374. _ACEOF
  13375. ;;
  13376. esac
  13377. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  13378. case $ac_cv_c_int16_t in #(
  13379. no|yes) ;; #(
  13380. *)
  13381. cat >>confdefs.h <<_ACEOF
  13382. #define int16_t $ac_cv_c_int16_t
  13383. _ACEOF
  13384. ;;
  13385. esac
  13386. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  13387. case $ac_cv_c_uint16_t in #(
  13388. no|yes) ;; #(
  13389. *)
  13390. cat >>confdefs.h <<_ACEOF
  13391. #define uint16_t $ac_cv_c_uint16_t
  13392. _ACEOF
  13393. ;;
  13394. esac
  13395. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  13396. case $ac_cv_c_int32_t in #(
  13397. no|yes) ;; #(
  13398. *)
  13399. cat >>confdefs.h <<_ACEOF
  13400. #define int32_t $ac_cv_c_int32_t
  13401. _ACEOF
  13402. ;;
  13403. esac
  13404. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  13405. case $ac_cv_c_uint32_t in #(
  13406. no|yes) ;; #(
  13407. *)
  13408. $as_echo "#define _UINT32_T 1" >>confdefs.h
  13409. cat >>confdefs.h <<_ACEOF
  13410. #define uint32_t $ac_cv_c_uint32_t
  13411. _ACEOF
  13412. ;;
  13413. esac
  13414. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  13415. case $ac_cv_c_int64_t in #(
  13416. no|yes) ;; #(
  13417. *)
  13418. cat >>confdefs.h <<_ACEOF
  13419. #define int64_t $ac_cv_c_int64_t
  13420. _ACEOF
  13421. ;;
  13422. esac
  13423. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  13424. case $ac_cv_c_uint64_t in #(
  13425. no|yes) ;; #(
  13426. *)
  13427. $as_echo "#define _UINT64_T 1" >>confdefs.h
  13428. cat >>confdefs.h <<_ACEOF
  13429. #define uint64_t $ac_cv_c_uint64_t
  13430. _ACEOF
  13431. ;;
  13432. esac
  13433. MODPLUG_LIBRARY_VERSION=1:0:0
  13434. ac_config_files="$ac_config_files Makefile src/Makefile libmodplug.pc"
  13435. cat >confcache <<\_ACEOF
  13436. # This file is a shell script that caches the results of configure
  13437. # tests run on this system so they can be shared between configure
  13438. # scripts and configure runs, see configure's option --config-cache.
  13439. # It is not useful on other systems. If it contains results you don't
  13440. # want to keep, you may remove or edit it.
  13441. #
  13442. # config.status only pays attention to the cache file if you give it
  13443. # the --recheck option to rerun configure.
  13444. #
  13445. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13446. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13447. # following values.
  13448. _ACEOF
  13449. # The following way of writing the cache mishandles newlines in values,
  13450. # but we know of no workaround that is simple, portable, and efficient.
  13451. # So, we kill variables containing newlines.
  13452. # Ultrix sh set writes to stderr and can't be redirected directly,
  13453. # and sets the high bit in the cache file unless we assign to the vars.
  13454. (
  13455. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13456. eval ac_val=\$$ac_var
  13457. case $ac_val in #(
  13458. *${as_nl}*)
  13459. case $ac_var in #(
  13460. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13461. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13462. esac
  13463. case $ac_var in #(
  13464. _ | IFS | as_nl) ;; #(
  13465. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13466. *) { eval $ac_var=; unset $ac_var;} ;;
  13467. esac ;;
  13468. esac
  13469. done
  13470. (set) 2>&1 |
  13471. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13472. *${as_nl}ac_space=\ *)
  13473. # `set' does not quote correctly, so add quotes: double-quote
  13474. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13475. sed -n \
  13476. "s/'/'\\\\''/g;
  13477. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13478. ;; #(
  13479. *)
  13480. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13481. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13482. ;;
  13483. esac |
  13484. sort
  13485. ) |
  13486. sed '
  13487. /^ac_cv_env_/b end
  13488. t clear
  13489. :clear
  13490. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13491. t end
  13492. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13493. :end' >>confcache
  13494. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13495. if test -w "$cache_file"; then
  13496. if test "x$cache_file" != "x/dev/null"; then
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13498. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13499. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13500. cat confcache >"$cache_file"
  13501. else
  13502. case $cache_file in #(
  13503. */* | ?:*)
  13504. mv -f confcache "$cache_file"$$ &&
  13505. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13506. *)
  13507. mv -f confcache "$cache_file" ;;
  13508. esac
  13509. fi
  13510. fi
  13511. else
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13513. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13514. fi
  13515. fi
  13516. rm -f confcache
  13517. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13518. # Let make expand exec_prefix.
  13519. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13520. DEFS=-DHAVE_CONFIG_H
  13521. ac_libobjs=
  13522. ac_ltlibobjs=
  13523. U=
  13524. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13525. # 1. Remove the extension, and $U if already installed.
  13526. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13527. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13528. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13529. # will be set to the directory where LIBOBJS objects are built.
  13530. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13531. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13532. done
  13533. LIBOBJS=$ac_libobjs
  13534. LTLIBOBJS=$ac_ltlibobjs
  13535. if test -n "$EXEEXT"; then
  13536. am__EXEEXT_TRUE=
  13537. am__EXEEXT_FALSE='#'
  13538. else
  13539. am__EXEEXT_TRUE='#'
  13540. am__EXEEXT_FALSE=
  13541. fi
  13542. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13543. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13544. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13545. fi
  13546. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13547. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13548. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13549. fi
  13550. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13551. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13552. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13553. fi
  13554. : "${CONFIG_STATUS=./config.status}"
  13555. ac_write_fail=0
  13556. ac_clean_files_save=$ac_clean_files
  13557. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13559. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13560. as_write_fail=0
  13561. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13562. #! $SHELL
  13563. # Generated by $as_me.
  13564. # Run this file to recreate the current configuration.
  13565. # Compiler output produced by configure, useful for debugging
  13566. # configure, is in config.log if it exists.
  13567. debug=false
  13568. ac_cs_recheck=false
  13569. ac_cs_silent=false
  13570. SHELL=\${CONFIG_SHELL-$SHELL}
  13571. export SHELL
  13572. _ASEOF
  13573. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13574. ## -------------------- ##
  13575. ## M4sh Initialization. ##
  13576. ## -------------------- ##
  13577. # Be more Bourne compatible
  13578. DUALCASE=1; export DUALCASE # for MKS sh
  13579. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13580. emulate sh
  13581. NULLCMD=:
  13582. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13583. # is contrary to our usage. Disable this feature.
  13584. alias -g '${1+"$@"}'='"$@"'
  13585. setopt NO_GLOB_SUBST
  13586. else
  13587. case `(set -o) 2>/dev/null` in #(
  13588. *posix*) :
  13589. set -o posix ;; #(
  13590. *) :
  13591. ;;
  13592. esac
  13593. fi
  13594. as_nl='
  13595. '
  13596. export as_nl
  13597. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13598. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13599. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13600. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13601. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13602. # but without wasting forks for bash or zsh.
  13603. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13604. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13605. as_echo='print -r --'
  13606. as_echo_n='print -rn --'
  13607. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13608. as_echo='printf %s\n'
  13609. as_echo_n='printf %s'
  13610. else
  13611. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13612. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13613. as_echo_n='/usr/ucb/echo -n'
  13614. else
  13615. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13616. as_echo_n_body='eval
  13617. arg=$1;
  13618. case $arg in #(
  13619. *"$as_nl"*)
  13620. expr "X$arg" : "X\\(.*\\)$as_nl";
  13621. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13622. esac;
  13623. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13624. '
  13625. export as_echo_n_body
  13626. as_echo_n='sh -c $as_echo_n_body as_echo'
  13627. fi
  13628. export as_echo_body
  13629. as_echo='sh -c $as_echo_body as_echo'
  13630. fi
  13631. # The user is always right.
  13632. if test "${PATH_SEPARATOR+set}" != set; then
  13633. PATH_SEPARATOR=:
  13634. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13635. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13636. PATH_SEPARATOR=';'
  13637. }
  13638. fi
  13639. # IFS
  13640. # We need space, tab and new line, in precisely that order. Quoting is
  13641. # there to prevent editors from complaining about space-tab.
  13642. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13643. # splitting by setting IFS to empty value.)
  13644. IFS=" "" $as_nl"
  13645. # Find who we are. Look in the path if we contain no directory separator.
  13646. as_myself=
  13647. case $0 in #((
  13648. *[\\/]* ) as_myself=$0 ;;
  13649. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13650. for as_dir in $PATH
  13651. do
  13652. IFS=$as_save_IFS
  13653. test -z "$as_dir" && as_dir=.
  13654. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13655. done
  13656. IFS=$as_save_IFS
  13657. ;;
  13658. esac
  13659. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13660. # in which case we are not to be found in the path.
  13661. if test "x$as_myself" = x; then
  13662. as_myself=$0
  13663. fi
  13664. if test ! -f "$as_myself"; then
  13665. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13666. exit 1
  13667. fi
  13668. # Unset variables that we do not need and which cause bugs (e.g. in
  13669. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13670. # suppresses any "Segmentation fault" message there. '((' could
  13671. # trigger a bug in pdksh 5.2.14.
  13672. for as_var in BASH_ENV ENV MAIL MAILPATH
  13673. do eval test x\${$as_var+set} = xset \
  13674. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13675. done
  13676. PS1='$ '
  13677. PS2='> '
  13678. PS4='+ '
  13679. # NLS nuisances.
  13680. LC_ALL=C
  13681. export LC_ALL
  13682. LANGUAGE=C
  13683. export LANGUAGE
  13684. # CDPATH.
  13685. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13686. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13687. # ----------------------------------------
  13688. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13689. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13690. # script with STATUS, using 1 if that was 0.
  13691. as_fn_error ()
  13692. {
  13693. as_status=$1; test $as_status -eq 0 && as_status=1
  13694. if test "$4"; then
  13695. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13696. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13697. fi
  13698. $as_echo "$as_me: error: $2" >&2
  13699. as_fn_exit $as_status
  13700. } # as_fn_error
  13701. # as_fn_set_status STATUS
  13702. # -----------------------
  13703. # Set $? to STATUS, without forking.
  13704. as_fn_set_status ()
  13705. {
  13706. return $1
  13707. } # as_fn_set_status
  13708. # as_fn_exit STATUS
  13709. # -----------------
  13710. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13711. as_fn_exit ()
  13712. {
  13713. set +e
  13714. as_fn_set_status $1
  13715. exit $1
  13716. } # as_fn_exit
  13717. # as_fn_unset VAR
  13718. # ---------------
  13719. # Portably unset VAR.
  13720. as_fn_unset ()
  13721. {
  13722. { eval $1=; unset $1;}
  13723. }
  13724. as_unset=as_fn_unset
  13725. # as_fn_append VAR VALUE
  13726. # ----------------------
  13727. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13728. # advantage of any shell optimizations that allow amortized linear growth over
  13729. # repeated appends, instead of the typical quadratic growth present in naive
  13730. # implementations.
  13731. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13732. eval 'as_fn_append ()
  13733. {
  13734. eval $1+=\$2
  13735. }'
  13736. else
  13737. as_fn_append ()
  13738. {
  13739. eval $1=\$$1\$2
  13740. }
  13741. fi # as_fn_append
  13742. # as_fn_arith ARG...
  13743. # ------------------
  13744. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13745. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13746. # must be portable across $(()) and expr.
  13747. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13748. eval 'as_fn_arith ()
  13749. {
  13750. as_val=$(( $* ))
  13751. }'
  13752. else
  13753. as_fn_arith ()
  13754. {
  13755. as_val=`expr "$@" || test $? -eq 1`
  13756. }
  13757. fi # as_fn_arith
  13758. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13759. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13760. as_expr=expr
  13761. else
  13762. as_expr=false
  13763. fi
  13764. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13765. as_basename=basename
  13766. else
  13767. as_basename=false
  13768. fi
  13769. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13770. as_dirname=dirname
  13771. else
  13772. as_dirname=false
  13773. fi
  13774. as_me=`$as_basename -- "$0" ||
  13775. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13776. X"$0" : 'X\(//\)$' \| \
  13777. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13778. $as_echo X/"$0" |
  13779. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13780. s//\1/
  13781. q
  13782. }
  13783. /^X\/\(\/\/\)$/{
  13784. s//\1/
  13785. q
  13786. }
  13787. /^X\/\(\/\).*/{
  13788. s//\1/
  13789. q
  13790. }
  13791. s/.*/./; q'`
  13792. # Avoid depending upon Character Ranges.
  13793. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13794. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13795. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13796. as_cr_digits='0123456789'
  13797. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13798. ECHO_C= ECHO_N= ECHO_T=
  13799. case `echo -n x` in #(((((
  13800. -n*)
  13801. case `echo 'xy\c'` in
  13802. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13803. xy) ECHO_C='\c';;
  13804. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13805. ECHO_T=' ';;
  13806. esac;;
  13807. *)
  13808. ECHO_N='-n';;
  13809. esac
  13810. rm -f conf$$ conf$$.exe conf$$.file
  13811. if test -d conf$$.dir; then
  13812. rm -f conf$$.dir/conf$$.file
  13813. else
  13814. rm -f conf$$.dir
  13815. mkdir conf$$.dir 2>/dev/null
  13816. fi
  13817. if (echo >conf$$.file) 2>/dev/null; then
  13818. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13819. as_ln_s='ln -s'
  13820. # ... but there are two gotchas:
  13821. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13822. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13823. # In both cases, we have to default to `cp -p'.
  13824. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13825. as_ln_s='cp -p'
  13826. elif ln conf$$.file conf$$ 2>/dev/null; then
  13827. as_ln_s=ln
  13828. else
  13829. as_ln_s='cp -p'
  13830. fi
  13831. else
  13832. as_ln_s='cp -p'
  13833. fi
  13834. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13835. rmdir conf$$.dir 2>/dev/null
  13836. # as_fn_mkdir_p
  13837. # -------------
  13838. # Create "$as_dir" as a directory, including parents if necessary.
  13839. as_fn_mkdir_p ()
  13840. {
  13841. case $as_dir in #(
  13842. -*) as_dir=./$as_dir;;
  13843. esac
  13844. test -d "$as_dir" || eval $as_mkdir_p || {
  13845. as_dirs=
  13846. while :; do
  13847. case $as_dir in #(
  13848. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13849. *) as_qdir=$as_dir;;
  13850. esac
  13851. as_dirs="'$as_qdir' $as_dirs"
  13852. as_dir=`$as_dirname -- "$as_dir" ||
  13853. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13854. X"$as_dir" : 'X\(//\)[^/]' \| \
  13855. X"$as_dir" : 'X\(//\)$' \| \
  13856. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13857. $as_echo X"$as_dir" |
  13858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13859. s//\1/
  13860. q
  13861. }
  13862. /^X\(\/\/\)[^/].*/{
  13863. s//\1/
  13864. q
  13865. }
  13866. /^X\(\/\/\)$/{
  13867. s//\1/
  13868. q
  13869. }
  13870. /^X\(\/\).*/{
  13871. s//\1/
  13872. q
  13873. }
  13874. s/.*/./; q'`
  13875. test -d "$as_dir" && break
  13876. done
  13877. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13878. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13879. } # as_fn_mkdir_p
  13880. if mkdir -p . 2>/dev/null; then
  13881. as_mkdir_p='mkdir -p "$as_dir"'
  13882. else
  13883. test -d ./-p && rmdir ./-p
  13884. as_mkdir_p=false
  13885. fi
  13886. if test -x / >/dev/null 2>&1; then
  13887. as_test_x='test -x'
  13888. else
  13889. if ls -dL / >/dev/null 2>&1; then
  13890. as_ls_L_option=L
  13891. else
  13892. as_ls_L_option=
  13893. fi
  13894. as_test_x='
  13895. eval sh -c '\''
  13896. if test -d "$1"; then
  13897. test -d "$1/.";
  13898. else
  13899. case $1 in #(
  13900. -*)set "./$1";;
  13901. esac;
  13902. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13903. ???[sx]*):;;*)false;;esac;fi
  13904. '\'' sh
  13905. '
  13906. fi
  13907. as_executable_p=$as_test_x
  13908. # Sed expression to map a string onto a valid CPP name.
  13909. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13910. # Sed expression to map a string onto a valid variable name.
  13911. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13912. exec 6>&1
  13913. ## ----------------------------------- ##
  13914. ## Main body of $CONFIG_STATUS script. ##
  13915. ## ----------------------------------- ##
  13916. _ASEOF
  13917. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13919. # Save the log message, to keep $0 and so on meaningful, and to
  13920. # report actual input values of CONFIG_FILES etc. instead of their
  13921. # values after options handling.
  13922. ac_log="
  13923. This file was extended by $as_me, which was
  13924. generated by GNU Autoconf 2.68. Invocation command line was
  13925. CONFIG_FILES = $CONFIG_FILES
  13926. CONFIG_HEADERS = $CONFIG_HEADERS
  13927. CONFIG_LINKS = $CONFIG_LINKS
  13928. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13929. $ $0 $@
  13930. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13931. "
  13932. _ACEOF
  13933. case $ac_config_files in *"
  13934. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13935. esac
  13936. case $ac_config_headers in *"
  13937. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13938. esac
  13939. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13940. # Files that config.status was made for.
  13941. config_files="$ac_config_files"
  13942. config_headers="$ac_config_headers"
  13943. config_commands="$ac_config_commands"
  13944. _ACEOF
  13945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13946. ac_cs_usage="\
  13947. \`$as_me' instantiates files and other configuration actions
  13948. from templates according to the current configuration. Unless the files
  13949. and actions are specified as TAGs, all are instantiated by default.
  13950. Usage: $0 [OPTION]... [TAG]...
  13951. -h, --help print this help, then exit
  13952. -V, --version print version number and configuration settings, then exit
  13953. --config print configuration, then exit
  13954. -q, --quiet, --silent
  13955. do not print progress messages
  13956. -d, --debug don't remove temporary files
  13957. --recheck update $as_me by reconfiguring in the same conditions
  13958. --file=FILE[:TEMPLATE]
  13959. instantiate the configuration file FILE
  13960. --header=FILE[:TEMPLATE]
  13961. instantiate the configuration header FILE
  13962. Configuration files:
  13963. $config_files
  13964. Configuration headers:
  13965. $config_headers
  13966. Configuration commands:
  13967. $config_commands
  13968. Report bugs to the package provider."
  13969. _ACEOF
  13970. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13971. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13972. ac_cs_version="\\
  13973. config.status
  13974. configured by $0, generated by GNU Autoconf 2.68,
  13975. with options \\"\$ac_cs_config\\"
  13976. Copyright (C) 2010 Free Software Foundation, Inc.
  13977. This config.status script is free software; the Free Software Foundation
  13978. gives unlimited permission to copy, distribute and modify it."
  13979. ac_pwd='$ac_pwd'
  13980. srcdir='$srcdir'
  13981. INSTALL='$INSTALL'
  13982. MKDIR_P='$MKDIR_P'
  13983. AWK='$AWK'
  13984. test -n "\$AWK" || AWK=awk
  13985. _ACEOF
  13986. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13987. # The default lists apply if the user does not specify any file.
  13988. ac_need_defaults=:
  13989. while test $# != 0
  13990. do
  13991. case $1 in
  13992. --*=?*)
  13993. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13994. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13995. ac_shift=:
  13996. ;;
  13997. --*=)
  13998. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13999. ac_optarg=
  14000. ac_shift=:
  14001. ;;
  14002. *)
  14003. ac_option=$1
  14004. ac_optarg=$2
  14005. ac_shift=shift
  14006. ;;
  14007. esac
  14008. case $ac_option in
  14009. # Handling of the options.
  14010. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14011. ac_cs_recheck=: ;;
  14012. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14013. $as_echo "$ac_cs_version"; exit ;;
  14014. --config | --confi | --conf | --con | --co | --c )
  14015. $as_echo "$ac_cs_config"; exit ;;
  14016. --debug | --debu | --deb | --de | --d | -d )
  14017. debug=: ;;
  14018. --file | --fil | --fi | --f )
  14019. $ac_shift
  14020. case $ac_optarg in
  14021. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14022. '') as_fn_error $? "missing file argument" ;;
  14023. esac
  14024. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14025. ac_need_defaults=false;;
  14026. --header | --heade | --head | --hea )
  14027. $ac_shift
  14028. case $ac_optarg in
  14029. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14030. esac
  14031. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14032. ac_need_defaults=false;;
  14033. --he | --h)
  14034. # Conflict between --help and --header
  14035. as_fn_error $? "ambiguous option: \`$1'
  14036. Try \`$0 --help' for more information.";;
  14037. --help | --hel | -h )
  14038. $as_echo "$ac_cs_usage"; exit ;;
  14039. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14040. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14041. ac_cs_silent=: ;;
  14042. # This is an error.
  14043. -*) as_fn_error $? "unrecognized option: \`$1'
  14044. Try \`$0 --help' for more information." ;;
  14045. *) as_fn_append ac_config_targets " $1"
  14046. ac_need_defaults=false ;;
  14047. esac
  14048. shift
  14049. done
  14050. ac_configure_extra_args=
  14051. if $ac_cs_silent; then
  14052. exec 6>/dev/null
  14053. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14054. fi
  14055. _ACEOF
  14056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14057. if \$ac_cs_recheck; then
  14058. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14059. shift
  14060. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14061. CONFIG_SHELL='$SHELL'
  14062. export CONFIG_SHELL
  14063. exec "\$@"
  14064. fi
  14065. _ACEOF
  14066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14067. exec 5>>config.log
  14068. {
  14069. echo
  14070. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14071. ## Running $as_me. ##
  14072. _ASBOX
  14073. $as_echo "$ac_log"
  14074. } >&5
  14075. _ACEOF
  14076. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14077. #
  14078. # INIT-COMMANDS
  14079. #
  14080. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14081. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14082. # if CDPATH is set.
  14083. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14084. sed_quote_subst='$sed_quote_subst'
  14085. double_quote_subst='$double_quote_subst'
  14086. delay_variable_subst='$delay_variable_subst'
  14087. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14088. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14089. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14090. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14091. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14092. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14093. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14094. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14095. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14096. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14097. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14098. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14099. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14100. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14101. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14102. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14103. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14104. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14105. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14106. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14107. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14108. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14109. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14110. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14111. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14112. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14113. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14114. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14115. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14116. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14117. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14118. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14119. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14120. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14121. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14122. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14123. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14124. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14125. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14126. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14127. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14128. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14129. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14130. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14131. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14132. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14133. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14134. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14135. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14136. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14137. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14138. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14139. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14140. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14141. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14142. 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"`'
  14143. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14144. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14145. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14146. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14147. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14148. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14149. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14150. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14151. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14152. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14153. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14154. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14155. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14156. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14157. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14158. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14159. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14160. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14161. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14162. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14163. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14164. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14165. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14166. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14167. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14168. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14169. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14170. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14171. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14172. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14173. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14174. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14175. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14176. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14177. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14178. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14179. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14180. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14181. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14182. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14183. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14184. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14185. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14186. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14187. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14188. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14189. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14190. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14191. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14192. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14193. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14194. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14195. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14196. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14197. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14198. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14199. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14200. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14201. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14202. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14203. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14204. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14205. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14206. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14207. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14208. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14209. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14210. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14211. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14212. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14213. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14214. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14215. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14216. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14217. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14218. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14219. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14220. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14221. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14222. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14223. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14224. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14225. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14226. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14227. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14228. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14229. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14230. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14231. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14232. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14233. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14234. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14235. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14236. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14237. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14238. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14239. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14240. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14241. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14242. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14243. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14244. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14245. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14246. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14247. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14248. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14249. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14250. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14251. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14252. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14253. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14254. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14255. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14256. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14257. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14258. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14259. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14260. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14261. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14262. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14263. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14264. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14265. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14266. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14267. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14268. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14269. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14270. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14271. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14272. LTCC='$LTCC'
  14273. LTCFLAGS='$LTCFLAGS'
  14274. compiler='$compiler_DEFAULT'
  14275. # A function that is used when there is no print builtin or printf.
  14276. func_fallback_echo ()
  14277. {
  14278. eval 'cat <<_LTECHO_EOF
  14279. \$1
  14280. _LTECHO_EOF'
  14281. }
  14282. # Quote evaled strings.
  14283. for var in SHELL \
  14284. ECHO \
  14285. SED \
  14286. GREP \
  14287. EGREP \
  14288. FGREP \
  14289. LD \
  14290. NM \
  14291. LN_S \
  14292. lt_SP2NL \
  14293. lt_NL2SP \
  14294. reload_flag \
  14295. OBJDUMP \
  14296. deplibs_check_method \
  14297. file_magic_cmd \
  14298. file_magic_glob \
  14299. want_nocaseglob \
  14300. DLLTOOL \
  14301. sharedlib_from_linklib_cmd \
  14302. AR \
  14303. AR_FLAGS \
  14304. archiver_list_spec \
  14305. STRIP \
  14306. RANLIB \
  14307. CC \
  14308. CFLAGS \
  14309. compiler \
  14310. lt_cv_sys_global_symbol_pipe \
  14311. lt_cv_sys_global_symbol_to_cdecl \
  14312. lt_cv_sys_global_symbol_to_c_name_address \
  14313. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14314. nm_file_list_spec \
  14315. lt_prog_compiler_no_builtin_flag \
  14316. lt_prog_compiler_pic \
  14317. lt_prog_compiler_wl \
  14318. lt_prog_compiler_static \
  14319. lt_cv_prog_compiler_c_o \
  14320. need_locks \
  14321. MANIFEST_TOOL \
  14322. DSYMUTIL \
  14323. NMEDIT \
  14324. LIPO \
  14325. OTOOL \
  14326. OTOOL64 \
  14327. shrext_cmds \
  14328. export_dynamic_flag_spec \
  14329. whole_archive_flag_spec \
  14330. compiler_needs_object \
  14331. with_gnu_ld \
  14332. allow_undefined_flag \
  14333. no_undefined_flag \
  14334. hardcode_libdir_flag_spec \
  14335. hardcode_libdir_flag_spec_ld \
  14336. hardcode_libdir_separator \
  14337. exclude_expsyms \
  14338. include_expsyms \
  14339. file_list_spec \
  14340. variables_saved_for_relink \
  14341. libname_spec \
  14342. library_names_spec \
  14343. soname_spec \
  14344. install_override_mode \
  14345. finish_eval \
  14346. old_striplib \
  14347. striplib \
  14348. compiler_lib_search_dirs \
  14349. predep_objects \
  14350. postdep_objects \
  14351. predeps \
  14352. postdeps \
  14353. compiler_lib_search_path \
  14354. LD_CXX \
  14355. reload_flag_CXX \
  14356. compiler_CXX \
  14357. lt_prog_compiler_no_builtin_flag_CXX \
  14358. lt_prog_compiler_pic_CXX \
  14359. lt_prog_compiler_wl_CXX \
  14360. lt_prog_compiler_static_CXX \
  14361. lt_cv_prog_compiler_c_o_CXX \
  14362. export_dynamic_flag_spec_CXX \
  14363. whole_archive_flag_spec_CXX \
  14364. compiler_needs_object_CXX \
  14365. with_gnu_ld_CXX \
  14366. allow_undefined_flag_CXX \
  14367. no_undefined_flag_CXX \
  14368. hardcode_libdir_flag_spec_CXX \
  14369. hardcode_libdir_flag_spec_ld_CXX \
  14370. hardcode_libdir_separator_CXX \
  14371. exclude_expsyms_CXX \
  14372. include_expsyms_CXX \
  14373. file_list_spec_CXX \
  14374. compiler_lib_search_dirs_CXX \
  14375. predep_objects_CXX \
  14376. postdep_objects_CXX \
  14377. predeps_CXX \
  14378. postdeps_CXX \
  14379. compiler_lib_search_path_CXX; do
  14380. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14381. *[\\\\\\\`\\"\\\$]*)
  14382. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14383. ;;
  14384. *)
  14385. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14386. ;;
  14387. esac
  14388. done
  14389. # Double-quote double-evaled strings.
  14390. for var in reload_cmds \
  14391. old_postinstall_cmds \
  14392. old_postuninstall_cmds \
  14393. old_archive_cmds \
  14394. extract_expsyms_cmds \
  14395. old_archive_from_new_cmds \
  14396. old_archive_from_expsyms_cmds \
  14397. archive_cmds \
  14398. archive_expsym_cmds \
  14399. module_cmds \
  14400. module_expsym_cmds \
  14401. export_symbols_cmds \
  14402. prelink_cmds \
  14403. postlink_cmds \
  14404. postinstall_cmds \
  14405. postuninstall_cmds \
  14406. finish_cmds \
  14407. sys_lib_search_path_spec \
  14408. sys_lib_dlsearch_path_spec \
  14409. reload_cmds_CXX \
  14410. old_archive_cmds_CXX \
  14411. old_archive_from_new_cmds_CXX \
  14412. old_archive_from_expsyms_cmds_CXX \
  14413. archive_cmds_CXX \
  14414. archive_expsym_cmds_CXX \
  14415. module_cmds_CXX \
  14416. module_expsym_cmds_CXX \
  14417. export_symbols_cmds_CXX \
  14418. prelink_cmds_CXX \
  14419. postlink_cmds_CXX; do
  14420. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14421. *[\\\\\\\`\\"\\\$]*)
  14422. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14423. ;;
  14424. *)
  14425. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14426. ;;
  14427. esac
  14428. done
  14429. ac_aux_dir='$ac_aux_dir'
  14430. xsi_shell='$xsi_shell'
  14431. lt_shell_append='$lt_shell_append'
  14432. # See if we are running on zsh, and set the options which allow our
  14433. # commands through without removal of \ escapes INIT.
  14434. if test -n "\${ZSH_VERSION+set}" ; then
  14435. setopt NO_GLOB_SUBST
  14436. fi
  14437. PACKAGE='$PACKAGE'
  14438. VERSION='$VERSION'
  14439. TIMESTAMP='$TIMESTAMP'
  14440. RM='$RM'
  14441. ofile='$ofile'
  14442. _ACEOF
  14443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14444. # Handling of arguments.
  14445. for ac_config_target in $ac_config_targets
  14446. do
  14447. case $ac_config_target in
  14448. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  14449. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14450. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14451. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14452. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14453. "libmodplug.pc") CONFIG_FILES="$CONFIG_FILES libmodplug.pc" ;;
  14454. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14455. esac
  14456. done
  14457. # If the user did not use the arguments to specify the items to instantiate,
  14458. # then the envvar interface is used. Set only those that are not.
  14459. # We use the long form for the default assignment because of an extremely
  14460. # bizarre bug on SunOS 4.1.3.
  14461. if $ac_need_defaults; then
  14462. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14463. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14464. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14465. fi
  14466. # Have a temporary directory for convenience. Make it in the build tree
  14467. # simply because there is no reason against having it here, and in addition,
  14468. # creating and moving files from /tmp can sometimes cause problems.
  14469. # Hook for its removal unless debugging.
  14470. # Note that there is a small window in which the directory will not be cleaned:
  14471. # after its creation but before its name has been assigned to `$tmp'.
  14472. $debug ||
  14473. {
  14474. tmp= ac_tmp=
  14475. trap 'exit_status=$?
  14476. : "${ac_tmp:=$tmp}"
  14477. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14478. ' 0
  14479. trap 'as_fn_exit 1' 1 2 13 15
  14480. }
  14481. # Create a (secure) tmp directory for tmp files.
  14482. {
  14483. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14484. test -d "$tmp"
  14485. } ||
  14486. {
  14487. tmp=./conf$$-$RANDOM
  14488. (umask 077 && mkdir "$tmp")
  14489. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14490. ac_tmp=$tmp
  14491. # Set up the scripts for CONFIG_FILES section.
  14492. # No need to generate them if there are no CONFIG_FILES.
  14493. # This happens for instance with `./config.status config.h'.
  14494. if test -n "$CONFIG_FILES"; then
  14495. ac_cr=`echo X | tr X '\015'`
  14496. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14497. # But we know of no other shell where ac_cr would be empty at this
  14498. # point, so we can use a bashism as a fallback.
  14499. if test "x$ac_cr" = x; then
  14500. eval ac_cr=\$\'\\r\'
  14501. fi
  14502. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14503. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14504. ac_cs_awk_cr='\\r'
  14505. else
  14506. ac_cs_awk_cr=$ac_cr
  14507. fi
  14508. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14509. _ACEOF
  14510. {
  14511. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14512. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14513. echo "_ACEOF"
  14514. } >conf$$subs.sh ||
  14515. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14516. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14517. ac_delim='%!_!# '
  14518. for ac_last_try in false false false false false :; do
  14519. . ./conf$$subs.sh ||
  14520. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14521. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14522. if test $ac_delim_n = $ac_delim_num; then
  14523. break
  14524. elif $ac_last_try; then
  14525. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14526. else
  14527. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14528. fi
  14529. done
  14530. rm -f conf$$subs.sh
  14531. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14532. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14533. _ACEOF
  14534. sed -n '
  14535. h
  14536. s/^/S["/; s/!.*/"]=/
  14537. p
  14538. g
  14539. s/^[^!]*!//
  14540. :repl
  14541. t repl
  14542. s/'"$ac_delim"'$//
  14543. t delim
  14544. :nl
  14545. h
  14546. s/\(.\{148\}\)..*/\1/
  14547. t more1
  14548. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14549. p
  14550. n
  14551. b repl
  14552. :more1
  14553. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14554. p
  14555. g
  14556. s/.\{148\}//
  14557. t nl
  14558. :delim
  14559. h
  14560. s/\(.\{148\}\)..*/\1/
  14561. t more2
  14562. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14563. p
  14564. b
  14565. :more2
  14566. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14567. p
  14568. g
  14569. s/.\{148\}//
  14570. t delim
  14571. ' <conf$$subs.awk | sed '
  14572. /^[^""]/{
  14573. N
  14574. s/\n//
  14575. }
  14576. ' >>$CONFIG_STATUS || ac_write_fail=1
  14577. rm -f conf$$subs.awk
  14578. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14579. _ACAWK
  14580. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14581. for (key in S) S_is_set[key] = 1
  14582. FS = ""
  14583. }
  14584. {
  14585. line = $ 0
  14586. nfields = split(line, field, "@")
  14587. substed = 0
  14588. len = length(field[1])
  14589. for (i = 2; i < nfields; i++) {
  14590. key = field[i]
  14591. keylen = length(key)
  14592. if (S_is_set[key]) {
  14593. value = S[key]
  14594. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14595. len += length(value) + length(field[++i])
  14596. substed = 1
  14597. } else
  14598. len += 1 + keylen
  14599. }
  14600. print line
  14601. }
  14602. _ACAWK
  14603. _ACEOF
  14604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14605. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14606. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14607. else
  14608. cat
  14609. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14610. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14611. _ACEOF
  14612. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14613. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14614. # trailing colons and then remove the whole line if VPATH becomes empty
  14615. # (actually we leave an empty line to preserve line numbers).
  14616. if test "x$srcdir" = x.; then
  14617. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14618. h
  14619. s///
  14620. s/^/:/
  14621. s/[ ]*$/:/
  14622. s/:\$(srcdir):/:/g
  14623. s/:\${srcdir}:/:/g
  14624. s/:@srcdir@:/:/g
  14625. s/^:*//
  14626. s/:*$//
  14627. x
  14628. s/\(=[ ]*\).*/\1/
  14629. G
  14630. s/\n//
  14631. s/^[^=]*=[ ]*$//
  14632. }'
  14633. fi
  14634. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14635. fi # test -n "$CONFIG_FILES"
  14636. # Set up the scripts for CONFIG_HEADERS section.
  14637. # No need to generate them if there are no CONFIG_HEADERS.
  14638. # This happens for instance with `./config.status Makefile'.
  14639. if test -n "$CONFIG_HEADERS"; then
  14640. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14641. BEGIN {
  14642. _ACEOF
  14643. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14644. # here-document in config.status, that substitutes the proper values into
  14645. # config.h.in to produce config.h.
  14646. # Create a delimiter string that does not exist in confdefs.h, to ease
  14647. # handling of long lines.
  14648. ac_delim='%!_!# '
  14649. for ac_last_try in false false :; do
  14650. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14651. if test -z "$ac_tt"; then
  14652. break
  14653. elif $ac_last_try; then
  14654. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14655. else
  14656. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14657. fi
  14658. done
  14659. # For the awk script, D is an array of macro values keyed by name,
  14660. # likewise P contains macro parameters if any. Preserve backslash
  14661. # newline sequences.
  14662. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14663. sed -n '
  14664. s/.\{148\}/&'"$ac_delim"'/g
  14665. t rset
  14666. :rset
  14667. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14668. t def
  14669. d
  14670. :def
  14671. s/\\$//
  14672. t bsnl
  14673. s/["\\]/\\&/g
  14674. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14675. D["\1"]=" \3"/p
  14676. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14677. d
  14678. :bsnl
  14679. s/["\\]/\\&/g
  14680. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14681. D["\1"]=" \3\\\\\\n"\\/p
  14682. t cont
  14683. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14684. t cont
  14685. d
  14686. :cont
  14687. n
  14688. s/.\{148\}/&'"$ac_delim"'/g
  14689. t clear
  14690. :clear
  14691. s/\\$//
  14692. t bsnlc
  14693. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14694. d
  14695. :bsnlc
  14696. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14697. b cont
  14698. ' <confdefs.h | sed '
  14699. s/'"$ac_delim"'/"\\\
  14700. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14702. for (key in D) D_is_set[key] = 1
  14703. FS = ""
  14704. }
  14705. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14706. line = \$ 0
  14707. split(line, arg, " ")
  14708. if (arg[1] == "#") {
  14709. defundef = arg[2]
  14710. mac1 = arg[3]
  14711. } else {
  14712. defundef = substr(arg[1], 2)
  14713. mac1 = arg[2]
  14714. }
  14715. split(mac1, mac2, "(") #)
  14716. macro = mac2[1]
  14717. prefix = substr(line, 1, index(line, defundef) - 1)
  14718. if (D_is_set[macro]) {
  14719. # Preserve the white space surrounding the "#".
  14720. print prefix "define", macro P[macro] D[macro]
  14721. next
  14722. } else {
  14723. # Replace #undef with comments. This is necessary, for example,
  14724. # in the case of _POSIX_SOURCE, which is predefined and required
  14725. # on some systems where configure will not decide to define it.
  14726. if (defundef == "undef") {
  14727. print "/*", prefix defundef, macro, "*/"
  14728. next
  14729. }
  14730. }
  14731. }
  14732. { print }
  14733. _ACAWK
  14734. _ACEOF
  14735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14736. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14737. fi # test -n "$CONFIG_HEADERS"
  14738. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14739. shift
  14740. for ac_tag
  14741. do
  14742. case $ac_tag in
  14743. :[FHLC]) ac_mode=$ac_tag; continue;;
  14744. esac
  14745. case $ac_mode$ac_tag in
  14746. :[FHL]*:*);;
  14747. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14748. :[FH]-) ac_tag=-:-;;
  14749. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14750. esac
  14751. ac_save_IFS=$IFS
  14752. IFS=:
  14753. set x $ac_tag
  14754. IFS=$ac_save_IFS
  14755. shift
  14756. ac_file=$1
  14757. shift
  14758. case $ac_mode in
  14759. :L) ac_source=$1;;
  14760. :[FH])
  14761. ac_file_inputs=
  14762. for ac_f
  14763. do
  14764. case $ac_f in
  14765. -) ac_f="$ac_tmp/stdin";;
  14766. *) # Look for the file first in the build tree, then in the source tree
  14767. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14768. # because $ac_f cannot contain `:'.
  14769. test -f "$ac_f" ||
  14770. case $ac_f in
  14771. [\\/$]*) false;;
  14772. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14773. esac ||
  14774. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14775. esac
  14776. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14777. as_fn_append ac_file_inputs " '$ac_f'"
  14778. done
  14779. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14780. # use $as_me), people would be surprised to read:
  14781. # /* config.h. Generated by config.status. */
  14782. configure_input='Generated from '`
  14783. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14784. `' by configure.'
  14785. if test x"$ac_file" != x-; then
  14786. configure_input="$ac_file. $configure_input"
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14788. $as_echo "$as_me: creating $ac_file" >&6;}
  14789. fi
  14790. # Neutralize special characters interpreted by sed in replacement strings.
  14791. case $configure_input in #(
  14792. *\&* | *\|* | *\\* )
  14793. ac_sed_conf_input=`$as_echo "$configure_input" |
  14794. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14795. *) ac_sed_conf_input=$configure_input;;
  14796. esac
  14797. case $ac_tag in
  14798. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14799. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14800. esac
  14801. ;;
  14802. esac
  14803. ac_dir=`$as_dirname -- "$ac_file" ||
  14804. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14805. X"$ac_file" : 'X\(//\)[^/]' \| \
  14806. X"$ac_file" : 'X\(//\)$' \| \
  14807. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14808. $as_echo X"$ac_file" |
  14809. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14810. s//\1/
  14811. q
  14812. }
  14813. /^X\(\/\/\)[^/].*/{
  14814. s//\1/
  14815. q
  14816. }
  14817. /^X\(\/\/\)$/{
  14818. s//\1/
  14819. q
  14820. }
  14821. /^X\(\/\).*/{
  14822. s//\1/
  14823. q
  14824. }
  14825. s/.*/./; q'`
  14826. as_dir="$ac_dir"; as_fn_mkdir_p
  14827. ac_builddir=.
  14828. case "$ac_dir" in
  14829. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14830. *)
  14831. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14832. # A ".." for each directory in $ac_dir_suffix.
  14833. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14834. case $ac_top_builddir_sub in
  14835. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14836. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14837. esac ;;
  14838. esac
  14839. ac_abs_top_builddir=$ac_pwd
  14840. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14841. # for backward compatibility:
  14842. ac_top_builddir=$ac_top_build_prefix
  14843. case $srcdir in
  14844. .) # We are building in place.
  14845. ac_srcdir=.
  14846. ac_top_srcdir=$ac_top_builddir_sub
  14847. ac_abs_top_srcdir=$ac_pwd ;;
  14848. [\\/]* | ?:[\\/]* ) # Absolute name.
  14849. ac_srcdir=$srcdir$ac_dir_suffix;
  14850. ac_top_srcdir=$srcdir
  14851. ac_abs_top_srcdir=$srcdir ;;
  14852. *) # Relative name.
  14853. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14854. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14855. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14856. esac
  14857. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14858. case $ac_mode in
  14859. :F)
  14860. #
  14861. # CONFIG_FILE
  14862. #
  14863. case $INSTALL in
  14864. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14865. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14866. esac
  14867. ac_MKDIR_P=$MKDIR_P
  14868. case $MKDIR_P in
  14869. [\\/$]* | ?:[\\/]* ) ;;
  14870. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14871. esac
  14872. _ACEOF
  14873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14874. # If the template does not know about datarootdir, expand it.
  14875. # FIXME: This hack should be removed a few years after 2.60.
  14876. ac_datarootdir_hack=; ac_datarootdir_seen=
  14877. ac_sed_dataroot='
  14878. /datarootdir/ {
  14879. p
  14880. q
  14881. }
  14882. /@datadir@/p
  14883. /@docdir@/p
  14884. /@infodir@/p
  14885. /@localedir@/p
  14886. /@mandir@/p'
  14887. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14888. *datarootdir*) ac_datarootdir_seen=yes;;
  14889. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14891. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14892. _ACEOF
  14893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14894. ac_datarootdir_hack='
  14895. s&@datadir@&$datadir&g
  14896. s&@docdir@&$docdir&g
  14897. s&@infodir@&$infodir&g
  14898. s&@localedir@&$localedir&g
  14899. s&@mandir@&$mandir&g
  14900. s&\\\${datarootdir}&$datarootdir&g' ;;
  14901. esac
  14902. _ACEOF
  14903. # Neutralize VPATH when `$srcdir' = `.'.
  14904. # Shell code in configure.ac might set extrasub.
  14905. # FIXME: do we really want to maintain this feature?
  14906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14907. ac_sed_extra="$ac_vpsub
  14908. $extrasub
  14909. _ACEOF
  14910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14911. :t
  14912. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14913. s|@configure_input@|$ac_sed_conf_input|;t t
  14914. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14915. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14916. s&@srcdir@&$ac_srcdir&;t t
  14917. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14918. s&@top_srcdir@&$ac_top_srcdir&;t t
  14919. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14920. s&@builddir@&$ac_builddir&;t t
  14921. s&@abs_builddir@&$ac_abs_builddir&;t t
  14922. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14923. s&@INSTALL@&$ac_INSTALL&;t t
  14924. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14925. $ac_datarootdir_hack
  14926. "
  14927. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14928. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14929. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14930. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14931. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14932. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14934. which seems to be undefined. Please make sure it is defined" >&5
  14935. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14936. which seems to be undefined. Please make sure it is defined" >&2;}
  14937. rm -f "$ac_tmp/stdin"
  14938. case $ac_file in
  14939. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14940. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14941. esac \
  14942. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14943. ;;
  14944. :H)
  14945. #
  14946. # CONFIG_HEADER
  14947. #
  14948. if test x"$ac_file" != x-; then
  14949. {
  14950. $as_echo "/* $configure_input */" \
  14951. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14952. } >"$ac_tmp/config.h" \
  14953. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14954. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14956. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14957. else
  14958. rm -f "$ac_file"
  14959. mv "$ac_tmp/config.h" "$ac_file" \
  14960. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14961. fi
  14962. else
  14963. $as_echo "/* $configure_input */" \
  14964. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14965. || as_fn_error $? "could not create -" "$LINENO" 5
  14966. fi
  14967. # Compute "$ac_file"'s index in $config_headers.
  14968. _am_arg="$ac_file"
  14969. _am_stamp_count=1
  14970. for _am_header in $config_headers :; do
  14971. case $_am_header in
  14972. $_am_arg | $_am_arg:* )
  14973. break ;;
  14974. * )
  14975. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14976. esac
  14977. done
  14978. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14979. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14980. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14981. X"$_am_arg" : 'X\(//\)$' \| \
  14982. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14983. $as_echo X"$_am_arg" |
  14984. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14985. s//\1/
  14986. q
  14987. }
  14988. /^X\(\/\/\)[^/].*/{
  14989. s//\1/
  14990. q
  14991. }
  14992. /^X\(\/\/\)$/{
  14993. s//\1/
  14994. q
  14995. }
  14996. /^X\(\/\).*/{
  14997. s//\1/
  14998. q
  14999. }
  15000. s/.*/./; q'`/stamp-h$_am_stamp_count
  15001. ;;
  15002. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15003. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15004. ;;
  15005. esac
  15006. case $ac_file$ac_mode in
  15007. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15008. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15009. # are listed without --file. Let's play safe and only enable the eval
  15010. # if we detect the quoting.
  15011. case $CONFIG_FILES in
  15012. *\'*) eval set x "$CONFIG_FILES" ;;
  15013. *) set x $CONFIG_FILES ;;
  15014. esac
  15015. shift
  15016. for mf
  15017. do
  15018. # Strip MF so we end up with the name of the file.
  15019. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15020. # Check whether this is an Automake generated Makefile or not.
  15021. # We used to match only the files named `Makefile.in', but
  15022. # some people rename them; so instead we look at the file content.
  15023. # Grep'ing the first line is not enough: some people post-process
  15024. # each Makefile.in and add a new line on top of each file to say so.
  15025. # Grep'ing the whole file is not good either: AIX grep has a line
  15026. # limit of 2048, but all sed's we know have understand at least 4000.
  15027. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15028. dirpart=`$as_dirname -- "$mf" ||
  15029. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15030. X"$mf" : 'X\(//\)[^/]' \| \
  15031. X"$mf" : 'X\(//\)$' \| \
  15032. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15033. $as_echo X"$mf" |
  15034. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15035. s//\1/
  15036. q
  15037. }
  15038. /^X\(\/\/\)[^/].*/{
  15039. s//\1/
  15040. q
  15041. }
  15042. /^X\(\/\/\)$/{
  15043. s//\1/
  15044. q
  15045. }
  15046. /^X\(\/\).*/{
  15047. s//\1/
  15048. q
  15049. }
  15050. s/.*/./; q'`
  15051. else
  15052. continue
  15053. fi
  15054. # Extract the definition of DEPDIR, am__include, and am__quote
  15055. # from the Makefile without running `make'.
  15056. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15057. test -z "$DEPDIR" && continue
  15058. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15059. test -z "am__include" && continue
  15060. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15061. # When using ansi2knr, U may be empty or an underscore; expand it
  15062. U=`sed -n 's/^U = //p' < "$mf"`
  15063. # Find all dependency output files, they are included files with
  15064. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15065. # simplest approach to changing $(DEPDIR) to its actual value in the
  15066. # expansion.
  15067. for file in `sed -n "
  15068. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15069. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15070. # Make sure the directory exists.
  15071. test -f "$dirpart/$file" && continue
  15072. fdir=`$as_dirname -- "$file" ||
  15073. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15074. X"$file" : 'X\(//\)[^/]' \| \
  15075. X"$file" : 'X\(//\)$' \| \
  15076. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15077. $as_echo X"$file" |
  15078. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15079. s//\1/
  15080. q
  15081. }
  15082. /^X\(\/\/\)[^/].*/{
  15083. s//\1/
  15084. q
  15085. }
  15086. /^X\(\/\/\)$/{
  15087. s//\1/
  15088. q
  15089. }
  15090. /^X\(\/\).*/{
  15091. s//\1/
  15092. q
  15093. }
  15094. s/.*/./; q'`
  15095. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15096. # echo "creating $dirpart/$file"
  15097. echo '# dummy' > "$dirpart/$file"
  15098. done
  15099. done
  15100. }
  15101. ;;
  15102. "libtool":C)
  15103. # See if we are running on zsh, and set the options which allow our
  15104. # commands through without removal of \ escapes.
  15105. if test -n "${ZSH_VERSION+set}" ; then
  15106. setopt NO_GLOB_SUBST
  15107. fi
  15108. cfgfile="${ofile}T"
  15109. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15110. $RM "$cfgfile"
  15111. cat <<_LT_EOF >> "$cfgfile"
  15112. #! $SHELL
  15113. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15114. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15115. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15116. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15117. #
  15118. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15119. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  15120. # Inc.
  15121. # Written by Gordon Matzigkeit, 1996
  15122. #
  15123. # This file is part of GNU Libtool.
  15124. #
  15125. # GNU Libtool is free software; you can redistribute it and/or
  15126. # modify it under the terms of the GNU General Public License as
  15127. # published by the Free Software Foundation; either version 2 of
  15128. # the License, or (at your option) any later version.
  15129. #
  15130. # As a special exception to the GNU General Public License,
  15131. # if you distribute this file as part of a program or library that
  15132. # is built using GNU Libtool, you may include this file under the
  15133. # same distribution terms that you use for the rest of that program.
  15134. #
  15135. # GNU Libtool is distributed in the hope that it will be useful,
  15136. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15137. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15138. # GNU General Public License for more details.
  15139. #
  15140. # You should have received a copy of the GNU General Public License
  15141. # along with GNU Libtool; see the file COPYING. If not, a copy
  15142. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15143. # obtained by writing to the Free Software Foundation, Inc.,
  15144. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15145. # The names of the tagged configurations supported by this script.
  15146. available_tags="CXX "
  15147. # ### BEGIN LIBTOOL CONFIG
  15148. # Whether or not to build static libraries.
  15149. build_old_libs=$enable_static
  15150. # Which release of libtool.m4 was used?
  15151. macro_version=$macro_version
  15152. macro_revision=$macro_revision
  15153. # Whether or not to build shared libraries.
  15154. build_libtool_libs=$enable_shared
  15155. # What type of objects to build.
  15156. pic_mode=$pic_mode
  15157. # Whether or not to optimize for fast installation.
  15158. fast_install=$enable_fast_install
  15159. # Shell to use when invoking shell scripts.
  15160. SHELL=$lt_SHELL
  15161. # An echo program that protects backslashes.
  15162. ECHO=$lt_ECHO
  15163. # The host system.
  15164. host_alias=$host_alias
  15165. host=$host
  15166. host_os=$host_os
  15167. # The build system.
  15168. build_alias=$build_alias
  15169. build=$build
  15170. build_os=$build_os
  15171. # A sed program that does not truncate output.
  15172. SED=$lt_SED
  15173. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15174. Xsed="\$SED -e 1s/^X//"
  15175. # A grep program that handles long lines.
  15176. GREP=$lt_GREP
  15177. # An ERE matcher.
  15178. EGREP=$lt_EGREP
  15179. # A literal string matcher.
  15180. FGREP=$lt_FGREP
  15181. # A BSD- or MS-compatible name lister.
  15182. NM=$lt_NM
  15183. # Whether we need soft or hard links.
  15184. LN_S=$lt_LN_S
  15185. # What is the maximum length of a command?
  15186. max_cmd_len=$max_cmd_len
  15187. # Object file suffix (normally "o").
  15188. objext=$ac_objext
  15189. # Executable file suffix (normally "").
  15190. exeext=$exeext
  15191. # whether the shell understands "unset".
  15192. lt_unset=$lt_unset
  15193. # turn spaces into newlines.
  15194. SP2NL=$lt_lt_SP2NL
  15195. # turn newlines into spaces.
  15196. NL2SP=$lt_lt_NL2SP
  15197. # convert \$build file names to \$host format.
  15198. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15199. # convert \$build files to toolchain format.
  15200. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15201. # An object symbol dumper.
  15202. OBJDUMP=$lt_OBJDUMP
  15203. # Method to check whether dependent libraries are shared objects.
  15204. deplibs_check_method=$lt_deplibs_check_method
  15205. # Command to use when deplibs_check_method = "file_magic".
  15206. file_magic_cmd=$lt_file_magic_cmd
  15207. # How to find potential files when deplibs_check_method = "file_magic".
  15208. file_magic_glob=$lt_file_magic_glob
  15209. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15210. want_nocaseglob=$lt_want_nocaseglob
  15211. # DLL creation program.
  15212. DLLTOOL=$lt_DLLTOOL
  15213. # Command to associate shared and link libraries.
  15214. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15215. # The archiver.
  15216. AR=$lt_AR
  15217. # Flags to create an archive.
  15218. AR_FLAGS=$lt_AR_FLAGS
  15219. # How to feed a file listing to the archiver.
  15220. archiver_list_spec=$lt_archiver_list_spec
  15221. # A symbol stripping program.
  15222. STRIP=$lt_STRIP
  15223. # Commands used to install an old-style archive.
  15224. RANLIB=$lt_RANLIB
  15225. old_postinstall_cmds=$lt_old_postinstall_cmds
  15226. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15227. # Whether to use a lock for old archive extraction.
  15228. lock_old_archive_extraction=$lock_old_archive_extraction
  15229. # A C compiler.
  15230. LTCC=$lt_CC
  15231. # LTCC compiler flags.
  15232. LTCFLAGS=$lt_CFLAGS
  15233. # Take the output of nm and produce a listing of raw symbols and C names.
  15234. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15235. # Transform the output of nm in a proper C declaration.
  15236. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15237. # Transform the output of nm in a C name address pair.
  15238. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15239. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15240. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15241. # Specify filename containing input files for \$NM.
  15242. nm_file_list_spec=$lt_nm_file_list_spec
  15243. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15244. lt_sysroot=$lt_sysroot
  15245. # The name of the directory that contains temporary libtool files.
  15246. objdir=$objdir
  15247. # Used to examine libraries when file_magic_cmd begins with "file".
  15248. MAGIC_CMD=$MAGIC_CMD
  15249. # Must we lock files when doing compilation?
  15250. need_locks=$lt_need_locks
  15251. # Manifest tool.
  15252. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15253. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15254. DSYMUTIL=$lt_DSYMUTIL
  15255. # Tool to change global to local symbols on Mac OS X.
  15256. NMEDIT=$lt_NMEDIT
  15257. # Tool to manipulate fat objects and archives on Mac OS X.
  15258. LIPO=$lt_LIPO
  15259. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15260. OTOOL=$lt_OTOOL
  15261. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15262. OTOOL64=$lt_OTOOL64
  15263. # Old archive suffix (normally "a").
  15264. libext=$libext
  15265. # Shared library suffix (normally ".so").
  15266. shrext_cmds=$lt_shrext_cmds
  15267. # The commands to extract the exported symbol list from a shared archive.
  15268. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15269. # Variables whose values should be saved in libtool wrapper scripts and
  15270. # restored at link time.
  15271. variables_saved_for_relink=$lt_variables_saved_for_relink
  15272. # Do we need the "lib" prefix for modules?
  15273. need_lib_prefix=$need_lib_prefix
  15274. # Do we need a version for libraries?
  15275. need_version=$need_version
  15276. # Library versioning type.
  15277. version_type=$version_type
  15278. # Shared library runtime path variable.
  15279. runpath_var=$runpath_var
  15280. # Shared library path variable.
  15281. shlibpath_var=$shlibpath_var
  15282. # Is shlibpath searched before the hard-coded library search path?
  15283. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15284. # Format of library name prefix.
  15285. libname_spec=$lt_libname_spec
  15286. # List of archive names. First name is the real one, the rest are links.
  15287. # The last name is the one that the linker finds with -lNAME
  15288. library_names_spec=$lt_library_names_spec
  15289. # The coded name of the library, if different from the real name.
  15290. soname_spec=$lt_soname_spec
  15291. # Permission mode override for installation of shared libraries.
  15292. install_override_mode=$lt_install_override_mode
  15293. # Command to use after installation of a shared archive.
  15294. postinstall_cmds=$lt_postinstall_cmds
  15295. # Command to use after uninstallation of a shared archive.
  15296. postuninstall_cmds=$lt_postuninstall_cmds
  15297. # Commands used to finish a libtool library installation in a directory.
  15298. finish_cmds=$lt_finish_cmds
  15299. # As "finish_cmds", except a single script fragment to be evaled but
  15300. # not shown.
  15301. finish_eval=$lt_finish_eval
  15302. # Whether we should hardcode library paths into libraries.
  15303. hardcode_into_libs=$hardcode_into_libs
  15304. # Compile-time system search path for libraries.
  15305. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15306. # Run-time system search path for libraries.
  15307. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15308. # Whether dlopen is supported.
  15309. dlopen_support=$enable_dlopen
  15310. # Whether dlopen of programs is supported.
  15311. dlopen_self=$enable_dlopen_self
  15312. # Whether dlopen of statically linked programs is supported.
  15313. dlopen_self_static=$enable_dlopen_self_static
  15314. # Commands to strip libraries.
  15315. old_striplib=$lt_old_striplib
  15316. striplib=$lt_striplib
  15317. # The linker used to build libraries.
  15318. LD=$lt_LD
  15319. # How to create reloadable object files.
  15320. reload_flag=$lt_reload_flag
  15321. reload_cmds=$lt_reload_cmds
  15322. # Commands used to build an old-style archive.
  15323. old_archive_cmds=$lt_old_archive_cmds
  15324. # A language specific compiler.
  15325. CC=$lt_compiler
  15326. # Is the compiler the GNU compiler?
  15327. with_gcc=$GCC
  15328. # Compiler flag to turn off builtin functions.
  15329. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15330. # Additional compiler flags for building library objects.
  15331. pic_flag=$lt_lt_prog_compiler_pic
  15332. # How to pass a linker flag through the compiler.
  15333. wl=$lt_lt_prog_compiler_wl
  15334. # Compiler flag to prevent dynamic linking.
  15335. link_static_flag=$lt_lt_prog_compiler_static
  15336. # Does compiler simultaneously support -c and -o options?
  15337. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15338. # Whether or not to add -lc for building shared libraries.
  15339. build_libtool_need_lc=$archive_cmds_need_lc
  15340. # Whether or not to disallow shared libs when runtime libs are static.
  15341. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15342. # Compiler flag to allow reflexive dlopens.
  15343. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15344. # Compiler flag to generate shared objects directly from archives.
  15345. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15346. # Whether the compiler copes with passing no objects directly.
  15347. compiler_needs_object=$lt_compiler_needs_object
  15348. # Create an old-style archive from a shared archive.
  15349. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15350. # Create a temporary old-style archive to link instead of a shared archive.
  15351. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15352. # Commands used to build a shared archive.
  15353. archive_cmds=$lt_archive_cmds
  15354. archive_expsym_cmds=$lt_archive_expsym_cmds
  15355. # Commands used to build a loadable module if different from building
  15356. # a shared archive.
  15357. module_cmds=$lt_module_cmds
  15358. module_expsym_cmds=$lt_module_expsym_cmds
  15359. # Whether we are building with GNU ld or not.
  15360. with_gnu_ld=$lt_with_gnu_ld
  15361. # Flag that allows shared libraries with undefined symbols to be built.
  15362. allow_undefined_flag=$lt_allow_undefined_flag
  15363. # Flag that enforces no undefined symbols.
  15364. no_undefined_flag=$lt_no_undefined_flag
  15365. # Flag to hardcode \$libdir into a binary during linking.
  15366. # This must work even if \$libdir does not exist
  15367. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15368. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15369. # during linking. This must work even if \$libdir does not exist.
  15370. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15371. # Whether we need a single "-rpath" flag with a separated argument.
  15372. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15373. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15374. # DIR into the resulting binary.
  15375. hardcode_direct=$hardcode_direct
  15376. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15377. # DIR into the resulting binary and the resulting library dependency is
  15378. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15379. # library is relocated.
  15380. hardcode_direct_absolute=$hardcode_direct_absolute
  15381. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15382. # into the resulting binary.
  15383. hardcode_minus_L=$hardcode_minus_L
  15384. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15385. # into the resulting binary.
  15386. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15387. # Set to "yes" if building a shared library automatically hardcodes DIR
  15388. # into the library and all subsequent libraries and executables linked
  15389. # against it.
  15390. hardcode_automatic=$hardcode_automatic
  15391. # Set to yes if linker adds runtime paths of dependent libraries
  15392. # to runtime path list.
  15393. inherit_rpath=$inherit_rpath
  15394. # Whether libtool must link a program against all its dependency libraries.
  15395. link_all_deplibs=$link_all_deplibs
  15396. # Set to "yes" if exported symbols are required.
  15397. always_export_symbols=$always_export_symbols
  15398. # The commands to list exported symbols.
  15399. export_symbols_cmds=$lt_export_symbols_cmds
  15400. # Symbols that should not be listed in the preloaded symbols.
  15401. exclude_expsyms=$lt_exclude_expsyms
  15402. # Symbols that must always be exported.
  15403. include_expsyms=$lt_include_expsyms
  15404. # Commands necessary for linking programs (against libraries) with templates.
  15405. prelink_cmds=$lt_prelink_cmds
  15406. # Commands necessary for finishing linking programs.
  15407. postlink_cmds=$lt_postlink_cmds
  15408. # Specify filename containing input files.
  15409. file_list_spec=$lt_file_list_spec
  15410. # How to hardcode a shared library path into an executable.
  15411. hardcode_action=$hardcode_action
  15412. # The directories searched by this compiler when creating a shared library.
  15413. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15414. # Dependencies to place before and after the objects being linked to
  15415. # create a shared library.
  15416. predep_objects=$lt_predep_objects
  15417. postdep_objects=$lt_postdep_objects
  15418. predeps=$lt_predeps
  15419. postdeps=$lt_postdeps
  15420. # The library search path used internally by the compiler when linking
  15421. # a shared library.
  15422. compiler_lib_search_path=$lt_compiler_lib_search_path
  15423. # ### END LIBTOOL CONFIG
  15424. _LT_EOF
  15425. case $host_os in
  15426. aix3*)
  15427. cat <<\_LT_EOF >> "$cfgfile"
  15428. # AIX sometimes has problems with the GCC collect2 program. For some
  15429. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15430. # vanish in a puff of smoke.
  15431. if test "X${COLLECT_NAMES+set}" != Xset; then
  15432. COLLECT_NAMES=
  15433. export COLLECT_NAMES
  15434. fi
  15435. _LT_EOF
  15436. ;;
  15437. esac
  15438. ltmain="$ac_aux_dir/ltmain.sh"
  15439. # We use sed instead of cat because bash on DJGPP gets confused if
  15440. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15441. # text mode, it properly converts lines to CR/LF. This bash problem
  15442. # is reportedly fixed, but why not run on old versions too?
  15443. sed '$q' "$ltmain" >> "$cfgfile" \
  15444. || (rm -f "$cfgfile"; exit 1)
  15445. if test x"$xsi_shell" = xyes; then
  15446. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15447. func_dirname ()\
  15448. {\
  15449. \ case ${1} in\
  15450. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15451. \ * ) func_dirname_result="${3}" ;;\
  15452. \ esac\
  15453. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15454. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15455. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15456. test 0 -eq $? || _lt_function_replace_fail=:
  15457. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15458. func_basename ()\
  15459. {\
  15460. \ func_basename_result="${1##*/}"\
  15461. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15462. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15463. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15464. test 0 -eq $? || _lt_function_replace_fail=:
  15465. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15466. func_dirname_and_basename ()\
  15467. {\
  15468. \ case ${1} in\
  15469. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15470. \ * ) func_dirname_result="${3}" ;;\
  15471. \ esac\
  15472. \ func_basename_result="${1##*/}"\
  15473. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15474. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15475. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15476. test 0 -eq $? || _lt_function_replace_fail=:
  15477. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15478. func_stripname ()\
  15479. {\
  15480. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15481. \ # positional parameters, so assign one to ordinary parameter first.\
  15482. \ func_stripname_result=${3}\
  15483. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15484. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15485. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15486. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15487. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15488. test 0 -eq $? || _lt_function_replace_fail=:
  15489. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15490. func_split_long_opt ()\
  15491. {\
  15492. \ func_split_long_opt_name=${1%%=*}\
  15493. \ func_split_long_opt_arg=${1#*=}\
  15494. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15495. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15496. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15497. test 0 -eq $? || _lt_function_replace_fail=:
  15498. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15499. func_split_short_opt ()\
  15500. {\
  15501. \ func_split_short_opt_arg=${1#??}\
  15502. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15503. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15504. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15505. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15506. test 0 -eq $? || _lt_function_replace_fail=:
  15507. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15508. func_lo2o ()\
  15509. {\
  15510. \ case ${1} in\
  15511. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15512. \ *) func_lo2o_result=${1} ;;\
  15513. \ esac\
  15514. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15515. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15516. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15517. test 0 -eq $? || _lt_function_replace_fail=:
  15518. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15519. func_xform ()\
  15520. {\
  15521. func_xform_result=${1%.*}.lo\
  15522. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15523. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15524. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15525. test 0 -eq $? || _lt_function_replace_fail=:
  15526. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15527. func_arith ()\
  15528. {\
  15529. func_arith_result=$(( $* ))\
  15530. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15531. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15532. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15533. test 0 -eq $? || _lt_function_replace_fail=:
  15534. sed -e '/^func_len ()$/,/^} # func_len /c\
  15535. func_len ()\
  15536. {\
  15537. func_len_result=${#1}\
  15538. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15539. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15540. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15541. test 0 -eq $? || _lt_function_replace_fail=:
  15542. fi
  15543. if test x"$lt_shell_append" = xyes; then
  15544. sed -e '/^func_append ()$/,/^} # func_append /c\
  15545. func_append ()\
  15546. {\
  15547. eval "${1}+=\\${2}"\
  15548. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15549. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15550. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15551. test 0 -eq $? || _lt_function_replace_fail=:
  15552. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15553. func_append_quoted ()\
  15554. {\
  15555. \ func_quote_for_eval "${2}"\
  15556. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15557. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15558. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15559. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15560. test 0 -eq $? || _lt_function_replace_fail=:
  15561. # Save a `func_append' function call where possible by direct use of '+='
  15562. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15563. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15564. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15565. test 0 -eq $? || _lt_function_replace_fail=:
  15566. else
  15567. # Save a `func_append' function call even when '+=' is not available
  15568. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15569. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15570. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15571. test 0 -eq $? || _lt_function_replace_fail=:
  15572. fi
  15573. if test x"$_lt_function_replace_fail" = x":"; then
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15575. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15576. fi
  15577. mv -f "$cfgfile" "$ofile" ||
  15578. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15579. chmod +x "$ofile"
  15580. cat <<_LT_EOF >> "$ofile"
  15581. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15582. # The linker used to build libraries.
  15583. LD=$lt_LD_CXX
  15584. # How to create reloadable object files.
  15585. reload_flag=$lt_reload_flag_CXX
  15586. reload_cmds=$lt_reload_cmds_CXX
  15587. # Commands used to build an old-style archive.
  15588. old_archive_cmds=$lt_old_archive_cmds_CXX
  15589. # A language specific compiler.
  15590. CC=$lt_compiler_CXX
  15591. # Is the compiler the GNU compiler?
  15592. with_gcc=$GCC_CXX
  15593. # Compiler flag to turn off builtin functions.
  15594. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15595. # Additional compiler flags for building library objects.
  15596. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15597. # How to pass a linker flag through the compiler.
  15598. wl=$lt_lt_prog_compiler_wl_CXX
  15599. # Compiler flag to prevent dynamic linking.
  15600. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15601. # Does compiler simultaneously support -c and -o options?
  15602. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15603. # Whether or not to add -lc for building shared libraries.
  15604. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15605. # Whether or not to disallow shared libs when runtime libs are static.
  15606. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15607. # Compiler flag to allow reflexive dlopens.
  15608. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15609. # Compiler flag to generate shared objects directly from archives.
  15610. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15611. # Whether the compiler copes with passing no objects directly.
  15612. compiler_needs_object=$lt_compiler_needs_object_CXX
  15613. # Create an old-style archive from a shared archive.
  15614. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15615. # Create a temporary old-style archive to link instead of a shared archive.
  15616. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15617. # Commands used to build a shared archive.
  15618. archive_cmds=$lt_archive_cmds_CXX
  15619. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15620. # Commands used to build a loadable module if different from building
  15621. # a shared archive.
  15622. module_cmds=$lt_module_cmds_CXX
  15623. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15624. # Whether we are building with GNU ld or not.
  15625. with_gnu_ld=$lt_with_gnu_ld_CXX
  15626. # Flag that allows shared libraries with undefined symbols to be built.
  15627. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15628. # Flag that enforces no undefined symbols.
  15629. no_undefined_flag=$lt_no_undefined_flag_CXX
  15630. # Flag to hardcode \$libdir into a binary during linking.
  15631. # This must work even if \$libdir does not exist
  15632. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15633. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15634. # during linking. This must work even if \$libdir does not exist.
  15635. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15636. # Whether we need a single "-rpath" flag with a separated argument.
  15637. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15638. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15639. # DIR into the resulting binary.
  15640. hardcode_direct=$hardcode_direct_CXX
  15641. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15642. # DIR into the resulting binary and the resulting library dependency is
  15643. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15644. # library is relocated.
  15645. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15646. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15647. # into the resulting binary.
  15648. hardcode_minus_L=$hardcode_minus_L_CXX
  15649. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15650. # into the resulting binary.
  15651. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15652. # Set to "yes" if building a shared library automatically hardcodes DIR
  15653. # into the library and all subsequent libraries and executables linked
  15654. # against it.
  15655. hardcode_automatic=$hardcode_automatic_CXX
  15656. # Set to yes if linker adds runtime paths of dependent libraries
  15657. # to runtime path list.
  15658. inherit_rpath=$inherit_rpath_CXX
  15659. # Whether libtool must link a program against all its dependency libraries.
  15660. link_all_deplibs=$link_all_deplibs_CXX
  15661. # Set to "yes" if exported symbols are required.
  15662. always_export_symbols=$always_export_symbols_CXX
  15663. # The commands to list exported symbols.
  15664. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15665. # Symbols that should not be listed in the preloaded symbols.
  15666. exclude_expsyms=$lt_exclude_expsyms_CXX
  15667. # Symbols that must always be exported.
  15668. include_expsyms=$lt_include_expsyms_CXX
  15669. # Commands necessary for linking programs (against libraries) with templates.
  15670. prelink_cmds=$lt_prelink_cmds_CXX
  15671. # Commands necessary for finishing linking programs.
  15672. postlink_cmds=$lt_postlink_cmds_CXX
  15673. # Specify filename containing input files.
  15674. file_list_spec=$lt_file_list_spec_CXX
  15675. # How to hardcode a shared library path into an executable.
  15676. hardcode_action=$hardcode_action_CXX
  15677. # The directories searched by this compiler when creating a shared library.
  15678. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15679. # Dependencies to place before and after the objects being linked to
  15680. # create a shared library.
  15681. predep_objects=$lt_predep_objects_CXX
  15682. postdep_objects=$lt_postdep_objects_CXX
  15683. predeps=$lt_predeps_CXX
  15684. postdeps=$lt_postdeps_CXX
  15685. # The library search path used internally by the compiler when linking
  15686. # a shared library.
  15687. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15688. # ### END LIBTOOL TAG CONFIG: CXX
  15689. _LT_EOF
  15690. ;;
  15691. esac
  15692. done # for ac_tag
  15693. as_fn_exit 0
  15694. _ACEOF
  15695. ac_clean_files=$ac_clean_files_save
  15696. test $ac_write_fail = 0 ||
  15697. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15698. # configure is writing to config.log, and then calls config.status.
  15699. # config.status does its own redirection, appending to config.log.
  15700. # Unfortunately, on DOS this fails, as config.log is still kept open
  15701. # by configure, so config.status won't be able to write to it; its
  15702. # output is simply discarded. So we exec the FD to /dev/null,
  15703. # effectively closing config.log, so it can be properly (re)opened and
  15704. # appended to by config.status. When coming back to configure, we
  15705. # need to make the FD available again.
  15706. if test "$no_create" != yes; then
  15707. ac_cs_success=:
  15708. ac_config_status_args=
  15709. test "$silent" = yes &&
  15710. ac_config_status_args="$ac_config_status_args --quiet"
  15711. exec 5>/dev/null
  15712. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15713. exec 5>>config.log
  15714. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15715. # would make configure fail if this is the last instruction.
  15716. $ac_cs_success || as_fn_exit 1
  15717. fi
  15718. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15720. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15721. fi