configure 556 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for vcmi 0.8.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # 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. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell [email protected] about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='vcmi'
  637. PACKAGE_TARNAME='vcmi'
  638. PACKAGE_VERSION='0.8'
  639. PACKAGE_STRING='vcmi 0.8'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. FFMPEG_CXXFLAGS
  682. FFMPEG_LIBS
  683. SDL_CXXFLAGS
  684. SDL_LIBS
  685. HAVE_SDL_CONFIG
  686. BOOST_IOSTREAMS_LIB
  687. BOOST_THREAD_LIB
  688. BOOST_FILESYSTEM_LIB
  689. BOOST_SYSTEM_LIB
  690. BOOST_LDFLAGS
  691. BOOST_CPPFLAGS
  692. CXXCPP
  693. CPP
  694. OTOOL64
  695. OTOOL
  696. LIPO
  697. NMEDIT
  698. DSYMUTIL
  699. lt_ECHO
  700. RANLIB
  701. AR
  702. OBJDUMP
  703. LN_S
  704. NM
  705. ac_ct_DUMPBIN
  706. DUMPBIN
  707. LD
  708. FGREP
  709. EGREP
  710. GREP
  711. SED
  712. am__fastdepCC_FALSE
  713. am__fastdepCC_TRUE
  714. CCDEPMODE
  715. ac_ct_CC
  716. CFLAGS
  717. CC
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. LIBTOOL
  727. am__fastdepCXX_FALSE
  728. am__fastdepCXX_TRUE
  729. CXXDEPMODE
  730. AMDEPBACKSLASH
  731. AMDEP_FALSE
  732. AMDEP_TRUE
  733. am__quote
  734. am__include
  735. DEPDIR
  736. OBJEXT
  737. EXEEXT
  738. ac_ct_CXX
  739. CPPFLAGS
  740. LDFLAGS
  741. CXXFLAGS
  742. CXX
  743. am__untar
  744. am__tar
  745. AMTAR
  746. am__leading_dot
  747. SET_MAKE
  748. AWK
  749. mkdir_p
  750. MKDIR_P
  751. INSTALL_STRIP_PROGRAM
  752. STRIP
  753. install_sh
  754. MAKEINFO
  755. AUTOHEADER
  756. AUTOMAKE
  757. AUTOCONF
  758. ACLOCAL
  759. VERSION
  760. PACKAGE
  761. CYGPATH_W
  762. am__isrc
  763. INSTALL_DATA
  764. INSTALL_SCRIPT
  765. INSTALL_PROGRAM
  766. target_alias
  767. host_alias
  768. build_alias
  769. LIBS
  770. ECHO_T
  771. ECHO_N
  772. ECHO_C
  773. DEFS
  774. mandir
  775. localedir
  776. libdir
  777. psdir
  778. pdfdir
  779. dvidir
  780. htmldir
  781. infodir
  782. docdir
  783. oldincludedir
  784. includedir
  785. localstatedir
  786. sharedstatedir
  787. sysconfdir
  788. datadir
  789. datarootdir
  790. libexecdir
  791. sbindir
  792. bindir
  793. program_transform_name
  794. prefix
  795. exec_prefix
  796. PACKAGE_URL
  797. PACKAGE_BUGREPORT
  798. PACKAGE_STRING
  799. PACKAGE_VERSION
  800. PACKAGE_TARNAME
  801. PACKAGE_NAME
  802. PATH_SEPARATOR
  803. SHELL'
  804. ac_subst_files=''
  805. ac_user_opts='
  806. enable_option_checking
  807. enable_dependency_tracking
  808. enable_shared
  809. enable_static
  810. with_pic
  811. enable_fast_install
  812. with_gnu_ld
  813. enable_libtool_lock
  814. enable_debug
  815. with_boost
  816. with_boost_libdir
  817. with_boost_system
  818. with_boost_filesystem
  819. with_boost_thread
  820. with_boost_iostreams
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CXX
  826. CXXFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CCC
  831. CC
  832. CFLAGS
  833. CPP
  834. CXXCPP'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. includedir='${prefix}/include'
  871. oldincludedir='/usr/include'
  872. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  873. infodir='${datarootdir}/info'
  874. htmldir='${docdir}'
  875. dvidir='${docdir}'
  876. pdfdir='${docdir}'
  877. psdir='${docdir}'
  878. libdir='${exec_prefix}/lib'
  879. localedir='${datarootdir}/locale'
  880. mandir='${datarootdir}/man'
  881. ac_prev=
  882. ac_dashdash=
  883. for ac_option
  884. do
  885. # If the previous option needs an argument, assign it.
  886. if test -n "$ac_prev"; then
  887. eval $ac_prev=\$ac_option
  888. ac_prev=
  889. continue
  890. fi
  891. case $ac_option in
  892. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  893. *) ac_optarg=yes ;;
  894. esac
  895. # Accept the important Cygnus configure options, so we can diagnose typos.
  896. case $ac_dashdash$ac_option in
  897. --)
  898. ac_dashdash=yes ;;
  899. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  900. ac_prev=bindir ;;
  901. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  902. bindir=$ac_optarg ;;
  903. -build | --build | --buil | --bui | --bu)
  904. ac_prev=build_alias ;;
  905. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  906. build_alias=$ac_optarg ;;
  907. -cache-file | --cache-file | --cache-fil | --cache-fi \
  908. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  909. ac_prev=cache_file ;;
  910. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  911. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  912. cache_file=$ac_optarg ;;
  913. --config-cache | -C)
  914. cache_file=config.cache ;;
  915. -datadir | --datadir | --datadi | --datad)
  916. ac_prev=datadir ;;
  917. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  918. datadir=$ac_optarg ;;
  919. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  920. | --dataroo | --dataro | --datar)
  921. ac_prev=datarootdir ;;
  922. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  923. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  924. datarootdir=$ac_optarg ;;
  925. -disable-* | --disable-*)
  926. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  927. # Reject names that are not valid shell variable names.
  928. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  929. as_fn_error "invalid feature name: $ac_useropt"
  930. ac_useropt_orig=$ac_useropt
  931. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  932. case $ac_user_opts in
  933. *"
  934. "enable_$ac_useropt"
  935. "*) ;;
  936. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  937. ac_unrecognized_sep=', ';;
  938. esac
  939. eval enable_$ac_useropt=no ;;
  940. -docdir | --docdir | --docdi | --doc | --do)
  941. ac_prev=docdir ;;
  942. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  943. docdir=$ac_optarg ;;
  944. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  945. ac_prev=dvidir ;;
  946. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  947. dvidir=$ac_optarg ;;
  948. -enable-* | --enable-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. as_fn_error "invalid feature name: $ac_useropt"
  953. ac_useropt_orig=$ac_useropt
  954. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955. case $ac_user_opts in
  956. *"
  957. "enable_$ac_useropt"
  958. "*) ;;
  959. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  960. ac_unrecognized_sep=', ';;
  961. esac
  962. eval enable_$ac_useropt=\$ac_optarg ;;
  963. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  964. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  965. | --exec | --exe | --ex)
  966. ac_prev=exec_prefix ;;
  967. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  968. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  969. | --exec=* | --exe=* | --ex=*)
  970. exec_prefix=$ac_optarg ;;
  971. -gas | --gas | --ga | --g)
  972. # Obsolete; use --with-gas.
  973. with_gas=yes ;;
  974. -help | --help | --hel | --he | -h)
  975. ac_init_help=long ;;
  976. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  977. ac_init_help=recursive ;;
  978. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  979. ac_init_help=short ;;
  980. -host | --host | --hos | --ho)
  981. ac_prev=host_alias ;;
  982. -host=* | --host=* | --hos=* | --ho=*)
  983. host_alias=$ac_optarg ;;
  984. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  985. ac_prev=htmldir ;;
  986. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  987. | --ht=*)
  988. htmldir=$ac_optarg ;;
  989. -includedir | --includedir | --includedi | --included | --include \
  990. | --includ | --inclu | --incl | --inc)
  991. ac_prev=includedir ;;
  992. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  993. | --includ=* | --inclu=* | --incl=* | --inc=*)
  994. includedir=$ac_optarg ;;
  995. -infodir | --infodir | --infodi | --infod | --info | --inf)
  996. ac_prev=infodir ;;
  997. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  998. infodir=$ac_optarg ;;
  999. -libdir | --libdir | --libdi | --libd)
  1000. ac_prev=libdir ;;
  1001. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1002. libdir=$ac_optarg ;;
  1003. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1004. | --libexe | --libex | --libe)
  1005. ac_prev=libexecdir ;;
  1006. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1007. | --libexe=* | --libex=* | --libe=*)
  1008. libexecdir=$ac_optarg ;;
  1009. -localedir | --localedir | --localedi | --localed | --locale)
  1010. ac_prev=localedir ;;
  1011. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1012. localedir=$ac_optarg ;;
  1013. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1014. | --localstate | --localstat | --localsta | --localst | --locals)
  1015. ac_prev=localstatedir ;;
  1016. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1017. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1018. localstatedir=$ac_optarg ;;
  1019. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1020. ac_prev=mandir ;;
  1021. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1022. mandir=$ac_optarg ;;
  1023. -nfp | --nfp | --nf)
  1024. # Obsolete; use --without-fp.
  1025. with_fp=no ;;
  1026. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1027. | --no-cr | --no-c | -n)
  1028. no_create=yes ;;
  1029. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1030. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1031. no_recursion=yes ;;
  1032. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1033. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1034. | --oldin | --oldi | --old | --ol | --o)
  1035. ac_prev=oldincludedir ;;
  1036. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1037. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1038. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1039. oldincludedir=$ac_optarg ;;
  1040. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1041. ac_prev=prefix ;;
  1042. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1043. prefix=$ac_optarg ;;
  1044. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1045. | --program-pre | --program-pr | --program-p)
  1046. ac_prev=program_prefix ;;
  1047. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1048. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1049. program_prefix=$ac_optarg ;;
  1050. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1051. | --program-suf | --program-su | --program-s)
  1052. ac_prev=program_suffix ;;
  1053. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1054. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1055. program_suffix=$ac_optarg ;;
  1056. -program-transform-name | --program-transform-name \
  1057. | --program-transform-nam | --program-transform-na \
  1058. | --program-transform-n | --program-transform- \
  1059. | --program-transform | --program-transfor \
  1060. | --program-transfo | --program-transf \
  1061. | --program-trans | --program-tran \
  1062. | --progr-tra | --program-tr | --program-t)
  1063. ac_prev=program_transform_name ;;
  1064. -program-transform-name=* | --program-transform-name=* \
  1065. | --program-transform-nam=* | --program-transform-na=* \
  1066. | --program-transform-n=* | --program-transform-=* \
  1067. | --program-transform=* | --program-transfor=* \
  1068. | --program-transfo=* | --program-transf=* \
  1069. | --program-trans=* | --program-tran=* \
  1070. | --progr-tra=* | --program-tr=* | --program-t=*)
  1071. program_transform_name=$ac_optarg ;;
  1072. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1073. ac_prev=pdfdir ;;
  1074. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1075. pdfdir=$ac_optarg ;;
  1076. -psdir | --psdir | --psdi | --psd | --ps)
  1077. ac_prev=psdir ;;
  1078. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1079. psdir=$ac_optarg ;;
  1080. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1081. | -silent | --silent | --silen | --sile | --sil)
  1082. silent=yes ;;
  1083. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1084. ac_prev=sbindir ;;
  1085. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1086. | --sbi=* | --sb=*)
  1087. sbindir=$ac_optarg ;;
  1088. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1089. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1090. | --sharedst | --shareds | --shared | --share | --shar \
  1091. | --sha | --sh)
  1092. ac_prev=sharedstatedir ;;
  1093. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1094. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1095. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1096. | --sha=* | --sh=*)
  1097. sharedstatedir=$ac_optarg ;;
  1098. -site | --site | --sit)
  1099. ac_prev=site ;;
  1100. -site=* | --site=* | --sit=*)
  1101. site=$ac_optarg ;;
  1102. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1103. ac_prev=srcdir ;;
  1104. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1105. srcdir=$ac_optarg ;;
  1106. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1107. | --syscon | --sysco | --sysc | --sys | --sy)
  1108. ac_prev=sysconfdir ;;
  1109. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1110. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1111. sysconfdir=$ac_optarg ;;
  1112. -target | --target | --targe | --targ | --tar | --ta | --t)
  1113. ac_prev=target_alias ;;
  1114. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1115. target_alias=$ac_optarg ;;
  1116. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1117. verbose=yes ;;
  1118. -version | --version | --versio | --versi | --vers | -V)
  1119. ac_init_version=: ;;
  1120. -with-* | --with-*)
  1121. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1122. # Reject names that are not valid shell variable names.
  1123. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1124. as_fn_error "invalid package name: $ac_useropt"
  1125. ac_useropt_orig=$ac_useropt
  1126. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1127. case $ac_user_opts in
  1128. *"
  1129. "with_$ac_useropt"
  1130. "*) ;;
  1131. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1132. ac_unrecognized_sep=', ';;
  1133. esac
  1134. eval with_$ac_useropt=\$ac_optarg ;;
  1135. -without-* | --without-*)
  1136. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1139. as_fn_error "invalid package name: $ac_useropt"
  1140. ac_useropt_orig=$ac_useropt
  1141. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142. case $ac_user_opts in
  1143. *"
  1144. "with_$ac_useropt"
  1145. "*) ;;
  1146. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1147. ac_unrecognized_sep=', ';;
  1148. esac
  1149. eval with_$ac_useropt=no ;;
  1150. --x)
  1151. # Obsolete; use --with-x.
  1152. with_x=yes ;;
  1153. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1154. | --x-incl | --x-inc | --x-in | --x-i)
  1155. ac_prev=x_includes ;;
  1156. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1157. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1158. x_includes=$ac_optarg ;;
  1159. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1160. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1161. ac_prev=x_libraries ;;
  1162. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1163. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1164. x_libraries=$ac_optarg ;;
  1165. -*) as_fn_error "unrecognized option: \`$ac_option'
  1166. Try \`$0 --help' for more information."
  1167. ;;
  1168. *=*)
  1169. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1170. # Reject names that are not valid shell variable names.
  1171. case $ac_envvar in #(
  1172. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1173. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1174. esac
  1175. eval $ac_envvar=\$ac_optarg
  1176. export $ac_envvar ;;
  1177. *)
  1178. # FIXME: should be removed in autoconf 3.0.
  1179. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1180. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1181. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1182. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1183. ;;
  1184. esac
  1185. done
  1186. if test -n "$ac_prev"; then
  1187. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1188. as_fn_error "missing argument to $ac_option"
  1189. fi
  1190. if test -n "$ac_unrecognized_opts"; then
  1191. case $enable_option_checking in
  1192. no) ;;
  1193. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1194. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1195. esac
  1196. fi
  1197. # Check all directory arguments for consistency.
  1198. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1199. datadir sysconfdir sharedstatedir localstatedir includedir \
  1200. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1201. libdir localedir mandir
  1202. do
  1203. eval ac_val=\$$ac_var
  1204. # Remove trailing slashes.
  1205. case $ac_val in
  1206. */ )
  1207. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1208. eval $ac_var=\$ac_val;;
  1209. esac
  1210. # Be sure to have absolute directory names.
  1211. case $ac_val in
  1212. [\\/$]* | ?:[\\/]* ) continue;;
  1213. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1214. esac
  1215. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1216. done
  1217. # There might be people who depend on the old broken behavior: `$host'
  1218. # used to hold the argument of --host etc.
  1219. # FIXME: To remove some day.
  1220. build=$build_alias
  1221. host=$host_alias
  1222. target=$target_alias
  1223. # FIXME: To remove some day.
  1224. if test "x$host_alias" != x; then
  1225. if test "x$build_alias" = x; then
  1226. cross_compiling=maybe
  1227. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1228. If a cross compiler is detected then cross compile mode will be used." >&2
  1229. elif test "x$build_alias" != "x$host_alias"; then
  1230. cross_compiling=yes
  1231. fi
  1232. fi
  1233. ac_tool_prefix=
  1234. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1235. test "$silent" = yes && exec 6>/dev/null
  1236. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1237. ac_ls_di=`ls -di .` &&
  1238. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1239. as_fn_error "working directory cannot be determined"
  1240. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1241. as_fn_error "pwd does not report name of working directory"
  1242. # Find the source files, if location was not specified.
  1243. if test -z "$srcdir"; then
  1244. ac_srcdir_defaulted=yes
  1245. # Try the directory containing this script, then the parent directory.
  1246. ac_confdir=`$as_dirname -- "$as_myself" ||
  1247. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1248. X"$as_myself" : 'X\(//\)[^/]' \| \
  1249. X"$as_myself" : 'X\(//\)$' \| \
  1250. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1251. $as_echo X"$as_myself" |
  1252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)[^/].*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\).*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. s/.*/./; q'`
  1269. srcdir=$ac_confdir
  1270. if test ! -r "$srcdir/$ac_unique_file"; then
  1271. srcdir=..
  1272. fi
  1273. else
  1274. ac_srcdir_defaulted=no
  1275. fi
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1278. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1283. pwd)`
  1284. # When building in place, set srcdir=.
  1285. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1286. srcdir=.
  1287. fi
  1288. # Remove unnecessary trailing slashes from srcdir.
  1289. # Double slashes in file names in object file debugging info
  1290. # mess up M-x gdb in Emacs.
  1291. case $srcdir in
  1292. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1293. esac
  1294. for ac_var in $ac_precious_vars; do
  1295. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_env_${ac_var}_value=\$${ac_var}
  1297. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1299. done
  1300. #
  1301. # Report the --help message.
  1302. #
  1303. if test "$ac_init_help" = "long"; then
  1304. # Omit some internal or obsolete options to make the list less imposing.
  1305. # This message is too long to be a string in the A/UX 3.1 sh.
  1306. cat <<_ACEOF
  1307. \`configure' configures vcmi 0.8 to adapt to many kinds of systems.
  1308. Usage: $0 [OPTION]... [VAR=VALUE]...
  1309. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1310. VAR=VALUE. See below for descriptions of some of the useful variables.
  1311. Defaults for the options are specified in brackets.
  1312. Configuration:
  1313. -h, --help display this help and exit
  1314. --help=short display options specific to this package
  1315. --help=recursive display the short help of all the included packages
  1316. -V, --version display version information and exit
  1317. -q, --quiet, --silent do not print \`checking...' messages
  1318. --cache-file=FILE cache test results in FILE [disabled]
  1319. -C, --config-cache alias for \`--cache-file=config.cache'
  1320. -n, --no-create do not create output files
  1321. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1322. Installation directories:
  1323. --prefix=PREFIX install architecture-independent files in PREFIX
  1324. [$ac_default_prefix]
  1325. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1326. [PREFIX]
  1327. By default, \`make install' will install all the files in
  1328. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1329. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1330. for instance \`--prefix=\$HOME'.
  1331. For better control, use the options below.
  1332. Fine tuning of the installation directories:
  1333. --bindir=DIR user executables [EPREFIX/bin]
  1334. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1335. --libexecdir=DIR program executables [EPREFIX/libexec]
  1336. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1337. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1338. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1339. --libdir=DIR object code libraries [EPREFIX/lib]
  1340. --includedir=DIR C header files [PREFIX/include]
  1341. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1342. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1343. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1344. --infodir=DIR info documentation [DATAROOTDIR/info]
  1345. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1346. --mandir=DIR man documentation [DATAROOTDIR/man]
  1347. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1348. --htmldir=DIR html documentation [DOCDIR]
  1349. --dvidir=DIR dvi documentation [DOCDIR]
  1350. --pdfdir=DIR pdf documentation [DOCDIR]
  1351. --psdir=DIR ps documentation [DOCDIR]
  1352. _ACEOF
  1353. cat <<\_ACEOF
  1354. Program names:
  1355. --program-prefix=PREFIX prepend PREFIX to installed program names
  1356. --program-suffix=SUFFIX append SUFFIX to installed program names
  1357. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1358. System types:
  1359. --build=BUILD configure for building on BUILD [guessed]
  1360. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. case $ac_init_help in
  1365. short | recursive ) echo "Configuration of vcmi 0.8:";;
  1366. esac
  1367. cat <<\_ACEOF
  1368. Optional Features:
  1369. --disable-option-checking ignore unrecognized --enable/--with options
  1370. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1371. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1372. --disable-dependency-tracking speeds up one-time build
  1373. --enable-dependency-tracking do not reject slow dependency extractors
  1374. --enable-shared[=PKGS] build shared libraries [default=yes]
  1375. --enable-static[=PKGS] build static libraries [default=no]
  1376. --enable-fast-install[=PKGS]
  1377. optimize for fast installation [default=yes]
  1378. --disable-libtool-lock avoid locking (might break parallel builds)
  1379. --disable-debug turn off debugging (default=enable)
  1380. Optional Packages:
  1381. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1382. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1383. --with-pic try to use only PIC/non-PIC objects [default=use
  1384. both]
  1385. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1386. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1387. specify the root directory for boost (optional)
  1388. --with-boost-libdir=LIB_DIR
  1389. Force given directory for boost libraries. Note that
  1390. this will overwrite library path detection, so use
  1391. this parameter only if default library detection
  1392. fails and you know exactly where your boost
  1393. libraries are located.
  1394. --with-boost-system[=special-lib]
  1395. use the System library from boost - it is possible
  1396. to specify a certain library for the linker e.g.
  1397. --with-boost-system=boost_system-gcc-mt
  1398. --with-boost-filesystem[=special-lib]
  1399. use the Filesystem library from boost - it is
  1400. possible to specify a certain library for the linker
  1401. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1402. --with-boost-thread[=special-lib]
  1403. use the Thread library from boost - it is possible
  1404. to specify a certain library for the linker e.g.
  1405. --with-boost-thread=boost_thread-gcc-mt
  1406. --with-boost-iostreams[=special-lib]
  1407. use the IOStreams library from boost - it is
  1408. possible to specify a certain library for the
  1409. linker e.g.
  1410. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1411. Some influential environment variables:
  1412. CXX C++ compiler command
  1413. CXXFLAGS C++ compiler flags
  1414. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1415. nonstandard directory <lib dir>
  1416. LIBS libraries to pass to the linker, e.g. -l<library>
  1417. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1418. you have headers in a nonstandard directory <include dir>
  1419. CC C compiler command
  1420. CFLAGS C compiler flags
  1421. CPP C preprocessor
  1422. CXXCPP C++ preprocessor
  1423. Use these variables to override the choices made by `configure' or to help
  1424. it to find libraries and programs with nonstandard names/locations.
  1425. Report bugs to the package provider.
  1426. _ACEOF
  1427. ac_status=$?
  1428. fi
  1429. if test "$ac_init_help" = "recursive"; then
  1430. # If there are subdirs, report their specific --help.
  1431. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1432. test -d "$ac_dir" ||
  1433. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1434. continue
  1435. ac_builddir=.
  1436. case "$ac_dir" in
  1437. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1438. *)
  1439. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1440. # A ".." for each directory in $ac_dir_suffix.
  1441. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1442. case $ac_top_builddir_sub in
  1443. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1444. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1445. esac ;;
  1446. esac
  1447. ac_abs_top_builddir=$ac_pwd
  1448. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1449. # for backward compatibility:
  1450. ac_top_builddir=$ac_top_build_prefix
  1451. case $srcdir in
  1452. .) # We are building in place.
  1453. ac_srcdir=.
  1454. ac_top_srcdir=$ac_top_builddir_sub
  1455. ac_abs_top_srcdir=$ac_pwd ;;
  1456. [\\/]* | ?:[\\/]* ) # Absolute name.
  1457. ac_srcdir=$srcdir$ac_dir_suffix;
  1458. ac_top_srcdir=$srcdir
  1459. ac_abs_top_srcdir=$srcdir ;;
  1460. *) # Relative name.
  1461. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1462. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1463. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1464. esac
  1465. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1466. cd "$ac_dir" || { ac_status=$?; continue; }
  1467. # Check for guested configure.
  1468. if test -f "$ac_srcdir/configure.gnu"; then
  1469. echo &&
  1470. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1471. elif test -f "$ac_srcdir/configure"; then
  1472. echo &&
  1473. $SHELL "$ac_srcdir/configure" --help=recursive
  1474. else
  1475. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1476. fi || ac_status=$?
  1477. cd "$ac_pwd" || { ac_status=$?; break; }
  1478. done
  1479. fi
  1480. test -n "$ac_init_help" && exit $ac_status
  1481. if $ac_init_version; then
  1482. cat <<\_ACEOF
  1483. vcmi configure 0.8
  1484. generated by GNU Autoconf 2.65
  1485. Copyright (C) 2009 Free Software Foundation, Inc.
  1486. This configure script is free software; the Free Software Foundation
  1487. gives unlimited permission to copy, distribute and modify it.
  1488. _ACEOF
  1489. exit
  1490. fi
  1491. ## ------------------------ ##
  1492. ## Autoconf initialization. ##
  1493. ## ------------------------ ##
  1494. # ac_fn_cxx_try_compile LINENO
  1495. # ----------------------------
  1496. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1497. ac_fn_cxx_try_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. rm -f conftest.$ac_objext
  1501. if { { ac_try="$ac_compile"
  1502. case "(($ac_try" in
  1503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1504. *) ac_try_echo=$ac_try;;
  1505. esac
  1506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1507. $as_echo "$ac_try_echo"; } >&5
  1508. (eval "$ac_compile") 2>conftest.err
  1509. ac_status=$?
  1510. if test -s conftest.err; then
  1511. grep -v '^ *+' conftest.err >conftest.er1
  1512. cat conftest.er1 >&5
  1513. mv -f conftest.er1 conftest.err
  1514. fi
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && {
  1517. test -z "$ac_cxx_werror_flag" ||
  1518. test ! -s conftest.err
  1519. } && test -s conftest.$ac_objext; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1
  1525. fi
  1526. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1527. as_fn_set_status $ac_retval
  1528. } # ac_fn_cxx_try_compile
  1529. # ac_fn_c_try_compile LINENO
  1530. # --------------------------
  1531. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1532. ac_fn_c_try_compile ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. rm -f conftest.$ac_objext
  1536. if { { ac_try="$ac_compile"
  1537. case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_compile") 2>conftest.err
  1544. ac_status=$?
  1545. if test -s conftest.err; then
  1546. grep -v '^ *+' conftest.err >conftest.er1
  1547. cat conftest.er1 >&5
  1548. mv -f conftest.er1 conftest.err
  1549. fi
  1550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1551. test $ac_status = 0; } && {
  1552. test -z "$ac_c_werror_flag" ||
  1553. test ! -s conftest.err
  1554. } && test -s conftest.$ac_objext; then :
  1555. ac_retval=0
  1556. else
  1557. $as_echo "$as_me: failed program was:" >&5
  1558. sed 's/^/| /' conftest.$ac_ext >&5
  1559. ac_retval=1
  1560. fi
  1561. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1562. as_fn_set_status $ac_retval
  1563. } # ac_fn_c_try_compile
  1564. # ac_fn_c_try_link LINENO
  1565. # -----------------------
  1566. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1567. ac_fn_c_try_link ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. rm -f conftest.$ac_objext conftest$ac_exeext
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>conftest.err
  1579. ac_status=$?
  1580. if test -s conftest.err; then
  1581. grep -v '^ *+' conftest.err >conftest.er1
  1582. cat conftest.er1 >&5
  1583. mv -f conftest.er1 conftest.err
  1584. fi
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && {
  1587. test -z "$ac_c_werror_flag" ||
  1588. test ! -s conftest.err
  1589. } && test -s conftest$ac_exeext && {
  1590. test "$cross_compiling" = yes ||
  1591. $as_test_x conftest$ac_exeext
  1592. }; then :
  1593. ac_retval=0
  1594. else
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=1
  1598. fi
  1599. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1600. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1601. # interfere with the next link command; also delete a directory that is
  1602. # left behind by Apple's compiler. We do this before executing the actions.
  1603. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1604. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1605. as_fn_set_status $ac_retval
  1606. } # ac_fn_c_try_link
  1607. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1608. # -------------------------------------------------------
  1609. # Tests whether HEADER exists and can be compiled using the include files in
  1610. # INCLUDES, setting the cache variable VAR accordingly.
  1611. ac_fn_c_check_header_compile ()
  1612. {
  1613. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1615. $as_echo_n "checking for $2... " >&6; }
  1616. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1617. $as_echo_n "(cached) " >&6
  1618. else
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. $4
  1622. #include <$2>
  1623. _ACEOF
  1624. if ac_fn_c_try_compile "$LINENO"; then :
  1625. eval "$3=yes"
  1626. else
  1627. eval "$3=no"
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1630. fi
  1631. eval ac_res=\$$3
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1633. $as_echo "$ac_res" >&6; }
  1634. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1635. } # ac_fn_c_check_header_compile
  1636. # ac_fn_c_try_cpp LINENO
  1637. # ----------------------
  1638. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1639. ac_fn_c_try_cpp ()
  1640. {
  1641. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1642. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1643. case "(($ac_try" in
  1644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1645. *) ac_try_echo=$ac_try;;
  1646. esac
  1647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1648. $as_echo "$ac_try_echo"; } >&5
  1649. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1650. ac_status=$?
  1651. if test -s conftest.err; then
  1652. grep -v '^ *+' conftest.err >conftest.er1
  1653. cat conftest.er1 >&5
  1654. mv -f conftest.er1 conftest.err
  1655. fi
  1656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1657. test $ac_status = 0; } >/dev/null && {
  1658. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1659. test ! -s conftest.err
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1668. as_fn_set_status $ac_retval
  1669. } # ac_fn_c_try_cpp
  1670. # ac_fn_c_try_run LINENO
  1671. # ----------------------
  1672. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1673. # that executables *can* be run.
  1674. ac_fn_c_try_run ()
  1675. {
  1676. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1677. if { { ac_try="$ac_link"
  1678. case "(($ac_try" in
  1679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1680. *) ac_try_echo=$ac_try;;
  1681. esac
  1682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1683. $as_echo "$ac_try_echo"; } >&5
  1684. (eval "$ac_link") 2>&5
  1685. ac_status=$?
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1688. { { case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_try") 2>&5
  1695. ac_status=$?
  1696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1697. test $ac_status = 0; }; }; then :
  1698. ac_retval=0
  1699. else
  1700. $as_echo "$as_me: program exited with status $ac_status" >&5
  1701. $as_echo "$as_me: failed program was:" >&5
  1702. sed 's/^/| /' conftest.$ac_ext >&5
  1703. ac_retval=$ac_status
  1704. fi
  1705. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1706. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1707. as_fn_set_status $ac_retval
  1708. } # ac_fn_c_try_run
  1709. # ac_fn_c_check_func LINENO FUNC VAR
  1710. # ----------------------------------
  1711. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1712. ac_fn_c_check_func ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1716. $as_echo_n "checking for $2... " >&6; }
  1717. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1718. $as_echo_n "(cached) " >&6
  1719. else
  1720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h. */
  1722. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1723. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1724. #define $2 innocuous_$2
  1725. /* System header to define __stub macros and hopefully few prototypes,
  1726. which can conflict with char $2 (); below.
  1727. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1728. <limits.h> exists even on freestanding compilers. */
  1729. #ifdef __STDC__
  1730. # include <limits.h>
  1731. #else
  1732. # include <assert.h>
  1733. #endif
  1734. #undef $2
  1735. /* Override any GCC internal prototype to avoid an error.
  1736. Use char because int might match the return type of a GCC
  1737. builtin and then its argument prototype would still apply. */
  1738. #ifdef __cplusplus
  1739. extern "C"
  1740. #endif
  1741. char $2 ();
  1742. /* The GNU C library defines this for functions which it implements
  1743. to always fail with ENOSYS. Some functions are actually named
  1744. something starting with __ and the normal name is an alias. */
  1745. #if defined __stub_$2 || defined __stub___$2
  1746. choke me
  1747. #endif
  1748. int
  1749. main ()
  1750. {
  1751. return $2 ();
  1752. ;
  1753. return 0;
  1754. }
  1755. _ACEOF
  1756. if ac_fn_c_try_link "$LINENO"; then :
  1757. eval "$3=yes"
  1758. else
  1759. eval "$3=no"
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext \
  1762. conftest$ac_exeext conftest.$ac_ext
  1763. fi
  1764. eval ac_res=\$$3
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1766. $as_echo "$ac_res" >&6; }
  1767. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1768. } # ac_fn_c_check_func
  1769. # ac_fn_cxx_try_cpp LINENO
  1770. # ------------------------
  1771. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1772. ac_fn_cxx_try_cpp ()
  1773. {
  1774. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1775. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1776. case "(($ac_try" in
  1777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1778. *) ac_try_echo=$ac_try;;
  1779. esac
  1780. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1781. $as_echo "$ac_try_echo"; } >&5
  1782. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1783. ac_status=$?
  1784. if test -s conftest.err; then
  1785. grep -v '^ *+' conftest.err >conftest.er1
  1786. cat conftest.er1 >&5
  1787. mv -f conftest.er1 conftest.err
  1788. fi
  1789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1790. test $ac_status = 0; } >/dev/null && {
  1791. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1792. test ! -s conftest.err
  1793. }; then :
  1794. ac_retval=0
  1795. else
  1796. $as_echo "$as_me: failed program was:" >&5
  1797. sed 's/^/| /' conftest.$ac_ext >&5
  1798. ac_retval=1
  1799. fi
  1800. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1801. as_fn_set_status $ac_retval
  1802. } # ac_fn_cxx_try_cpp
  1803. # ac_fn_cxx_try_link LINENO
  1804. # -------------------------
  1805. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1806. ac_fn_cxx_try_link ()
  1807. {
  1808. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1809. rm -f conftest.$ac_objext conftest$ac_exeext
  1810. if { { ac_try="$ac_link"
  1811. case "(($ac_try" in
  1812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1813. *) ac_try_echo=$ac_try;;
  1814. esac
  1815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1816. $as_echo "$ac_try_echo"; } >&5
  1817. (eval "$ac_link") 2>conftest.err
  1818. ac_status=$?
  1819. if test -s conftest.err; then
  1820. grep -v '^ *+' conftest.err >conftest.er1
  1821. cat conftest.er1 >&5
  1822. mv -f conftest.er1 conftest.err
  1823. fi
  1824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1825. test $ac_status = 0; } && {
  1826. test -z "$ac_cxx_werror_flag" ||
  1827. test ! -s conftest.err
  1828. } && test -s conftest$ac_exeext && {
  1829. test "$cross_compiling" = yes ||
  1830. $as_test_x conftest$ac_exeext
  1831. }; then :
  1832. ac_retval=0
  1833. else
  1834. $as_echo "$as_me: failed program was:" >&5
  1835. sed 's/^/| /' conftest.$ac_ext >&5
  1836. ac_retval=1
  1837. fi
  1838. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1839. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1840. # interfere with the next link command; also delete a directory that is
  1841. # left behind by Apple's compiler. We do this before executing the actions.
  1842. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1843. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1844. as_fn_set_status $ac_retval
  1845. } # ac_fn_cxx_try_link
  1846. # ac_fn_cxx_try_run LINENO
  1847. # ------------------------
  1848. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1849. # that executables *can* be run.
  1850. ac_fn_cxx_try_run ()
  1851. {
  1852. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1853. if { { ac_try="$ac_link"
  1854. case "(($ac_try" in
  1855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1856. *) ac_try_echo=$ac_try;;
  1857. esac
  1858. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1859. $as_echo "$ac_try_echo"; } >&5
  1860. (eval "$ac_link") 2>&5
  1861. ac_status=$?
  1862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1864. { { case "(($ac_try" in
  1865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1866. *) ac_try_echo=$ac_try;;
  1867. esac
  1868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1869. $as_echo "$ac_try_echo"; } >&5
  1870. (eval "$ac_try") 2>&5
  1871. ac_status=$?
  1872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1873. test $ac_status = 0; }; }; then :
  1874. ac_retval=0
  1875. else
  1876. $as_echo "$as_me: program exited with status $ac_status" >&5
  1877. $as_echo "$as_me: failed program was:" >&5
  1878. sed 's/^/| /' conftest.$ac_ext >&5
  1879. ac_retval=$ac_status
  1880. fi
  1881. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1882. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1883. as_fn_set_status $ac_retval
  1884. } # ac_fn_cxx_try_run
  1885. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1886. # ---------------------------------------------------------
  1887. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1888. # the include files in INCLUDES and setting the cache variable VAR
  1889. # accordingly.
  1890. ac_fn_cxx_check_header_mongrel ()
  1891. {
  1892. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1893. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1895. $as_echo_n "checking for $2... " >&6; }
  1896. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1897. $as_echo_n "(cached) " >&6
  1898. fi
  1899. eval ac_res=\$$3
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. $as_echo "$ac_res" >&6; }
  1902. else
  1903. # Is the header compilable?
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1905. $as_echo_n "checking $2 usability... " >&6; }
  1906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1907. /* end confdefs.h. */
  1908. $4
  1909. #include <$2>
  1910. _ACEOF
  1911. if ac_fn_cxx_try_compile "$LINENO"; then :
  1912. ac_header_compiler=yes
  1913. else
  1914. ac_header_compiler=no
  1915. fi
  1916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1918. $as_echo "$ac_header_compiler" >&6; }
  1919. # Is the header present?
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1921. $as_echo_n "checking $2 presence... " >&6; }
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. #include <$2>
  1925. _ACEOF
  1926. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1927. ac_header_preproc=yes
  1928. else
  1929. ac_header_preproc=no
  1930. fi
  1931. rm -f conftest.err conftest.$ac_ext
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1933. $as_echo "$ac_header_preproc" >&6; }
  1934. # So? What about this header?
  1935. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1936. yes:no: )
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1938. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1940. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1941. ;;
  1942. no:yes:* )
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1944. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1946. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1948. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1950. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1952. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1953. ;;
  1954. esac
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1956. $as_echo_n "checking for $2... " >&6; }
  1957. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1958. $as_echo_n "(cached) " >&6
  1959. else
  1960. eval "$3=\$ac_header_compiler"
  1961. fi
  1962. eval ac_res=\$$3
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1964. $as_echo "$ac_res" >&6; }
  1965. fi
  1966. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1967. } # ac_fn_cxx_check_header_mongrel
  1968. # ac_fn_cxx_check_func LINENO FUNC VAR
  1969. # ------------------------------------
  1970. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1971. ac_fn_cxx_check_func ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1975. $as_echo_n "checking for $2... " >&6; }
  1976. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1977. $as_echo_n "(cached) " >&6
  1978. else
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1982. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1983. #define $2 innocuous_$2
  1984. /* System header to define __stub macros and hopefully few prototypes,
  1985. which can conflict with char $2 (); below.
  1986. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1987. <limits.h> exists even on freestanding compilers. */
  1988. #ifdef __STDC__
  1989. # include <limits.h>
  1990. #else
  1991. # include <assert.h>
  1992. #endif
  1993. #undef $2
  1994. /* Override any GCC internal prototype to avoid an error.
  1995. Use char because int might match the return type of a GCC
  1996. builtin and then its argument prototype would still apply. */
  1997. #ifdef __cplusplus
  1998. extern "C"
  1999. #endif
  2000. char $2 ();
  2001. /* The GNU C library defines this for functions which it implements
  2002. to always fail with ENOSYS. Some functions are actually named
  2003. something starting with __ and the normal name is an alias. */
  2004. #if defined __stub_$2 || defined __stub___$2
  2005. choke me
  2006. #endif
  2007. int
  2008. main ()
  2009. {
  2010. return $2 ();
  2011. ;
  2012. return 0;
  2013. }
  2014. _ACEOF
  2015. if ac_fn_cxx_try_link "$LINENO"; then :
  2016. eval "$3=yes"
  2017. else
  2018. eval "$3=no"
  2019. fi
  2020. rm -f core conftest.err conftest.$ac_objext \
  2021. conftest$ac_exeext conftest.$ac_ext
  2022. fi
  2023. eval ac_res=\$$3
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2025. $as_echo "$ac_res" >&6; }
  2026. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2027. } # ac_fn_cxx_check_func
  2028. cat >config.log <<_ACEOF
  2029. This file contains any messages produced by compilers while
  2030. running configure, to aid debugging if configure makes a mistake.
  2031. It was created by vcmi $as_me 0.8, which was
  2032. generated by GNU Autoconf 2.65. Invocation command line was
  2033. $ $0 $@
  2034. _ACEOF
  2035. exec 5>>config.log
  2036. {
  2037. cat <<_ASUNAME
  2038. ## --------- ##
  2039. ## Platform. ##
  2040. ## --------- ##
  2041. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2042. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2043. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2044. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2045. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2046. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2047. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2048. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2049. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2050. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2051. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2052. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2053. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2054. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2055. _ASUNAME
  2056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2057. for as_dir in $PATH
  2058. do
  2059. IFS=$as_save_IFS
  2060. test -z "$as_dir" && as_dir=.
  2061. $as_echo "PATH: $as_dir"
  2062. done
  2063. IFS=$as_save_IFS
  2064. } >&5
  2065. cat >&5 <<_ACEOF
  2066. ## ----------- ##
  2067. ## Core tests. ##
  2068. ## ----------- ##
  2069. _ACEOF
  2070. # Keep a trace of the command line.
  2071. # Strip out --no-create and --no-recursion so they do not pile up.
  2072. # Strip out --silent because we don't want to record it for future runs.
  2073. # Also quote any args containing shell meta-characters.
  2074. # Make two passes to allow for proper duplicate-argument suppression.
  2075. ac_configure_args=
  2076. ac_configure_args0=
  2077. ac_configure_args1=
  2078. ac_must_keep_next=false
  2079. for ac_pass in 1 2
  2080. do
  2081. for ac_arg
  2082. do
  2083. case $ac_arg in
  2084. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2085. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2086. | -silent | --silent | --silen | --sile | --sil)
  2087. continue ;;
  2088. *\'*)
  2089. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2090. esac
  2091. case $ac_pass in
  2092. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2093. 2)
  2094. as_fn_append ac_configure_args1 " '$ac_arg'"
  2095. if test $ac_must_keep_next = true; then
  2096. ac_must_keep_next=false # Got value, back to normal.
  2097. else
  2098. case $ac_arg in
  2099. *=* | --config-cache | -C | -disable-* | --disable-* \
  2100. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2101. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2102. | -with-* | --with-* | -without-* | --without-* | --x)
  2103. case "$ac_configure_args0 " in
  2104. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2105. esac
  2106. ;;
  2107. -* ) ac_must_keep_next=true ;;
  2108. esac
  2109. fi
  2110. as_fn_append ac_configure_args " '$ac_arg'"
  2111. ;;
  2112. esac
  2113. done
  2114. done
  2115. { ac_configure_args0=; unset ac_configure_args0;}
  2116. { ac_configure_args1=; unset ac_configure_args1;}
  2117. # When interrupted or exit'd, cleanup temporary files, and complete
  2118. # config.log. We remove comments because anyway the quotes in there
  2119. # would cause problems or look ugly.
  2120. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2121. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2122. trap 'exit_status=$?
  2123. # Save into config.log some information that might help in debugging.
  2124. {
  2125. echo
  2126. cat <<\_ASBOX
  2127. ## ---------------- ##
  2128. ## Cache variables. ##
  2129. ## ---------------- ##
  2130. _ASBOX
  2131. echo
  2132. # The following way of writing the cache mishandles newlines in values,
  2133. (
  2134. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2135. eval ac_val=\$$ac_var
  2136. case $ac_val in #(
  2137. *${as_nl}*)
  2138. case $ac_var in #(
  2139. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2140. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2141. esac
  2142. case $ac_var in #(
  2143. _ | IFS | as_nl) ;; #(
  2144. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2145. *) { eval $ac_var=; unset $ac_var;} ;;
  2146. esac ;;
  2147. esac
  2148. done
  2149. (set) 2>&1 |
  2150. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2151. *${as_nl}ac_space=\ *)
  2152. sed -n \
  2153. "s/'\''/'\''\\\\'\'''\''/g;
  2154. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2155. ;; #(
  2156. *)
  2157. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2158. ;;
  2159. esac |
  2160. sort
  2161. )
  2162. echo
  2163. cat <<\_ASBOX
  2164. ## ----------------- ##
  2165. ## Output variables. ##
  2166. ## ----------------- ##
  2167. _ASBOX
  2168. echo
  2169. for ac_var in $ac_subst_vars
  2170. do
  2171. eval ac_val=\$$ac_var
  2172. case $ac_val in
  2173. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2174. esac
  2175. $as_echo "$ac_var='\''$ac_val'\''"
  2176. done | sort
  2177. echo
  2178. if test -n "$ac_subst_files"; then
  2179. cat <<\_ASBOX
  2180. ## ------------------- ##
  2181. ## File substitutions. ##
  2182. ## ------------------- ##
  2183. _ASBOX
  2184. echo
  2185. for ac_var in $ac_subst_files
  2186. do
  2187. eval ac_val=\$$ac_var
  2188. case $ac_val in
  2189. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2190. esac
  2191. $as_echo "$ac_var='\''$ac_val'\''"
  2192. done | sort
  2193. echo
  2194. fi
  2195. if test -s confdefs.h; then
  2196. cat <<\_ASBOX
  2197. ## ----------- ##
  2198. ## confdefs.h. ##
  2199. ## ----------- ##
  2200. _ASBOX
  2201. echo
  2202. cat confdefs.h
  2203. echo
  2204. fi
  2205. test "$ac_signal" != 0 &&
  2206. $as_echo "$as_me: caught signal $ac_signal"
  2207. $as_echo "$as_me: exit $exit_status"
  2208. } >&5
  2209. rm -f core *.core core.conftest.* &&
  2210. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2211. exit $exit_status
  2212. ' 0
  2213. for ac_signal in 1 2 13 15; do
  2214. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2215. done
  2216. ac_signal=0
  2217. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2218. rm -f -r conftest* confdefs.h
  2219. $as_echo "/* confdefs.h */" > confdefs.h
  2220. # Predefined preprocessor variables.
  2221. cat >>confdefs.h <<_ACEOF
  2222. #define PACKAGE_NAME "$PACKAGE_NAME"
  2223. _ACEOF
  2224. cat >>confdefs.h <<_ACEOF
  2225. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2226. _ACEOF
  2227. cat >>confdefs.h <<_ACEOF
  2228. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2229. _ACEOF
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define PACKAGE_STRING "$PACKAGE_STRING"
  2232. _ACEOF
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2235. _ACEOF
  2236. cat >>confdefs.h <<_ACEOF
  2237. #define PACKAGE_URL "$PACKAGE_URL"
  2238. _ACEOF
  2239. # Let the site file select an alternate cache file if it wants to.
  2240. # Prefer an explicitly selected file to automatically selected ones.
  2241. ac_site_file1=NONE
  2242. ac_site_file2=NONE
  2243. if test -n "$CONFIG_SITE"; then
  2244. ac_site_file1=$CONFIG_SITE
  2245. elif test "x$prefix" != xNONE; then
  2246. ac_site_file1=$prefix/share/config.site
  2247. ac_site_file2=$prefix/etc/config.site
  2248. else
  2249. ac_site_file1=$ac_default_prefix/share/config.site
  2250. ac_site_file2=$ac_default_prefix/etc/config.site
  2251. fi
  2252. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2253. do
  2254. test "x$ac_site_file" = xNONE && continue
  2255. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2257. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2258. sed 's/^/| /' "$ac_site_file" >&5
  2259. . "$ac_site_file"
  2260. fi
  2261. done
  2262. if test -r "$cache_file"; then
  2263. # Some versions of bash will fail to source /dev/null (special files
  2264. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2265. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2267. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2268. case $cache_file in
  2269. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2270. *) . "./$cache_file";;
  2271. esac
  2272. fi
  2273. else
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2275. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2276. >$cache_file
  2277. fi
  2278. # Check that the precious variables saved in the cache have kept the same
  2279. # value.
  2280. ac_cache_corrupted=false
  2281. for ac_var in $ac_precious_vars; do
  2282. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2283. eval ac_new_set=\$ac_env_${ac_var}_set
  2284. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2285. eval ac_new_val=\$ac_env_${ac_var}_value
  2286. case $ac_old_set,$ac_new_set in
  2287. set,)
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2289. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2290. ac_cache_corrupted=: ;;
  2291. ,set)
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2293. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2294. ac_cache_corrupted=: ;;
  2295. ,);;
  2296. *)
  2297. if test "x$ac_old_val" != "x$ac_new_val"; then
  2298. # differences in whitespace do not lead to failure.
  2299. ac_old_val_w=`echo x $ac_old_val`
  2300. ac_new_val_w=`echo x $ac_new_val`
  2301. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2303. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2304. ac_cache_corrupted=:
  2305. else
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2307. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2308. eval $ac_var=\$ac_old_val
  2309. fi
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2311. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2313. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2314. fi;;
  2315. esac
  2316. # Pass precious variables to config.status.
  2317. if test "$ac_new_set" = set; then
  2318. case $ac_new_val in
  2319. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2320. *) ac_arg=$ac_var=$ac_new_val ;;
  2321. esac
  2322. case " $ac_configure_args " in
  2323. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2324. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2325. esac
  2326. fi
  2327. done
  2328. if $ac_cache_corrupted; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2332. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2333. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2334. fi
  2335. ## -------------------- ##
  2336. ## Main body of script. ##
  2337. ## -------------------- ##
  2338. ac_ext=c
  2339. ac_cpp='$CPP $CPPFLAGS'
  2340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2343. # Follow NAME_VER in global.h
  2344. am__api_version='1.11'
  2345. ac_aux_dir=
  2346. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2347. for ac_t in install-sh install.sh shtool; do
  2348. if test -f "$ac_dir/$ac_t"; then
  2349. ac_aux_dir=$ac_dir
  2350. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2351. break 2
  2352. fi
  2353. done
  2354. done
  2355. if test -z "$ac_aux_dir"; then
  2356. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2357. fi
  2358. # These three variables are undocumented and unsupported,
  2359. # and are intended to be withdrawn in a future Autoconf release.
  2360. # They can cause serious problems if a builder's source tree is in a directory
  2361. # whose full name contains unusual characters.
  2362. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2363. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2364. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2365. # Find a good install program. We prefer a C program (faster),
  2366. # so one script is as good as another. But avoid the broken or
  2367. # incompatible versions:
  2368. # SysV /etc/install, /usr/sbin/install
  2369. # SunOS /usr/etc/install
  2370. # IRIX /sbin/install
  2371. # AIX /bin/install
  2372. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2373. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2374. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2375. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2376. # OS/2's system install, which has a completely different semantic
  2377. # ./install, which can be erroneously created by make from ./install.sh.
  2378. # Reject install programs that cannot install multiple files.
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2380. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2381. if test -z "$INSTALL"; then
  2382. if test "${ac_cv_path_install+set}" = set; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2386. for as_dir in $PATH
  2387. do
  2388. IFS=$as_save_IFS
  2389. test -z "$as_dir" && as_dir=.
  2390. # Account for people who put trailing slashes in PATH elements.
  2391. case $as_dir/ in #((
  2392. ./ | .// | /[cC]/* | \
  2393. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2394. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2395. /usr/ucb/* ) ;;
  2396. *)
  2397. # OSF1 and SCO ODT 3.0 have their own names for install.
  2398. # Don't use installbsd from OSF since it installs stuff as root
  2399. # by default.
  2400. for ac_prog in ginstall scoinst install; do
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2403. if test $ac_prog = install &&
  2404. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2405. # AIX install. It has an incompatible calling convention.
  2406. :
  2407. elif test $ac_prog = install &&
  2408. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2409. # program-specific install script used by HP pwplus--don't use.
  2410. :
  2411. else
  2412. rm -rf conftest.one conftest.two conftest.dir
  2413. echo one > conftest.one
  2414. echo two > conftest.two
  2415. mkdir conftest.dir
  2416. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2417. test -s conftest.one && test -s conftest.two &&
  2418. test -s conftest.dir/conftest.one &&
  2419. test -s conftest.dir/conftest.two
  2420. then
  2421. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2422. break 3
  2423. fi
  2424. fi
  2425. fi
  2426. done
  2427. done
  2428. ;;
  2429. esac
  2430. done
  2431. IFS=$as_save_IFS
  2432. rm -rf conftest.one conftest.two conftest.dir
  2433. fi
  2434. if test "${ac_cv_path_install+set}" = set; then
  2435. INSTALL=$ac_cv_path_install
  2436. else
  2437. # As a last resort, use the slow shell script. Don't cache a
  2438. # value for INSTALL within a source directory, because that will
  2439. # break other packages using the cache if that directory is
  2440. # removed, or if the value is a relative name.
  2441. INSTALL=$ac_install_sh
  2442. fi
  2443. fi
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2445. $as_echo "$INSTALL" >&6; }
  2446. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2447. # It thinks the first close brace ends the variable substitution.
  2448. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2449. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2450. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2452. $as_echo_n "checking whether build environment is sane... " >&6; }
  2453. # Just in case
  2454. sleep 1
  2455. echo timestamp > conftest.file
  2456. # Reject unsafe characters in $srcdir or the absolute working directory
  2457. # name. Accept space and tab only in the latter.
  2458. am_lf='
  2459. '
  2460. case `pwd` in
  2461. *[\\\"\#\$\&\'\`$am_lf]*)
  2462. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2463. esac
  2464. case $srcdir in
  2465. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2466. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2467. esac
  2468. # Do `set' in a subshell so we don't clobber the current shell's
  2469. # arguments. Must try -L first in case configure is actually a
  2470. # symlink; some systems play weird games with the mod time of symlinks
  2471. # (eg FreeBSD returns the mod time of the symlink's containing
  2472. # directory).
  2473. if (
  2474. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2475. if test "$*" = "X"; then
  2476. # -L didn't work.
  2477. set X `ls -t "$srcdir/configure" conftest.file`
  2478. fi
  2479. rm -f conftest.file
  2480. if test "$*" != "X $srcdir/configure conftest.file" \
  2481. && test "$*" != "X conftest.file $srcdir/configure"; then
  2482. # If neither matched, then we have a broken ls. This can happen
  2483. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2484. # broken ls alias from the environment. This has actually
  2485. # happened. Such a system could not be considered "sane".
  2486. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2487. alias in your environment" "$LINENO" 5
  2488. fi
  2489. test "$2" = conftest.file
  2490. )
  2491. then
  2492. # Ok.
  2493. :
  2494. else
  2495. as_fn_error "newly created file is older than distributed files!
  2496. Check your system clock" "$LINENO" 5
  2497. fi
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2499. $as_echo "yes" >&6; }
  2500. test "$program_prefix" != NONE &&
  2501. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2502. # Use a double $ so make ignores it.
  2503. test "$program_suffix" != NONE &&
  2504. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2505. # Double any \ or $.
  2506. # By default was `s,x,x', remove it if useless.
  2507. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2508. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2509. # expand $ac_aux_dir to an absolute path
  2510. am_aux_dir=`cd $ac_aux_dir && pwd`
  2511. if test x"${MISSING+set}" != xset; then
  2512. case $am_aux_dir in
  2513. *\ * | *\ *)
  2514. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2515. *)
  2516. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2517. esac
  2518. fi
  2519. # Use eval to expand $SHELL
  2520. if eval "$MISSING --run true"; then
  2521. am_missing_run="$MISSING --run "
  2522. else
  2523. am_missing_run=
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2525. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2526. fi
  2527. if test x"${install_sh}" != xset; then
  2528. case $am_aux_dir in
  2529. *\ * | *\ *)
  2530. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2531. *)
  2532. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2533. esac
  2534. fi
  2535. # Installed binaries are usually stripped using `strip' when the user
  2536. # run `make install-strip'. However `strip' might not be the right
  2537. # tool to use in cross-compilation environments, therefore Automake
  2538. # will honor the `STRIP' environment variable to overrule this program.
  2539. if test "$cross_compiling" != no; then
  2540. if test -n "$ac_tool_prefix"; then
  2541. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2542. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2544. $as_echo_n "checking for $ac_word... " >&6; }
  2545. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2546. $as_echo_n "(cached) " >&6
  2547. else
  2548. if test -n "$STRIP"; then
  2549. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2550. else
  2551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2552. for as_dir in $PATH
  2553. do
  2554. IFS=$as_save_IFS
  2555. test -z "$as_dir" && as_dir=.
  2556. for ac_exec_ext in '' $ac_executable_extensions; do
  2557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2558. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2560. break 2
  2561. fi
  2562. done
  2563. done
  2564. IFS=$as_save_IFS
  2565. fi
  2566. fi
  2567. STRIP=$ac_cv_prog_STRIP
  2568. if test -n "$STRIP"; then
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2570. $as_echo "$STRIP" >&6; }
  2571. else
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2573. $as_echo "no" >&6; }
  2574. fi
  2575. fi
  2576. if test -z "$ac_cv_prog_STRIP"; then
  2577. ac_ct_STRIP=$STRIP
  2578. # Extract the first word of "strip", so it can be a program name with args.
  2579. set dummy strip; ac_word=$2
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2581. $as_echo_n "checking for $ac_word... " >&6; }
  2582. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. if test -n "$ac_ct_STRIP"; then
  2586. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2587. else
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. test -z "$as_dir" && as_dir=.
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2595. ac_cv_prog_ac_ct_STRIP="strip"
  2596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2597. break 2
  2598. fi
  2599. done
  2600. done
  2601. IFS=$as_save_IFS
  2602. fi
  2603. fi
  2604. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2605. if test -n "$ac_ct_STRIP"; then
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2607. $as_echo "$ac_ct_STRIP" >&6; }
  2608. else
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. fi
  2612. if test "x$ac_ct_STRIP" = x; then
  2613. STRIP=":"
  2614. else
  2615. case $cross_compiling:$ac_tool_warned in
  2616. yes:)
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2619. ac_tool_warned=yes ;;
  2620. esac
  2621. STRIP=$ac_ct_STRIP
  2622. fi
  2623. else
  2624. STRIP="$ac_cv_prog_STRIP"
  2625. fi
  2626. fi
  2627. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2629. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2630. if test -z "$MKDIR_P"; then
  2631. if test "${ac_cv_path_mkdir+set}" = set; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_prog in mkdir gmkdir; do
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2642. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2643. 'mkdir (GNU coreutils) '* | \
  2644. 'mkdir (coreutils) '* | \
  2645. 'mkdir (fileutils) '4.1*)
  2646. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2647. break 3;;
  2648. esac
  2649. done
  2650. done
  2651. done
  2652. IFS=$as_save_IFS
  2653. fi
  2654. test -d ./--version && rmdir ./--version
  2655. if test "${ac_cv_path_mkdir+set}" = set; then
  2656. MKDIR_P="$ac_cv_path_mkdir -p"
  2657. else
  2658. # As a last resort, use the slow shell script. Don't cache a
  2659. # value for MKDIR_P within a source directory, because that will
  2660. # break other packages using the cache if that directory is
  2661. # removed, or if the value is a relative name.
  2662. MKDIR_P="$ac_install_sh -d"
  2663. fi
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2666. $as_echo "$MKDIR_P" >&6; }
  2667. mkdir_p="$MKDIR_P"
  2668. case $mkdir_p in
  2669. [\\/$]* | ?:[\\/]*) ;;
  2670. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2671. esac
  2672. for ac_prog in gawk mawk nawk awk
  2673. do
  2674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2675. set dummy $ac_prog; ac_word=$2
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2677. $as_echo_n "checking for $ac_word... " >&6; }
  2678. if test "${ac_cv_prog_AWK+set}" = set; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if test -n "$AWK"; then
  2682. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2683. else
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_exec_ext in '' $ac_executable_extensions; do
  2690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2691. ac_cv_prog_AWK="$ac_prog"
  2692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2693. break 2
  2694. fi
  2695. done
  2696. done
  2697. IFS=$as_save_IFS
  2698. fi
  2699. fi
  2700. AWK=$ac_cv_prog_AWK
  2701. if test -n "$AWK"; then
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2703. $as_echo "$AWK" >&6; }
  2704. else
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. fi
  2708. test -n "$AWK" && break
  2709. done
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2711. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2712. set x ${MAKE-make}
  2713. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2714. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. cat >conftest.make <<\_ACEOF
  2718. SHELL = /bin/sh
  2719. all:
  2720. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2721. _ACEOF
  2722. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2723. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2724. *@@@%%%=?*=@@@%%%*)
  2725. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2726. *)
  2727. eval ac_cv_prog_make_${ac_make}_set=no;;
  2728. esac
  2729. rm -f conftest.make
  2730. fi
  2731. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2733. $as_echo "yes" >&6; }
  2734. SET_MAKE=
  2735. else
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2737. $as_echo "no" >&6; }
  2738. SET_MAKE="MAKE=${MAKE-make}"
  2739. fi
  2740. rm -rf .tst 2>/dev/null
  2741. mkdir .tst 2>/dev/null
  2742. if test -d .tst; then
  2743. am__leading_dot=.
  2744. else
  2745. am__leading_dot=_
  2746. fi
  2747. rmdir .tst 2>/dev/null
  2748. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2749. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2750. # is not polluted with repeated "-I."
  2751. am__isrc=' -I$(srcdir)'
  2752. # test to see if srcdir already configured
  2753. if test -f $srcdir/config.status; then
  2754. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2755. fi
  2756. fi
  2757. # test whether we have cygpath
  2758. if test -z "$CYGPATH_W"; then
  2759. if (cygpath --version) >/dev/null 2>/dev/null; then
  2760. CYGPATH_W='cygpath -w'
  2761. else
  2762. CYGPATH_W=echo
  2763. fi
  2764. fi
  2765. # Define the identity of the package.
  2766. PACKAGE='vcmi'
  2767. VERSION='0.8'
  2768. cat >>confdefs.h <<_ACEOF
  2769. #define PACKAGE "$PACKAGE"
  2770. _ACEOF
  2771. cat >>confdefs.h <<_ACEOF
  2772. #define VERSION "$VERSION"
  2773. _ACEOF
  2774. # Some tools Automake needs.
  2775. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2776. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2777. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2778. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2779. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2780. # We need awk for the "check" target. The system "awk" is bad on
  2781. # some platforms.
  2782. # Always define AMTAR for backward compatibility.
  2783. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2784. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2785. # Checks for build toolchain
  2786. ac_ext=cpp
  2787. ac_cpp='$CXXCPP $CPPFLAGS'
  2788. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2789. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2790. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2791. ac_ext=cpp
  2792. ac_cpp='$CXXCPP $CPPFLAGS'
  2793. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2794. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2795. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2796. if test -z "$CXX"; then
  2797. if test -n "$CCC"; then
  2798. CXX=$CCC
  2799. else
  2800. if test -n "$ac_tool_prefix"; then
  2801. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2802. do
  2803. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2804. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2806. $as_echo_n "checking for $ac_word... " >&6; }
  2807. if test "${ac_cv_prog_CXX+set}" = set; then :
  2808. $as_echo_n "(cached) " >&6
  2809. else
  2810. if test -n "$CXX"; then
  2811. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2812. else
  2813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2814. for as_dir in $PATH
  2815. do
  2816. IFS=$as_save_IFS
  2817. test -z "$as_dir" && as_dir=.
  2818. for ac_exec_ext in '' $ac_executable_extensions; do
  2819. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2820. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2822. break 2
  2823. fi
  2824. done
  2825. done
  2826. IFS=$as_save_IFS
  2827. fi
  2828. fi
  2829. CXX=$ac_cv_prog_CXX
  2830. if test -n "$CXX"; then
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2832. $as_echo "$CXX" >&6; }
  2833. else
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2835. $as_echo "no" >&6; }
  2836. fi
  2837. test -n "$CXX" && break
  2838. done
  2839. fi
  2840. if test -z "$CXX"; then
  2841. ac_ct_CXX=$CXX
  2842. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2843. do
  2844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2845. set dummy $ac_prog; ac_word=$2
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2847. $as_echo_n "checking for $ac_word... " >&6; }
  2848. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2849. $as_echo_n "(cached) " >&6
  2850. else
  2851. if test -n "$ac_ct_CXX"; then
  2852. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2853. else
  2854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2855. for as_dir in $PATH
  2856. do
  2857. IFS=$as_save_IFS
  2858. test -z "$as_dir" && as_dir=.
  2859. for ac_exec_ext in '' $ac_executable_extensions; do
  2860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2861. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2863. break 2
  2864. fi
  2865. done
  2866. done
  2867. IFS=$as_save_IFS
  2868. fi
  2869. fi
  2870. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2871. if test -n "$ac_ct_CXX"; then
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2873. $as_echo "$ac_ct_CXX" >&6; }
  2874. else
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2876. $as_echo "no" >&6; }
  2877. fi
  2878. test -n "$ac_ct_CXX" && break
  2879. done
  2880. if test "x$ac_ct_CXX" = x; then
  2881. CXX="g++"
  2882. else
  2883. case $cross_compiling:$ac_tool_warned in
  2884. yes:)
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2887. ac_tool_warned=yes ;;
  2888. esac
  2889. CXX=$ac_ct_CXX
  2890. fi
  2891. fi
  2892. fi
  2893. fi
  2894. # Provide some information about the compiler.
  2895. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2896. set X $ac_compile
  2897. ac_compiler=$2
  2898. for ac_option in --version -v -V -qversion; do
  2899. { { ac_try="$ac_compiler $ac_option >&5"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2905. $as_echo "$ac_try_echo"; } >&5
  2906. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2907. ac_status=$?
  2908. if test -s conftest.err; then
  2909. sed '10a\
  2910. ... rest of stderr output deleted ...
  2911. 10q' conftest.err >conftest.er1
  2912. cat conftest.er1 >&5
  2913. fi
  2914. rm -f conftest.er1 conftest.err
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }
  2917. done
  2918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2919. /* end confdefs.h. */
  2920. int
  2921. main ()
  2922. {
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. ac_clean_files_save=$ac_clean_files
  2928. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2929. # Try to create an executable without -o first, disregard a.out.
  2930. # It will help us diagnose broken compilers, and finding out an intuition
  2931. # of exeext.
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2933. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2934. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2935. # The possible output files:
  2936. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2937. ac_rmfiles=
  2938. for ac_file in $ac_files
  2939. do
  2940. case $ac_file in
  2941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2942. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2943. esac
  2944. done
  2945. rm -f $ac_rmfiles
  2946. if { { ac_try="$ac_link_default"
  2947. case "(($ac_try" in
  2948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2949. *) ac_try_echo=$ac_try;;
  2950. esac
  2951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2952. $as_echo "$ac_try_echo"; } >&5
  2953. (eval "$ac_link_default") 2>&5
  2954. ac_status=$?
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2956. test $ac_status = 0; }; then :
  2957. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2958. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2959. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2960. # so that the user can short-circuit this test for compilers unknown to
  2961. # Autoconf.
  2962. for ac_file in $ac_files ''
  2963. do
  2964. test -f "$ac_file" || continue
  2965. case $ac_file in
  2966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2967. ;;
  2968. [ab].out )
  2969. # We found the default executable, but exeext='' is most
  2970. # certainly right.
  2971. break;;
  2972. *.* )
  2973. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2974. then :; else
  2975. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2976. fi
  2977. # We set ac_cv_exeext here because the later test for it is not
  2978. # safe: cross compilers may not add the suffix if given an `-o'
  2979. # argument, so we may need to know it at that point already.
  2980. # Even if this section looks crufty: it has the advantage of
  2981. # actually working.
  2982. break;;
  2983. * )
  2984. break;;
  2985. esac
  2986. done
  2987. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2988. else
  2989. ac_file=''
  2990. fi
  2991. if test -z "$ac_file"; then :
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. $as_echo "$as_me: failed program was:" >&5
  2995. sed 's/^/| /' conftest.$ac_ext >&5
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. { as_fn_set_status 77
  2999. as_fn_error "C++ compiler cannot create executables
  3000. See \`config.log' for more details." "$LINENO" 5; }; }
  3001. else
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3003. $as_echo "yes" >&6; }
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3006. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3008. $as_echo "$ac_file" >&6; }
  3009. ac_exeext=$ac_cv_exeext
  3010. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3011. ac_clean_files=$ac_clean_files_save
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3013. $as_echo_n "checking for suffix of executables... " >&6; }
  3014. if { { ac_try="$ac_link"
  3015. case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo"; } >&5
  3021. (eval "$ac_link") 2>&5
  3022. ac_status=$?
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3024. test $ac_status = 0; }; then :
  3025. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3026. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3027. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3028. # `rm'.
  3029. for ac_file in conftest.exe conftest conftest.*; do
  3030. test -f "$ac_file" || continue
  3031. case $ac_file in
  3032. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3033. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3034. break;;
  3035. * ) break;;
  3036. esac
  3037. done
  3038. else
  3039. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3040. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3041. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3042. See \`config.log' for more details." "$LINENO" 5; }
  3043. fi
  3044. rm -f conftest conftest$ac_cv_exeext
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3046. $as_echo "$ac_cv_exeext" >&6; }
  3047. rm -f conftest.$ac_ext
  3048. EXEEXT=$ac_cv_exeext
  3049. ac_exeext=$EXEEXT
  3050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3051. /* end confdefs.h. */
  3052. #include <stdio.h>
  3053. int
  3054. main ()
  3055. {
  3056. FILE *f = fopen ("conftest.out", "w");
  3057. return ferror (f) || fclose (f) != 0;
  3058. ;
  3059. return 0;
  3060. }
  3061. _ACEOF
  3062. ac_clean_files="$ac_clean_files conftest.out"
  3063. # Check that the compiler produces executables we can run. If not, either
  3064. # the compiler is broken, or we cross compile.
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3066. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3067. if test "$cross_compiling" != yes; then
  3068. { { ac_try="$ac_link"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3074. $as_echo "$ac_try_echo"; } >&5
  3075. (eval "$ac_link") 2>&5
  3076. ac_status=$?
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3078. test $ac_status = 0; }
  3079. if { ac_try='./conftest$ac_cv_exeext'
  3080. { { case "(($ac_try" in
  3081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3082. *) ac_try_echo=$ac_try;;
  3083. esac
  3084. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3085. $as_echo "$ac_try_echo"; } >&5
  3086. (eval "$ac_try") 2>&5
  3087. ac_status=$?
  3088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3089. test $ac_status = 0; }; }; then
  3090. cross_compiling=no
  3091. else
  3092. if test "$cross_compiling" = maybe; then
  3093. cross_compiling=yes
  3094. else
  3095. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3097. as_fn_error "cannot run C++ compiled programs.
  3098. If you meant to cross compile, use \`--host'.
  3099. See \`config.log' for more details." "$LINENO" 5; }
  3100. fi
  3101. fi
  3102. fi
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3104. $as_echo "$cross_compiling" >&6; }
  3105. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3106. ac_clean_files=$ac_clean_files_save
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3108. $as_echo_n "checking for suffix of object files... " >&6; }
  3109. if test "${ac_cv_objext+set}" = set; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3113. /* end confdefs.h. */
  3114. int
  3115. main ()
  3116. {
  3117. ;
  3118. return 0;
  3119. }
  3120. _ACEOF
  3121. rm -f conftest.o conftest.obj
  3122. if { { ac_try="$ac_compile"
  3123. case "(($ac_try" in
  3124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3125. *) ac_try_echo=$ac_try;;
  3126. esac
  3127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3128. $as_echo "$ac_try_echo"; } >&5
  3129. (eval "$ac_compile") 2>&5
  3130. ac_status=$?
  3131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3132. test $ac_status = 0; }; then :
  3133. for ac_file in conftest.o conftest.obj conftest.*; do
  3134. test -f "$ac_file" || continue;
  3135. case $ac_file in
  3136. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3137. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3138. break;;
  3139. esac
  3140. done
  3141. else
  3142. $as_echo "$as_me: failed program was:" >&5
  3143. sed 's/^/| /' conftest.$ac_ext >&5
  3144. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3146. as_fn_error "cannot compute suffix of object files: cannot compile
  3147. See \`config.log' for more details." "$LINENO" 5; }
  3148. fi
  3149. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3150. fi
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3152. $as_echo "$ac_cv_objext" >&6; }
  3153. OBJEXT=$ac_cv_objext
  3154. ac_objext=$OBJEXT
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3156. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3157. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3158. $as_echo_n "(cached) " >&6
  3159. else
  3160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3161. /* end confdefs.h. */
  3162. int
  3163. main ()
  3164. {
  3165. #ifndef __GNUC__
  3166. choke me
  3167. #endif
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. if ac_fn_cxx_try_compile "$LINENO"; then :
  3173. ac_compiler_gnu=yes
  3174. else
  3175. ac_compiler_gnu=no
  3176. fi
  3177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3178. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3179. fi
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3181. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3182. if test $ac_compiler_gnu = yes; then
  3183. GXX=yes
  3184. else
  3185. GXX=
  3186. fi
  3187. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3188. ac_save_CXXFLAGS=$CXXFLAGS
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3190. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3191. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3192. $as_echo_n "(cached) " >&6
  3193. else
  3194. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3195. ac_cxx_werror_flag=yes
  3196. ac_cv_prog_cxx_g=no
  3197. CXXFLAGS="-g"
  3198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3199. /* end confdefs.h. */
  3200. int
  3201. main ()
  3202. {
  3203. ;
  3204. return 0;
  3205. }
  3206. _ACEOF
  3207. if ac_fn_cxx_try_compile "$LINENO"; then :
  3208. ac_cv_prog_cxx_g=yes
  3209. else
  3210. CXXFLAGS=""
  3211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3212. /* end confdefs.h. */
  3213. int
  3214. main ()
  3215. {
  3216. ;
  3217. return 0;
  3218. }
  3219. _ACEOF
  3220. if ac_fn_cxx_try_compile "$LINENO"; then :
  3221. else
  3222. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3223. CXXFLAGS="-g"
  3224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3225. /* end confdefs.h. */
  3226. int
  3227. main ()
  3228. {
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. if ac_fn_cxx_try_compile "$LINENO"; then :
  3234. ac_cv_prog_cxx_g=yes
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3237. fi
  3238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239. fi
  3240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3241. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3244. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3245. if test "$ac_test_CXXFLAGS" = set; then
  3246. CXXFLAGS=$ac_save_CXXFLAGS
  3247. elif test $ac_cv_prog_cxx_g = yes; then
  3248. if test "$GXX" = yes; then
  3249. CXXFLAGS="-g -O2"
  3250. else
  3251. CXXFLAGS="-g"
  3252. fi
  3253. else
  3254. if test "$GXX" = yes; then
  3255. CXXFLAGS="-O2"
  3256. else
  3257. CXXFLAGS=
  3258. fi
  3259. fi
  3260. ac_ext=cpp
  3261. ac_cpp='$CXXCPP $CPPFLAGS'
  3262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3265. DEPDIR="${am__leading_dot}deps"
  3266. ac_config_commands="$ac_config_commands depfiles"
  3267. am_make=${MAKE-make}
  3268. cat > confinc << 'END'
  3269. am__doit:
  3270. @echo this is the am__doit target
  3271. .PHONY: am__doit
  3272. END
  3273. # If we don't find an include directive, just comment out the code.
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3275. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3276. am__include="#"
  3277. am__quote=
  3278. _am_result=none
  3279. # First try GNU make style include.
  3280. echo "include confinc" > confmf
  3281. # Ignore all kinds of additional output from `make'.
  3282. case `$am_make -s -f confmf 2> /dev/null` in #(
  3283. *the\ am__doit\ target*)
  3284. am__include=include
  3285. am__quote=
  3286. _am_result=GNU
  3287. ;;
  3288. esac
  3289. # Now try BSD make style include.
  3290. if test "$am__include" = "#"; then
  3291. echo '.include "confinc"' > confmf
  3292. case `$am_make -s -f confmf 2> /dev/null` in #(
  3293. *the\ am__doit\ target*)
  3294. am__include=.include
  3295. am__quote="\""
  3296. _am_result=BSD
  3297. ;;
  3298. esac
  3299. fi
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3301. $as_echo "$_am_result" >&6; }
  3302. rm -f confinc confmf
  3303. # Check whether --enable-dependency-tracking was given.
  3304. if test "${enable_dependency_tracking+set}" = set; then :
  3305. enableval=$enable_dependency_tracking;
  3306. fi
  3307. if test "x$enable_dependency_tracking" != xno; then
  3308. am_depcomp="$ac_aux_dir/depcomp"
  3309. AMDEPBACKSLASH='\'
  3310. fi
  3311. if test "x$enable_dependency_tracking" != xno; then
  3312. AMDEP_TRUE=
  3313. AMDEP_FALSE='#'
  3314. else
  3315. AMDEP_TRUE='#'
  3316. AMDEP_FALSE=
  3317. fi
  3318. depcc="$CXX" am_compiler_list=
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3320. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3321. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3322. $as_echo_n "(cached) " >&6
  3323. else
  3324. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3325. # We make a subdir and do the tests there. Otherwise we can end up
  3326. # making bogus files that we don't know about and never remove. For
  3327. # instance it was reported that on HP-UX the gcc test will end up
  3328. # making a dummy file named `D' -- because `-MD' means `put the output
  3329. # in D'.
  3330. mkdir conftest.dir
  3331. # Copy depcomp to subdir because otherwise we won't find it if we're
  3332. # using a relative directory.
  3333. cp "$am_depcomp" conftest.dir
  3334. cd conftest.dir
  3335. # We will build objects and dependencies in a subdirectory because
  3336. # it helps to detect inapplicable dependency modes. For instance
  3337. # both Tru64's cc and ICC support -MD to output dependencies as a
  3338. # side effect of compilation, but ICC will put the dependencies in
  3339. # the current directory while Tru64 will put them in the object
  3340. # directory.
  3341. mkdir sub
  3342. am_cv_CXX_dependencies_compiler_type=none
  3343. if test "$am_compiler_list" = ""; then
  3344. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3345. fi
  3346. am__universal=false
  3347. case " $depcc " in #(
  3348. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3349. esac
  3350. for depmode in $am_compiler_list; do
  3351. # Setup a source with many dependencies, because some compilers
  3352. # like to wrap large dependency lists on column 80 (with \), and
  3353. # we should not choose a depcomp mode which is confused by this.
  3354. #
  3355. # We need to recreate these files for each test, as the compiler may
  3356. # overwrite some of them when testing with obscure command lines.
  3357. # This happens at least with the AIX C compiler.
  3358. : > sub/conftest.c
  3359. for i in 1 2 3 4 5 6; do
  3360. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3361. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3362. # Solaris 8's {/usr,}/bin/sh.
  3363. touch sub/conftst$i.h
  3364. done
  3365. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3366. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3367. # mode. It turns out that the SunPro C++ compiler does not properly
  3368. # handle `-M -o', and we need to detect this. Also, some Intel
  3369. # versions had trouble with output in subdirs
  3370. am__obj=sub/conftest.${OBJEXT-o}
  3371. am__minus_obj="-o $am__obj"
  3372. case $depmode in
  3373. gcc)
  3374. # This depmode causes a compiler race in universal mode.
  3375. test "$am__universal" = false || continue
  3376. ;;
  3377. nosideeffect)
  3378. # after this tag, mechanisms are not by side-effect, so they'll
  3379. # only be used when explicitly requested
  3380. if test "x$enable_dependency_tracking" = xyes; then
  3381. continue
  3382. else
  3383. break
  3384. fi
  3385. ;;
  3386. msvisualcpp | msvcmsys)
  3387. # This compiler won't grok `-c -o', but also, the minuso test has
  3388. # not run yet. These depmodes are late enough in the game, and
  3389. # so weak that their functioning should not be impacted.
  3390. am__obj=conftest.${OBJEXT-o}
  3391. am__minus_obj=
  3392. ;;
  3393. none) break ;;
  3394. esac
  3395. if depmode=$depmode \
  3396. source=sub/conftest.c object=$am__obj \
  3397. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3398. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3399. >/dev/null 2>conftest.err &&
  3400. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3401. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3402. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3403. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3404. # icc doesn't choke on unknown options, it will just issue warnings
  3405. # or remarks (even with -Werror). So we grep stderr for any message
  3406. # that says an option was ignored or not supported.
  3407. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3408. # icc: Command line warning: ignoring option '-M'; no argument required
  3409. # The diagnosis changed in icc 8.0:
  3410. # icc: Command line remark: option '-MP' not supported
  3411. if (grep 'ignoring option' conftest.err ||
  3412. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3413. am_cv_CXX_dependencies_compiler_type=$depmode
  3414. break
  3415. fi
  3416. fi
  3417. done
  3418. cd ..
  3419. rm -rf conftest.dir
  3420. else
  3421. am_cv_CXX_dependencies_compiler_type=none
  3422. fi
  3423. fi
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3425. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3426. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3427. if
  3428. test "x$enable_dependency_tracking" != xno \
  3429. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3430. am__fastdepCXX_TRUE=
  3431. am__fastdepCXX_FALSE='#'
  3432. else
  3433. am__fastdepCXX_TRUE='#'
  3434. am__fastdepCXX_FALSE=
  3435. fi
  3436. # Check whether --enable-shared was given.
  3437. if test "${enable_shared+set}" = set; then :
  3438. enableval=$enable_shared; p=${PACKAGE-default}
  3439. case $enableval in
  3440. yes) enable_shared=yes ;;
  3441. no) enable_shared=no ;;
  3442. *)
  3443. enable_shared=no
  3444. # Look at the argument we got. We use all the common list separators.
  3445. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3446. for pkg in $enableval; do
  3447. IFS="$lt_save_ifs"
  3448. if test "X$pkg" = "X$p"; then
  3449. enable_shared=yes
  3450. fi
  3451. done
  3452. IFS="$lt_save_ifs"
  3453. ;;
  3454. esac
  3455. else
  3456. enable_shared=yes
  3457. fi
  3458. # Check whether --enable-static was given.
  3459. if test "${enable_static+set}" = set; then :
  3460. enableval=$enable_static; p=${PACKAGE-default}
  3461. case $enableval in
  3462. yes) enable_static=yes ;;
  3463. no) enable_static=no ;;
  3464. *)
  3465. enable_static=no
  3466. # Look at the argument we got. We use all the common list separators.
  3467. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3468. for pkg in $enableval; do
  3469. IFS="$lt_save_ifs"
  3470. if test "X$pkg" = "X$p"; then
  3471. enable_static=yes
  3472. fi
  3473. done
  3474. IFS="$lt_save_ifs"
  3475. ;;
  3476. esac
  3477. else
  3478. enable_static=no
  3479. fi
  3480. case `pwd` in
  3481. *\ * | *\ *)
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3483. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3484. esac
  3485. macro_version='2.2.6b'
  3486. macro_revision='1.3017'
  3487. ltmain="$ac_aux_dir/ltmain.sh"
  3488. # Make sure we can run config.sub.
  3489. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3490. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3492. $as_echo_n "checking build system type... " >&6; }
  3493. if test "${ac_cv_build+set}" = set; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. ac_build_alias=$build_alias
  3497. test "x$ac_build_alias" = x &&
  3498. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3499. test "x$ac_build_alias" = x &&
  3500. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3501. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3502. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3503. fi
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3505. $as_echo "$ac_cv_build" >&6; }
  3506. case $ac_cv_build in
  3507. *-*-*) ;;
  3508. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3509. esac
  3510. build=$ac_cv_build
  3511. ac_save_IFS=$IFS; IFS='-'
  3512. set x $ac_cv_build
  3513. shift
  3514. build_cpu=$1
  3515. build_vendor=$2
  3516. shift; shift
  3517. # Remember, the first character of IFS is used to create $*,
  3518. # except with old shells:
  3519. build_os=$*
  3520. IFS=$ac_save_IFS
  3521. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3523. $as_echo_n "checking host system type... " >&6; }
  3524. if test "${ac_cv_host+set}" = set; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. if test "x$host_alias" = x; then
  3528. ac_cv_host=$ac_cv_build
  3529. else
  3530. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3531. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3532. fi
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3535. $as_echo "$ac_cv_host" >&6; }
  3536. case $ac_cv_host in
  3537. *-*-*) ;;
  3538. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3539. esac
  3540. host=$ac_cv_host
  3541. ac_save_IFS=$IFS; IFS='-'
  3542. set x $ac_cv_host
  3543. shift
  3544. host_cpu=$1
  3545. host_vendor=$2
  3546. shift; shift
  3547. # Remember, the first character of IFS is used to create $*,
  3548. # except with old shells:
  3549. host_os=$*
  3550. IFS=$ac_save_IFS
  3551. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3552. ac_ext=c
  3553. ac_cpp='$CPP $CPPFLAGS'
  3554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3557. if test -n "$ac_tool_prefix"; then
  3558. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3559. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3561. $as_echo_n "checking for $ac_word... " >&6; }
  3562. if test "${ac_cv_prog_CC+set}" = set; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -n "$CC"; then
  3566. ac_cv_prog_CC="$CC" # Let the user override the test.
  3567. else
  3568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3569. for as_dir in $PATH
  3570. do
  3571. IFS=$as_save_IFS
  3572. test -z "$as_dir" && as_dir=.
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3575. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3577. break 2
  3578. fi
  3579. done
  3580. done
  3581. IFS=$as_save_IFS
  3582. fi
  3583. fi
  3584. CC=$ac_cv_prog_CC
  3585. if test -n "$CC"; then
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3587. $as_echo "$CC" >&6; }
  3588. else
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3590. $as_echo "no" >&6; }
  3591. fi
  3592. fi
  3593. if test -z "$ac_cv_prog_CC"; then
  3594. ac_ct_CC=$CC
  3595. # Extract the first word of "gcc", so it can be a program name with args.
  3596. set dummy gcc; ac_word=$2
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3598. $as_echo_n "checking for $ac_word... " >&6; }
  3599. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if test -n "$ac_ct_CC"; then
  3603. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3604. else
  3605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3606. for as_dir in $PATH
  3607. do
  3608. IFS=$as_save_IFS
  3609. test -z "$as_dir" && as_dir=.
  3610. for ac_exec_ext in '' $ac_executable_extensions; do
  3611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3612. ac_cv_prog_ac_ct_CC="gcc"
  3613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3614. break 2
  3615. fi
  3616. done
  3617. done
  3618. IFS=$as_save_IFS
  3619. fi
  3620. fi
  3621. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3622. if test -n "$ac_ct_CC"; then
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3624. $as_echo "$ac_ct_CC" >&6; }
  3625. else
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3627. $as_echo "no" >&6; }
  3628. fi
  3629. if test "x$ac_ct_CC" = x; then
  3630. CC=""
  3631. else
  3632. case $cross_compiling:$ac_tool_warned in
  3633. yes:)
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3636. ac_tool_warned=yes ;;
  3637. esac
  3638. CC=$ac_ct_CC
  3639. fi
  3640. else
  3641. CC="$ac_cv_prog_CC"
  3642. fi
  3643. if test -z "$CC"; then
  3644. if test -n "$ac_tool_prefix"; then
  3645. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3646. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3648. $as_echo_n "checking for $ac_word... " >&6; }
  3649. if test "${ac_cv_prog_CC+set}" = set; then :
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. if test -n "$CC"; then
  3653. ac_cv_prog_CC="$CC" # Let the user override the test.
  3654. else
  3655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3656. for as_dir in $PATH
  3657. do
  3658. IFS=$as_save_IFS
  3659. test -z "$as_dir" && as_dir=.
  3660. for ac_exec_ext in '' $ac_executable_extensions; do
  3661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3662. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3664. break 2
  3665. fi
  3666. done
  3667. done
  3668. IFS=$as_save_IFS
  3669. fi
  3670. fi
  3671. CC=$ac_cv_prog_CC
  3672. if test -n "$CC"; then
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3674. $as_echo "$CC" >&6; }
  3675. else
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3677. $as_echo "no" >&6; }
  3678. fi
  3679. fi
  3680. fi
  3681. if test -z "$CC"; then
  3682. # Extract the first word of "cc", so it can be a program name with args.
  3683. set dummy cc; ac_word=$2
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3685. $as_echo_n "checking for $ac_word... " >&6; }
  3686. if test "${ac_cv_prog_CC+set}" = set; then :
  3687. $as_echo_n "(cached) " >&6
  3688. else
  3689. if test -n "$CC"; then
  3690. ac_cv_prog_CC="$CC" # Let the user override the test.
  3691. else
  3692. ac_prog_rejected=no
  3693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694. for as_dir in $PATH
  3695. do
  3696. IFS=$as_save_IFS
  3697. test -z "$as_dir" && as_dir=.
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3700. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3701. ac_prog_rejected=yes
  3702. continue
  3703. fi
  3704. ac_cv_prog_CC="cc"
  3705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3706. break 2
  3707. fi
  3708. done
  3709. done
  3710. IFS=$as_save_IFS
  3711. if test $ac_prog_rejected = yes; then
  3712. # We found a bogon in the path, so make sure we never use it.
  3713. set dummy $ac_cv_prog_CC
  3714. shift
  3715. if test $# != 0; then
  3716. # We chose a different compiler from the bogus one.
  3717. # However, it has the same basename, so the bogon will be chosen
  3718. # first if we set CC to just the basename; use the full file name.
  3719. shift
  3720. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3721. fi
  3722. fi
  3723. fi
  3724. fi
  3725. CC=$ac_cv_prog_CC
  3726. if test -n "$CC"; then
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3728. $as_echo "$CC" >&6; }
  3729. else
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3731. $as_echo "no" >&6; }
  3732. fi
  3733. fi
  3734. if test -z "$CC"; then
  3735. if test -n "$ac_tool_prefix"; then
  3736. for ac_prog in cl.exe
  3737. do
  3738. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3739. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3741. $as_echo_n "checking for $ac_word... " >&6; }
  3742. if test "${ac_cv_prog_CC+set}" = set; then :
  3743. $as_echo_n "(cached) " >&6
  3744. else
  3745. if test -n "$CC"; then
  3746. ac_cv_prog_CC="$CC" # Let the user override the test.
  3747. else
  3748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3749. for as_dir in $PATH
  3750. do
  3751. IFS=$as_save_IFS
  3752. test -z "$as_dir" && as_dir=.
  3753. for ac_exec_ext in '' $ac_executable_extensions; do
  3754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3755. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3757. break 2
  3758. fi
  3759. done
  3760. done
  3761. IFS=$as_save_IFS
  3762. fi
  3763. fi
  3764. CC=$ac_cv_prog_CC
  3765. if test -n "$CC"; then
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3767. $as_echo "$CC" >&6; }
  3768. else
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3770. $as_echo "no" >&6; }
  3771. fi
  3772. test -n "$CC" && break
  3773. done
  3774. fi
  3775. if test -z "$CC"; then
  3776. ac_ct_CC=$CC
  3777. for ac_prog in cl.exe
  3778. do
  3779. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3780. set dummy $ac_prog; ac_word=$2
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3782. $as_echo_n "checking for $ac_word... " >&6; }
  3783. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3784. $as_echo_n "(cached) " >&6
  3785. else
  3786. if test -n "$ac_ct_CC"; then
  3787. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3788. else
  3789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3790. for as_dir in $PATH
  3791. do
  3792. IFS=$as_save_IFS
  3793. test -z "$as_dir" && as_dir=.
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3796. ac_cv_prog_ac_ct_CC="$ac_prog"
  3797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3798. break 2
  3799. fi
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. fi
  3804. fi
  3805. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3806. if test -n "$ac_ct_CC"; then
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3808. $as_echo "$ac_ct_CC" >&6; }
  3809. else
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3811. $as_echo "no" >&6; }
  3812. fi
  3813. test -n "$ac_ct_CC" && break
  3814. done
  3815. if test "x$ac_ct_CC" = x; then
  3816. CC=""
  3817. else
  3818. case $cross_compiling:$ac_tool_warned in
  3819. yes:)
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3822. ac_tool_warned=yes ;;
  3823. esac
  3824. CC=$ac_ct_CC
  3825. fi
  3826. fi
  3827. fi
  3828. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3830. as_fn_error "no acceptable C compiler found in \$PATH
  3831. See \`config.log' for more details." "$LINENO" 5; }
  3832. # Provide some information about the compiler.
  3833. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3834. set X $ac_compile
  3835. ac_compiler=$2
  3836. for ac_option in --version -v -V -qversion; do
  3837. { { ac_try="$ac_compiler $ac_option >&5"
  3838. case "(($ac_try" in
  3839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3840. *) ac_try_echo=$ac_try;;
  3841. esac
  3842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3843. $as_echo "$ac_try_echo"; } >&5
  3844. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3845. ac_status=$?
  3846. if test -s conftest.err; then
  3847. sed '10a\
  3848. ... rest of stderr output deleted ...
  3849. 10q' conftest.err >conftest.er1
  3850. cat conftest.er1 >&5
  3851. fi
  3852. rm -f conftest.er1 conftest.err
  3853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3854. test $ac_status = 0; }
  3855. done
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3857. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3858. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3862. /* end confdefs.h. */
  3863. int
  3864. main ()
  3865. {
  3866. #ifndef __GNUC__
  3867. choke me
  3868. #endif
  3869. ;
  3870. return 0;
  3871. }
  3872. _ACEOF
  3873. if ac_fn_c_try_compile "$LINENO"; then :
  3874. ac_compiler_gnu=yes
  3875. else
  3876. ac_compiler_gnu=no
  3877. fi
  3878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3879. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3882. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3883. if test $ac_compiler_gnu = yes; then
  3884. GCC=yes
  3885. else
  3886. GCC=
  3887. fi
  3888. ac_test_CFLAGS=${CFLAGS+set}
  3889. ac_save_CFLAGS=$CFLAGS
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3891. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3892. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. ac_save_c_werror_flag=$ac_c_werror_flag
  3896. ac_c_werror_flag=yes
  3897. ac_cv_prog_cc_g=no
  3898. CFLAGS="-g"
  3899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3900. /* end confdefs.h. */
  3901. int
  3902. main ()
  3903. {
  3904. ;
  3905. return 0;
  3906. }
  3907. _ACEOF
  3908. if ac_fn_c_try_compile "$LINENO"; then :
  3909. ac_cv_prog_cc_g=yes
  3910. else
  3911. CFLAGS=""
  3912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end confdefs.h. */
  3914. int
  3915. main ()
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_c_try_compile "$LINENO"; then :
  3922. else
  3923. ac_c_werror_flag=$ac_save_c_werror_flag
  3924. CFLAGS="-g"
  3925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3926. /* end confdefs.h. */
  3927. int
  3928. main ()
  3929. {
  3930. ;
  3931. return 0;
  3932. }
  3933. _ACEOF
  3934. if ac_fn_c_try_compile "$LINENO"; then :
  3935. ac_cv_prog_cc_g=yes
  3936. fi
  3937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3938. fi
  3939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3940. fi
  3941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3942. ac_c_werror_flag=$ac_save_c_werror_flag
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3945. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3946. if test "$ac_test_CFLAGS" = set; then
  3947. CFLAGS=$ac_save_CFLAGS
  3948. elif test $ac_cv_prog_cc_g = yes; then
  3949. if test "$GCC" = yes; then
  3950. CFLAGS="-g -O2"
  3951. else
  3952. CFLAGS="-g"
  3953. fi
  3954. else
  3955. if test "$GCC" = yes; then
  3956. CFLAGS="-O2"
  3957. else
  3958. CFLAGS=
  3959. fi
  3960. fi
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3962. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3963. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. ac_cv_prog_cc_c89=no
  3967. ac_save_CC=$CC
  3968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3969. /* end confdefs.h. */
  3970. #include <stdarg.h>
  3971. #include <stdio.h>
  3972. #include <sys/types.h>
  3973. #include <sys/stat.h>
  3974. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3975. struct buf { int x; };
  3976. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3977. static char *e (p, i)
  3978. char **p;
  3979. int i;
  3980. {
  3981. return p[i];
  3982. }
  3983. static char *f (char * (*g) (char **, int), char **p, ...)
  3984. {
  3985. char *s;
  3986. va_list v;
  3987. va_start (v,p);
  3988. s = g (p, va_arg (v,int));
  3989. va_end (v);
  3990. return s;
  3991. }
  3992. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3993. function prototypes and stuff, but not '\xHH' hex character constants.
  3994. These don't provoke an error unfortunately, instead are silently treated
  3995. as 'x'. The following induces an error, until -std is added to get
  3996. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3997. array size at least. It's necessary to write '\x00'==0 to get something
  3998. that's true only with -std. */
  3999. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4000. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4001. inside strings and character constants. */
  4002. #define FOO(x) 'x'
  4003. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4004. int test (int i, double x);
  4005. struct s1 {int (*f) (int a);};
  4006. struct s2 {int (*f) (double a);};
  4007. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4008. int argc;
  4009. char **argv;
  4010. int
  4011. main ()
  4012. {
  4013. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4014. ;
  4015. return 0;
  4016. }
  4017. _ACEOF
  4018. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4019. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4020. do
  4021. CC="$ac_save_CC $ac_arg"
  4022. if ac_fn_c_try_compile "$LINENO"; then :
  4023. ac_cv_prog_cc_c89=$ac_arg
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext
  4026. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4027. done
  4028. rm -f conftest.$ac_ext
  4029. CC=$ac_save_CC
  4030. fi
  4031. # AC_CACHE_VAL
  4032. case "x$ac_cv_prog_cc_c89" in
  4033. x)
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4035. $as_echo "none needed" >&6; } ;;
  4036. xno)
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4038. $as_echo "unsupported" >&6; } ;;
  4039. *)
  4040. CC="$CC $ac_cv_prog_cc_c89"
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4042. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4043. esac
  4044. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4045. fi
  4046. ac_ext=cpp
  4047. ac_cpp='$CXXCPP $CPPFLAGS'
  4048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4051. depcc="$CC" am_compiler_list=
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4053. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4054. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4058. # We make a subdir and do the tests there. Otherwise we can end up
  4059. # making bogus files that we don't know about and never remove. For
  4060. # instance it was reported that on HP-UX the gcc test will end up
  4061. # making a dummy file named `D' -- because `-MD' means `put the output
  4062. # in D'.
  4063. mkdir conftest.dir
  4064. # Copy depcomp to subdir because otherwise we won't find it if we're
  4065. # using a relative directory.
  4066. cp "$am_depcomp" conftest.dir
  4067. cd conftest.dir
  4068. # We will build objects and dependencies in a subdirectory because
  4069. # it helps to detect inapplicable dependency modes. For instance
  4070. # both Tru64's cc and ICC support -MD to output dependencies as a
  4071. # side effect of compilation, but ICC will put the dependencies in
  4072. # the current directory while Tru64 will put them in the object
  4073. # directory.
  4074. mkdir sub
  4075. am_cv_CC_dependencies_compiler_type=none
  4076. if test "$am_compiler_list" = ""; then
  4077. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4078. fi
  4079. am__universal=false
  4080. case " $depcc " in #(
  4081. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4082. esac
  4083. for depmode in $am_compiler_list; do
  4084. # Setup a source with many dependencies, because some compilers
  4085. # like to wrap large dependency lists on column 80 (with \), and
  4086. # we should not choose a depcomp mode which is confused by this.
  4087. #
  4088. # We need to recreate these files for each test, as the compiler may
  4089. # overwrite some of them when testing with obscure command lines.
  4090. # This happens at least with the AIX C compiler.
  4091. : > sub/conftest.c
  4092. for i in 1 2 3 4 5 6; do
  4093. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4094. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4095. # Solaris 8's {/usr,}/bin/sh.
  4096. touch sub/conftst$i.h
  4097. done
  4098. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4099. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4100. # mode. It turns out that the SunPro C++ compiler does not properly
  4101. # handle `-M -o', and we need to detect this. Also, some Intel
  4102. # versions had trouble with output in subdirs
  4103. am__obj=sub/conftest.${OBJEXT-o}
  4104. am__minus_obj="-o $am__obj"
  4105. case $depmode in
  4106. gcc)
  4107. # This depmode causes a compiler race in universal mode.
  4108. test "$am__universal" = false || continue
  4109. ;;
  4110. nosideeffect)
  4111. # after this tag, mechanisms are not by side-effect, so they'll
  4112. # only be used when explicitly requested
  4113. if test "x$enable_dependency_tracking" = xyes; then
  4114. continue
  4115. else
  4116. break
  4117. fi
  4118. ;;
  4119. msvisualcpp | msvcmsys)
  4120. # This compiler won't grok `-c -o', but also, the minuso test has
  4121. # not run yet. These depmodes are late enough in the game, and
  4122. # so weak that their functioning should not be impacted.
  4123. am__obj=conftest.${OBJEXT-o}
  4124. am__minus_obj=
  4125. ;;
  4126. none) break ;;
  4127. esac
  4128. if depmode=$depmode \
  4129. source=sub/conftest.c object=$am__obj \
  4130. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4131. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4132. >/dev/null 2>conftest.err &&
  4133. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4134. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4135. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4136. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4137. # icc doesn't choke on unknown options, it will just issue warnings
  4138. # or remarks (even with -Werror). So we grep stderr for any message
  4139. # that says an option was ignored or not supported.
  4140. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4141. # icc: Command line warning: ignoring option '-M'; no argument required
  4142. # The diagnosis changed in icc 8.0:
  4143. # icc: Command line remark: option '-MP' not supported
  4144. if (grep 'ignoring option' conftest.err ||
  4145. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4146. am_cv_CC_dependencies_compiler_type=$depmode
  4147. break
  4148. fi
  4149. fi
  4150. done
  4151. cd ..
  4152. rm -rf conftest.dir
  4153. else
  4154. am_cv_CC_dependencies_compiler_type=none
  4155. fi
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4158. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4159. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4160. if
  4161. test "x$enable_dependency_tracking" != xno \
  4162. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4163. am__fastdepCC_TRUE=
  4164. am__fastdepCC_FALSE='#'
  4165. else
  4166. am__fastdepCC_TRUE='#'
  4167. am__fastdepCC_FALSE=
  4168. fi
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4170. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4171. if test "${ac_cv_path_SED+set}" = set; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4175. for ac_i in 1 2 3 4 5 6 7; do
  4176. ac_script="$ac_script$as_nl$ac_script"
  4177. done
  4178. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4179. { ac_script=; unset ac_script;}
  4180. if test -z "$SED"; then
  4181. ac_path_SED_found=false
  4182. # Loop through the user's path and test for each of PROGNAME-LIST
  4183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4184. for as_dir in $PATH
  4185. do
  4186. IFS=$as_save_IFS
  4187. test -z "$as_dir" && as_dir=.
  4188. for ac_prog in sed gsed; do
  4189. for ac_exec_ext in '' $ac_executable_extensions; do
  4190. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4191. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4192. # Check for GNU ac_path_SED and select it if it is found.
  4193. # Check for GNU $ac_path_SED
  4194. case `"$ac_path_SED" --version 2>&1` in
  4195. *GNU*)
  4196. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4197. *)
  4198. ac_count=0
  4199. $as_echo_n 0123456789 >"conftest.in"
  4200. while :
  4201. do
  4202. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4203. mv "conftest.tmp" "conftest.in"
  4204. cp "conftest.in" "conftest.nl"
  4205. $as_echo '' >> "conftest.nl"
  4206. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4207. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4208. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4209. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4210. # Best one so far, save it but keep looking for a better one
  4211. ac_cv_path_SED="$ac_path_SED"
  4212. ac_path_SED_max=$ac_count
  4213. fi
  4214. # 10*(2^10) chars as input seems more than enough
  4215. test $ac_count -gt 10 && break
  4216. done
  4217. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4218. esac
  4219. $ac_path_SED_found && break 3
  4220. done
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. if test -z "$ac_cv_path_SED"; then
  4225. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4226. fi
  4227. else
  4228. ac_cv_path_SED=$SED
  4229. fi
  4230. fi
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4232. $as_echo "$ac_cv_path_SED" >&6; }
  4233. SED="$ac_cv_path_SED"
  4234. rm -f conftest.sed
  4235. test -z "$SED" && SED=sed
  4236. Xsed="$SED -e 1s/^X//"
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4238. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4239. if test "${ac_cv_path_GREP+set}" = set; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -z "$GREP"; then
  4243. ac_path_GREP_found=false
  4244. # Loop through the user's path and test for each of PROGNAME-LIST
  4245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4246. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4247. do
  4248. IFS=$as_save_IFS
  4249. test -z "$as_dir" && as_dir=.
  4250. for ac_prog in grep ggrep; do
  4251. for ac_exec_ext in '' $ac_executable_extensions; do
  4252. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4253. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4254. # Check for GNU ac_path_GREP and select it if it is found.
  4255. # Check for GNU $ac_path_GREP
  4256. case `"$ac_path_GREP" --version 2>&1` in
  4257. *GNU*)
  4258. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4259. *)
  4260. ac_count=0
  4261. $as_echo_n 0123456789 >"conftest.in"
  4262. while :
  4263. do
  4264. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4265. mv "conftest.tmp" "conftest.in"
  4266. cp "conftest.in" "conftest.nl"
  4267. $as_echo 'GREP' >> "conftest.nl"
  4268. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4269. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4270. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4271. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4272. # Best one so far, save it but keep looking for a better one
  4273. ac_cv_path_GREP="$ac_path_GREP"
  4274. ac_path_GREP_max=$ac_count
  4275. fi
  4276. # 10*(2^10) chars as input seems more than enough
  4277. test $ac_count -gt 10 && break
  4278. done
  4279. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4280. esac
  4281. $ac_path_GREP_found && break 3
  4282. done
  4283. done
  4284. done
  4285. IFS=$as_save_IFS
  4286. if test -z "$ac_cv_path_GREP"; then
  4287. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4288. fi
  4289. else
  4290. ac_cv_path_GREP=$GREP
  4291. fi
  4292. fi
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4294. $as_echo "$ac_cv_path_GREP" >&6; }
  4295. GREP="$ac_cv_path_GREP"
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4297. $as_echo_n "checking for egrep... " >&6; }
  4298. if test "${ac_cv_path_EGREP+set}" = set; then :
  4299. $as_echo_n "(cached) " >&6
  4300. else
  4301. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4302. then ac_cv_path_EGREP="$GREP -E"
  4303. else
  4304. if test -z "$EGREP"; then
  4305. ac_path_EGREP_found=false
  4306. # Loop through the user's path and test for each of PROGNAME-LIST
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_prog in egrep; do
  4313. for ac_exec_ext in '' $ac_executable_extensions; do
  4314. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4315. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4316. # Check for GNU ac_path_EGREP and select it if it is found.
  4317. # Check for GNU $ac_path_EGREP
  4318. case `"$ac_path_EGREP" --version 2>&1` in
  4319. *GNU*)
  4320. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4321. *)
  4322. ac_count=0
  4323. $as_echo_n 0123456789 >"conftest.in"
  4324. while :
  4325. do
  4326. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4327. mv "conftest.tmp" "conftest.in"
  4328. cp "conftest.in" "conftest.nl"
  4329. $as_echo 'EGREP' >> "conftest.nl"
  4330. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4331. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4332. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4333. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4334. # Best one so far, save it but keep looking for a better one
  4335. ac_cv_path_EGREP="$ac_path_EGREP"
  4336. ac_path_EGREP_max=$ac_count
  4337. fi
  4338. # 10*(2^10) chars as input seems more than enough
  4339. test $ac_count -gt 10 && break
  4340. done
  4341. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4342. esac
  4343. $ac_path_EGREP_found && break 3
  4344. done
  4345. done
  4346. done
  4347. IFS=$as_save_IFS
  4348. if test -z "$ac_cv_path_EGREP"; then
  4349. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4350. fi
  4351. else
  4352. ac_cv_path_EGREP=$EGREP
  4353. fi
  4354. fi
  4355. fi
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4357. $as_echo "$ac_cv_path_EGREP" >&6; }
  4358. EGREP="$ac_cv_path_EGREP"
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4360. $as_echo_n "checking for fgrep... " >&6; }
  4361. if test "${ac_cv_path_FGREP+set}" = set; then :
  4362. $as_echo_n "(cached) " >&6
  4363. else
  4364. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4365. then ac_cv_path_FGREP="$GREP -F"
  4366. else
  4367. if test -z "$FGREP"; then
  4368. ac_path_FGREP_found=false
  4369. # Loop through the user's path and test for each of PROGNAME-LIST
  4370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4372. do
  4373. IFS=$as_save_IFS
  4374. test -z "$as_dir" && as_dir=.
  4375. for ac_prog in fgrep; do
  4376. for ac_exec_ext in '' $ac_executable_extensions; do
  4377. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4378. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4379. # Check for GNU ac_path_FGREP and select it if it is found.
  4380. # Check for GNU $ac_path_FGREP
  4381. case `"$ac_path_FGREP" --version 2>&1` in
  4382. *GNU*)
  4383. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4384. *)
  4385. ac_count=0
  4386. $as_echo_n 0123456789 >"conftest.in"
  4387. while :
  4388. do
  4389. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4390. mv "conftest.tmp" "conftest.in"
  4391. cp "conftest.in" "conftest.nl"
  4392. $as_echo 'FGREP' >> "conftest.nl"
  4393. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4394. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4395. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4396. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4397. # Best one so far, save it but keep looking for a better one
  4398. ac_cv_path_FGREP="$ac_path_FGREP"
  4399. ac_path_FGREP_max=$ac_count
  4400. fi
  4401. # 10*(2^10) chars as input seems more than enough
  4402. test $ac_count -gt 10 && break
  4403. done
  4404. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4405. esac
  4406. $ac_path_FGREP_found && break 3
  4407. done
  4408. done
  4409. done
  4410. IFS=$as_save_IFS
  4411. if test -z "$ac_cv_path_FGREP"; then
  4412. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4413. fi
  4414. else
  4415. ac_cv_path_FGREP=$FGREP
  4416. fi
  4417. fi
  4418. fi
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4420. $as_echo "$ac_cv_path_FGREP" >&6; }
  4421. FGREP="$ac_cv_path_FGREP"
  4422. test -z "$GREP" && GREP=grep
  4423. # Check whether --with-gnu-ld was given.
  4424. if test "${with_gnu_ld+set}" = set; then :
  4425. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4426. else
  4427. with_gnu_ld=no
  4428. fi
  4429. ac_prog=ld
  4430. if test "$GCC" = yes; then
  4431. # Check if gcc -print-prog-name=ld gives a path.
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4433. $as_echo_n "checking for ld used by $CC... " >&6; }
  4434. case $host in
  4435. *-*-mingw*)
  4436. # gcc leaves a trailing carriage return which upsets mingw
  4437. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4438. *)
  4439. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4440. esac
  4441. case $ac_prog in
  4442. # Accept absolute paths.
  4443. [\\/]* | ?:[\\/]*)
  4444. re_direlt='/[^/][^/]*/\.\./'
  4445. # Canonicalize the pathname of ld
  4446. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4447. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4448. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4449. done
  4450. test -z "$LD" && LD="$ac_prog"
  4451. ;;
  4452. "")
  4453. # If it fails, then pretend we aren't using GCC.
  4454. ac_prog=ld
  4455. ;;
  4456. *)
  4457. # If it is relative, then search for the first ld in PATH.
  4458. with_gnu_ld=unknown
  4459. ;;
  4460. esac
  4461. elif test "$with_gnu_ld" = yes; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4463. $as_echo_n "checking for GNU ld... " >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4466. $as_echo_n "checking for non-GNU ld... " >&6; }
  4467. fi
  4468. if test "${lt_cv_path_LD+set}" = set; then :
  4469. $as_echo_n "(cached) " >&6
  4470. else
  4471. if test -z "$LD"; then
  4472. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4473. for ac_dir in $PATH; do
  4474. IFS="$lt_save_ifs"
  4475. test -z "$ac_dir" && ac_dir=.
  4476. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4477. lt_cv_path_LD="$ac_dir/$ac_prog"
  4478. # Check to see if the program is GNU ld. I'd rather use --version,
  4479. # but apparently some variants of GNU ld only accept -v.
  4480. # Break only if it was the GNU/non-GNU ld that we prefer.
  4481. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4482. *GNU* | *'with BFD'*)
  4483. test "$with_gnu_ld" != no && break
  4484. ;;
  4485. *)
  4486. test "$with_gnu_ld" != yes && break
  4487. ;;
  4488. esac
  4489. fi
  4490. done
  4491. IFS="$lt_save_ifs"
  4492. else
  4493. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4494. fi
  4495. fi
  4496. LD="$lt_cv_path_LD"
  4497. if test -n "$LD"; then
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4499. $as_echo "$LD" >&6; }
  4500. else
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. $as_echo "no" >&6; }
  4503. fi
  4504. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4506. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4507. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4511. case `$LD -v 2>&1 </dev/null` in
  4512. *GNU* | *'with BFD'*)
  4513. lt_cv_prog_gnu_ld=yes
  4514. ;;
  4515. *)
  4516. lt_cv_prog_gnu_ld=no
  4517. ;;
  4518. esac
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4521. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4522. with_gnu_ld=$lt_cv_prog_gnu_ld
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4524. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4525. if test "${lt_cv_path_NM+set}" = set; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. if test -n "$NM"; then
  4529. # Let the user override the test.
  4530. lt_cv_path_NM="$NM"
  4531. else
  4532. lt_nm_to_check="${ac_tool_prefix}nm"
  4533. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4534. lt_nm_to_check="$lt_nm_to_check nm"
  4535. fi
  4536. for lt_tmp_nm in $lt_nm_to_check; do
  4537. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4538. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4539. IFS="$lt_save_ifs"
  4540. test -z "$ac_dir" && ac_dir=.
  4541. tmp_nm="$ac_dir/$lt_tmp_nm"
  4542. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4543. # Check to see if the nm accepts a BSD-compat flag.
  4544. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4545. # nm: unknown option "B" ignored
  4546. # Tru64's nm complains that /dev/null is an invalid object file
  4547. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4548. */dev/null* | *'Invalid file or object type'*)
  4549. lt_cv_path_NM="$tmp_nm -B"
  4550. break
  4551. ;;
  4552. *)
  4553. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4554. */dev/null*)
  4555. lt_cv_path_NM="$tmp_nm -p"
  4556. break
  4557. ;;
  4558. *)
  4559. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4560. continue # so that we can try to find one that supports BSD flags
  4561. ;;
  4562. esac
  4563. ;;
  4564. esac
  4565. fi
  4566. done
  4567. IFS="$lt_save_ifs"
  4568. done
  4569. : ${lt_cv_path_NM=no}
  4570. fi
  4571. fi
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4573. $as_echo "$lt_cv_path_NM" >&6; }
  4574. if test "$lt_cv_path_NM" != "no"; then
  4575. NM="$lt_cv_path_NM"
  4576. else
  4577. # Didn't find any BSD compatible name lister, look for dumpbin.
  4578. if test -n "$ac_tool_prefix"; then
  4579. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4580. do
  4581. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4582. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$DUMPBIN"; then
  4589. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4598. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. DUMPBIN=$ac_cv_prog_DUMPBIN
  4608. if test -n "$DUMPBIN"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4610. $as_echo "$DUMPBIN" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. test -n "$DUMPBIN" && break
  4616. done
  4617. fi
  4618. if test -z "$DUMPBIN"; then
  4619. ac_ct_DUMPBIN=$DUMPBIN
  4620. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4621. do
  4622. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4623. set dummy $ac_prog; ac_word=$2
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4625. $as_echo_n "checking for $ac_word... " >&6; }
  4626. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. if test -n "$ac_ct_DUMPBIN"; then
  4630. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4631. else
  4632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633. for as_dir in $PATH
  4634. do
  4635. IFS=$as_save_IFS
  4636. test -z "$as_dir" && as_dir=.
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4639. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4641. break 2
  4642. fi
  4643. done
  4644. done
  4645. IFS=$as_save_IFS
  4646. fi
  4647. fi
  4648. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4649. if test -n "$ac_ct_DUMPBIN"; then
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4651. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4652. else
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. $as_echo "no" >&6; }
  4655. fi
  4656. test -n "$ac_ct_DUMPBIN" && break
  4657. done
  4658. if test "x$ac_ct_DUMPBIN" = x; then
  4659. DUMPBIN=":"
  4660. else
  4661. case $cross_compiling:$ac_tool_warned in
  4662. yes:)
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4665. ac_tool_warned=yes ;;
  4666. esac
  4667. DUMPBIN=$ac_ct_DUMPBIN
  4668. fi
  4669. fi
  4670. if test "$DUMPBIN" != ":"; then
  4671. NM="$DUMPBIN"
  4672. fi
  4673. fi
  4674. test -z "$NM" && NM=nm
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4676. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4677. if test "${lt_cv_nm_interface+set}" = set; then :
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. lt_cv_nm_interface="BSD nm"
  4681. echo "int some_variable = 0;" > conftest.$ac_ext
  4682. (eval echo "\"\$as_me:5197: $ac_compile\"" >&5)
  4683. (eval "$ac_compile" 2>conftest.err)
  4684. cat conftest.err >&5
  4685. (eval echo "\"\$as_me:5200: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4686. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4687. cat conftest.err >&5
  4688. (eval echo "\"\$as_me:5203: output\"" >&5)
  4689. cat conftest.out >&5
  4690. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4691. lt_cv_nm_interface="MS dumpbin"
  4692. fi
  4693. rm -f conftest*
  4694. fi
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4696. $as_echo "$lt_cv_nm_interface" >&6; }
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4698. $as_echo_n "checking whether ln -s works... " >&6; }
  4699. LN_S=$as_ln_s
  4700. if test "$LN_S" = "ln -s"; then
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4702. $as_echo "yes" >&6; }
  4703. else
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4705. $as_echo "no, using $LN_S" >&6; }
  4706. fi
  4707. # find the maximum length of command line arguments
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4709. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4710. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. i=0
  4714. teststring="ABCD"
  4715. case $build_os in
  4716. msdosdjgpp*)
  4717. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4718. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4719. # during glob expansion). Even if it were fixed, the result of this
  4720. # check would be larger than it should be.
  4721. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4722. ;;
  4723. gnu*)
  4724. # Under GNU Hurd, this test is not required because there is
  4725. # no limit to the length of command line arguments.
  4726. # Libtool will interpret -1 as no limit whatsoever
  4727. lt_cv_sys_max_cmd_len=-1;
  4728. ;;
  4729. cygwin* | mingw* | cegcc*)
  4730. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4731. # about 5 minutes as the teststring grows exponentially.
  4732. # Worse, since 9x/ME are not pre-emptively multitasking,
  4733. # you end up with a "frozen" computer, even though with patience
  4734. # the test eventually succeeds (with a max line length of 256k).
  4735. # Instead, let's just punt: use the minimum linelength reported by
  4736. # all of the supported platforms: 8192 (on NT/2K/XP).
  4737. lt_cv_sys_max_cmd_len=8192;
  4738. ;;
  4739. amigaos*)
  4740. # On AmigaOS with pdksh, this test takes hours, literally.
  4741. # So we just punt and use a minimum line length of 8192.
  4742. lt_cv_sys_max_cmd_len=8192;
  4743. ;;
  4744. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4745. # This has been around since 386BSD, at least. Likely further.
  4746. if test -x /sbin/sysctl; then
  4747. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4748. elif test -x /usr/sbin/sysctl; then
  4749. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4750. else
  4751. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4752. fi
  4753. # And add a safety zone
  4754. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4755. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4756. ;;
  4757. interix*)
  4758. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4759. lt_cv_sys_max_cmd_len=196608
  4760. ;;
  4761. osf*)
  4762. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4763. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4764. # nice to cause kernel panics so lets avoid the loop below.
  4765. # First set a reasonable default.
  4766. lt_cv_sys_max_cmd_len=16384
  4767. #
  4768. if test -x /sbin/sysconfig; then
  4769. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4770. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4771. esac
  4772. fi
  4773. ;;
  4774. sco3.2v5*)
  4775. lt_cv_sys_max_cmd_len=102400
  4776. ;;
  4777. sysv5* | sco5v6* | sysv4.2uw2*)
  4778. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4779. if test -n "$kargmax"; then
  4780. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4781. else
  4782. lt_cv_sys_max_cmd_len=32768
  4783. fi
  4784. ;;
  4785. *)
  4786. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4787. if test -n "$lt_cv_sys_max_cmd_len"; then
  4788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4789. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4790. else
  4791. # Make teststring a little bigger before we do anything with it.
  4792. # a 1K string should be a reasonable start.
  4793. for i in 1 2 3 4 5 6 7 8 ; do
  4794. teststring=$teststring$teststring
  4795. done
  4796. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4797. # If test is not a shell built-in, we'll probably end up computing a
  4798. # maximum length that is only half of the actual maximum length, but
  4799. # we can't tell.
  4800. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4801. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4802. test $i != 17 # 1/2 MB should be enough
  4803. do
  4804. i=`expr $i + 1`
  4805. teststring=$teststring$teststring
  4806. done
  4807. # Only check the string length outside the loop.
  4808. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4809. teststring=
  4810. # Add a significant safety factor because C++ compilers can tack on
  4811. # massive amounts of additional arguments before passing them to the
  4812. # linker. It appears as though 1/2 is a usable value.
  4813. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4814. fi
  4815. ;;
  4816. esac
  4817. fi
  4818. if test -n $lt_cv_sys_max_cmd_len ; then
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4820. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4821. else
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4823. $as_echo "none" >&6; }
  4824. fi
  4825. max_cmd_len=$lt_cv_sys_max_cmd_len
  4826. : ${CP="cp -f"}
  4827. : ${MV="mv -f"}
  4828. : ${RM="rm -f"}
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4830. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4831. # Try some XSI features
  4832. xsi_shell=no
  4833. ( _lt_dummy="a/b/c"
  4834. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4835. = c,a/b,, \
  4836. && eval 'test $(( 1 + 1 )) -eq 2 \
  4837. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4838. && xsi_shell=yes
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4840. $as_echo "$xsi_shell" >&6; }
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4842. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4843. lt_shell_append=no
  4844. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4845. >/dev/null 2>&1 \
  4846. && lt_shell_append=yes
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4848. $as_echo "$lt_shell_append" >&6; }
  4849. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4850. lt_unset=unset
  4851. else
  4852. lt_unset=false
  4853. fi
  4854. # test EBCDIC or ASCII
  4855. case `echo X|tr X '\101'` in
  4856. A) # ASCII based system
  4857. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4858. lt_SP2NL='tr \040 \012'
  4859. lt_NL2SP='tr \015\012 \040\040'
  4860. ;;
  4861. *) # EBCDIC based system
  4862. lt_SP2NL='tr \100 \n'
  4863. lt_NL2SP='tr \r\n \100\100'
  4864. ;;
  4865. esac
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4867. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4868. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4869. $as_echo_n "(cached) " >&6
  4870. else
  4871. lt_cv_ld_reload_flag='-r'
  4872. fi
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4874. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4875. reload_flag=$lt_cv_ld_reload_flag
  4876. case $reload_flag in
  4877. "" | " "*) ;;
  4878. *) reload_flag=" $reload_flag" ;;
  4879. esac
  4880. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4881. case $host_os in
  4882. darwin*)
  4883. if test "$GCC" = yes; then
  4884. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4885. else
  4886. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4887. fi
  4888. ;;
  4889. esac
  4890. if test -n "$ac_tool_prefix"; then
  4891. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4892. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894. $as_echo_n "checking for $ac_word... " >&6; }
  4895. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. if test -n "$OBJDUMP"; then
  4899. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4900. else
  4901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4902. for as_dir in $PATH
  4903. do
  4904. IFS=$as_save_IFS
  4905. test -z "$as_dir" && as_dir=.
  4906. for ac_exec_ext in '' $ac_executable_extensions; do
  4907. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4908. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4910. break 2
  4911. fi
  4912. done
  4913. done
  4914. IFS=$as_save_IFS
  4915. fi
  4916. fi
  4917. OBJDUMP=$ac_cv_prog_OBJDUMP
  4918. if test -n "$OBJDUMP"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4920. $as_echo "$OBJDUMP" >&6; }
  4921. else
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4923. $as_echo "no" >&6; }
  4924. fi
  4925. fi
  4926. if test -z "$ac_cv_prog_OBJDUMP"; then
  4927. ac_ct_OBJDUMP=$OBJDUMP
  4928. # Extract the first word of "objdump", so it can be a program name with args.
  4929. set dummy objdump; ac_word=$2
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4931. $as_echo_n "checking for $ac_word... " >&6; }
  4932. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. if test -n "$ac_ct_OBJDUMP"; then
  4936. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4937. else
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4945. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. fi
  4953. fi
  4954. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4955. if test -n "$ac_ct_OBJDUMP"; then
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4957. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4958. else
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4960. $as_echo "no" >&6; }
  4961. fi
  4962. if test "x$ac_ct_OBJDUMP" = x; then
  4963. OBJDUMP="false"
  4964. else
  4965. case $cross_compiling:$ac_tool_warned in
  4966. yes:)
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4969. ac_tool_warned=yes ;;
  4970. esac
  4971. OBJDUMP=$ac_ct_OBJDUMP
  4972. fi
  4973. else
  4974. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4975. fi
  4976. test -z "$OBJDUMP" && OBJDUMP=objdump
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4978. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4979. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4983. lt_cv_file_magic_test_file=
  4984. lt_cv_deplibs_check_method='unknown'
  4985. # Need to set the preceding variable on all platforms that support
  4986. # interlibrary dependencies.
  4987. # 'none' -- dependencies not supported.
  4988. # `unknown' -- same as none, but documents that we really don't know.
  4989. # 'pass_all' -- all dependencies passed with no checks.
  4990. # 'test_compile' -- check by making test program.
  4991. # 'file_magic [[regex]]' -- check by looking for files in library path
  4992. # which responds to the $file_magic_cmd with a given extended regex.
  4993. # If you have `file' or equivalent on your system and you're not sure
  4994. # whether `pass_all' will *always* work, you probably want this one.
  4995. case $host_os in
  4996. aix[4-9]*)
  4997. lt_cv_deplibs_check_method=pass_all
  4998. ;;
  4999. beos*)
  5000. lt_cv_deplibs_check_method=pass_all
  5001. ;;
  5002. bsdi[45]*)
  5003. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5004. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5005. lt_cv_file_magic_test_file=/shlib/libc.so
  5006. ;;
  5007. cygwin*)
  5008. # func_win32_libid is a shell function defined in ltmain.sh
  5009. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5010. lt_cv_file_magic_cmd='func_win32_libid'
  5011. ;;
  5012. mingw* | pw32*)
  5013. # Base MSYS/MinGW do not provide the 'file' command needed by
  5014. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5015. # unless we find 'file', for example because we are cross-compiling.
  5016. if ( file / ) >/dev/null 2>&1; then
  5017. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5018. lt_cv_file_magic_cmd='func_win32_libid'
  5019. else
  5020. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5021. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5022. fi
  5023. ;;
  5024. cegcc)
  5025. # use the weaker test based on 'objdump'. See mingw*.
  5026. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5027. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5028. ;;
  5029. darwin* | rhapsody*)
  5030. lt_cv_deplibs_check_method=pass_all
  5031. ;;
  5032. freebsd* | dragonfly*)
  5033. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5034. case $host_cpu in
  5035. i*86 )
  5036. # Not sure whether the presence of OpenBSD here was a mistake.
  5037. # Let's accept both of them until this is cleared up.
  5038. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5039. lt_cv_file_magic_cmd=/usr/bin/file
  5040. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5041. ;;
  5042. esac
  5043. else
  5044. lt_cv_deplibs_check_method=pass_all
  5045. fi
  5046. ;;
  5047. gnu*)
  5048. lt_cv_deplibs_check_method=pass_all
  5049. ;;
  5050. hpux10.20* | hpux11*)
  5051. lt_cv_file_magic_cmd=/usr/bin/file
  5052. case $host_cpu in
  5053. ia64*)
  5054. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5055. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5056. ;;
  5057. hppa*64*)
  5058. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5059. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5060. ;;
  5061. *)
  5062. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5063. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5064. ;;
  5065. esac
  5066. ;;
  5067. interix[3-9]*)
  5068. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5069. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5070. ;;
  5071. irix5* | irix6* | nonstopux*)
  5072. case $LD in
  5073. *-32|*"-32 ") libmagic=32-bit;;
  5074. *-n32|*"-n32 ") libmagic=N32;;
  5075. *-64|*"-64 ") libmagic=64-bit;;
  5076. *) libmagic=never-match;;
  5077. esac
  5078. lt_cv_deplibs_check_method=pass_all
  5079. ;;
  5080. # This must be Linux ELF.
  5081. linux* | k*bsd*-gnu)
  5082. lt_cv_deplibs_check_method=pass_all
  5083. ;;
  5084. netbsd* | netbsdelf*-gnu)
  5085. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5086. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5087. else
  5088. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5089. fi
  5090. ;;
  5091. newos6*)
  5092. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5093. lt_cv_file_magic_cmd=/usr/bin/file
  5094. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5095. ;;
  5096. *nto* | *qnx*)
  5097. lt_cv_deplibs_check_method=pass_all
  5098. ;;
  5099. openbsd*)
  5100. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5101. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5102. else
  5103. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5104. fi
  5105. ;;
  5106. osf3* | osf4* | osf5*)
  5107. lt_cv_deplibs_check_method=pass_all
  5108. ;;
  5109. rdos*)
  5110. lt_cv_deplibs_check_method=pass_all
  5111. ;;
  5112. solaris*)
  5113. lt_cv_deplibs_check_method=pass_all
  5114. ;;
  5115. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5116. lt_cv_deplibs_check_method=pass_all
  5117. ;;
  5118. sysv4 | sysv4.3*)
  5119. case $host_vendor in
  5120. motorola)
  5121. 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]'
  5122. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5123. ;;
  5124. ncr)
  5125. lt_cv_deplibs_check_method=pass_all
  5126. ;;
  5127. sequent)
  5128. lt_cv_file_magic_cmd='/bin/file'
  5129. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5130. ;;
  5131. sni)
  5132. lt_cv_file_magic_cmd='/bin/file'
  5133. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5134. lt_cv_file_magic_test_file=/lib/libc.so
  5135. ;;
  5136. siemens)
  5137. lt_cv_deplibs_check_method=pass_all
  5138. ;;
  5139. pc)
  5140. lt_cv_deplibs_check_method=pass_all
  5141. ;;
  5142. esac
  5143. ;;
  5144. tpf*)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. esac
  5148. fi
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5150. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5151. file_magic_cmd=$lt_cv_file_magic_cmd
  5152. deplibs_check_method=$lt_cv_deplibs_check_method
  5153. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5154. if test -n "$ac_tool_prefix"; then
  5155. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5156. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5158. $as_echo_n "checking for $ac_word... " >&6; }
  5159. if test "${ac_cv_prog_AR+set}" = set; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. if test -n "$AR"; then
  5163. ac_cv_prog_AR="$AR" # Let the user override the test.
  5164. else
  5165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. for ac_exec_ext in '' $ac_executable_extensions; do
  5171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5172. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5174. break 2
  5175. fi
  5176. done
  5177. done
  5178. IFS=$as_save_IFS
  5179. fi
  5180. fi
  5181. AR=$ac_cv_prog_AR
  5182. if test -n "$AR"; then
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5184. $as_echo "$AR" >&6; }
  5185. else
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5187. $as_echo "no" >&6; }
  5188. fi
  5189. fi
  5190. if test -z "$ac_cv_prog_AR"; then
  5191. ac_ct_AR=$AR
  5192. # Extract the first word of "ar", so it can be a program name with args.
  5193. set dummy ar; ac_word=$2
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5195. $as_echo_n "checking for $ac_word... " >&6; }
  5196. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. if test -n "$ac_ct_AR"; then
  5200. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5201. else
  5202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5203. for as_dir in $PATH
  5204. do
  5205. IFS=$as_save_IFS
  5206. test -z "$as_dir" && as_dir=.
  5207. for ac_exec_ext in '' $ac_executable_extensions; do
  5208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5209. ac_cv_prog_ac_ct_AR="ar"
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5211. break 2
  5212. fi
  5213. done
  5214. done
  5215. IFS=$as_save_IFS
  5216. fi
  5217. fi
  5218. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5219. if test -n "$ac_ct_AR"; then
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5221. $as_echo "$ac_ct_AR" >&6; }
  5222. else
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5224. $as_echo "no" >&6; }
  5225. fi
  5226. if test "x$ac_ct_AR" = x; then
  5227. AR="false"
  5228. else
  5229. case $cross_compiling:$ac_tool_warned in
  5230. yes:)
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5233. ac_tool_warned=yes ;;
  5234. esac
  5235. AR=$ac_ct_AR
  5236. fi
  5237. else
  5238. AR="$ac_cv_prog_AR"
  5239. fi
  5240. test -z "$AR" && AR=ar
  5241. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5242. if test -n "$ac_tool_prefix"; then
  5243. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5244. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5246. $as_echo_n "checking for $ac_word... " >&6; }
  5247. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. if test -n "$STRIP"; then
  5251. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5252. else
  5253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5254. for as_dir in $PATH
  5255. do
  5256. IFS=$as_save_IFS
  5257. test -z "$as_dir" && as_dir=.
  5258. for ac_exec_ext in '' $ac_executable_extensions; do
  5259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5260. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5262. break 2
  5263. fi
  5264. done
  5265. done
  5266. IFS=$as_save_IFS
  5267. fi
  5268. fi
  5269. STRIP=$ac_cv_prog_STRIP
  5270. if test -n "$STRIP"; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5272. $as_echo "$STRIP" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. fi
  5277. fi
  5278. if test -z "$ac_cv_prog_STRIP"; then
  5279. ac_ct_STRIP=$STRIP
  5280. # Extract the first word of "strip", so it can be a program name with args.
  5281. set dummy strip; ac_word=$2
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5283. $as_echo_n "checking for $ac_word... " >&6; }
  5284. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. if test -n "$ac_ct_STRIP"; then
  5288. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5289. else
  5290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5291. for as_dir in $PATH
  5292. do
  5293. IFS=$as_save_IFS
  5294. test -z "$as_dir" && as_dir=.
  5295. for ac_exec_ext in '' $ac_executable_extensions; do
  5296. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5297. ac_cv_prog_ac_ct_STRIP="strip"
  5298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5299. break 2
  5300. fi
  5301. done
  5302. done
  5303. IFS=$as_save_IFS
  5304. fi
  5305. fi
  5306. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5307. if test -n "$ac_ct_STRIP"; then
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5309. $as_echo "$ac_ct_STRIP" >&6; }
  5310. else
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5312. $as_echo "no" >&6; }
  5313. fi
  5314. if test "x$ac_ct_STRIP" = x; then
  5315. STRIP=":"
  5316. else
  5317. case $cross_compiling:$ac_tool_warned in
  5318. yes:)
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5320. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5321. ac_tool_warned=yes ;;
  5322. esac
  5323. STRIP=$ac_ct_STRIP
  5324. fi
  5325. else
  5326. STRIP="$ac_cv_prog_STRIP"
  5327. fi
  5328. test -z "$STRIP" && STRIP=:
  5329. if test -n "$ac_tool_prefix"; then
  5330. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5331. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5333. $as_echo_n "checking for $ac_word... " >&6; }
  5334. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. if test -n "$RANLIB"; then
  5338. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5339. else
  5340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5341. for as_dir in $PATH
  5342. do
  5343. IFS=$as_save_IFS
  5344. test -z "$as_dir" && as_dir=.
  5345. for ac_exec_ext in '' $ac_executable_extensions; do
  5346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5347. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5349. break 2
  5350. fi
  5351. done
  5352. done
  5353. IFS=$as_save_IFS
  5354. fi
  5355. fi
  5356. RANLIB=$ac_cv_prog_RANLIB
  5357. if test -n "$RANLIB"; then
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5359. $as_echo "$RANLIB" >&6; }
  5360. else
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5362. $as_echo "no" >&6; }
  5363. fi
  5364. fi
  5365. if test -z "$ac_cv_prog_RANLIB"; then
  5366. ac_ct_RANLIB=$RANLIB
  5367. # Extract the first word of "ranlib", so it can be a program name with args.
  5368. set dummy ranlib; ac_word=$2
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5370. $as_echo_n "checking for $ac_word... " >&6; }
  5371. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. if test -n "$ac_ct_RANLIB"; then
  5375. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5376. else
  5377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5378. for as_dir in $PATH
  5379. do
  5380. IFS=$as_save_IFS
  5381. test -z "$as_dir" && as_dir=.
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5384. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. IFS=$as_save_IFS
  5391. fi
  5392. fi
  5393. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5394. if test -n "$ac_ct_RANLIB"; then
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5396. $as_echo "$ac_ct_RANLIB" >&6; }
  5397. else
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5399. $as_echo "no" >&6; }
  5400. fi
  5401. if test "x$ac_ct_RANLIB" = x; then
  5402. RANLIB=":"
  5403. else
  5404. case $cross_compiling:$ac_tool_warned in
  5405. yes:)
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5408. ac_tool_warned=yes ;;
  5409. esac
  5410. RANLIB=$ac_ct_RANLIB
  5411. fi
  5412. else
  5413. RANLIB="$ac_cv_prog_RANLIB"
  5414. fi
  5415. test -z "$RANLIB" && RANLIB=:
  5416. # Determine commands to create old-style static archives.
  5417. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5418. old_postinstall_cmds='chmod 644 $oldlib'
  5419. old_postuninstall_cmds=
  5420. if test -n "$RANLIB"; then
  5421. case $host_os in
  5422. openbsd*)
  5423. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5424. ;;
  5425. *)
  5426. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5427. ;;
  5428. esac
  5429. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5430. fi
  5431. # If no C compiler was specified, use CC.
  5432. LTCC=${LTCC-"$CC"}
  5433. # If no C compiler flags were specified, use CFLAGS.
  5434. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5435. # Allow CC to be a program name with arguments.
  5436. compiler=$CC
  5437. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5439. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5440. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. # These are sane defaults that work on at least a few old systems.
  5444. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5445. # Character class describing NM global symbol codes.
  5446. symcode='[BCDEGRST]'
  5447. # Regexp to match symbols that can be accessed directly from C.
  5448. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5449. # Define system-specific variables.
  5450. case $host_os in
  5451. aix*)
  5452. symcode='[BCDT]'
  5453. ;;
  5454. cygwin* | mingw* | pw32* | cegcc*)
  5455. symcode='[ABCDGISTW]'
  5456. ;;
  5457. hpux*)
  5458. if test "$host_cpu" = ia64; then
  5459. symcode='[ABCDEGRST]'
  5460. fi
  5461. ;;
  5462. irix* | nonstopux*)
  5463. symcode='[BCDEGRST]'
  5464. ;;
  5465. osf*)
  5466. symcode='[BCDEGQRST]'
  5467. ;;
  5468. solaris*)
  5469. symcode='[BDRT]'
  5470. ;;
  5471. sco3.2v5*)
  5472. symcode='[DT]'
  5473. ;;
  5474. sysv4.2uw2*)
  5475. symcode='[DT]'
  5476. ;;
  5477. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5478. symcode='[ABDT]'
  5479. ;;
  5480. sysv4)
  5481. symcode='[DFNSTU]'
  5482. ;;
  5483. esac
  5484. # If we're using GNU nm, then use its standard symbol codes.
  5485. case `$NM -V 2>&1` in
  5486. *GNU* | *'with BFD'*)
  5487. symcode='[ABCDGIRSTW]' ;;
  5488. esac
  5489. # Transform an extracted symbol line into a proper C declaration.
  5490. # Some systems (esp. on ia64) link data and code symbols differently,
  5491. # so use this general approach.
  5492. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5493. # Transform an extracted symbol line into symbol name and symbol address
  5494. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5495. 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'"
  5496. # Handle CRLF in mingw tool chain
  5497. opt_cr=
  5498. case $build_os in
  5499. mingw*)
  5500. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5501. ;;
  5502. esac
  5503. # Try without a prefix underscore, then with it.
  5504. for ac_symprfx in "" "_"; do
  5505. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5506. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5507. # Write the raw and C identifiers.
  5508. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5509. # Fake it for dumpbin and say T for any non-static function
  5510. # and D for any global variable.
  5511. # Also find C++ and __fastcall symbols from MSVC++,
  5512. # which start with @ or ?.
  5513. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5514. " {last_section=section; section=\$ 3};"\
  5515. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5516. " \$ 0!~/External *\|/{next};"\
  5517. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5518. " {if(hide[section]) next};"\
  5519. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5520. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5521. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5522. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5523. " ' prfx=^$ac_symprfx"
  5524. else
  5525. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5526. fi
  5527. # Check to see that the pipe works correctly.
  5528. pipe_works=no
  5529. rm -f conftest*
  5530. cat > conftest.$ac_ext <<_LT_EOF
  5531. #ifdef __cplusplus
  5532. extern "C" {
  5533. #endif
  5534. char nm_test_var;
  5535. void nm_test_func(void);
  5536. void nm_test_func(void){}
  5537. #ifdef __cplusplus
  5538. }
  5539. #endif
  5540. int main(){nm_test_var='a';nm_test_func();return(0);}
  5541. _LT_EOF
  5542. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5543. (eval $ac_compile) 2>&5
  5544. ac_status=$?
  5545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5546. test $ac_status = 0; }; then
  5547. # Now try to grab the symbols.
  5548. nlist=conftest.nm
  5549. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5550. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5551. ac_status=$?
  5552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5553. test $ac_status = 0; } && test -s "$nlist"; then
  5554. # Try sorting and uniquifying the output.
  5555. if sort "$nlist" | uniq > "$nlist"T; then
  5556. mv -f "$nlist"T "$nlist"
  5557. else
  5558. rm -f "$nlist"T
  5559. fi
  5560. # Make sure that we snagged all the symbols we need.
  5561. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5562. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5563. cat <<_LT_EOF > conftest.$ac_ext
  5564. #ifdef __cplusplus
  5565. extern "C" {
  5566. #endif
  5567. _LT_EOF
  5568. # Now generate the symbol file.
  5569. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5570. cat <<_LT_EOF >> conftest.$ac_ext
  5571. /* The mapping between symbol names and symbols. */
  5572. const struct {
  5573. const char *name;
  5574. void *address;
  5575. }
  5576. lt__PROGRAM__LTX_preloaded_symbols[] =
  5577. {
  5578. { "@PROGRAM@", (void *) 0 },
  5579. _LT_EOF
  5580. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5581. cat <<\_LT_EOF >> conftest.$ac_ext
  5582. {0, (void *) 0}
  5583. };
  5584. /* This works around a problem in FreeBSD linker */
  5585. #ifdef FREEBSD_WORKAROUND
  5586. static const void *lt_preloaded_setup() {
  5587. return lt__PROGRAM__LTX_preloaded_symbols;
  5588. }
  5589. #endif
  5590. #ifdef __cplusplus
  5591. }
  5592. #endif
  5593. _LT_EOF
  5594. # Now try linking the two files.
  5595. mv conftest.$ac_objext conftstm.$ac_objext
  5596. lt_save_LIBS="$LIBS"
  5597. lt_save_CFLAGS="$CFLAGS"
  5598. LIBS="conftstm.$ac_objext"
  5599. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5600. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5601. (eval $ac_link) 2>&5
  5602. ac_status=$?
  5603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5604. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5605. pipe_works=yes
  5606. fi
  5607. LIBS="$lt_save_LIBS"
  5608. CFLAGS="$lt_save_CFLAGS"
  5609. else
  5610. echo "cannot find nm_test_func in $nlist" >&5
  5611. fi
  5612. else
  5613. echo "cannot find nm_test_var in $nlist" >&5
  5614. fi
  5615. else
  5616. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5617. fi
  5618. else
  5619. echo "$progname: failed program was:" >&5
  5620. cat conftest.$ac_ext >&5
  5621. fi
  5622. rm -rf conftest* conftst*
  5623. # Do not use the global_symbol_pipe unless it works.
  5624. if test "$pipe_works" = yes; then
  5625. break
  5626. else
  5627. lt_cv_sys_global_symbol_pipe=
  5628. fi
  5629. done
  5630. fi
  5631. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5632. lt_cv_sys_global_symbol_to_cdecl=
  5633. fi
  5634. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5636. $as_echo "failed" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5639. $as_echo "ok" >&6; }
  5640. fi
  5641. # Check whether --enable-libtool-lock was given.
  5642. if test "${enable_libtool_lock+set}" = set; then :
  5643. enableval=$enable_libtool_lock;
  5644. fi
  5645. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5646. # Some flags need to be propagated to the compiler or linker for good
  5647. # libtool support.
  5648. case $host in
  5649. ia64-*-hpux*)
  5650. # Find out which ABI we are using.
  5651. echo 'int i;' > conftest.$ac_ext
  5652. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5653. (eval $ac_compile) 2>&5
  5654. ac_status=$?
  5655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5656. test $ac_status = 0; }; then
  5657. case `/usr/bin/file conftest.$ac_objext` in
  5658. *ELF-32*)
  5659. HPUX_IA64_MODE="32"
  5660. ;;
  5661. *ELF-64*)
  5662. HPUX_IA64_MODE="64"
  5663. ;;
  5664. esac
  5665. fi
  5666. rm -rf conftest*
  5667. ;;
  5668. *-*-irix6*)
  5669. # Find out which ABI we are using.
  5670. echo '#line 6409 "configure"' > conftest.$ac_ext
  5671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5672. (eval $ac_compile) 2>&5
  5673. ac_status=$?
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5675. test $ac_status = 0; }; then
  5676. if test "$lt_cv_prog_gnu_ld" = yes; then
  5677. case `/usr/bin/file conftest.$ac_objext` in
  5678. *32-bit*)
  5679. LD="${LD-ld} -melf32bsmip"
  5680. ;;
  5681. *N32*)
  5682. LD="${LD-ld} -melf32bmipn32"
  5683. ;;
  5684. *64-bit*)
  5685. LD="${LD-ld} -melf64bmip"
  5686. ;;
  5687. esac
  5688. else
  5689. case `/usr/bin/file conftest.$ac_objext` in
  5690. *32-bit*)
  5691. LD="${LD-ld} -32"
  5692. ;;
  5693. *N32*)
  5694. LD="${LD-ld} -n32"
  5695. ;;
  5696. *64-bit*)
  5697. LD="${LD-ld} -64"
  5698. ;;
  5699. esac
  5700. fi
  5701. fi
  5702. rm -rf conftest*
  5703. ;;
  5704. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5705. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5706. # Find out which ABI we are using.
  5707. echo 'int i;' > conftest.$ac_ext
  5708. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5709. (eval $ac_compile) 2>&5
  5710. ac_status=$?
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5712. test $ac_status = 0; }; then
  5713. case `/usr/bin/file conftest.o` in
  5714. *32-bit*)
  5715. case $host in
  5716. x86_64-*kfreebsd*-gnu)
  5717. LD="${LD-ld} -m elf_i386_fbsd"
  5718. ;;
  5719. x86_64-*linux*)
  5720. LD="${LD-ld} -m elf_i386"
  5721. ;;
  5722. ppc64-*linux*|powerpc64-*linux*)
  5723. LD="${LD-ld} -m elf32ppclinux"
  5724. ;;
  5725. s390x-*linux*)
  5726. LD="${LD-ld} -m elf_s390"
  5727. ;;
  5728. sparc64-*linux*)
  5729. LD="${LD-ld} -m elf32_sparc"
  5730. ;;
  5731. esac
  5732. ;;
  5733. *64-bit*)
  5734. case $host in
  5735. x86_64-*kfreebsd*-gnu)
  5736. LD="${LD-ld} -m elf_x86_64_fbsd"
  5737. ;;
  5738. x86_64-*linux*)
  5739. LD="${LD-ld} -m elf_x86_64"
  5740. ;;
  5741. ppc*-*linux*|powerpc*-*linux*)
  5742. LD="${LD-ld} -m elf64ppc"
  5743. ;;
  5744. s390*-*linux*|s390*-*tpf*)
  5745. LD="${LD-ld} -m elf64_s390"
  5746. ;;
  5747. sparc*-*linux*)
  5748. LD="${LD-ld} -m elf64_sparc"
  5749. ;;
  5750. esac
  5751. ;;
  5752. esac
  5753. fi
  5754. rm -rf conftest*
  5755. ;;
  5756. *-*-sco3.2v5*)
  5757. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5758. SAVE_CFLAGS="$CFLAGS"
  5759. CFLAGS="$CFLAGS -belf"
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5761. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5762. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. ac_ext=c
  5766. ac_cpp='$CPP $CPPFLAGS'
  5767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5771. /* end confdefs.h. */
  5772. int
  5773. main ()
  5774. {
  5775. ;
  5776. return 0;
  5777. }
  5778. _ACEOF
  5779. if ac_fn_c_try_link "$LINENO"; then :
  5780. lt_cv_cc_needs_belf=yes
  5781. else
  5782. lt_cv_cc_needs_belf=no
  5783. fi
  5784. rm -f core conftest.err conftest.$ac_objext \
  5785. conftest$ac_exeext conftest.$ac_ext
  5786. ac_ext=c
  5787. ac_cpp='$CPP $CPPFLAGS'
  5788. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5789. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5790. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5791. fi
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5793. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5794. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5795. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5796. CFLAGS="$SAVE_CFLAGS"
  5797. fi
  5798. ;;
  5799. sparc*-*solaris*)
  5800. # Find out which ABI we are using.
  5801. echo 'int i;' > conftest.$ac_ext
  5802. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5803. (eval $ac_compile) 2>&5
  5804. ac_status=$?
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5806. test $ac_status = 0; }; then
  5807. case `/usr/bin/file conftest.o` in
  5808. *64-bit*)
  5809. case $lt_cv_prog_gnu_ld in
  5810. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5811. *)
  5812. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5813. LD="${LD-ld} -64"
  5814. fi
  5815. ;;
  5816. esac
  5817. ;;
  5818. esac
  5819. fi
  5820. rm -rf conftest*
  5821. ;;
  5822. esac
  5823. need_locks="$enable_libtool_lock"
  5824. case $host_os in
  5825. rhapsody* | darwin*)
  5826. if test -n "$ac_tool_prefix"; then
  5827. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5828. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$DSYMUTIL"; then
  5835. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5844. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5854. if test -n "$DSYMUTIL"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5856. $as_echo "$DSYMUTIL" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. fi
  5862. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5863. ac_ct_DSYMUTIL=$DSYMUTIL
  5864. # Extract the first word of "dsymutil", so it can be a program name with args.
  5865. set dummy dsymutil; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$ac_ct_DSYMUTIL"; then
  5872. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5881. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5891. if test -n "$ac_ct_DSYMUTIL"; then
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5893. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5894. else
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. if test "x$ac_ct_DSYMUTIL" = x; then
  5899. DSYMUTIL=":"
  5900. else
  5901. case $cross_compiling:$ac_tool_warned in
  5902. yes:)
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5904. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5905. ac_tool_warned=yes ;;
  5906. esac
  5907. DSYMUTIL=$ac_ct_DSYMUTIL
  5908. fi
  5909. else
  5910. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5911. fi
  5912. if test -n "$ac_tool_prefix"; then
  5913. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5914. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$NMEDIT"; then
  5921. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5930. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. NMEDIT=$ac_cv_prog_NMEDIT
  5940. if test -n "$NMEDIT"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5942. $as_echo "$NMEDIT" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. fi
  5948. if test -z "$ac_cv_prog_NMEDIT"; then
  5949. ac_ct_NMEDIT=$NMEDIT
  5950. # Extract the first word of "nmedit", so it can be a program name with args.
  5951. set dummy nmedit; ac_word=$2
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$ac_ct_NMEDIT"; then
  5958. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5967. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5977. if test -n "$ac_ct_NMEDIT"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5979. $as_echo "$ac_ct_NMEDIT" >&6; }
  5980. else
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. if test "x$ac_ct_NMEDIT" = x; then
  5985. NMEDIT=":"
  5986. else
  5987. case $cross_compiling:$ac_tool_warned in
  5988. yes:)
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5991. ac_tool_warned=yes ;;
  5992. esac
  5993. NMEDIT=$ac_ct_NMEDIT
  5994. fi
  5995. else
  5996. NMEDIT="$ac_cv_prog_NMEDIT"
  5997. fi
  5998. if test -n "$ac_tool_prefix"; then
  5999. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6000. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6002. $as_echo_n "checking for $ac_word... " >&6; }
  6003. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. if test -n "$LIPO"; then
  6007. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6008. else
  6009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6010. for as_dir in $PATH
  6011. do
  6012. IFS=$as_save_IFS
  6013. test -z "$as_dir" && as_dir=.
  6014. for ac_exec_ext in '' $ac_executable_extensions; do
  6015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6016. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6018. break 2
  6019. fi
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. fi
  6024. fi
  6025. LIPO=$ac_cv_prog_LIPO
  6026. if test -n "$LIPO"; then
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6028. $as_echo "$LIPO" >&6; }
  6029. else
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6031. $as_echo "no" >&6; }
  6032. fi
  6033. fi
  6034. if test -z "$ac_cv_prog_LIPO"; then
  6035. ac_ct_LIPO=$LIPO
  6036. # Extract the first word of "lipo", so it can be a program name with args.
  6037. set dummy lipo; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$ac_ct_LIPO"; then
  6044. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_ac_ct_LIPO="lipo"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6063. if test -n "$ac_ct_LIPO"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6065. $as_echo "$ac_ct_LIPO" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. if test "x$ac_ct_LIPO" = x; then
  6071. LIPO=":"
  6072. else
  6073. case $cross_compiling:$ac_tool_warned in
  6074. yes:)
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6077. ac_tool_warned=yes ;;
  6078. esac
  6079. LIPO=$ac_ct_LIPO
  6080. fi
  6081. else
  6082. LIPO="$ac_cv_prog_LIPO"
  6083. fi
  6084. if test -n "$ac_tool_prefix"; then
  6085. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6086. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6088. $as_echo_n "checking for $ac_word... " >&6; }
  6089. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. if test -n "$OTOOL"; then
  6093. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6094. else
  6095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6096. for as_dir in $PATH
  6097. do
  6098. IFS=$as_save_IFS
  6099. test -z "$as_dir" && as_dir=.
  6100. for ac_exec_ext in '' $ac_executable_extensions; do
  6101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6102. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6104. break 2
  6105. fi
  6106. done
  6107. done
  6108. IFS=$as_save_IFS
  6109. fi
  6110. fi
  6111. OTOOL=$ac_cv_prog_OTOOL
  6112. if test -n "$OTOOL"; then
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6114. $as_echo "$OTOOL" >&6; }
  6115. else
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6117. $as_echo "no" >&6; }
  6118. fi
  6119. fi
  6120. if test -z "$ac_cv_prog_OTOOL"; then
  6121. ac_ct_OTOOL=$OTOOL
  6122. # Extract the first word of "otool", so it can be a program name with args.
  6123. set dummy otool; ac_word=$2
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6125. $as_echo_n "checking for $ac_word... " >&6; }
  6126. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. if test -n "$ac_ct_OTOOL"; then
  6130. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6131. else
  6132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6133. for as_dir in $PATH
  6134. do
  6135. IFS=$as_save_IFS
  6136. test -z "$as_dir" && as_dir=.
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6139. ac_cv_prog_ac_ct_OTOOL="otool"
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6141. break 2
  6142. fi
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. fi
  6147. fi
  6148. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6149. if test -n "$ac_ct_OTOOL"; then
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6151. $as_echo "$ac_ct_OTOOL" >&6; }
  6152. else
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6154. $as_echo "no" >&6; }
  6155. fi
  6156. if test "x$ac_ct_OTOOL" = x; then
  6157. OTOOL=":"
  6158. else
  6159. case $cross_compiling:$ac_tool_warned in
  6160. yes:)
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6163. ac_tool_warned=yes ;;
  6164. esac
  6165. OTOOL=$ac_ct_OTOOL
  6166. fi
  6167. else
  6168. OTOOL="$ac_cv_prog_OTOOL"
  6169. fi
  6170. if test -n "$ac_tool_prefix"; then
  6171. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6172. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. if test -n "$OTOOL64"; then
  6179. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6180. else
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6188. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. fi
  6196. fi
  6197. OTOOL64=$ac_cv_prog_OTOOL64
  6198. if test -n "$OTOOL64"; then
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6200. $as_echo "$OTOOL64" >&6; }
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6203. $as_echo "no" >&6; }
  6204. fi
  6205. fi
  6206. if test -z "$ac_cv_prog_OTOOL64"; then
  6207. ac_ct_OTOOL64=$OTOOL64
  6208. # Extract the first word of "otool64", so it can be a program name with args.
  6209. set dummy otool64; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$ac_ct_OTOOL64"; then
  6216. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6225. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6235. if test -n "$ac_ct_OTOOL64"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6237. $as_echo "$ac_ct_OTOOL64" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. if test "x$ac_ct_OTOOL64" = x; then
  6243. OTOOL64=":"
  6244. else
  6245. case $cross_compiling:$ac_tool_warned in
  6246. yes:)
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6249. ac_tool_warned=yes ;;
  6250. esac
  6251. OTOOL64=$ac_ct_OTOOL64
  6252. fi
  6253. else
  6254. OTOOL64="$ac_cv_prog_OTOOL64"
  6255. fi
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6257. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6258. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. lt_cv_apple_cc_single_mod=no
  6262. if test -z "${LT_MULTI_MODULE}"; then
  6263. # By default we will add the -single_module flag. You can override
  6264. # by either setting the environment variable LT_MULTI_MODULE
  6265. # non-empty at configure time, or by adding -multi_module to the
  6266. # link flags.
  6267. rm -rf libconftest.dylib*
  6268. echo "int foo(void){return 1;}" > conftest.c
  6269. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6270. -dynamiclib -Wl,-single_module conftest.c" >&5
  6271. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6272. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6273. _lt_result=$?
  6274. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6275. lt_cv_apple_cc_single_mod=yes
  6276. else
  6277. cat conftest.err >&5
  6278. fi
  6279. rm -rf libconftest.dylib*
  6280. rm -f conftest.*
  6281. fi
  6282. fi
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6284. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6286. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6287. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. lt_cv_ld_exported_symbols_list=no
  6291. save_LDFLAGS=$LDFLAGS
  6292. echo "_main" > conftest.sym
  6293. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6295. /* end confdefs.h. */
  6296. int
  6297. main ()
  6298. {
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. if ac_fn_c_try_link "$LINENO"; then :
  6304. lt_cv_ld_exported_symbols_list=yes
  6305. else
  6306. lt_cv_ld_exported_symbols_list=no
  6307. fi
  6308. rm -f core conftest.err conftest.$ac_objext \
  6309. conftest$ac_exeext conftest.$ac_ext
  6310. LDFLAGS="$save_LDFLAGS"
  6311. fi
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6313. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6314. case $host_os in
  6315. rhapsody* | darwin1.[012])
  6316. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6317. darwin1.*)
  6318. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6319. darwin*) # darwin 5.x on
  6320. # if running on 10.5 or later, the deployment target defaults
  6321. # to the OS version, if on x86, and 10.4, the deployment
  6322. # target defaults to 10.4. Don't you love it?
  6323. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6324. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6325. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6326. 10.[012]*)
  6327. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6328. 10.*)
  6329. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6330. esac
  6331. ;;
  6332. esac
  6333. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6334. _lt_dar_single_mod='$single_module'
  6335. fi
  6336. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6337. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6338. else
  6339. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6340. fi
  6341. if test "$DSYMUTIL" != ":"; then
  6342. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6343. else
  6344. _lt_dsymutil=
  6345. fi
  6346. ;;
  6347. esac
  6348. ac_ext=c
  6349. ac_cpp='$CPP $CPPFLAGS'
  6350. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6351. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6352. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6354. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6355. # On Suns, sometimes $CPP names a directory.
  6356. if test -n "$CPP" && test -d "$CPP"; then
  6357. CPP=
  6358. fi
  6359. if test -z "$CPP"; then
  6360. if test "${ac_cv_prog_CPP+set}" = set; then :
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. # Double quotes because CPP needs to be expanded
  6364. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6365. do
  6366. ac_preproc_ok=false
  6367. for ac_c_preproc_warn_flag in '' yes
  6368. do
  6369. # Use a header file that comes with gcc, so configuring glibc
  6370. # with a fresh cross-compiler works.
  6371. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6372. # <limits.h> exists even on freestanding compilers.
  6373. # On the NeXT, cc -E runs the code through the compiler's parser,
  6374. # not just through cpp. "Syntax error" is here to catch this case.
  6375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6376. /* end confdefs.h. */
  6377. #ifdef __STDC__
  6378. # include <limits.h>
  6379. #else
  6380. # include <assert.h>
  6381. #endif
  6382. Syntax error
  6383. _ACEOF
  6384. if ac_fn_c_try_cpp "$LINENO"; then :
  6385. else
  6386. # Broken: fails on valid input.
  6387. continue
  6388. fi
  6389. rm -f conftest.err conftest.$ac_ext
  6390. # OK, works on sane cases. Now check whether nonexistent headers
  6391. # can be detected and how.
  6392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6393. /* end confdefs.h. */
  6394. #include <ac_nonexistent.h>
  6395. _ACEOF
  6396. if ac_fn_c_try_cpp "$LINENO"; then :
  6397. # Broken: success on invalid input.
  6398. continue
  6399. else
  6400. # Passes both tests.
  6401. ac_preproc_ok=:
  6402. break
  6403. fi
  6404. rm -f conftest.err conftest.$ac_ext
  6405. done
  6406. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6407. rm -f conftest.err conftest.$ac_ext
  6408. if $ac_preproc_ok; then :
  6409. break
  6410. fi
  6411. done
  6412. ac_cv_prog_CPP=$CPP
  6413. fi
  6414. CPP=$ac_cv_prog_CPP
  6415. else
  6416. ac_cv_prog_CPP=$CPP
  6417. fi
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6419. $as_echo "$CPP" >&6; }
  6420. ac_preproc_ok=false
  6421. for ac_c_preproc_warn_flag in '' yes
  6422. do
  6423. # Use a header file that comes with gcc, so configuring glibc
  6424. # with a fresh cross-compiler works.
  6425. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6426. # <limits.h> exists even on freestanding compilers.
  6427. # On the NeXT, cc -E runs the code through the compiler's parser,
  6428. # not just through cpp. "Syntax error" is here to catch this case.
  6429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6430. /* end confdefs.h. */
  6431. #ifdef __STDC__
  6432. # include <limits.h>
  6433. #else
  6434. # include <assert.h>
  6435. #endif
  6436. Syntax error
  6437. _ACEOF
  6438. if ac_fn_c_try_cpp "$LINENO"; then :
  6439. else
  6440. # Broken: fails on valid input.
  6441. continue
  6442. fi
  6443. rm -f conftest.err conftest.$ac_ext
  6444. # OK, works on sane cases. Now check whether nonexistent headers
  6445. # can be detected and how.
  6446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6447. /* end confdefs.h. */
  6448. #include <ac_nonexistent.h>
  6449. _ACEOF
  6450. if ac_fn_c_try_cpp "$LINENO"; then :
  6451. # Broken: success on invalid input.
  6452. continue
  6453. else
  6454. # Passes both tests.
  6455. ac_preproc_ok=:
  6456. break
  6457. fi
  6458. rm -f conftest.err conftest.$ac_ext
  6459. done
  6460. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6461. rm -f conftest.err conftest.$ac_ext
  6462. if $ac_preproc_ok; then :
  6463. else
  6464. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6466. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6467. See \`config.log' for more details." "$LINENO" 5; }
  6468. fi
  6469. ac_ext=c
  6470. ac_cpp='$CPP $CPPFLAGS'
  6471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6475. $as_echo_n "checking for ANSI C header files... " >&6; }
  6476. if test "${ac_cv_header_stdc+set}" = set; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6480. /* end confdefs.h. */
  6481. #include <stdlib.h>
  6482. #include <stdarg.h>
  6483. #include <string.h>
  6484. #include <float.h>
  6485. int
  6486. main ()
  6487. {
  6488. ;
  6489. return 0;
  6490. }
  6491. _ACEOF
  6492. if ac_fn_c_try_compile "$LINENO"; then :
  6493. ac_cv_header_stdc=yes
  6494. else
  6495. ac_cv_header_stdc=no
  6496. fi
  6497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6498. if test $ac_cv_header_stdc = yes; then
  6499. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. #include <string.h>
  6503. _ACEOF
  6504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6505. $EGREP "memchr" >/dev/null 2>&1; then :
  6506. else
  6507. ac_cv_header_stdc=no
  6508. fi
  6509. rm -f conftest*
  6510. fi
  6511. if test $ac_cv_header_stdc = yes; then
  6512. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6514. /* end confdefs.h. */
  6515. #include <stdlib.h>
  6516. _ACEOF
  6517. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6518. $EGREP "free" >/dev/null 2>&1; then :
  6519. else
  6520. ac_cv_header_stdc=no
  6521. fi
  6522. rm -f conftest*
  6523. fi
  6524. if test $ac_cv_header_stdc = yes; then
  6525. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6526. if test "$cross_compiling" = yes; then :
  6527. :
  6528. else
  6529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6530. /* end confdefs.h. */
  6531. #include <ctype.h>
  6532. #include <stdlib.h>
  6533. #if ((' ' & 0x0FF) == 0x020)
  6534. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6535. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6536. #else
  6537. # define ISLOWER(c) \
  6538. (('a' <= (c) && (c) <= 'i') \
  6539. || ('j' <= (c) && (c) <= 'r') \
  6540. || ('s' <= (c) && (c) <= 'z'))
  6541. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6542. #endif
  6543. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6544. int
  6545. main ()
  6546. {
  6547. int i;
  6548. for (i = 0; i < 256; i++)
  6549. if (XOR (islower (i), ISLOWER (i))
  6550. || toupper (i) != TOUPPER (i))
  6551. return 2;
  6552. return 0;
  6553. }
  6554. _ACEOF
  6555. if ac_fn_c_try_run "$LINENO"; then :
  6556. else
  6557. ac_cv_header_stdc=no
  6558. fi
  6559. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6560. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6561. fi
  6562. fi
  6563. fi
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6565. $as_echo "$ac_cv_header_stdc" >&6; }
  6566. if test $ac_cv_header_stdc = yes; then
  6567. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6568. fi
  6569. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6570. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6571. inttypes.h stdint.h unistd.h
  6572. do :
  6573. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6574. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6575. "
  6576. eval as_val=\$$as_ac_Header
  6577. if test "x$as_val" = x""yes; then :
  6578. cat >>confdefs.h <<_ACEOF
  6579. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6580. _ACEOF
  6581. fi
  6582. done
  6583. for ac_header in dlfcn.h
  6584. do :
  6585. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6586. "
  6587. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6588. cat >>confdefs.h <<_ACEOF
  6589. #define HAVE_DLFCN_H 1
  6590. _ACEOF
  6591. fi
  6592. done
  6593. ac_ext=cpp
  6594. ac_cpp='$CXXCPP $CPPFLAGS'
  6595. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6596. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6597. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6598. if test -z "$CXX"; then
  6599. if test -n "$CCC"; then
  6600. CXX=$CCC
  6601. else
  6602. if test -n "$ac_tool_prefix"; then
  6603. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6604. do
  6605. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6606. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6608. $as_echo_n "checking for $ac_word... " >&6; }
  6609. if test "${ac_cv_prog_CXX+set}" = set; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. if test -n "$CXX"; then
  6613. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. test -z "$as_dir" && as_dir=.
  6620. for ac_exec_ext in '' $ac_executable_extensions; do
  6621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6622. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6624. break 2
  6625. fi
  6626. done
  6627. done
  6628. IFS=$as_save_IFS
  6629. fi
  6630. fi
  6631. CXX=$ac_cv_prog_CXX
  6632. if test -n "$CXX"; then
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6634. $as_echo "$CXX" >&6; }
  6635. else
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6637. $as_echo "no" >&6; }
  6638. fi
  6639. test -n "$CXX" && break
  6640. done
  6641. fi
  6642. if test -z "$CXX"; then
  6643. ac_ct_CXX=$CXX
  6644. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6645. do
  6646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6647. set dummy $ac_prog; ac_word=$2
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6649. $as_echo_n "checking for $ac_word... " >&6; }
  6650. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6651. $as_echo_n "(cached) " >&6
  6652. else
  6653. if test -n "$ac_ct_CXX"; then
  6654. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6655. else
  6656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6657. for as_dir in $PATH
  6658. do
  6659. IFS=$as_save_IFS
  6660. test -z "$as_dir" && as_dir=.
  6661. for ac_exec_ext in '' $ac_executable_extensions; do
  6662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6663. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6665. break 2
  6666. fi
  6667. done
  6668. done
  6669. IFS=$as_save_IFS
  6670. fi
  6671. fi
  6672. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6673. if test -n "$ac_ct_CXX"; then
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6675. $as_echo "$ac_ct_CXX" >&6; }
  6676. else
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6678. $as_echo "no" >&6; }
  6679. fi
  6680. test -n "$ac_ct_CXX" && break
  6681. done
  6682. if test "x$ac_ct_CXX" = x; then
  6683. CXX="g++"
  6684. else
  6685. case $cross_compiling:$ac_tool_warned in
  6686. yes:)
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6689. ac_tool_warned=yes ;;
  6690. esac
  6691. CXX=$ac_ct_CXX
  6692. fi
  6693. fi
  6694. fi
  6695. fi
  6696. # Provide some information about the compiler.
  6697. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6698. set X $ac_compile
  6699. ac_compiler=$2
  6700. for ac_option in --version -v -V -qversion; do
  6701. { { ac_try="$ac_compiler $ac_option >&5"
  6702. case "(($ac_try" in
  6703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6704. *) ac_try_echo=$ac_try;;
  6705. esac
  6706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6707. $as_echo "$ac_try_echo"; } >&5
  6708. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6709. ac_status=$?
  6710. if test -s conftest.err; then
  6711. sed '10a\
  6712. ... rest of stderr output deleted ...
  6713. 10q' conftest.err >conftest.er1
  6714. cat conftest.er1 >&5
  6715. fi
  6716. rm -f conftest.er1 conftest.err
  6717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6718. test $ac_status = 0; }
  6719. done
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6721. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6722. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6723. $as_echo_n "(cached) " >&6
  6724. else
  6725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h. */
  6727. int
  6728. main ()
  6729. {
  6730. #ifndef __GNUC__
  6731. choke me
  6732. #endif
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_cxx_try_compile "$LINENO"; then :
  6738. ac_compiler_gnu=yes
  6739. else
  6740. ac_compiler_gnu=no
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6743. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6744. fi
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6746. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6747. if test $ac_compiler_gnu = yes; then
  6748. GXX=yes
  6749. else
  6750. GXX=
  6751. fi
  6752. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6753. ac_save_CXXFLAGS=$CXXFLAGS
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6755. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6756. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6760. ac_cxx_werror_flag=yes
  6761. ac_cv_prog_cxx_g=no
  6762. CXXFLAGS="-g"
  6763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6764. /* end confdefs.h. */
  6765. int
  6766. main ()
  6767. {
  6768. ;
  6769. return 0;
  6770. }
  6771. _ACEOF
  6772. if ac_fn_cxx_try_compile "$LINENO"; then :
  6773. ac_cv_prog_cxx_g=yes
  6774. else
  6775. CXXFLAGS=""
  6776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h. */
  6778. int
  6779. main ()
  6780. {
  6781. ;
  6782. return 0;
  6783. }
  6784. _ACEOF
  6785. if ac_fn_cxx_try_compile "$LINENO"; then :
  6786. else
  6787. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6788. CXXFLAGS="-g"
  6789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6790. /* end confdefs.h. */
  6791. int
  6792. main ()
  6793. {
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. if ac_fn_cxx_try_compile "$LINENO"; then :
  6799. ac_cv_prog_cxx_g=yes
  6800. fi
  6801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6804. fi
  6805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6806. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6807. fi
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6809. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6810. if test "$ac_test_CXXFLAGS" = set; then
  6811. CXXFLAGS=$ac_save_CXXFLAGS
  6812. elif test $ac_cv_prog_cxx_g = yes; then
  6813. if test "$GXX" = yes; then
  6814. CXXFLAGS="-g -O2"
  6815. else
  6816. CXXFLAGS="-g"
  6817. fi
  6818. else
  6819. if test "$GXX" = yes; then
  6820. CXXFLAGS="-O2"
  6821. else
  6822. CXXFLAGS=
  6823. fi
  6824. fi
  6825. ac_ext=cpp
  6826. ac_cpp='$CXXCPP $CPPFLAGS'
  6827. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6828. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6829. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6830. depcc="$CXX" am_compiler_list=
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6832. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6833. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6837. # We make a subdir and do the tests there. Otherwise we can end up
  6838. # making bogus files that we don't know about and never remove. For
  6839. # instance it was reported that on HP-UX the gcc test will end up
  6840. # making a dummy file named `D' -- because `-MD' means `put the output
  6841. # in D'.
  6842. mkdir conftest.dir
  6843. # Copy depcomp to subdir because otherwise we won't find it if we're
  6844. # using a relative directory.
  6845. cp "$am_depcomp" conftest.dir
  6846. cd conftest.dir
  6847. # We will build objects and dependencies in a subdirectory because
  6848. # it helps to detect inapplicable dependency modes. For instance
  6849. # both Tru64's cc and ICC support -MD to output dependencies as a
  6850. # side effect of compilation, but ICC will put the dependencies in
  6851. # the current directory while Tru64 will put them in the object
  6852. # directory.
  6853. mkdir sub
  6854. am_cv_CXX_dependencies_compiler_type=none
  6855. if test "$am_compiler_list" = ""; then
  6856. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6857. fi
  6858. am__universal=false
  6859. case " $depcc " in #(
  6860. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6861. esac
  6862. for depmode in $am_compiler_list; do
  6863. # Setup a source with many dependencies, because some compilers
  6864. # like to wrap large dependency lists on column 80 (with \), and
  6865. # we should not choose a depcomp mode which is confused by this.
  6866. #
  6867. # We need to recreate these files for each test, as the compiler may
  6868. # overwrite some of them when testing with obscure command lines.
  6869. # This happens at least with the AIX C compiler.
  6870. : > sub/conftest.c
  6871. for i in 1 2 3 4 5 6; do
  6872. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6873. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6874. # Solaris 8's {/usr,}/bin/sh.
  6875. touch sub/conftst$i.h
  6876. done
  6877. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6878. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6879. # mode. It turns out that the SunPro C++ compiler does not properly
  6880. # handle `-M -o', and we need to detect this. Also, some Intel
  6881. # versions had trouble with output in subdirs
  6882. am__obj=sub/conftest.${OBJEXT-o}
  6883. am__minus_obj="-o $am__obj"
  6884. case $depmode in
  6885. gcc)
  6886. # This depmode causes a compiler race in universal mode.
  6887. test "$am__universal" = false || continue
  6888. ;;
  6889. nosideeffect)
  6890. # after this tag, mechanisms are not by side-effect, so they'll
  6891. # only be used when explicitly requested
  6892. if test "x$enable_dependency_tracking" = xyes; then
  6893. continue
  6894. else
  6895. break
  6896. fi
  6897. ;;
  6898. msvisualcpp | msvcmsys)
  6899. # This compiler won't grok `-c -o', but also, the minuso test has
  6900. # not run yet. These depmodes are late enough in the game, and
  6901. # so weak that their functioning should not be impacted.
  6902. am__obj=conftest.${OBJEXT-o}
  6903. am__minus_obj=
  6904. ;;
  6905. none) break ;;
  6906. esac
  6907. if depmode=$depmode \
  6908. source=sub/conftest.c object=$am__obj \
  6909. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6910. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6911. >/dev/null 2>conftest.err &&
  6912. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6913. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6914. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6915. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6916. # icc doesn't choke on unknown options, it will just issue warnings
  6917. # or remarks (even with -Werror). So we grep stderr for any message
  6918. # that says an option was ignored or not supported.
  6919. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6920. # icc: Command line warning: ignoring option '-M'; no argument required
  6921. # The diagnosis changed in icc 8.0:
  6922. # icc: Command line remark: option '-MP' not supported
  6923. if (grep 'ignoring option' conftest.err ||
  6924. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6925. am_cv_CXX_dependencies_compiler_type=$depmode
  6926. break
  6927. fi
  6928. fi
  6929. done
  6930. cd ..
  6931. rm -rf conftest.dir
  6932. else
  6933. am_cv_CXX_dependencies_compiler_type=none
  6934. fi
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6937. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6938. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6939. if
  6940. test "x$enable_dependency_tracking" != xno \
  6941. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6942. am__fastdepCXX_TRUE=
  6943. am__fastdepCXX_FALSE='#'
  6944. else
  6945. am__fastdepCXX_TRUE='#'
  6946. am__fastdepCXX_FALSE=
  6947. fi
  6948. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6949. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6950. (test "X$CXX" != "Xg++"))) ; then
  6951. ac_ext=cpp
  6952. ac_cpp='$CXXCPP $CPPFLAGS'
  6953. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6954. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6955. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6957. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6958. if test -z "$CXXCPP"; then
  6959. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6960. $as_echo_n "(cached) " >&6
  6961. else
  6962. # Double quotes because CXXCPP needs to be expanded
  6963. for CXXCPP in "$CXX -E" "/lib/cpp"
  6964. do
  6965. ac_preproc_ok=false
  6966. for ac_cxx_preproc_warn_flag in '' yes
  6967. do
  6968. # Use a header file that comes with gcc, so configuring glibc
  6969. # with a fresh cross-compiler works.
  6970. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6971. # <limits.h> exists even on freestanding compilers.
  6972. # On the NeXT, cc -E runs the code through the compiler's parser,
  6973. # not just through cpp. "Syntax error" is here to catch this case.
  6974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6975. /* end confdefs.h. */
  6976. #ifdef __STDC__
  6977. # include <limits.h>
  6978. #else
  6979. # include <assert.h>
  6980. #endif
  6981. Syntax error
  6982. _ACEOF
  6983. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6984. else
  6985. # Broken: fails on valid input.
  6986. continue
  6987. fi
  6988. rm -f conftest.err conftest.$ac_ext
  6989. # OK, works on sane cases. Now check whether nonexistent headers
  6990. # can be detected and how.
  6991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6992. /* end confdefs.h. */
  6993. #include <ac_nonexistent.h>
  6994. _ACEOF
  6995. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6996. # Broken: success on invalid input.
  6997. continue
  6998. else
  6999. # Passes both tests.
  7000. ac_preproc_ok=:
  7001. break
  7002. fi
  7003. rm -f conftest.err conftest.$ac_ext
  7004. done
  7005. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7006. rm -f conftest.err conftest.$ac_ext
  7007. if $ac_preproc_ok; then :
  7008. break
  7009. fi
  7010. done
  7011. ac_cv_prog_CXXCPP=$CXXCPP
  7012. fi
  7013. CXXCPP=$ac_cv_prog_CXXCPP
  7014. else
  7015. ac_cv_prog_CXXCPP=$CXXCPP
  7016. fi
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7018. $as_echo "$CXXCPP" >&6; }
  7019. ac_preproc_ok=false
  7020. for ac_cxx_preproc_warn_flag in '' yes
  7021. do
  7022. # Use a header file that comes with gcc, so configuring glibc
  7023. # with a fresh cross-compiler works.
  7024. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7025. # <limits.h> exists even on freestanding compilers.
  7026. # On the NeXT, cc -E runs the code through the compiler's parser,
  7027. # not just through cpp. "Syntax error" is here to catch this case.
  7028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7029. /* end confdefs.h. */
  7030. #ifdef __STDC__
  7031. # include <limits.h>
  7032. #else
  7033. # include <assert.h>
  7034. #endif
  7035. Syntax error
  7036. _ACEOF
  7037. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7038. else
  7039. # Broken: fails on valid input.
  7040. continue
  7041. fi
  7042. rm -f conftest.err conftest.$ac_ext
  7043. # OK, works on sane cases. Now check whether nonexistent headers
  7044. # can be detected and how.
  7045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7046. /* end confdefs.h. */
  7047. #include <ac_nonexistent.h>
  7048. _ACEOF
  7049. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7050. # Broken: success on invalid input.
  7051. continue
  7052. else
  7053. # Passes both tests.
  7054. ac_preproc_ok=:
  7055. break
  7056. fi
  7057. rm -f conftest.err conftest.$ac_ext
  7058. done
  7059. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7060. rm -f conftest.err conftest.$ac_ext
  7061. if $ac_preproc_ok; then :
  7062. else
  7063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7065. _lt_caught_CXX_error=yes; }
  7066. fi
  7067. ac_ext=cpp
  7068. ac_cpp='$CXXCPP $CPPFLAGS'
  7069. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7070. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7071. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7072. else
  7073. _lt_caught_CXX_error=yes
  7074. fi
  7075. # Set options
  7076. enable_dlopen=no
  7077. enable_win32_dll=no
  7078. # Check whether --with-pic was given.
  7079. if test "${with_pic+set}" = set; then :
  7080. withval=$with_pic; pic_mode="$withval"
  7081. else
  7082. pic_mode=default
  7083. fi
  7084. test -z "$pic_mode" && pic_mode=default
  7085. # Check whether --enable-fast-install was given.
  7086. if test "${enable_fast_install+set}" = set; then :
  7087. enableval=$enable_fast_install; p=${PACKAGE-default}
  7088. case $enableval in
  7089. yes) enable_fast_install=yes ;;
  7090. no) enable_fast_install=no ;;
  7091. *)
  7092. enable_fast_install=no
  7093. # Look at the argument we got. We use all the common list separators.
  7094. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7095. for pkg in $enableval; do
  7096. IFS="$lt_save_ifs"
  7097. if test "X$pkg" = "X$p"; then
  7098. enable_fast_install=yes
  7099. fi
  7100. done
  7101. IFS="$lt_save_ifs"
  7102. ;;
  7103. esac
  7104. else
  7105. enable_fast_install=yes
  7106. fi
  7107. # This can be used to rebuild libtool when needed
  7108. LIBTOOL_DEPS="$ltmain"
  7109. # Always use our own libtool.
  7110. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7111. test -z "$LN_S" && LN_S="ln -s"
  7112. if test -n "${ZSH_VERSION+set}" ; then
  7113. setopt NO_GLOB_SUBST
  7114. fi
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7116. $as_echo_n "checking for objdir... " >&6; }
  7117. if test "${lt_cv_objdir+set}" = set; then :
  7118. $as_echo_n "(cached) " >&6
  7119. else
  7120. rm -f .libs 2>/dev/null
  7121. mkdir .libs 2>/dev/null
  7122. if test -d .libs; then
  7123. lt_cv_objdir=.libs
  7124. else
  7125. # MS-DOS does not allow filenames that begin with a dot.
  7126. lt_cv_objdir=_libs
  7127. fi
  7128. rmdir .libs 2>/dev/null
  7129. fi
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7131. $as_echo "$lt_cv_objdir" >&6; }
  7132. objdir=$lt_cv_objdir
  7133. cat >>confdefs.h <<_ACEOF
  7134. #define LT_OBJDIR "$lt_cv_objdir/"
  7135. _ACEOF
  7136. case $host_os in
  7137. aix3*)
  7138. # AIX sometimes has problems with the GCC collect2 program. For some
  7139. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7140. # vanish in a puff of smoke.
  7141. if test "X${COLLECT_NAMES+set}" != Xset; then
  7142. COLLECT_NAMES=
  7143. export COLLECT_NAMES
  7144. fi
  7145. ;;
  7146. esac
  7147. # Sed substitution that helps us do robust quoting. It backslashifies
  7148. # metacharacters that are still active within double-quoted strings.
  7149. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7150. # Same as above, but do not quote variable references.
  7151. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7152. # Sed substitution to delay expansion of an escaped shell variable in a
  7153. # double_quote_subst'ed string.
  7154. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7155. # Sed substitution to delay expansion of an escaped single quote.
  7156. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7157. # Sed substitution to avoid accidental globbing in evaled expressions
  7158. no_glob_subst='s/\*/\\\*/g'
  7159. # Global variables:
  7160. ofile=libtool
  7161. can_build_shared=yes
  7162. # All known linkers require a `.a' archive for static linking (except MSVC,
  7163. # which needs '.lib').
  7164. libext=a
  7165. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7166. old_CC="$CC"
  7167. old_CFLAGS="$CFLAGS"
  7168. # Set sane defaults for various variables
  7169. test -z "$CC" && CC=cc
  7170. test -z "$LTCC" && LTCC=$CC
  7171. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7172. test -z "$LD" && LD=ld
  7173. test -z "$ac_objext" && ac_objext=o
  7174. for cc_temp in $compiler""; do
  7175. case $cc_temp in
  7176. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7177. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7178. \-*) ;;
  7179. *) break;;
  7180. esac
  7181. done
  7182. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7183. # Only perform the check for file, if the check method requires it
  7184. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7185. case $deplibs_check_method in
  7186. file_magic*)
  7187. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7189. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7190. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. case $MAGIC_CMD in
  7194. [\\/*] | ?:[\\/]*)
  7195. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7196. ;;
  7197. *)
  7198. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7199. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7200. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7201. for ac_dir in $ac_dummy; do
  7202. IFS="$lt_save_ifs"
  7203. test -z "$ac_dir" && ac_dir=.
  7204. if test -f $ac_dir/${ac_tool_prefix}file; then
  7205. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7206. if test -n "$file_magic_test_file"; then
  7207. case $deplibs_check_method in
  7208. "file_magic "*)
  7209. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7210. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7211. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7212. $EGREP "$file_magic_regex" > /dev/null; then
  7213. :
  7214. else
  7215. cat <<_LT_EOF 1>&2
  7216. *** Warning: the command libtool uses to detect shared libraries,
  7217. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7218. *** The result is that libtool may fail to recognize shared libraries
  7219. *** as such. This will affect the creation of libtool libraries that
  7220. *** depend on shared libraries, but programs linked with such libtool
  7221. *** libraries will work regardless of this problem. Nevertheless, you
  7222. *** may want to report the problem to your system manager and/or to
  7223. *** [email protected]
  7224. _LT_EOF
  7225. fi ;;
  7226. esac
  7227. fi
  7228. break
  7229. fi
  7230. done
  7231. IFS="$lt_save_ifs"
  7232. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7233. ;;
  7234. esac
  7235. fi
  7236. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7237. if test -n "$MAGIC_CMD"; then
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7239. $as_echo "$MAGIC_CMD" >&6; }
  7240. else
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7242. $as_echo "no" >&6; }
  7243. fi
  7244. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7245. if test -n "$ac_tool_prefix"; then
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7247. $as_echo_n "checking for file... " >&6; }
  7248. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7249. $as_echo_n "(cached) " >&6
  7250. else
  7251. case $MAGIC_CMD in
  7252. [\\/*] | ?:[\\/]*)
  7253. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7254. ;;
  7255. *)
  7256. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7257. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7258. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7259. for ac_dir in $ac_dummy; do
  7260. IFS="$lt_save_ifs"
  7261. test -z "$ac_dir" && ac_dir=.
  7262. if test -f $ac_dir/file; then
  7263. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7264. if test -n "$file_magic_test_file"; then
  7265. case $deplibs_check_method in
  7266. "file_magic "*)
  7267. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7268. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7269. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7270. $EGREP "$file_magic_regex" > /dev/null; then
  7271. :
  7272. else
  7273. cat <<_LT_EOF 1>&2
  7274. *** Warning: the command libtool uses to detect shared libraries,
  7275. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7276. *** The result is that libtool may fail to recognize shared libraries
  7277. *** as such. This will affect the creation of libtool libraries that
  7278. *** depend on shared libraries, but programs linked with such libtool
  7279. *** libraries will work regardless of this problem. Nevertheless, you
  7280. *** may want to report the problem to your system manager and/or to
  7281. *** [email protected]
  7282. _LT_EOF
  7283. fi ;;
  7284. esac
  7285. fi
  7286. break
  7287. fi
  7288. done
  7289. IFS="$lt_save_ifs"
  7290. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7291. ;;
  7292. esac
  7293. fi
  7294. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7295. if test -n "$MAGIC_CMD"; then
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7297. $as_echo "$MAGIC_CMD" >&6; }
  7298. else
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7300. $as_echo "no" >&6; }
  7301. fi
  7302. else
  7303. MAGIC_CMD=:
  7304. fi
  7305. fi
  7306. fi
  7307. ;;
  7308. esac
  7309. # Use C for the default configuration in the libtool script
  7310. lt_save_CC="$CC"
  7311. ac_ext=c
  7312. ac_cpp='$CPP $CPPFLAGS'
  7313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7316. # Source file extension for C test sources.
  7317. ac_ext=c
  7318. # Object file extension for compiled C test sources.
  7319. objext=o
  7320. objext=$objext
  7321. # Code to be used in simple compile tests
  7322. lt_simple_compile_test_code="int some_variable = 0;"
  7323. # Code to be used in simple link tests
  7324. lt_simple_link_test_code='int main(){return(0);}'
  7325. # If no C compiler was specified, use CC.
  7326. LTCC=${LTCC-"$CC"}
  7327. # If no C compiler flags were specified, use CFLAGS.
  7328. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7329. # Allow CC to be a program name with arguments.
  7330. compiler=$CC
  7331. # Save the default compiler, since it gets overwritten when the other
  7332. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7333. compiler_DEFAULT=$CC
  7334. # save warnings/boilerplate of simple test code
  7335. ac_outfile=conftest.$ac_objext
  7336. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7337. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7338. _lt_compiler_boilerplate=`cat conftest.err`
  7339. $RM conftest*
  7340. ac_outfile=conftest.$ac_objext
  7341. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7342. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7343. _lt_linker_boilerplate=`cat conftest.err`
  7344. $RM -r conftest*
  7345. ## CAVEAT EMPTOR:
  7346. ## There is no encapsulation within the following macros, do not change
  7347. ## the running order or otherwise move them around unless you know exactly
  7348. ## what you are doing...
  7349. if test -n "$compiler"; then
  7350. lt_prog_compiler_no_builtin_flag=
  7351. if test "$GCC" = yes; then
  7352. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7354. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7355. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. lt_cv_prog_compiler_rtti_exceptions=no
  7359. ac_outfile=conftest.$ac_objext
  7360. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7361. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7362. # Insert the option either (1) after the last *FLAGS variable, or
  7363. # (2) before a word containing "conftest.", or (3) at the end.
  7364. # Note that $ac_compile itself does not contain backslashes and begins
  7365. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7366. # The option is referenced via a variable to avoid confusing sed.
  7367. lt_compile=`echo "$ac_compile" | $SED \
  7368. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7370. -e 's:$: $lt_compiler_flag:'`
  7371. (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
  7372. (eval "$lt_compile" 2>conftest.err)
  7373. ac_status=$?
  7374. cat conftest.err >&5
  7375. echo "$as_me:8410: \$? = $ac_status" >&5
  7376. if (exit $ac_status) && test -s "$ac_outfile"; then
  7377. # The compiler can only warn and ignore the option if not recognized
  7378. # So say no if there are warnings other than the usual output.
  7379. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7381. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7382. lt_cv_prog_compiler_rtti_exceptions=yes
  7383. fi
  7384. fi
  7385. $RM conftest*
  7386. fi
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7388. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7389. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7390. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7391. else
  7392. :
  7393. fi
  7394. fi
  7395. lt_prog_compiler_wl=
  7396. lt_prog_compiler_pic=
  7397. lt_prog_compiler_static=
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7399. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7400. if test "$GCC" = yes; then
  7401. lt_prog_compiler_wl='-Wl,'
  7402. lt_prog_compiler_static='-static'
  7403. case $host_os in
  7404. aix*)
  7405. # All AIX code is PIC.
  7406. if test "$host_cpu" = ia64; then
  7407. # AIX 5 now supports IA64 processor
  7408. lt_prog_compiler_static='-Bstatic'
  7409. fi
  7410. ;;
  7411. amigaos*)
  7412. case $host_cpu in
  7413. powerpc)
  7414. # see comment about AmigaOS4 .so support
  7415. lt_prog_compiler_pic='-fPIC'
  7416. ;;
  7417. m68k)
  7418. # FIXME: we need at least 68020 code to build shared libraries, but
  7419. # adding the `-m68020' flag to GCC prevents building anything better,
  7420. # like `-m68040'.
  7421. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7422. ;;
  7423. esac
  7424. ;;
  7425. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7426. # PIC is the default for these OSes.
  7427. ;;
  7428. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7429. # This hack is so that the source file can tell whether it is being
  7430. # built for inclusion in a dll (and should export symbols for example).
  7431. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7432. # (--disable-auto-import) libraries
  7433. lt_prog_compiler_pic='-DDLL_EXPORT'
  7434. ;;
  7435. darwin* | rhapsody*)
  7436. # PIC is the default on this platform
  7437. # Common symbols not allowed in MH_DYLIB files
  7438. lt_prog_compiler_pic='-fno-common'
  7439. ;;
  7440. hpux*)
  7441. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7442. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7443. # sets the default TLS model and affects inlining.
  7444. case $host_cpu in
  7445. hppa*64*)
  7446. # +Z the default
  7447. ;;
  7448. *)
  7449. lt_prog_compiler_pic='-fPIC'
  7450. ;;
  7451. esac
  7452. ;;
  7453. interix[3-9]*)
  7454. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7455. # Instead, we relocate shared libraries at runtime.
  7456. ;;
  7457. msdosdjgpp*)
  7458. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7459. # on systems that don't support them.
  7460. lt_prog_compiler_can_build_shared=no
  7461. enable_shared=no
  7462. ;;
  7463. *nto* | *qnx*)
  7464. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7465. # it will coredump.
  7466. lt_prog_compiler_pic='-fPIC -shared'
  7467. ;;
  7468. sysv4*MP*)
  7469. if test -d /usr/nec; then
  7470. lt_prog_compiler_pic=-Kconform_pic
  7471. fi
  7472. ;;
  7473. *)
  7474. lt_prog_compiler_pic='-fPIC'
  7475. ;;
  7476. esac
  7477. else
  7478. # PORTME Check for flag to pass linker flags through the system compiler.
  7479. case $host_os in
  7480. aix*)
  7481. lt_prog_compiler_wl='-Wl,'
  7482. if test "$host_cpu" = ia64; then
  7483. # AIX 5 now supports IA64 processor
  7484. lt_prog_compiler_static='-Bstatic'
  7485. else
  7486. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7487. fi
  7488. ;;
  7489. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7490. # This hack is so that the source file can tell whether it is being
  7491. # built for inclusion in a dll (and should export symbols for example).
  7492. lt_prog_compiler_pic='-DDLL_EXPORT'
  7493. ;;
  7494. hpux9* | hpux10* | hpux11*)
  7495. lt_prog_compiler_wl='-Wl,'
  7496. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7497. # not for PA HP-UX.
  7498. case $host_cpu in
  7499. hppa*64*|ia64*)
  7500. # +Z the default
  7501. ;;
  7502. *)
  7503. lt_prog_compiler_pic='+Z'
  7504. ;;
  7505. esac
  7506. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7507. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7508. ;;
  7509. irix5* | irix6* | nonstopux*)
  7510. lt_prog_compiler_wl='-Wl,'
  7511. # PIC (with -KPIC) is the default.
  7512. lt_prog_compiler_static='-non_shared'
  7513. ;;
  7514. linux* | k*bsd*-gnu)
  7515. case $cc_basename in
  7516. # old Intel for x86_64 which still supported -KPIC.
  7517. ecc*)
  7518. lt_prog_compiler_wl='-Wl,'
  7519. lt_prog_compiler_pic='-KPIC'
  7520. lt_prog_compiler_static='-static'
  7521. ;;
  7522. # icc used to be incompatible with GCC.
  7523. # ICC 10 doesn't accept -KPIC any more.
  7524. icc* | ifort*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. lt_prog_compiler_pic='-fPIC'
  7527. lt_prog_compiler_static='-static'
  7528. ;;
  7529. # Lahey Fortran 8.1.
  7530. lf95*)
  7531. lt_prog_compiler_wl='-Wl,'
  7532. lt_prog_compiler_pic='--shared'
  7533. lt_prog_compiler_static='--static'
  7534. ;;
  7535. pgcc* | pgf77* | pgf90* | pgf95*)
  7536. # Portland Group compilers (*not* the Pentium gcc compiler,
  7537. # which looks to be a dead project)
  7538. lt_prog_compiler_wl='-Wl,'
  7539. lt_prog_compiler_pic='-fpic'
  7540. lt_prog_compiler_static='-Bstatic'
  7541. ;;
  7542. ccc*)
  7543. lt_prog_compiler_wl='-Wl,'
  7544. # All Alpha code is PIC.
  7545. lt_prog_compiler_static='-non_shared'
  7546. ;;
  7547. xl*)
  7548. # IBM XL C 8.0/Fortran 10.1 on PPC
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='-qpic'
  7551. lt_prog_compiler_static='-qstaticlink'
  7552. ;;
  7553. *)
  7554. case `$CC -V 2>&1 | sed 5q` in
  7555. *Sun\ C*)
  7556. # Sun C 5.9
  7557. lt_prog_compiler_pic='-KPIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. lt_prog_compiler_wl='-Wl,'
  7560. ;;
  7561. *Sun\ F*)
  7562. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7563. lt_prog_compiler_pic='-KPIC'
  7564. lt_prog_compiler_static='-Bstatic'
  7565. lt_prog_compiler_wl=''
  7566. ;;
  7567. esac
  7568. ;;
  7569. esac
  7570. ;;
  7571. newsos6)
  7572. lt_prog_compiler_pic='-KPIC'
  7573. lt_prog_compiler_static='-Bstatic'
  7574. ;;
  7575. *nto* | *qnx*)
  7576. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7577. # it will coredump.
  7578. lt_prog_compiler_pic='-fPIC -shared'
  7579. ;;
  7580. osf3* | osf4* | osf5*)
  7581. lt_prog_compiler_wl='-Wl,'
  7582. # All OSF/1 code is PIC.
  7583. lt_prog_compiler_static='-non_shared'
  7584. ;;
  7585. rdos*)
  7586. lt_prog_compiler_static='-non_shared'
  7587. ;;
  7588. solaris*)
  7589. lt_prog_compiler_pic='-KPIC'
  7590. lt_prog_compiler_static='-Bstatic'
  7591. case $cc_basename in
  7592. f77* | f90* | f95*)
  7593. lt_prog_compiler_wl='-Qoption ld ';;
  7594. *)
  7595. lt_prog_compiler_wl='-Wl,';;
  7596. esac
  7597. ;;
  7598. sunos4*)
  7599. lt_prog_compiler_wl='-Qoption ld '
  7600. lt_prog_compiler_pic='-PIC'
  7601. lt_prog_compiler_static='-Bstatic'
  7602. ;;
  7603. sysv4 | sysv4.2uw2* | sysv4.3*)
  7604. lt_prog_compiler_wl='-Wl,'
  7605. lt_prog_compiler_pic='-KPIC'
  7606. lt_prog_compiler_static='-Bstatic'
  7607. ;;
  7608. sysv4*MP*)
  7609. if test -d /usr/nec ;then
  7610. lt_prog_compiler_pic='-Kconform_pic'
  7611. lt_prog_compiler_static='-Bstatic'
  7612. fi
  7613. ;;
  7614. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7615. lt_prog_compiler_wl='-Wl,'
  7616. lt_prog_compiler_pic='-KPIC'
  7617. lt_prog_compiler_static='-Bstatic'
  7618. ;;
  7619. unicos*)
  7620. lt_prog_compiler_wl='-Wl,'
  7621. lt_prog_compiler_can_build_shared=no
  7622. ;;
  7623. uts4*)
  7624. lt_prog_compiler_pic='-pic'
  7625. lt_prog_compiler_static='-Bstatic'
  7626. ;;
  7627. *)
  7628. lt_prog_compiler_can_build_shared=no
  7629. ;;
  7630. esac
  7631. fi
  7632. case $host_os in
  7633. # For platforms which do not support PIC, -DPIC is meaningless:
  7634. *djgpp*)
  7635. lt_prog_compiler_pic=
  7636. ;;
  7637. *)
  7638. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7639. ;;
  7640. esac
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7642. $as_echo "$lt_prog_compiler_pic" >&6; }
  7643. #
  7644. # Check to make sure the PIC flag actually works.
  7645. #
  7646. if test -n "$lt_prog_compiler_pic"; then
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7648. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7649. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7650. $as_echo_n "(cached) " >&6
  7651. else
  7652. lt_cv_prog_compiler_pic_works=no
  7653. ac_outfile=conftest.$ac_objext
  7654. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7655. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7656. # Insert the option either (1) after the last *FLAGS variable, or
  7657. # (2) before a word containing "conftest.", or (3) at the end.
  7658. # Note that $ac_compile itself does not contain backslashes and begins
  7659. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7660. # The option is referenced via a variable to avoid confusing sed.
  7661. lt_compile=`echo "$ac_compile" | $SED \
  7662. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7663. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7664. -e 's:$: $lt_compiler_flag:'`
  7665. (eval echo "\"\$as_me:8745: $lt_compile\"" >&5)
  7666. (eval "$lt_compile" 2>conftest.err)
  7667. ac_status=$?
  7668. cat conftest.err >&5
  7669. echo "$as_me:8749: \$? = $ac_status" >&5
  7670. if (exit $ac_status) && test -s "$ac_outfile"; then
  7671. # The compiler can only warn and ignore the option if not recognized
  7672. # So say no if there are warnings other than the usual output.
  7673. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7674. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7675. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7676. lt_cv_prog_compiler_pic_works=yes
  7677. fi
  7678. fi
  7679. $RM conftest*
  7680. fi
  7681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7682. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7683. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7684. case $lt_prog_compiler_pic in
  7685. "" | " "*) ;;
  7686. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7687. esac
  7688. else
  7689. lt_prog_compiler_pic=
  7690. lt_prog_compiler_can_build_shared=no
  7691. fi
  7692. fi
  7693. #
  7694. # Check to make sure the static flag actually works.
  7695. #
  7696. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7698. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7699. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. lt_cv_prog_compiler_static_works=no
  7703. save_LDFLAGS="$LDFLAGS"
  7704. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7705. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7706. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7707. # The linker can only warn and ignore the option if not recognized
  7708. # So say no if there are warnings
  7709. if test -s conftest.err; then
  7710. # Append any errors to the config.log.
  7711. cat conftest.err 1>&5
  7712. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7713. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7714. if diff conftest.exp conftest.er2 >/dev/null; then
  7715. lt_cv_prog_compiler_static_works=yes
  7716. fi
  7717. else
  7718. lt_cv_prog_compiler_static_works=yes
  7719. fi
  7720. fi
  7721. $RM -r conftest*
  7722. LDFLAGS="$save_LDFLAGS"
  7723. fi
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7725. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7726. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7727. :
  7728. else
  7729. lt_prog_compiler_static=
  7730. fi
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7732. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7733. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7734. $as_echo_n "(cached) " >&6
  7735. else
  7736. lt_cv_prog_compiler_c_o=no
  7737. $RM -r conftest 2>/dev/null
  7738. mkdir conftest
  7739. cd conftest
  7740. mkdir out
  7741. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7742. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7743. # Insert the option either (1) after the last *FLAGS variable, or
  7744. # (2) before a word containing "conftest.", or (3) at the end.
  7745. # Note that $ac_compile itself does not contain backslashes and begins
  7746. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7747. lt_compile=`echo "$ac_compile" | $SED \
  7748. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7749. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7750. -e 's:$: $lt_compiler_flag:'`
  7751. (eval echo "\"\$as_me:8850: $lt_compile\"" >&5)
  7752. (eval "$lt_compile" 2>out/conftest.err)
  7753. ac_status=$?
  7754. cat out/conftest.err >&5
  7755. echo "$as_me:8854: \$? = $ac_status" >&5
  7756. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7757. then
  7758. # The compiler can only warn and ignore the option if not recognized
  7759. # So say no if there are warnings
  7760. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7761. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7762. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7763. lt_cv_prog_compiler_c_o=yes
  7764. fi
  7765. fi
  7766. chmod u+w . 2>&5
  7767. $RM conftest*
  7768. # SGI C++ compiler will create directory out/ii_files/ for
  7769. # template instantiation
  7770. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7771. $RM out/* && rmdir out
  7772. cd ..
  7773. $RM -r conftest
  7774. $RM conftest*
  7775. fi
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7777. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7779. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7780. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7781. $as_echo_n "(cached) " >&6
  7782. else
  7783. lt_cv_prog_compiler_c_o=no
  7784. $RM -r conftest 2>/dev/null
  7785. mkdir conftest
  7786. cd conftest
  7787. mkdir out
  7788. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7789. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7790. # Insert the option either (1) after the last *FLAGS variable, or
  7791. # (2) before a word containing "conftest.", or (3) at the end.
  7792. # Note that $ac_compile itself does not contain backslashes and begins
  7793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7794. lt_compile=`echo "$ac_compile" | $SED \
  7795. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7796. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7797. -e 's:$: $lt_compiler_flag:'`
  7798. (eval echo "\"\$as_me:8905: $lt_compile\"" >&5)
  7799. (eval "$lt_compile" 2>out/conftest.err)
  7800. ac_status=$?
  7801. cat out/conftest.err >&5
  7802. echo "$as_me:8909: \$? = $ac_status" >&5
  7803. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7804. then
  7805. # The compiler can only warn and ignore the option if not recognized
  7806. # So say no if there are warnings
  7807. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7808. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7809. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7810. lt_cv_prog_compiler_c_o=yes
  7811. fi
  7812. fi
  7813. chmod u+w . 2>&5
  7814. $RM conftest*
  7815. # SGI C++ compiler will create directory out/ii_files/ for
  7816. # template instantiation
  7817. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7818. $RM out/* && rmdir out
  7819. cd ..
  7820. $RM -r conftest
  7821. $RM conftest*
  7822. fi
  7823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7824. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7825. hard_links="nottested"
  7826. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7827. # do not overwrite the value of need_locks provided by the user
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7829. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7830. hard_links=yes
  7831. $RM conftest*
  7832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7833. touch conftest.a
  7834. ln conftest.a conftest.b 2>&5 || hard_links=no
  7835. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7837. $as_echo "$hard_links" >&6; }
  7838. if test "$hard_links" = no; then
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7840. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7841. need_locks=warn
  7842. fi
  7843. else
  7844. need_locks=no
  7845. fi
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7847. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7848. runpath_var=
  7849. allow_undefined_flag=
  7850. always_export_symbols=no
  7851. archive_cmds=
  7852. archive_expsym_cmds=
  7853. compiler_needs_object=no
  7854. enable_shared_with_static_runtimes=no
  7855. export_dynamic_flag_spec=
  7856. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7857. hardcode_automatic=no
  7858. hardcode_direct=no
  7859. hardcode_direct_absolute=no
  7860. hardcode_libdir_flag_spec=
  7861. hardcode_libdir_flag_spec_ld=
  7862. hardcode_libdir_separator=
  7863. hardcode_minus_L=no
  7864. hardcode_shlibpath_var=unsupported
  7865. inherit_rpath=no
  7866. link_all_deplibs=unknown
  7867. module_cmds=
  7868. module_expsym_cmds=
  7869. old_archive_from_new_cmds=
  7870. old_archive_from_expsyms_cmds=
  7871. thread_safe_flag_spec=
  7872. whole_archive_flag_spec=
  7873. # include_expsyms should be a list of space-separated symbols to be *always*
  7874. # included in the symbol list
  7875. include_expsyms=
  7876. # exclude_expsyms can be an extended regexp of symbols to exclude
  7877. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7878. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7879. # as well as any symbol that contains `d'.
  7880. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7881. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7882. # platforms (ab)use it in PIC code, but their linkers get confused if
  7883. # the symbol is explicitly referenced. Since portable code cannot
  7884. # rely on this symbol name, it's probably fine to never include it in
  7885. # preloaded symbol tables.
  7886. # Exclude shared library initialization/finalization symbols.
  7887. extract_expsyms_cmds=
  7888. case $host_os in
  7889. cygwin* | mingw* | pw32* | cegcc*)
  7890. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7891. # When not using gcc, we currently assume that we are using
  7892. # Microsoft Visual C++.
  7893. if test "$GCC" != yes; then
  7894. with_gnu_ld=no
  7895. fi
  7896. ;;
  7897. interix*)
  7898. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7899. with_gnu_ld=yes
  7900. ;;
  7901. openbsd*)
  7902. with_gnu_ld=no
  7903. ;;
  7904. esac
  7905. ld_shlibs=yes
  7906. if test "$with_gnu_ld" = yes; then
  7907. # If archive_cmds runs LD, not CC, wlarc should be empty
  7908. wlarc='${wl}'
  7909. # Set some defaults for GNU ld with shared library support. These
  7910. # are reset later if shared libraries are not supported. Putting them
  7911. # here allows them to be overridden if necessary.
  7912. runpath_var=LD_RUN_PATH
  7913. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7914. export_dynamic_flag_spec='${wl}--export-dynamic'
  7915. # ancient GNU ld didn't support --whole-archive et. al.
  7916. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7917. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7918. else
  7919. whole_archive_flag_spec=
  7920. fi
  7921. supports_anon_versioning=no
  7922. case `$LD -v 2>&1` in
  7923. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7924. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7925. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7926. *\ 2.11.*) ;; # other 2.11 versions
  7927. *) supports_anon_versioning=yes ;;
  7928. esac
  7929. # See if GNU ld supports shared libraries.
  7930. case $host_os in
  7931. aix[3-9]*)
  7932. # On AIX/PPC, the GNU linker is very broken
  7933. if test "$host_cpu" != ia64; then
  7934. ld_shlibs=no
  7935. cat <<_LT_EOF 1>&2
  7936. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7937. *** to be unable to reliably create shared libraries on AIX.
  7938. *** Therefore, libtool is disabling shared libraries support. If you
  7939. *** really care for shared libraries, you may want to modify your PATH
  7940. *** so that a non-GNU linker is found, and then restart.
  7941. _LT_EOF
  7942. fi
  7943. ;;
  7944. amigaos*)
  7945. case $host_cpu in
  7946. powerpc)
  7947. # see comment about AmigaOS4 .so support
  7948. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7949. archive_expsym_cmds=''
  7950. ;;
  7951. m68k)
  7952. 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)'
  7953. hardcode_libdir_flag_spec='-L$libdir'
  7954. hardcode_minus_L=yes
  7955. ;;
  7956. esac
  7957. ;;
  7958. beos*)
  7959. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7960. allow_undefined_flag=unsupported
  7961. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7962. # support --undefined. This deserves some investigation. FIXME
  7963. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7964. else
  7965. ld_shlibs=no
  7966. fi
  7967. ;;
  7968. cygwin* | mingw* | pw32* | cegcc*)
  7969. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7970. # as there is no search path for DLLs.
  7971. hardcode_libdir_flag_spec='-L$libdir'
  7972. allow_undefined_flag=unsupported
  7973. always_export_symbols=no
  7974. enable_shared_with_static_runtimes=yes
  7975. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7976. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7977. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7978. # If the export-symbols file already is a .def file (1st line
  7979. # is EXPORTS), use it as is; otherwise, prepend...
  7980. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7981. cp $export_symbols $output_objdir/$soname.def;
  7982. else
  7983. echo EXPORTS > $output_objdir/$soname.def;
  7984. cat $export_symbols >> $output_objdir/$soname.def;
  7985. fi~
  7986. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7987. else
  7988. ld_shlibs=no
  7989. fi
  7990. ;;
  7991. interix[3-9]*)
  7992. hardcode_direct=no
  7993. hardcode_shlibpath_var=no
  7994. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7995. export_dynamic_flag_spec='${wl}-E'
  7996. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7997. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7998. # default) and relocated if they conflict, which is a slow very memory
  7999. # consuming and fragmenting process. To avoid this, we pick a random,
  8000. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8001. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8002. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8003. 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'
  8004. ;;
  8005. gnu* | linux* | tpf* | k*bsd*-gnu)
  8006. tmp_diet=no
  8007. if test "$host_os" = linux-dietlibc; then
  8008. case $cc_basename in
  8009. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8010. esac
  8011. fi
  8012. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8013. && test "$tmp_diet" = no
  8014. then
  8015. tmp_addflag=
  8016. tmp_sharedflag='-shared'
  8017. case $cc_basename,$host_cpu in
  8018. pgcc*) # Portland Group C compiler
  8019. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8020. tmp_addflag=' $pic_flag'
  8021. ;;
  8022. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8023. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8024. tmp_addflag=' $pic_flag -Mnomain' ;;
  8025. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8026. tmp_addflag=' -i_dynamic' ;;
  8027. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8028. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8029. ifc* | ifort*) # Intel Fortran compiler
  8030. tmp_addflag=' -nofor_main' ;;
  8031. lf95*) # Lahey Fortran 8.1
  8032. whole_archive_flag_spec=
  8033. tmp_sharedflag='--shared' ;;
  8034. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8035. tmp_sharedflag='-qmkshrobj'
  8036. tmp_addflag= ;;
  8037. esac
  8038. case `$CC -V 2>&1 | sed 5q` in
  8039. *Sun\ C*) # Sun C 5.9
  8040. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8041. compiler_needs_object=yes
  8042. tmp_sharedflag='-G' ;;
  8043. *Sun\ F*) # Sun Fortran 8.3
  8044. tmp_sharedflag='-G' ;;
  8045. esac
  8046. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8047. if test "x$supports_anon_versioning" = xyes; then
  8048. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8049. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8050. echo "local: *; };" >> $output_objdir/$libname.ver~
  8051. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8052. fi
  8053. case $cc_basename in
  8054. xlf*)
  8055. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8056. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8057. hardcode_libdir_flag_spec=
  8058. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8059. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8060. if test "x$supports_anon_versioning" = xyes; then
  8061. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8062. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8063. echo "local: *; };" >> $output_objdir/$libname.ver~
  8064. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8065. fi
  8066. ;;
  8067. esac
  8068. else
  8069. ld_shlibs=no
  8070. fi
  8071. ;;
  8072. netbsd* | netbsdelf*-gnu)
  8073. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8074. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8075. wlarc=
  8076. else
  8077. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8078. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8079. fi
  8080. ;;
  8081. solaris*)
  8082. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8083. ld_shlibs=no
  8084. cat <<_LT_EOF 1>&2
  8085. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8086. *** create shared libraries on Solaris systems. Therefore, libtool
  8087. *** is disabling shared libraries support. We urge you to upgrade GNU
  8088. *** binutils to release 2.9.1 or newer. Another option is to modify
  8089. *** your PATH or compiler configuration so that the native linker is
  8090. *** used, and then restart.
  8091. _LT_EOF
  8092. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8093. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8094. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8095. else
  8096. ld_shlibs=no
  8097. fi
  8098. ;;
  8099. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8100. case `$LD -v 2>&1` in
  8101. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8102. ld_shlibs=no
  8103. cat <<_LT_EOF 1>&2
  8104. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8105. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8106. *** is disabling shared libraries support. We urge you to upgrade GNU
  8107. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8108. *** your PATH or compiler configuration so that the native linker is
  8109. *** used, and then restart.
  8110. _LT_EOF
  8111. ;;
  8112. *)
  8113. # For security reasons, it is highly recommended that you always
  8114. # use absolute paths for naming shared libraries, and exclude the
  8115. # DT_RUNPATH tag from executables and libraries. But doing so
  8116. # requires that you compile everything twice, which is a pain.
  8117. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8118. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8119. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8120. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8121. else
  8122. ld_shlibs=no
  8123. fi
  8124. ;;
  8125. esac
  8126. ;;
  8127. sunos4*)
  8128. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8129. wlarc=
  8130. hardcode_direct=yes
  8131. hardcode_shlibpath_var=no
  8132. ;;
  8133. *)
  8134. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8137. else
  8138. ld_shlibs=no
  8139. fi
  8140. ;;
  8141. esac
  8142. if test "$ld_shlibs" = no; then
  8143. runpath_var=
  8144. hardcode_libdir_flag_spec=
  8145. export_dynamic_flag_spec=
  8146. whole_archive_flag_spec=
  8147. fi
  8148. else
  8149. # PORTME fill in a description of your system's linker (not GNU ld)
  8150. case $host_os in
  8151. aix3*)
  8152. allow_undefined_flag=unsupported
  8153. always_export_symbols=yes
  8154. 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'
  8155. # Note: this linker hardcodes the directories in LIBPATH if there
  8156. # are no directories specified by -L.
  8157. hardcode_minus_L=yes
  8158. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8159. # Neither direct hardcoding nor static linking is supported with a
  8160. # broken collect2.
  8161. hardcode_direct=unsupported
  8162. fi
  8163. ;;
  8164. aix[4-9]*)
  8165. if test "$host_cpu" = ia64; then
  8166. # On IA64, the linker does run time linking by default, so we don't
  8167. # have to do anything special.
  8168. aix_use_runtimelinking=no
  8169. exp_sym_flag='-Bexport'
  8170. no_entry_flag=""
  8171. else
  8172. # If we're using GNU nm, then we don't want the "-C" option.
  8173. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8174. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8175. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8176. else
  8177. 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'
  8178. fi
  8179. aix_use_runtimelinking=no
  8180. # Test if we are trying to use run time linking or normal
  8181. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8182. # need to do runtime linking.
  8183. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8184. for ld_flag in $LDFLAGS; do
  8185. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8186. aix_use_runtimelinking=yes
  8187. break
  8188. fi
  8189. done
  8190. ;;
  8191. esac
  8192. exp_sym_flag='-bexport'
  8193. no_entry_flag='-bnoentry'
  8194. fi
  8195. # When large executables or shared objects are built, AIX ld can
  8196. # have problems creating the table of contents. If linking a library
  8197. # or program results in "error TOC overflow" add -mminimal-toc to
  8198. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8199. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8200. archive_cmds=''
  8201. hardcode_direct=yes
  8202. hardcode_direct_absolute=yes
  8203. hardcode_libdir_separator=':'
  8204. link_all_deplibs=yes
  8205. file_list_spec='${wl}-f,'
  8206. if test "$GCC" = yes; then
  8207. case $host_os in aix4.[012]|aix4.[012].*)
  8208. # We only want to do this on AIX 4.2 and lower, the check
  8209. # below for broken collect2 doesn't work under 4.3+
  8210. collect2name=`${CC} -print-prog-name=collect2`
  8211. if test -f "$collect2name" &&
  8212. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8213. then
  8214. # We have reworked collect2
  8215. :
  8216. else
  8217. # We have old collect2
  8218. hardcode_direct=unsupported
  8219. # It fails to find uninstalled libraries when the uninstalled
  8220. # path is not listed in the libpath. Setting hardcode_minus_L
  8221. # to unsupported forces relinking
  8222. hardcode_minus_L=yes
  8223. hardcode_libdir_flag_spec='-L$libdir'
  8224. hardcode_libdir_separator=
  8225. fi
  8226. ;;
  8227. esac
  8228. shared_flag='-shared'
  8229. if test "$aix_use_runtimelinking" = yes; then
  8230. shared_flag="$shared_flag "'${wl}-G'
  8231. fi
  8232. link_all_deplibs=no
  8233. else
  8234. # not using gcc
  8235. if test "$host_cpu" = ia64; then
  8236. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8237. # chokes on -Wl,-G. The following line is correct:
  8238. shared_flag='-G'
  8239. else
  8240. if test "$aix_use_runtimelinking" = yes; then
  8241. shared_flag='${wl}-G'
  8242. else
  8243. shared_flag='${wl}-bM:SRE'
  8244. fi
  8245. fi
  8246. fi
  8247. export_dynamic_flag_spec='${wl}-bexpall'
  8248. # It seems that -bexpall does not export symbols beginning with
  8249. # underscore (_), so it is better to generate a list of symbols to export.
  8250. always_export_symbols=yes
  8251. if test "$aix_use_runtimelinking" = yes; then
  8252. # Warning - without using the other runtime loading flags (-brtl),
  8253. # -berok will link without error, but may produce a broken library.
  8254. allow_undefined_flag='-berok'
  8255. # Determine the default libpath from the value encoded in an
  8256. # empty executable.
  8257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8258. /* end confdefs.h. */
  8259. int
  8260. main ()
  8261. {
  8262. ;
  8263. return 0;
  8264. }
  8265. _ACEOF
  8266. if ac_fn_c_try_link "$LINENO"; then :
  8267. lt_aix_libpath_sed='
  8268. /Import File Strings/,/^$/ {
  8269. /^0/ {
  8270. s/^0 *\(.*\)$/\1/
  8271. p
  8272. }
  8273. }'
  8274. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8275. # Check for a 64-bit object if we didn't find anything.
  8276. if test -z "$aix_libpath"; then
  8277. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8278. fi
  8279. fi
  8280. rm -f core conftest.err conftest.$ac_objext \
  8281. conftest$ac_exeext conftest.$ac_ext
  8282. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8283. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8284. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8285. else
  8286. if test "$host_cpu" = ia64; then
  8287. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8288. allow_undefined_flag="-z nodefs"
  8289. 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"
  8290. else
  8291. # Determine the default libpath from the value encoded in an
  8292. # empty executable.
  8293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8294. /* end confdefs.h. */
  8295. int
  8296. main ()
  8297. {
  8298. ;
  8299. return 0;
  8300. }
  8301. _ACEOF
  8302. if ac_fn_c_try_link "$LINENO"; then :
  8303. lt_aix_libpath_sed='
  8304. /Import File Strings/,/^$/ {
  8305. /^0/ {
  8306. s/^0 *\(.*\)$/\1/
  8307. p
  8308. }
  8309. }'
  8310. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8311. # Check for a 64-bit object if we didn't find anything.
  8312. if test -z "$aix_libpath"; then
  8313. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8314. fi
  8315. fi
  8316. rm -f core conftest.err conftest.$ac_objext \
  8317. conftest$ac_exeext conftest.$ac_ext
  8318. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8319. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8320. # Warning - without using the other run time loading flags,
  8321. # -berok will link without error, but may produce a broken library.
  8322. no_undefined_flag=' ${wl}-bernotok'
  8323. allow_undefined_flag=' ${wl}-berok'
  8324. # Exported symbols can be pulled into shared objects from archives
  8325. whole_archive_flag_spec='$convenience'
  8326. archive_cmds_need_lc=yes
  8327. # This is similar to how AIX traditionally builds its shared libraries.
  8328. 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'
  8329. fi
  8330. fi
  8331. ;;
  8332. amigaos*)
  8333. case $host_cpu in
  8334. powerpc)
  8335. # see comment about AmigaOS4 .so support
  8336. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8337. archive_expsym_cmds=''
  8338. ;;
  8339. m68k)
  8340. 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)'
  8341. hardcode_libdir_flag_spec='-L$libdir'
  8342. hardcode_minus_L=yes
  8343. ;;
  8344. esac
  8345. ;;
  8346. bsdi[45]*)
  8347. export_dynamic_flag_spec=-rdynamic
  8348. ;;
  8349. cygwin* | mingw* | pw32* | cegcc*)
  8350. # When not using gcc, we currently assume that we are using
  8351. # Microsoft Visual C++.
  8352. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8353. # no search path for DLLs.
  8354. hardcode_libdir_flag_spec=' '
  8355. allow_undefined_flag=unsupported
  8356. # Tell ltmain to make .lib files, not .a files.
  8357. libext=lib
  8358. # Tell ltmain to make .dll files, not .so files.
  8359. shrext_cmds=".dll"
  8360. # FIXME: Setting linknames here is a bad hack.
  8361. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8362. # The linker will automatically build a .lib file if we build a DLL.
  8363. old_archive_from_new_cmds='true'
  8364. # FIXME: Should let the user specify the lib program.
  8365. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8366. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8367. enable_shared_with_static_runtimes=yes
  8368. ;;
  8369. darwin* | rhapsody*)
  8370. archive_cmds_need_lc=no
  8371. hardcode_direct=no
  8372. hardcode_automatic=yes
  8373. hardcode_shlibpath_var=unsupported
  8374. whole_archive_flag_spec=''
  8375. link_all_deplibs=yes
  8376. allow_undefined_flag="$_lt_dar_allow_undefined"
  8377. case $cc_basename in
  8378. ifort*) _lt_dar_can_shared=yes ;;
  8379. *) _lt_dar_can_shared=$GCC ;;
  8380. esac
  8381. if test "$_lt_dar_can_shared" = "yes"; then
  8382. output_verbose_link_cmd=echo
  8383. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8384. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8385. 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}"
  8386. 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}"
  8387. else
  8388. ld_shlibs=no
  8389. fi
  8390. ;;
  8391. dgux*)
  8392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8393. hardcode_libdir_flag_spec='-L$libdir'
  8394. hardcode_shlibpath_var=no
  8395. ;;
  8396. freebsd1*)
  8397. ld_shlibs=no
  8398. ;;
  8399. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8400. # support. Future versions do this automatically, but an explicit c++rt0.o
  8401. # does not break anything, and helps significantly (at the cost of a little
  8402. # extra space).
  8403. freebsd2.2*)
  8404. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8405. hardcode_libdir_flag_spec='-R$libdir'
  8406. hardcode_direct=yes
  8407. hardcode_shlibpath_var=no
  8408. ;;
  8409. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8410. freebsd2*)
  8411. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8412. hardcode_direct=yes
  8413. hardcode_minus_L=yes
  8414. hardcode_shlibpath_var=no
  8415. ;;
  8416. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8417. freebsd* | dragonfly*)
  8418. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8419. hardcode_libdir_flag_spec='-R$libdir'
  8420. hardcode_direct=yes
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. hpux9*)
  8424. if test "$GCC" = yes; then
  8425. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8426. else
  8427. 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'
  8428. fi
  8429. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8430. hardcode_libdir_separator=:
  8431. hardcode_direct=yes
  8432. # hardcode_minus_L: Not really in the search PATH,
  8433. # but as the default location of the library.
  8434. hardcode_minus_L=yes
  8435. export_dynamic_flag_spec='${wl}-E'
  8436. ;;
  8437. hpux10*)
  8438. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8439. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8440. else
  8441. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8442. fi
  8443. if test "$with_gnu_ld" = no; then
  8444. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8445. hardcode_libdir_flag_spec_ld='+b $libdir'
  8446. hardcode_libdir_separator=:
  8447. hardcode_direct=yes
  8448. hardcode_direct_absolute=yes
  8449. export_dynamic_flag_spec='${wl}-E'
  8450. # hardcode_minus_L: Not really in the search PATH,
  8451. # but as the default location of the library.
  8452. hardcode_minus_L=yes
  8453. fi
  8454. ;;
  8455. hpux11*)
  8456. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8457. case $host_cpu in
  8458. hppa*64*)
  8459. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. ;;
  8461. ia64*)
  8462. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8463. ;;
  8464. *)
  8465. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8466. ;;
  8467. esac
  8468. else
  8469. case $host_cpu in
  8470. hppa*64*)
  8471. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8472. ;;
  8473. ia64*)
  8474. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8475. ;;
  8476. *)
  8477. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8478. ;;
  8479. esac
  8480. fi
  8481. if test "$with_gnu_ld" = no; then
  8482. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8483. hardcode_libdir_separator=:
  8484. case $host_cpu in
  8485. hppa*64*|ia64*)
  8486. hardcode_direct=no
  8487. hardcode_shlibpath_var=no
  8488. ;;
  8489. *)
  8490. hardcode_direct=yes
  8491. hardcode_direct_absolute=yes
  8492. export_dynamic_flag_spec='${wl}-E'
  8493. # hardcode_minus_L: Not really in the search PATH,
  8494. # but as the default location of the library.
  8495. hardcode_minus_L=yes
  8496. ;;
  8497. esac
  8498. fi
  8499. ;;
  8500. irix5* | irix6* | nonstopux*)
  8501. if test "$GCC" = yes; then
  8502. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8503. # Try to use the -exported_symbol ld option, if it does not
  8504. # work, assume that -exports_file does not work either and
  8505. # implicitly export all symbols.
  8506. save_LDFLAGS="$LDFLAGS"
  8507. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8509. /* end confdefs.h. */
  8510. int foo(void) {}
  8511. _ACEOF
  8512. if ac_fn_c_try_link "$LINENO"; then :
  8513. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8514. fi
  8515. rm -f core conftest.err conftest.$ac_objext \
  8516. conftest$ac_exeext conftest.$ac_ext
  8517. LDFLAGS="$save_LDFLAGS"
  8518. else
  8519. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8520. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8521. fi
  8522. archive_cmds_need_lc='no'
  8523. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8524. hardcode_libdir_separator=:
  8525. inherit_rpath=yes
  8526. link_all_deplibs=yes
  8527. ;;
  8528. netbsd* | netbsdelf*-gnu)
  8529. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8530. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8531. else
  8532. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8533. fi
  8534. hardcode_libdir_flag_spec='-R$libdir'
  8535. hardcode_direct=yes
  8536. hardcode_shlibpath_var=no
  8537. ;;
  8538. newsos6)
  8539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8540. hardcode_direct=yes
  8541. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8542. hardcode_libdir_separator=:
  8543. hardcode_shlibpath_var=no
  8544. ;;
  8545. *nto* | *qnx*)
  8546. ;;
  8547. openbsd*)
  8548. if test -f /usr/libexec/ld.so; then
  8549. hardcode_direct=yes
  8550. hardcode_shlibpath_var=no
  8551. hardcode_direct_absolute=yes
  8552. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8553. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8554. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8555. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8556. export_dynamic_flag_spec='${wl}-E'
  8557. else
  8558. case $host_os in
  8559. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8560. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8561. hardcode_libdir_flag_spec='-R$libdir'
  8562. ;;
  8563. *)
  8564. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8565. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8566. ;;
  8567. esac
  8568. fi
  8569. else
  8570. ld_shlibs=no
  8571. fi
  8572. ;;
  8573. os2*)
  8574. hardcode_libdir_flag_spec='-L$libdir'
  8575. hardcode_minus_L=yes
  8576. allow_undefined_flag=unsupported
  8577. 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'
  8578. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8579. ;;
  8580. osf3*)
  8581. if test "$GCC" = yes; then
  8582. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8583. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8584. else
  8585. allow_undefined_flag=' -expect_unresolved \*'
  8586. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8587. fi
  8588. archive_cmds_need_lc='no'
  8589. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8590. hardcode_libdir_separator=:
  8591. ;;
  8592. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8593. if test "$GCC" = yes; then
  8594. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8595. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8596. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8597. else
  8598. allow_undefined_flag=' -expect_unresolved \*'
  8599. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8600. 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~
  8601. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8602. # Both c and cxx compiler support -rpath directly
  8603. hardcode_libdir_flag_spec='-rpath $libdir'
  8604. fi
  8605. archive_cmds_need_lc='no'
  8606. hardcode_libdir_separator=:
  8607. ;;
  8608. solaris*)
  8609. no_undefined_flag=' -z defs'
  8610. if test "$GCC" = yes; then
  8611. wlarc='${wl}'
  8612. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8613. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8614. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8615. else
  8616. case `$CC -V 2>&1` in
  8617. *"Compilers 5.0"*)
  8618. wlarc=''
  8619. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8620. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8621. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8622. ;;
  8623. *)
  8624. wlarc='${wl}'
  8625. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8626. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8627. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8628. ;;
  8629. esac
  8630. fi
  8631. hardcode_libdir_flag_spec='-R$libdir'
  8632. hardcode_shlibpath_var=no
  8633. case $host_os in
  8634. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8635. *)
  8636. # The compiler driver will combine and reorder linker options,
  8637. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8638. # but is careful enough not to reorder.
  8639. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8640. if test "$GCC" = yes; then
  8641. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8642. else
  8643. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8644. fi
  8645. ;;
  8646. esac
  8647. link_all_deplibs=yes
  8648. ;;
  8649. sunos4*)
  8650. if test "x$host_vendor" = xsequent; then
  8651. # Use $CC to link under sequent, because it throws in some extra .o
  8652. # files that make .init and .fini sections work.
  8653. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8654. else
  8655. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8656. fi
  8657. hardcode_libdir_flag_spec='-L$libdir'
  8658. hardcode_direct=yes
  8659. hardcode_minus_L=yes
  8660. hardcode_shlibpath_var=no
  8661. ;;
  8662. sysv4)
  8663. case $host_vendor in
  8664. sni)
  8665. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8666. hardcode_direct=yes # is this really true???
  8667. ;;
  8668. siemens)
  8669. ## LD is ld it makes a PLAMLIB
  8670. ## CC just makes a GrossModule.
  8671. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8672. reload_cmds='$CC -r -o $output$reload_objs'
  8673. hardcode_direct=no
  8674. ;;
  8675. motorola)
  8676. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8677. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8678. ;;
  8679. esac
  8680. runpath_var='LD_RUN_PATH'
  8681. hardcode_shlibpath_var=no
  8682. ;;
  8683. sysv4.3*)
  8684. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8685. hardcode_shlibpath_var=no
  8686. export_dynamic_flag_spec='-Bexport'
  8687. ;;
  8688. sysv4*MP*)
  8689. if test -d /usr/nec; then
  8690. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8691. hardcode_shlibpath_var=no
  8692. runpath_var=LD_RUN_PATH
  8693. hardcode_runpath_var=yes
  8694. ld_shlibs=yes
  8695. fi
  8696. ;;
  8697. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8698. no_undefined_flag='${wl}-z,text'
  8699. archive_cmds_need_lc=no
  8700. hardcode_shlibpath_var=no
  8701. runpath_var='LD_RUN_PATH'
  8702. if test "$GCC" = yes; then
  8703. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8704. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8705. else
  8706. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8707. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8708. fi
  8709. ;;
  8710. sysv5* | sco3.2v5* | sco5v6*)
  8711. # Note: We can NOT use -z defs as we might desire, because we do not
  8712. # link with -lc, and that would cause any symbols used from libc to
  8713. # always be unresolved, which means just about no library would
  8714. # ever link correctly. If we're not using GNU ld we use -z text
  8715. # though, which does catch some bad symbols but isn't as heavy-handed
  8716. # as -z defs.
  8717. no_undefined_flag='${wl}-z,text'
  8718. allow_undefined_flag='${wl}-z,nodefs'
  8719. archive_cmds_need_lc=no
  8720. hardcode_shlibpath_var=no
  8721. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8722. hardcode_libdir_separator=':'
  8723. link_all_deplibs=yes
  8724. export_dynamic_flag_spec='${wl}-Bexport'
  8725. runpath_var='LD_RUN_PATH'
  8726. if test "$GCC" = yes; then
  8727. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8728. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8729. else
  8730. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8731. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8732. fi
  8733. ;;
  8734. uts4*)
  8735. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8736. hardcode_libdir_flag_spec='-L$libdir'
  8737. hardcode_shlibpath_var=no
  8738. ;;
  8739. *)
  8740. ld_shlibs=no
  8741. ;;
  8742. esac
  8743. if test x$host_vendor = xsni; then
  8744. case $host in
  8745. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8746. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8747. ;;
  8748. esac
  8749. fi
  8750. fi
  8751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8752. $as_echo "$ld_shlibs" >&6; }
  8753. test "$ld_shlibs" = no && can_build_shared=no
  8754. with_gnu_ld=$with_gnu_ld
  8755. #
  8756. # Do we need to explicitly link libc?
  8757. #
  8758. case "x$archive_cmds_need_lc" in
  8759. x|xyes)
  8760. # Assume -lc should be added
  8761. archive_cmds_need_lc=yes
  8762. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8763. case $archive_cmds in
  8764. *'~'*)
  8765. # FIXME: we may have to deal with multi-command sequences.
  8766. ;;
  8767. '$CC '*)
  8768. # Test whether the compiler implicitly links with -lc since on some
  8769. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8770. # to ld, don't add -lc before -lgcc.
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8772. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8773. $RM conftest*
  8774. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8776. (eval $ac_compile) 2>&5
  8777. ac_status=$?
  8778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8779. test $ac_status = 0; } 2>conftest.err; then
  8780. soname=conftest
  8781. lib=conftest
  8782. libobjs=conftest.$ac_objext
  8783. deplibs=
  8784. wl=$lt_prog_compiler_wl
  8785. pic_flag=$lt_prog_compiler_pic
  8786. compiler_flags=-v
  8787. linker_flags=-v
  8788. verstring=
  8789. output_objdir=.
  8790. libname=conftest
  8791. lt_save_allow_undefined_flag=$allow_undefined_flag
  8792. allow_undefined_flag=
  8793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8794. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8795. ac_status=$?
  8796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8797. test $ac_status = 0; }
  8798. then
  8799. archive_cmds_need_lc=no
  8800. else
  8801. archive_cmds_need_lc=yes
  8802. fi
  8803. allow_undefined_flag=$lt_save_allow_undefined_flag
  8804. else
  8805. cat conftest.err 1>&5
  8806. fi
  8807. $RM conftest*
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8809. $as_echo "$archive_cmds_need_lc" >&6; }
  8810. ;;
  8811. esac
  8812. fi
  8813. ;;
  8814. esac
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8816. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8817. if test "$GCC" = yes; then
  8818. case $host_os in
  8819. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8820. *) lt_awk_arg="/^libraries:/" ;;
  8821. esac
  8822. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8823. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8824. # if the path contains ";" then we assume it to be the separator
  8825. # otherwise default to the standard path separator (i.e. ":") - it is
  8826. # assumed that no part of a normal pathname contains ";" but that should
  8827. # okay in the real world where ";" in dirpaths is itself problematic.
  8828. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8829. else
  8830. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8831. fi
  8832. # Ok, now we have the path, separated by spaces, we can step through it
  8833. # and add multilib dir if necessary.
  8834. lt_tmp_lt_search_path_spec=
  8835. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8836. for lt_sys_path in $lt_search_path_spec; do
  8837. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8838. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8839. else
  8840. test -d "$lt_sys_path" && \
  8841. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8842. fi
  8843. done
  8844. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8845. BEGIN {RS=" "; FS="/|\n";} {
  8846. lt_foo="";
  8847. lt_count=0;
  8848. for (lt_i = NF; lt_i > 0; lt_i--) {
  8849. if ($lt_i != "" && $lt_i != ".") {
  8850. if ($lt_i == "..") {
  8851. lt_count++;
  8852. } else {
  8853. if (lt_count == 0) {
  8854. lt_foo="/" $lt_i lt_foo;
  8855. } else {
  8856. lt_count--;
  8857. }
  8858. }
  8859. }
  8860. }
  8861. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8862. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8863. }'`
  8864. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8865. else
  8866. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8867. fi
  8868. library_names_spec=
  8869. libname_spec='lib$name'
  8870. soname_spec=
  8871. shrext_cmds=".so"
  8872. postinstall_cmds=
  8873. postuninstall_cmds=
  8874. finish_cmds=
  8875. finish_eval=
  8876. shlibpath_var=
  8877. shlibpath_overrides_runpath=unknown
  8878. version_type=none
  8879. dynamic_linker="$host_os ld.so"
  8880. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8881. need_lib_prefix=unknown
  8882. hardcode_into_libs=no
  8883. # when you set need_version to no, make sure it does not cause -set_version
  8884. # flags to be left without arguments
  8885. need_version=unknown
  8886. case $host_os in
  8887. aix3*)
  8888. version_type=linux
  8889. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8890. shlibpath_var=LIBPATH
  8891. # AIX 3 has no versioning support, so we append a major version to the name.
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. ;;
  8894. aix[4-9]*)
  8895. version_type=linux
  8896. need_lib_prefix=no
  8897. need_version=no
  8898. hardcode_into_libs=yes
  8899. if test "$host_cpu" = ia64; then
  8900. # AIX 5 supports IA64
  8901. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. else
  8904. # With GCC up to 2.95.x, collect2 would create an import file
  8905. # for dependence libraries. The import file would start with
  8906. # the line `#! .'. This would cause the generated library to
  8907. # depend on `.', always an invalid library. This was fixed in
  8908. # development snapshots of GCC prior to 3.0.
  8909. case $host_os in
  8910. aix4 | aix4.[01] | aix4.[01].*)
  8911. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8912. echo ' yes '
  8913. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8914. :
  8915. else
  8916. can_build_shared=no
  8917. fi
  8918. ;;
  8919. esac
  8920. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8921. # soname into executable. Probably we can add versioning support to
  8922. # collect2, so additional links can be useful in future.
  8923. if test "$aix_use_runtimelinking" = yes; then
  8924. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8925. # instead of lib<name>.a to let people know that these are not
  8926. # typical AIX shared libraries.
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. else
  8929. # We preserve .a as extension for shared libraries through AIX4.2
  8930. # and later when we are not doing run time linking.
  8931. library_names_spec='${libname}${release}.a $libname.a'
  8932. soname_spec='${libname}${release}${shared_ext}$major'
  8933. fi
  8934. shlibpath_var=LIBPATH
  8935. fi
  8936. ;;
  8937. amigaos*)
  8938. case $host_cpu in
  8939. powerpc)
  8940. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8941. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8943. ;;
  8944. m68k)
  8945. library_names_spec='$libname.ixlibrary $libname.a'
  8946. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8947. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8948. ;;
  8949. esac
  8950. ;;
  8951. beos*)
  8952. library_names_spec='${libname}${shared_ext}'
  8953. dynamic_linker="$host_os ld.so"
  8954. shlibpath_var=LIBRARY_PATH
  8955. ;;
  8956. bsdi[45]*)
  8957. version_type=linux
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8962. shlibpath_var=LD_LIBRARY_PATH
  8963. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8964. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8965. # the default ld.so.conf also contains /usr/contrib/lib and
  8966. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8967. # libtool to hard-code these into programs
  8968. ;;
  8969. cygwin* | mingw* | pw32* | cegcc*)
  8970. version_type=windows
  8971. shrext_cmds=".dll"
  8972. need_version=no
  8973. need_lib_prefix=no
  8974. case $GCC,$host_os in
  8975. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8976. library_names_spec='$libname.dll.a'
  8977. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8978. postinstall_cmds='base_file=`basename \${file}`~
  8979. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8980. dldir=$destdir/`dirname \$dlpath`~
  8981. test -d \$dldir || mkdir -p \$dldir~
  8982. $install_prog $dir/$dlname \$dldir/$dlname~
  8983. chmod a+x \$dldir/$dlname~
  8984. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8985. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8986. fi'
  8987. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8988. dlpath=$dir/\$dldll~
  8989. $RM \$dlpath'
  8990. shlibpath_overrides_runpath=yes
  8991. case $host_os in
  8992. cygwin*)
  8993. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8994. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8995. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8996. ;;
  8997. mingw* | cegcc*)
  8998. # MinGW DLLs use traditional 'lib' prefix
  8999. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9000. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9001. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9002. # It is most probably a Windows format PATH printed by
  9003. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9004. # path with ; separators, and with drive letters. We can handle the
  9005. # drive letters (cygwin fileutils understands them), so leave them,
  9006. # especially as we might pass files found there to a mingw objdump,
  9007. # which wouldn't understand a cygwinified path. Ahh.
  9008. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9009. else
  9010. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9011. fi
  9012. ;;
  9013. pw32*)
  9014. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9015. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9016. ;;
  9017. esac
  9018. ;;
  9019. *)
  9020. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9021. ;;
  9022. esac
  9023. dynamic_linker='Win32 ld.exe'
  9024. # FIXME: first we should search . and the directory the executable is in
  9025. shlibpath_var=PATH
  9026. ;;
  9027. darwin* | rhapsody*)
  9028. dynamic_linker="$host_os dyld"
  9029. version_type=darwin
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9033. soname_spec='${libname}${release}${major}$shared_ext'
  9034. shlibpath_overrides_runpath=yes
  9035. shlibpath_var=DYLD_LIBRARY_PATH
  9036. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9037. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9038. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9039. ;;
  9040. dgux*)
  9041. version_type=linux
  9042. need_lib_prefix=no
  9043. need_version=no
  9044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9045. soname_spec='${libname}${release}${shared_ext}$major'
  9046. shlibpath_var=LD_LIBRARY_PATH
  9047. ;;
  9048. freebsd1*)
  9049. dynamic_linker=no
  9050. ;;
  9051. freebsd* | dragonfly*)
  9052. # DragonFly does not have aout. When/if they implement a new
  9053. # versioning mechanism, adjust this.
  9054. if test -x /usr/bin/objformat; then
  9055. objformat=`/usr/bin/objformat`
  9056. else
  9057. case $host_os in
  9058. freebsd[123]*) objformat=aout ;;
  9059. *) objformat=elf ;;
  9060. esac
  9061. fi
  9062. version_type=freebsd-$objformat
  9063. case $version_type in
  9064. freebsd-elf*)
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9066. need_version=no
  9067. need_lib_prefix=no
  9068. ;;
  9069. freebsd-*)
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9071. need_version=yes
  9072. ;;
  9073. esac
  9074. shlibpath_var=LD_LIBRARY_PATH
  9075. case $host_os in
  9076. freebsd2*)
  9077. shlibpath_overrides_runpath=yes
  9078. ;;
  9079. freebsd3.[01]* | freebsdelf3.[01]*)
  9080. shlibpath_overrides_runpath=yes
  9081. hardcode_into_libs=yes
  9082. ;;
  9083. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9084. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9085. shlibpath_overrides_runpath=no
  9086. hardcode_into_libs=yes
  9087. ;;
  9088. *) # from 4.6 on, and DragonFly
  9089. shlibpath_overrides_runpath=yes
  9090. hardcode_into_libs=yes
  9091. ;;
  9092. esac
  9093. ;;
  9094. gnu*)
  9095. version_type=linux
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9099. soname_spec='${libname}${release}${shared_ext}$major'
  9100. shlibpath_var=LD_LIBRARY_PATH
  9101. hardcode_into_libs=yes
  9102. ;;
  9103. hpux9* | hpux10* | hpux11*)
  9104. # Give a soname corresponding to the major version so that dld.sl refuses to
  9105. # link against other versions.
  9106. version_type=sunos
  9107. need_lib_prefix=no
  9108. need_version=no
  9109. case $host_cpu in
  9110. ia64*)
  9111. shrext_cmds='.so'
  9112. hardcode_into_libs=yes
  9113. dynamic_linker="$host_os dld.so"
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9117. soname_spec='${libname}${release}${shared_ext}$major'
  9118. if test "X$HPUX_IA64_MODE" = X32; then
  9119. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9120. else
  9121. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9122. fi
  9123. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9124. ;;
  9125. hppa*64*)
  9126. shrext_cmds='.sl'
  9127. hardcode_into_libs=yes
  9128. dynamic_linker="$host_os dld.sl"
  9129. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9130. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9132. soname_spec='${libname}${release}${shared_ext}$major'
  9133. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9134. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9135. ;;
  9136. *)
  9137. shrext_cmds='.sl'
  9138. dynamic_linker="$host_os dld.sl"
  9139. shlibpath_var=SHLIB_PATH
  9140. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9142. soname_spec='${libname}${release}${shared_ext}$major'
  9143. ;;
  9144. esac
  9145. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9146. postinstall_cmds='chmod 555 $lib'
  9147. ;;
  9148. interix[3-9]*)
  9149. version_type=linux
  9150. need_lib_prefix=no
  9151. need_version=no
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9153. soname_spec='${libname}${release}${shared_ext}$major'
  9154. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=no
  9157. hardcode_into_libs=yes
  9158. ;;
  9159. irix5* | irix6* | nonstopux*)
  9160. case $host_os in
  9161. nonstopux*) version_type=nonstopux ;;
  9162. *)
  9163. if test "$lt_cv_prog_gnu_ld" = yes; then
  9164. version_type=linux
  9165. else
  9166. version_type=irix
  9167. fi ;;
  9168. esac
  9169. need_lib_prefix=no
  9170. need_version=no
  9171. soname_spec='${libname}${release}${shared_ext}$major'
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9173. case $host_os in
  9174. irix5* | nonstopux*)
  9175. libsuff= shlibsuff=
  9176. ;;
  9177. *)
  9178. case $LD in # libtool.m4 will add one of these switches to LD
  9179. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9180. libsuff= shlibsuff= libmagic=32-bit;;
  9181. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9182. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9183. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9184. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9185. *) libsuff= shlibsuff= libmagic=never-match;;
  9186. esac
  9187. ;;
  9188. esac
  9189. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9190. shlibpath_overrides_runpath=no
  9191. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9192. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9193. hardcode_into_libs=yes
  9194. ;;
  9195. # No shared lib support for Linux oldld, aout, or coff.
  9196. linux*oldld* | linux*aout* | linux*coff*)
  9197. dynamic_linker=no
  9198. ;;
  9199. # This must be Linux ELF.
  9200. linux* | k*bsd*-gnu)
  9201. version_type=linux
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. shlibpath_overrides_runpath=no
  9209. # Some binutils ld are patched to set DT_RUNPATH
  9210. save_LDFLAGS=$LDFLAGS
  9211. save_libdir=$libdir
  9212. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9213. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9215. /* end confdefs.h. */
  9216. int
  9217. main ()
  9218. {
  9219. ;
  9220. return 0;
  9221. }
  9222. _ACEOF
  9223. if ac_fn_c_try_link "$LINENO"; then :
  9224. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9225. shlibpath_overrides_runpath=yes
  9226. fi
  9227. fi
  9228. rm -f core conftest.err conftest.$ac_objext \
  9229. conftest$ac_exeext conftest.$ac_ext
  9230. LDFLAGS=$save_LDFLAGS
  9231. libdir=$save_libdir
  9232. # This implies no fast_install, which is unacceptable.
  9233. # Some rework will be needed to allow for fast_install
  9234. # before this can be enabled.
  9235. hardcode_into_libs=yes
  9236. # Append ld.so.conf contents to the search path
  9237. if test -f /etc/ld.so.conf; then
  9238. 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;/^$/d' | tr '\n' ' '`
  9239. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9240. fi
  9241. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9242. # powerpc, because MkLinux only supported shared libraries with the
  9243. # GNU dynamic linker. Since this was broken with cross compilers,
  9244. # most powerpc-linux boxes support dynamic linking these days and
  9245. # people can always --disable-shared, the test was removed, and we
  9246. # assume the GNU/Linux dynamic linker is in use.
  9247. dynamic_linker='GNU/Linux ld.so'
  9248. ;;
  9249. netbsdelf*-gnu)
  9250. version_type=linux
  9251. need_lib_prefix=no
  9252. need_version=no
  9253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9254. soname_spec='${libname}${release}${shared_ext}$major'
  9255. shlibpath_var=LD_LIBRARY_PATH
  9256. shlibpath_overrides_runpath=no
  9257. hardcode_into_libs=yes
  9258. dynamic_linker='NetBSD ld.elf_so'
  9259. ;;
  9260. netbsd*)
  9261. version_type=sunos
  9262. need_lib_prefix=no
  9263. need_version=no
  9264. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9266. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9267. dynamic_linker='NetBSD (a.out) ld.so'
  9268. else
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9270. soname_spec='${libname}${release}${shared_ext}$major'
  9271. dynamic_linker='NetBSD ld.elf_so'
  9272. fi
  9273. shlibpath_var=LD_LIBRARY_PATH
  9274. shlibpath_overrides_runpath=yes
  9275. hardcode_into_libs=yes
  9276. ;;
  9277. newsos6)
  9278. version_type=linux
  9279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9280. shlibpath_var=LD_LIBRARY_PATH
  9281. shlibpath_overrides_runpath=yes
  9282. ;;
  9283. *nto* | *qnx*)
  9284. version_type=qnx
  9285. need_lib_prefix=no
  9286. need_version=no
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. shlibpath_overrides_runpath=no
  9291. hardcode_into_libs=yes
  9292. dynamic_linker='ldqnx.so'
  9293. ;;
  9294. openbsd*)
  9295. version_type=sunos
  9296. sys_lib_dlsearch_path_spec="/usr/lib"
  9297. need_lib_prefix=no
  9298. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9299. case $host_os in
  9300. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9301. *) need_version=no ;;
  9302. esac
  9303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9304. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9305. shlibpath_var=LD_LIBRARY_PATH
  9306. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9307. case $host_os in
  9308. openbsd2.[89] | openbsd2.[89].*)
  9309. shlibpath_overrides_runpath=no
  9310. ;;
  9311. *)
  9312. shlibpath_overrides_runpath=yes
  9313. ;;
  9314. esac
  9315. else
  9316. shlibpath_overrides_runpath=yes
  9317. fi
  9318. ;;
  9319. os2*)
  9320. libname_spec='$name'
  9321. shrext_cmds=".dll"
  9322. need_lib_prefix=no
  9323. library_names_spec='$libname${shared_ext} $libname.a'
  9324. dynamic_linker='OS/2 ld.exe'
  9325. shlibpath_var=LIBPATH
  9326. ;;
  9327. osf3* | osf4* | osf5*)
  9328. version_type=osf
  9329. need_lib_prefix=no
  9330. need_version=no
  9331. soname_spec='${libname}${release}${shared_ext}$major'
  9332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9333. shlibpath_var=LD_LIBRARY_PATH
  9334. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9335. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9336. ;;
  9337. rdos*)
  9338. dynamic_linker=no
  9339. ;;
  9340. solaris*)
  9341. version_type=linux
  9342. need_lib_prefix=no
  9343. need_version=no
  9344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9345. soname_spec='${libname}${release}${shared_ext}$major'
  9346. shlibpath_var=LD_LIBRARY_PATH
  9347. shlibpath_overrides_runpath=yes
  9348. hardcode_into_libs=yes
  9349. # ldd complains unless libraries are executable
  9350. postinstall_cmds='chmod +x $lib'
  9351. ;;
  9352. sunos4*)
  9353. version_type=sunos
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9355. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. shlibpath_overrides_runpath=yes
  9358. if test "$with_gnu_ld" = yes; then
  9359. need_lib_prefix=no
  9360. fi
  9361. need_version=yes
  9362. ;;
  9363. sysv4 | sysv4.3*)
  9364. version_type=linux
  9365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9366. soname_spec='${libname}${release}${shared_ext}$major'
  9367. shlibpath_var=LD_LIBRARY_PATH
  9368. case $host_vendor in
  9369. sni)
  9370. shlibpath_overrides_runpath=no
  9371. need_lib_prefix=no
  9372. runpath_var=LD_RUN_PATH
  9373. ;;
  9374. siemens)
  9375. need_lib_prefix=no
  9376. ;;
  9377. motorola)
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. shlibpath_overrides_runpath=no
  9381. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9382. ;;
  9383. esac
  9384. ;;
  9385. sysv4*MP*)
  9386. if test -d /usr/nec ;then
  9387. version_type=linux
  9388. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9389. soname_spec='$libname${shared_ext}.$major'
  9390. shlibpath_var=LD_LIBRARY_PATH
  9391. fi
  9392. ;;
  9393. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9394. version_type=freebsd-elf
  9395. need_lib_prefix=no
  9396. need_version=no
  9397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9398. soname_spec='${libname}${release}${shared_ext}$major'
  9399. shlibpath_var=LD_LIBRARY_PATH
  9400. shlibpath_overrides_runpath=yes
  9401. hardcode_into_libs=yes
  9402. if test "$with_gnu_ld" = yes; then
  9403. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9404. else
  9405. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9406. case $host_os in
  9407. sco3.2v5*)
  9408. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9409. ;;
  9410. esac
  9411. fi
  9412. sys_lib_dlsearch_path_spec='/usr/lib'
  9413. ;;
  9414. tpf*)
  9415. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9416. version_type=linux
  9417. need_lib_prefix=no
  9418. need_version=no
  9419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9420. shlibpath_var=LD_LIBRARY_PATH
  9421. shlibpath_overrides_runpath=no
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. uts4*)
  9425. version_type=linux
  9426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9427. soname_spec='${libname}${release}${shared_ext}$major'
  9428. shlibpath_var=LD_LIBRARY_PATH
  9429. ;;
  9430. *)
  9431. dynamic_linker=no
  9432. ;;
  9433. esac
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9435. $as_echo "$dynamic_linker" >&6; }
  9436. test "$dynamic_linker" = no && can_build_shared=no
  9437. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9438. if test "$GCC" = yes; then
  9439. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9440. fi
  9441. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9442. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9443. fi
  9444. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9445. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9446. fi
  9447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9448. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9449. hardcode_action=
  9450. if test -n "$hardcode_libdir_flag_spec" ||
  9451. test -n "$runpath_var" ||
  9452. test "X$hardcode_automatic" = "Xyes" ; then
  9453. # We can hardcode non-existent directories.
  9454. if test "$hardcode_direct" != no &&
  9455. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9456. # have to relink, otherwise we might link with an installed library
  9457. # when we should be linking with a yet-to-be-installed one
  9458. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9459. test "$hardcode_minus_L" != no; then
  9460. # Linking always hardcodes the temporary library directory.
  9461. hardcode_action=relink
  9462. else
  9463. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9464. hardcode_action=immediate
  9465. fi
  9466. else
  9467. # We cannot hardcode anything, or else we can only hardcode existing
  9468. # directories.
  9469. hardcode_action=unsupported
  9470. fi
  9471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9472. $as_echo "$hardcode_action" >&6; }
  9473. if test "$hardcode_action" = relink ||
  9474. test "$inherit_rpath" = yes; then
  9475. # Fast installation is not supported
  9476. enable_fast_install=no
  9477. elif test "$shlibpath_overrides_runpath" = yes ||
  9478. test "$enable_shared" = no; then
  9479. # Fast installation is not necessary
  9480. enable_fast_install=needless
  9481. fi
  9482. if test "x$enable_dlopen" != xyes; then
  9483. enable_dlopen=unknown
  9484. enable_dlopen_self=unknown
  9485. enable_dlopen_self_static=unknown
  9486. else
  9487. lt_cv_dlopen=no
  9488. lt_cv_dlopen_libs=
  9489. case $host_os in
  9490. beos*)
  9491. lt_cv_dlopen="load_add_on"
  9492. lt_cv_dlopen_libs=
  9493. lt_cv_dlopen_self=yes
  9494. ;;
  9495. mingw* | pw32* | cegcc*)
  9496. lt_cv_dlopen="LoadLibrary"
  9497. lt_cv_dlopen_libs=
  9498. ;;
  9499. cygwin*)
  9500. lt_cv_dlopen="dlopen"
  9501. lt_cv_dlopen_libs=
  9502. ;;
  9503. darwin*)
  9504. # if libdl is installed we need to link against it
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9506. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9507. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9508. $as_echo_n "(cached) " >&6
  9509. else
  9510. ac_check_lib_save_LIBS=$LIBS
  9511. LIBS="-ldl $LIBS"
  9512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9513. /* end confdefs.h. */
  9514. /* Override any GCC internal prototype to avoid an error.
  9515. Use char because int might match the return type of a GCC
  9516. builtin and then its argument prototype would still apply. */
  9517. #ifdef __cplusplus
  9518. extern "C"
  9519. #endif
  9520. char dlopen ();
  9521. int
  9522. main ()
  9523. {
  9524. return dlopen ();
  9525. ;
  9526. return 0;
  9527. }
  9528. _ACEOF
  9529. if ac_fn_c_try_link "$LINENO"; then :
  9530. ac_cv_lib_dl_dlopen=yes
  9531. else
  9532. ac_cv_lib_dl_dlopen=no
  9533. fi
  9534. rm -f core conftest.err conftest.$ac_objext \
  9535. conftest$ac_exeext conftest.$ac_ext
  9536. LIBS=$ac_check_lib_save_LIBS
  9537. fi
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9539. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9540. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9541. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9542. else
  9543. lt_cv_dlopen="dyld"
  9544. lt_cv_dlopen_libs=
  9545. lt_cv_dlopen_self=yes
  9546. fi
  9547. ;;
  9548. *)
  9549. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9550. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9551. lt_cv_dlopen="shl_load"
  9552. else
  9553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9554. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9555. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9556. $as_echo_n "(cached) " >&6
  9557. else
  9558. ac_check_lib_save_LIBS=$LIBS
  9559. LIBS="-ldld $LIBS"
  9560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9561. /* end confdefs.h. */
  9562. /* Override any GCC internal prototype to avoid an error.
  9563. Use char because int might match the return type of a GCC
  9564. builtin and then its argument prototype would still apply. */
  9565. #ifdef __cplusplus
  9566. extern "C"
  9567. #endif
  9568. char shl_load ();
  9569. int
  9570. main ()
  9571. {
  9572. return shl_load ();
  9573. ;
  9574. return 0;
  9575. }
  9576. _ACEOF
  9577. if ac_fn_c_try_link "$LINENO"; then :
  9578. ac_cv_lib_dld_shl_load=yes
  9579. else
  9580. ac_cv_lib_dld_shl_load=no
  9581. fi
  9582. rm -f core conftest.err conftest.$ac_objext \
  9583. conftest$ac_exeext conftest.$ac_ext
  9584. LIBS=$ac_check_lib_save_LIBS
  9585. fi
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9587. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9588. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9589. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9590. else
  9591. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9592. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9593. lt_cv_dlopen="dlopen"
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9596. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9597. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. ac_check_lib_save_LIBS=$LIBS
  9601. LIBS="-ldl $LIBS"
  9602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9603. /* end confdefs.h. */
  9604. /* Override any GCC internal prototype to avoid an error.
  9605. Use char because int might match the return type of a GCC
  9606. builtin and then its argument prototype would still apply. */
  9607. #ifdef __cplusplus
  9608. extern "C"
  9609. #endif
  9610. char dlopen ();
  9611. int
  9612. main ()
  9613. {
  9614. return dlopen ();
  9615. ;
  9616. return 0;
  9617. }
  9618. _ACEOF
  9619. if ac_fn_c_try_link "$LINENO"; then :
  9620. ac_cv_lib_dl_dlopen=yes
  9621. else
  9622. ac_cv_lib_dl_dlopen=no
  9623. fi
  9624. rm -f core conftest.err conftest.$ac_objext \
  9625. conftest$ac_exeext conftest.$ac_ext
  9626. LIBS=$ac_check_lib_save_LIBS
  9627. fi
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9629. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9630. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9631. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9632. else
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9634. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9635. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9636. $as_echo_n "(cached) " >&6
  9637. else
  9638. ac_check_lib_save_LIBS=$LIBS
  9639. LIBS="-lsvld $LIBS"
  9640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9641. /* end confdefs.h. */
  9642. /* Override any GCC internal prototype to avoid an error.
  9643. Use char because int might match the return type of a GCC
  9644. builtin and then its argument prototype would still apply. */
  9645. #ifdef __cplusplus
  9646. extern "C"
  9647. #endif
  9648. char dlopen ();
  9649. int
  9650. main ()
  9651. {
  9652. return dlopen ();
  9653. ;
  9654. return 0;
  9655. }
  9656. _ACEOF
  9657. if ac_fn_c_try_link "$LINENO"; then :
  9658. ac_cv_lib_svld_dlopen=yes
  9659. else
  9660. ac_cv_lib_svld_dlopen=no
  9661. fi
  9662. rm -f core conftest.err conftest.$ac_objext \
  9663. conftest$ac_exeext conftest.$ac_ext
  9664. LIBS=$ac_check_lib_save_LIBS
  9665. fi
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9667. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9668. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9669. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9670. else
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9672. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9673. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9674. $as_echo_n "(cached) " >&6
  9675. else
  9676. ac_check_lib_save_LIBS=$LIBS
  9677. LIBS="-ldld $LIBS"
  9678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9679. /* end confdefs.h. */
  9680. /* Override any GCC internal prototype to avoid an error.
  9681. Use char because int might match the return type of a GCC
  9682. builtin and then its argument prototype would still apply. */
  9683. #ifdef __cplusplus
  9684. extern "C"
  9685. #endif
  9686. char dld_link ();
  9687. int
  9688. main ()
  9689. {
  9690. return dld_link ();
  9691. ;
  9692. return 0;
  9693. }
  9694. _ACEOF
  9695. if ac_fn_c_try_link "$LINENO"; then :
  9696. ac_cv_lib_dld_dld_link=yes
  9697. else
  9698. ac_cv_lib_dld_dld_link=no
  9699. fi
  9700. rm -f core conftest.err conftest.$ac_objext \
  9701. conftest$ac_exeext conftest.$ac_ext
  9702. LIBS=$ac_check_lib_save_LIBS
  9703. fi
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9705. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9706. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9707. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9708. fi
  9709. fi
  9710. fi
  9711. fi
  9712. fi
  9713. fi
  9714. ;;
  9715. esac
  9716. if test "x$lt_cv_dlopen" != xno; then
  9717. enable_dlopen=yes
  9718. else
  9719. enable_dlopen=no
  9720. fi
  9721. case $lt_cv_dlopen in
  9722. dlopen)
  9723. save_CPPFLAGS="$CPPFLAGS"
  9724. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9725. save_LDFLAGS="$LDFLAGS"
  9726. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9727. save_LIBS="$LIBS"
  9728. LIBS="$lt_cv_dlopen_libs $LIBS"
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9730. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9731. if test "${lt_cv_dlopen_self+set}" = set; then :
  9732. $as_echo_n "(cached) " >&6
  9733. else
  9734. if test "$cross_compiling" = yes; then :
  9735. lt_cv_dlopen_self=cross
  9736. else
  9737. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9738. lt_status=$lt_dlunknown
  9739. cat > conftest.$ac_ext <<_LT_EOF
  9740. #line 11285 "configure"
  9741. #include "confdefs.h"
  9742. #if HAVE_DLFCN_H
  9743. #include <dlfcn.h>
  9744. #endif
  9745. #include <stdio.h>
  9746. #ifdef RTLD_GLOBAL
  9747. # define LT_DLGLOBAL RTLD_GLOBAL
  9748. #else
  9749. # ifdef DL_GLOBAL
  9750. # define LT_DLGLOBAL DL_GLOBAL
  9751. # else
  9752. # define LT_DLGLOBAL 0
  9753. # endif
  9754. #endif
  9755. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9756. find out it does not work in some platform. */
  9757. #ifndef LT_DLLAZY_OR_NOW
  9758. # ifdef RTLD_LAZY
  9759. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9760. # else
  9761. # ifdef DL_LAZY
  9762. # define LT_DLLAZY_OR_NOW DL_LAZY
  9763. # else
  9764. # ifdef RTLD_NOW
  9765. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9766. # else
  9767. # ifdef DL_NOW
  9768. # define LT_DLLAZY_OR_NOW DL_NOW
  9769. # else
  9770. # define LT_DLLAZY_OR_NOW 0
  9771. # endif
  9772. # endif
  9773. # endif
  9774. # endif
  9775. #endif
  9776. void fnord() { int i=42;}
  9777. int main ()
  9778. {
  9779. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9780. int status = $lt_dlunknown;
  9781. if (self)
  9782. {
  9783. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9784. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9785. /* dlclose (self); */
  9786. }
  9787. else
  9788. puts (dlerror ());
  9789. return status;
  9790. }
  9791. _LT_EOF
  9792. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9793. (eval $ac_link) 2>&5
  9794. ac_status=$?
  9795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9796. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9797. (./conftest; exit; ) >&5 2>/dev/null
  9798. lt_status=$?
  9799. case x$lt_status in
  9800. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9801. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9802. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9803. esac
  9804. else :
  9805. # compilation failed
  9806. lt_cv_dlopen_self=no
  9807. fi
  9808. fi
  9809. rm -fr conftest*
  9810. fi
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9812. $as_echo "$lt_cv_dlopen_self" >&6; }
  9813. if test "x$lt_cv_dlopen_self" = xyes; then
  9814. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9816. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9817. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9818. $as_echo_n "(cached) " >&6
  9819. else
  9820. if test "$cross_compiling" = yes; then :
  9821. lt_cv_dlopen_self_static=cross
  9822. else
  9823. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9824. lt_status=$lt_dlunknown
  9825. cat > conftest.$ac_ext <<_LT_EOF
  9826. #line 11381 "configure"
  9827. #include "confdefs.h"
  9828. #if HAVE_DLFCN_H
  9829. #include <dlfcn.h>
  9830. #endif
  9831. #include <stdio.h>
  9832. #ifdef RTLD_GLOBAL
  9833. # define LT_DLGLOBAL RTLD_GLOBAL
  9834. #else
  9835. # ifdef DL_GLOBAL
  9836. # define LT_DLGLOBAL DL_GLOBAL
  9837. # else
  9838. # define LT_DLGLOBAL 0
  9839. # endif
  9840. #endif
  9841. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9842. find out it does not work in some platform. */
  9843. #ifndef LT_DLLAZY_OR_NOW
  9844. # ifdef RTLD_LAZY
  9845. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9846. # else
  9847. # ifdef DL_LAZY
  9848. # define LT_DLLAZY_OR_NOW DL_LAZY
  9849. # else
  9850. # ifdef RTLD_NOW
  9851. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9852. # else
  9853. # ifdef DL_NOW
  9854. # define LT_DLLAZY_OR_NOW DL_NOW
  9855. # else
  9856. # define LT_DLLAZY_OR_NOW 0
  9857. # endif
  9858. # endif
  9859. # endif
  9860. # endif
  9861. #endif
  9862. void fnord() { int i=42;}
  9863. int main ()
  9864. {
  9865. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9866. int status = $lt_dlunknown;
  9867. if (self)
  9868. {
  9869. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9870. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9871. /* dlclose (self); */
  9872. }
  9873. else
  9874. puts (dlerror ());
  9875. return status;
  9876. }
  9877. _LT_EOF
  9878. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9879. (eval $ac_link) 2>&5
  9880. ac_status=$?
  9881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9882. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9883. (./conftest; exit; ) >&5 2>/dev/null
  9884. lt_status=$?
  9885. case x$lt_status in
  9886. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9887. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9888. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9889. esac
  9890. else :
  9891. # compilation failed
  9892. lt_cv_dlopen_self_static=no
  9893. fi
  9894. fi
  9895. rm -fr conftest*
  9896. fi
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9898. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9899. fi
  9900. CPPFLAGS="$save_CPPFLAGS"
  9901. LDFLAGS="$save_LDFLAGS"
  9902. LIBS="$save_LIBS"
  9903. ;;
  9904. esac
  9905. case $lt_cv_dlopen_self in
  9906. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9907. *) enable_dlopen_self=unknown ;;
  9908. esac
  9909. case $lt_cv_dlopen_self_static in
  9910. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9911. *) enable_dlopen_self_static=unknown ;;
  9912. esac
  9913. fi
  9914. striplib=
  9915. old_striplib=
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9917. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9918. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9919. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9920. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9922. $as_echo "yes" >&6; }
  9923. else
  9924. # FIXME - insert some real tests, host_os isn't really good enough
  9925. case $host_os in
  9926. darwin*)
  9927. if test -n "$STRIP" ; then
  9928. striplib="$STRIP -x"
  9929. old_striplib="$STRIP -S"
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9931. $as_echo "yes" >&6; }
  9932. else
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9934. $as_echo "no" >&6; }
  9935. fi
  9936. ;;
  9937. *)
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9939. $as_echo "no" >&6; }
  9940. ;;
  9941. esac
  9942. fi
  9943. # Report which library types will actually be built
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9945. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9947. $as_echo "$can_build_shared" >&6; }
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9949. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9950. test "$can_build_shared" = "no" && enable_shared=no
  9951. # On AIX, shared libraries and static libraries use the same namespace, and
  9952. # are all built from PIC.
  9953. case $host_os in
  9954. aix3*)
  9955. test "$enable_shared" = yes && enable_static=no
  9956. if test -n "$RANLIB"; then
  9957. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9958. postinstall_cmds='$RANLIB $lib'
  9959. fi
  9960. ;;
  9961. aix[4-9]*)
  9962. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9963. test "$enable_shared" = yes && enable_static=no
  9964. fi
  9965. ;;
  9966. esac
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9968. $as_echo "$enable_shared" >&6; }
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9970. $as_echo_n "checking whether to build static libraries... " >&6; }
  9971. # Make sure either enable_shared or enable_static is yes.
  9972. test "$enable_shared" = yes || enable_static=yes
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9974. $as_echo "$enable_static" >&6; }
  9975. fi
  9976. ac_ext=cpp
  9977. ac_cpp='$CXXCPP $CPPFLAGS'
  9978. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9979. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9980. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9981. CC="$lt_save_CC"
  9982. ac_ext=cpp
  9983. ac_cpp='$CXXCPP $CPPFLAGS'
  9984. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9985. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9986. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9987. archive_cmds_need_lc_CXX=no
  9988. allow_undefined_flag_CXX=
  9989. always_export_symbols_CXX=no
  9990. archive_expsym_cmds_CXX=
  9991. compiler_needs_object_CXX=no
  9992. export_dynamic_flag_spec_CXX=
  9993. hardcode_direct_CXX=no
  9994. hardcode_direct_absolute_CXX=no
  9995. hardcode_libdir_flag_spec_CXX=
  9996. hardcode_libdir_flag_spec_ld_CXX=
  9997. hardcode_libdir_separator_CXX=
  9998. hardcode_minus_L_CXX=no
  9999. hardcode_shlibpath_var_CXX=unsupported
  10000. hardcode_automatic_CXX=no
  10001. inherit_rpath_CXX=no
  10002. module_cmds_CXX=
  10003. module_expsym_cmds_CXX=
  10004. link_all_deplibs_CXX=unknown
  10005. old_archive_cmds_CXX=$old_archive_cmds
  10006. no_undefined_flag_CXX=
  10007. whole_archive_flag_spec_CXX=
  10008. enable_shared_with_static_runtimes_CXX=no
  10009. # Source file extension for C++ test sources.
  10010. ac_ext=cpp
  10011. # Object file extension for compiled C++ test sources.
  10012. objext=o
  10013. objext_CXX=$objext
  10014. # No sense in running all these tests if we already determined that
  10015. # the CXX compiler isn't working. Some variables (like enable_shared)
  10016. # are currently assumed to apply to all compilers on this platform,
  10017. # and will be corrupted by setting them based on a non-working compiler.
  10018. if test "$_lt_caught_CXX_error" != yes; then
  10019. # Code to be used in simple compile tests
  10020. lt_simple_compile_test_code="int some_variable = 0;"
  10021. # Code to be used in simple link tests
  10022. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10023. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10024. # If no C compiler was specified, use CC.
  10025. LTCC=${LTCC-"$CC"}
  10026. # If no C compiler flags were specified, use CFLAGS.
  10027. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10028. # Allow CC to be a program name with arguments.
  10029. compiler=$CC
  10030. # save warnings/boilerplate of simple test code
  10031. ac_outfile=conftest.$ac_objext
  10032. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10033. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10034. _lt_compiler_boilerplate=`cat conftest.err`
  10035. $RM conftest*
  10036. ac_outfile=conftest.$ac_objext
  10037. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10038. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10039. _lt_linker_boilerplate=`cat conftest.err`
  10040. $RM -r conftest*
  10041. # Allow CC to be a program name with arguments.
  10042. lt_save_CC=$CC
  10043. lt_save_LD=$LD
  10044. lt_save_GCC=$GCC
  10045. GCC=$GXX
  10046. lt_save_with_gnu_ld=$with_gnu_ld
  10047. lt_save_path_LD=$lt_cv_path_LD
  10048. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10049. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10050. else
  10051. $as_unset lt_cv_prog_gnu_ld
  10052. fi
  10053. if test -n "${lt_cv_path_LDCXX+set}"; then
  10054. lt_cv_path_LD=$lt_cv_path_LDCXX
  10055. else
  10056. $as_unset lt_cv_path_LD
  10057. fi
  10058. test -z "${LDCXX+set}" || LD=$LDCXX
  10059. CC=${CXX-"c++"}
  10060. compiler=$CC
  10061. compiler_CXX=$CC
  10062. for cc_temp in $compiler""; do
  10063. case $cc_temp in
  10064. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10065. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10066. \-*) ;;
  10067. *) break;;
  10068. esac
  10069. done
  10070. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10071. if test -n "$compiler"; then
  10072. # We don't want -fno-exception when compiling C++ code, so set the
  10073. # no_builtin_flag separately
  10074. if test "$GXX" = yes; then
  10075. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10076. else
  10077. lt_prog_compiler_no_builtin_flag_CXX=
  10078. fi
  10079. if test "$GXX" = yes; then
  10080. # Set up default GNU C++ configuration
  10081. # Check whether --with-gnu-ld was given.
  10082. if test "${with_gnu_ld+set}" = set; then :
  10083. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10084. else
  10085. with_gnu_ld=no
  10086. fi
  10087. ac_prog=ld
  10088. if test "$GCC" = yes; then
  10089. # Check if gcc -print-prog-name=ld gives a path.
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10091. $as_echo_n "checking for ld used by $CC... " >&6; }
  10092. case $host in
  10093. *-*-mingw*)
  10094. # gcc leaves a trailing carriage return which upsets mingw
  10095. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10096. *)
  10097. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10098. esac
  10099. case $ac_prog in
  10100. # Accept absolute paths.
  10101. [\\/]* | ?:[\\/]*)
  10102. re_direlt='/[^/][^/]*/\.\./'
  10103. # Canonicalize the pathname of ld
  10104. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10105. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10106. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10107. done
  10108. test -z "$LD" && LD="$ac_prog"
  10109. ;;
  10110. "")
  10111. # If it fails, then pretend we aren't using GCC.
  10112. ac_prog=ld
  10113. ;;
  10114. *)
  10115. # If it is relative, then search for the first ld in PATH.
  10116. with_gnu_ld=unknown
  10117. ;;
  10118. esac
  10119. elif test "$with_gnu_ld" = yes; then
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10121. $as_echo_n "checking for GNU ld... " >&6; }
  10122. else
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10124. $as_echo_n "checking for non-GNU ld... " >&6; }
  10125. fi
  10126. if test "${lt_cv_path_LD+set}" = set; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. if test -z "$LD"; then
  10130. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10131. for ac_dir in $PATH; do
  10132. IFS="$lt_save_ifs"
  10133. test -z "$ac_dir" && ac_dir=.
  10134. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10135. lt_cv_path_LD="$ac_dir/$ac_prog"
  10136. # Check to see if the program is GNU ld. I'd rather use --version,
  10137. # but apparently some variants of GNU ld only accept -v.
  10138. # Break only if it was the GNU/non-GNU ld that we prefer.
  10139. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10140. *GNU* | *'with BFD'*)
  10141. test "$with_gnu_ld" != no && break
  10142. ;;
  10143. *)
  10144. test "$with_gnu_ld" != yes && break
  10145. ;;
  10146. esac
  10147. fi
  10148. done
  10149. IFS="$lt_save_ifs"
  10150. else
  10151. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10152. fi
  10153. fi
  10154. LD="$lt_cv_path_LD"
  10155. if test -n "$LD"; then
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10157. $as_echo "$LD" >&6; }
  10158. else
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10160. $as_echo "no" >&6; }
  10161. fi
  10162. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10164. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10165. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10166. $as_echo_n "(cached) " >&6
  10167. else
  10168. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10169. case `$LD -v 2>&1 </dev/null` in
  10170. *GNU* | *'with BFD'*)
  10171. lt_cv_prog_gnu_ld=yes
  10172. ;;
  10173. *)
  10174. lt_cv_prog_gnu_ld=no
  10175. ;;
  10176. esac
  10177. fi
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10179. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10180. with_gnu_ld=$lt_cv_prog_gnu_ld
  10181. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10182. # archiving commands below assume that GNU ld is being used.
  10183. if test "$with_gnu_ld" = yes; then
  10184. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10185. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10186. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10187. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10188. # If archive_cmds runs LD, not CC, wlarc should be empty
  10189. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10190. # investigate it a little bit more. (MM)
  10191. wlarc='${wl}'
  10192. # ancient GNU ld didn't support --whole-archive et. al.
  10193. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10194. $GREP 'no-whole-archive' > /dev/null; then
  10195. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10196. else
  10197. whole_archive_flag_spec_CXX=
  10198. fi
  10199. else
  10200. with_gnu_ld=no
  10201. wlarc=
  10202. # A generic and very simple default shared library creation
  10203. # command for GNU C++ for the case where it uses the native
  10204. # linker, instead of GNU ld. If possible, this setting should
  10205. # overridden to take advantage of the native linker features on
  10206. # the platform it is being used on.
  10207. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10208. fi
  10209. # Commands to make compiler produce verbose output that lists
  10210. # what "hidden" libraries, object files and flags are used when
  10211. # linking a shared library.
  10212. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10213. else
  10214. GXX=no
  10215. with_gnu_ld=no
  10216. wlarc=
  10217. fi
  10218. # PORTME: fill in a description of your system's C++ link characteristics
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10220. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10221. ld_shlibs_CXX=yes
  10222. case $host_os in
  10223. aix3*)
  10224. # FIXME: insert proper C++ library support
  10225. ld_shlibs_CXX=no
  10226. ;;
  10227. aix[4-9]*)
  10228. if test "$host_cpu" = ia64; then
  10229. # On IA64, the linker does run time linking by default, so we don't
  10230. # have to do anything special.
  10231. aix_use_runtimelinking=no
  10232. exp_sym_flag='-Bexport'
  10233. no_entry_flag=""
  10234. else
  10235. aix_use_runtimelinking=no
  10236. # Test if we are trying to use run time linking or normal
  10237. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10238. # need to do runtime linking.
  10239. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10240. for ld_flag in $LDFLAGS; do
  10241. case $ld_flag in
  10242. *-brtl*)
  10243. aix_use_runtimelinking=yes
  10244. break
  10245. ;;
  10246. esac
  10247. done
  10248. ;;
  10249. esac
  10250. exp_sym_flag='-bexport'
  10251. no_entry_flag='-bnoentry'
  10252. fi
  10253. # When large executables or shared objects are built, AIX ld can
  10254. # have problems creating the table of contents. If linking a library
  10255. # or program results in "error TOC overflow" add -mminimal-toc to
  10256. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10257. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10258. archive_cmds_CXX=''
  10259. hardcode_direct_CXX=yes
  10260. hardcode_direct_absolute_CXX=yes
  10261. hardcode_libdir_separator_CXX=':'
  10262. link_all_deplibs_CXX=yes
  10263. file_list_spec_CXX='${wl}-f,'
  10264. if test "$GXX" = yes; then
  10265. case $host_os in aix4.[012]|aix4.[012].*)
  10266. # We only want to do this on AIX 4.2 and lower, the check
  10267. # below for broken collect2 doesn't work under 4.3+
  10268. collect2name=`${CC} -print-prog-name=collect2`
  10269. if test -f "$collect2name" &&
  10270. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10271. then
  10272. # We have reworked collect2
  10273. :
  10274. else
  10275. # We have old collect2
  10276. hardcode_direct_CXX=unsupported
  10277. # It fails to find uninstalled libraries when the uninstalled
  10278. # path is not listed in the libpath. Setting hardcode_minus_L
  10279. # to unsupported forces relinking
  10280. hardcode_minus_L_CXX=yes
  10281. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10282. hardcode_libdir_separator_CXX=
  10283. fi
  10284. esac
  10285. shared_flag='-shared'
  10286. if test "$aix_use_runtimelinking" = yes; then
  10287. shared_flag="$shared_flag "'${wl}-G'
  10288. fi
  10289. else
  10290. # not using gcc
  10291. if test "$host_cpu" = ia64; then
  10292. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10293. # chokes on -Wl,-G. The following line is correct:
  10294. shared_flag='-G'
  10295. else
  10296. if test "$aix_use_runtimelinking" = yes; then
  10297. shared_flag='${wl}-G'
  10298. else
  10299. shared_flag='${wl}-bM:SRE'
  10300. fi
  10301. fi
  10302. fi
  10303. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10304. # It seems that -bexpall does not export symbols beginning with
  10305. # underscore (_), so it is better to generate a list of symbols to
  10306. # export.
  10307. always_export_symbols_CXX=yes
  10308. if test "$aix_use_runtimelinking" = yes; then
  10309. # Warning - without using the other runtime loading flags (-brtl),
  10310. # -berok will link without error, but may produce a broken library.
  10311. allow_undefined_flag_CXX='-berok'
  10312. # Determine the default libpath from the value encoded in an empty
  10313. # executable.
  10314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10315. /* end confdefs.h. */
  10316. int
  10317. main ()
  10318. {
  10319. ;
  10320. return 0;
  10321. }
  10322. _ACEOF
  10323. if ac_fn_cxx_try_link "$LINENO"; then :
  10324. lt_aix_libpath_sed='
  10325. /Import File Strings/,/^$/ {
  10326. /^0/ {
  10327. s/^0 *\(.*\)$/\1/
  10328. p
  10329. }
  10330. }'
  10331. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10332. # Check for a 64-bit object if we didn't find anything.
  10333. if test -z "$aix_libpath"; then
  10334. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10335. fi
  10336. fi
  10337. rm -f core conftest.err conftest.$ac_objext \
  10338. conftest$ac_exeext conftest.$ac_ext
  10339. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10340. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10341. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10342. else
  10343. if test "$host_cpu" = ia64; then
  10344. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10345. allow_undefined_flag_CXX="-z nodefs"
  10346. 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"
  10347. else
  10348. # Determine the default libpath from the value encoded in an
  10349. # empty executable.
  10350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10351. /* end confdefs.h. */
  10352. int
  10353. main ()
  10354. {
  10355. ;
  10356. return 0;
  10357. }
  10358. _ACEOF
  10359. if ac_fn_cxx_try_link "$LINENO"; then :
  10360. lt_aix_libpath_sed='
  10361. /Import File Strings/,/^$/ {
  10362. /^0/ {
  10363. s/^0 *\(.*\)$/\1/
  10364. p
  10365. }
  10366. }'
  10367. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10368. # Check for a 64-bit object if we didn't find anything.
  10369. if test -z "$aix_libpath"; then
  10370. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10371. fi
  10372. fi
  10373. rm -f core conftest.err conftest.$ac_objext \
  10374. conftest$ac_exeext conftest.$ac_ext
  10375. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10376. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10377. # Warning - without using the other run time loading flags,
  10378. # -berok will link without error, but may produce a broken library.
  10379. no_undefined_flag_CXX=' ${wl}-bernotok'
  10380. allow_undefined_flag_CXX=' ${wl}-berok'
  10381. # Exported symbols can be pulled into shared objects from archives
  10382. whole_archive_flag_spec_CXX='$convenience'
  10383. archive_cmds_need_lc_CXX=yes
  10384. # This is similar to how AIX traditionally builds its shared
  10385. # libraries.
  10386. 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'
  10387. fi
  10388. fi
  10389. ;;
  10390. beos*)
  10391. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10392. allow_undefined_flag_CXX=unsupported
  10393. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10394. # support --undefined. This deserves some investigation. FIXME
  10395. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10396. else
  10397. ld_shlibs_CXX=no
  10398. fi
  10399. ;;
  10400. chorus*)
  10401. case $cc_basename in
  10402. *)
  10403. # FIXME: insert proper C++ library support
  10404. ld_shlibs_CXX=no
  10405. ;;
  10406. esac
  10407. ;;
  10408. cygwin* | mingw* | pw32* | cegcc*)
  10409. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10410. # as there is no search path for DLLs.
  10411. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10412. allow_undefined_flag_CXX=unsupported
  10413. always_export_symbols_CXX=no
  10414. enable_shared_with_static_runtimes_CXX=yes
  10415. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10416. 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'
  10417. # If the export-symbols file already is a .def file (1st line
  10418. # is EXPORTS), use it as is; otherwise, prepend...
  10419. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10420. cp $export_symbols $output_objdir/$soname.def;
  10421. else
  10422. echo EXPORTS > $output_objdir/$soname.def;
  10423. cat $export_symbols >> $output_objdir/$soname.def;
  10424. fi~
  10425. $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'
  10426. else
  10427. ld_shlibs_CXX=no
  10428. fi
  10429. ;;
  10430. darwin* | rhapsody*)
  10431. archive_cmds_need_lc_CXX=no
  10432. hardcode_direct_CXX=no
  10433. hardcode_automatic_CXX=yes
  10434. hardcode_shlibpath_var_CXX=unsupported
  10435. whole_archive_flag_spec_CXX=''
  10436. link_all_deplibs_CXX=yes
  10437. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10438. case $cc_basename in
  10439. ifort*) _lt_dar_can_shared=yes ;;
  10440. *) _lt_dar_can_shared=$GCC ;;
  10441. esac
  10442. if test "$_lt_dar_can_shared" = "yes"; then
  10443. output_verbose_link_cmd=echo
  10444. 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}"
  10445. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10446. 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}"
  10447. 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}"
  10448. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10449. 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}"
  10450. 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}"
  10451. fi
  10452. else
  10453. ld_shlibs_CXX=no
  10454. fi
  10455. ;;
  10456. dgux*)
  10457. case $cc_basename in
  10458. ec++*)
  10459. # FIXME: insert proper C++ library support
  10460. ld_shlibs_CXX=no
  10461. ;;
  10462. ghcx*)
  10463. # Green Hills C++ Compiler
  10464. # FIXME: insert proper C++ library support
  10465. ld_shlibs_CXX=no
  10466. ;;
  10467. *)
  10468. # FIXME: insert proper C++ library support
  10469. ld_shlibs_CXX=no
  10470. ;;
  10471. esac
  10472. ;;
  10473. freebsd[12]*)
  10474. # C++ shared libraries reported to be fairly broken before
  10475. # switch to ELF
  10476. ld_shlibs_CXX=no
  10477. ;;
  10478. freebsd-elf*)
  10479. archive_cmds_need_lc_CXX=no
  10480. ;;
  10481. freebsd* | dragonfly*)
  10482. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10483. # conventions
  10484. ld_shlibs_CXX=yes
  10485. ;;
  10486. gnu*)
  10487. ;;
  10488. hpux9*)
  10489. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10490. hardcode_libdir_separator_CXX=:
  10491. export_dynamic_flag_spec_CXX='${wl}-E'
  10492. hardcode_direct_CXX=yes
  10493. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10494. # but as the default
  10495. # location of the library.
  10496. case $cc_basename in
  10497. CC*)
  10498. # FIXME: insert proper C++ library support
  10499. ld_shlibs_CXX=no
  10500. ;;
  10501. aCC*)
  10502. 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'
  10503. # Commands to make compiler produce verbose output that lists
  10504. # what "hidden" libraries, object files and flags are used when
  10505. # linking a shared library.
  10506. #
  10507. # There doesn't appear to be a way to prevent this compiler from
  10508. # explicitly linking system object files so we need to strip them
  10509. # from the output so that they don't get included in the library
  10510. # dependencies.
  10511. 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; $ECHO "X$list" | $Xsed'
  10512. ;;
  10513. *)
  10514. if test "$GXX" = yes; then
  10515. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10516. else
  10517. # FIXME: insert proper C++ library support
  10518. ld_shlibs_CXX=no
  10519. fi
  10520. ;;
  10521. esac
  10522. ;;
  10523. hpux10*|hpux11*)
  10524. if test $with_gnu_ld = no; then
  10525. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10526. hardcode_libdir_separator_CXX=:
  10527. case $host_cpu in
  10528. hppa*64*|ia64*)
  10529. ;;
  10530. *)
  10531. export_dynamic_flag_spec_CXX='${wl}-E'
  10532. ;;
  10533. esac
  10534. fi
  10535. case $host_cpu in
  10536. hppa*64*|ia64*)
  10537. hardcode_direct_CXX=no
  10538. hardcode_shlibpath_var_CXX=no
  10539. ;;
  10540. *)
  10541. hardcode_direct_CXX=yes
  10542. hardcode_direct_absolute_CXX=yes
  10543. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10544. # but as the default
  10545. # location of the library.
  10546. ;;
  10547. esac
  10548. case $cc_basename in
  10549. CC*)
  10550. # FIXME: insert proper C++ library support
  10551. ld_shlibs_CXX=no
  10552. ;;
  10553. aCC*)
  10554. case $host_cpu in
  10555. hppa*64*)
  10556. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10557. ;;
  10558. ia64*)
  10559. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10560. ;;
  10561. *)
  10562. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10563. ;;
  10564. esac
  10565. # Commands to make compiler produce verbose output that lists
  10566. # what "hidden" libraries, object files and flags are used when
  10567. # linking a shared library.
  10568. #
  10569. # There doesn't appear to be a way to prevent this compiler from
  10570. # explicitly linking system object files so we need to strip them
  10571. # from the output so that they don't get included in the library
  10572. # dependencies.
  10573. 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; $ECHO "X$list" | $Xsed'
  10574. ;;
  10575. *)
  10576. if test "$GXX" = yes; then
  10577. if test $with_gnu_ld = no; then
  10578. case $host_cpu in
  10579. hppa*64*)
  10580. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10581. ;;
  10582. ia64*)
  10583. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10584. ;;
  10585. *)
  10586. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10587. ;;
  10588. esac
  10589. fi
  10590. else
  10591. # FIXME: insert proper C++ library support
  10592. ld_shlibs_CXX=no
  10593. fi
  10594. ;;
  10595. esac
  10596. ;;
  10597. interix[3-9]*)
  10598. hardcode_direct_CXX=no
  10599. hardcode_shlibpath_var_CXX=no
  10600. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10601. export_dynamic_flag_spec_CXX='${wl}-E'
  10602. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10603. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10604. # default) and relocated if they conflict, which is a slow very memory
  10605. # consuming and fragmenting process. To avoid this, we pick a random,
  10606. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10607. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10608. 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'
  10609. 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'
  10610. ;;
  10611. irix5* | irix6*)
  10612. case $cc_basename in
  10613. CC*)
  10614. # SGI C++
  10615. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10616. # Archives containing C++ object files must be created using
  10617. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10618. # necessary to make sure instantiated templates are included
  10619. # in the archive.
  10620. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10621. ;;
  10622. *)
  10623. if test "$GXX" = yes; then
  10624. if test "$with_gnu_ld" = no; then
  10625. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10626. else
  10627. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10628. fi
  10629. fi
  10630. link_all_deplibs_CXX=yes
  10631. ;;
  10632. esac
  10633. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10634. hardcode_libdir_separator_CXX=:
  10635. inherit_rpath_CXX=yes
  10636. ;;
  10637. linux* | k*bsd*-gnu)
  10638. case $cc_basename in
  10639. KCC*)
  10640. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10641. # KCC will only create a shared library if the output file
  10642. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10643. # to its proper name (with version) after linking.
  10644. 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'
  10645. 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'
  10646. # Commands to make compiler produce verbose output that lists
  10647. # what "hidden" libraries, object files and flags are used when
  10648. # linking a shared library.
  10649. #
  10650. # There doesn't appear to be a way to prevent this compiler from
  10651. # explicitly linking system object files so we need to strip them
  10652. # from the output so that they don't get included in the library
  10653. # dependencies.
  10654. 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; $ECHO "X$list" | $Xsed'
  10655. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10656. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10657. # Archives containing C++ object files must be created using
  10658. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10659. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10660. ;;
  10661. icpc* | ecpc* )
  10662. # Intel C++
  10663. with_gnu_ld=yes
  10664. # version 8.0 and above of icpc choke on multiply defined symbols
  10665. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10666. # earlier do not add the objects themselves.
  10667. case `$CC -V 2>&1` in
  10668. *"Version 7."*)
  10669. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10670. 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'
  10671. ;;
  10672. *) # Version 8.0 or newer
  10673. tmp_idyn=
  10674. case $host_cpu in
  10675. ia64*) tmp_idyn=' -i_dynamic';;
  10676. esac
  10677. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10678. 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'
  10679. ;;
  10680. esac
  10681. archive_cmds_need_lc_CXX=no
  10682. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10683. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10684. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10685. ;;
  10686. pgCC* | pgcpp*)
  10687. # Portland Group C++ compiler
  10688. case `$CC -V` in
  10689. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10690. prelink_cmds_CXX='tpldir=Template.dir~
  10691. rm -rf $tpldir~
  10692. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10693. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10694. old_archive_cmds_CXX='tpldir=Template.dir~
  10695. rm -rf $tpldir~
  10696. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10697. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10698. $RANLIB $oldlib'
  10699. archive_cmds_CXX='tpldir=Template.dir~
  10700. rm -rf $tpldir~
  10701. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10702. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10703. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10704. rm -rf $tpldir~
  10705. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10706. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10707. ;;
  10708. *) # Version 6 will use weak symbols
  10709. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10710. 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'
  10711. ;;
  10712. esac
  10713. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10714. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10715. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10716. ;;
  10717. cxx*)
  10718. # Compaq C++
  10719. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10720. 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'
  10721. runpath_var=LD_RUN_PATH
  10722. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10723. hardcode_libdir_separator_CXX=:
  10724. # Commands to make compiler produce verbose output that lists
  10725. # what "hidden" libraries, object files and flags are used when
  10726. # linking a shared library.
  10727. #
  10728. # There doesn't appear to be a way to prevent this compiler from
  10729. # explicitly linking system object files so we need to strip them
  10730. # from the output so that they don't get included in the library
  10731. # dependencies.
  10732. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10733. ;;
  10734. xl*)
  10735. # IBM XL 8.0 on PPC, with GNU ld
  10736. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10737. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10738. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10739. if test "x$supports_anon_versioning" = xyes; then
  10740. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10741. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10742. echo "local: *; };" >> $output_objdir/$libname.ver~
  10743. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10744. fi
  10745. ;;
  10746. *)
  10747. case `$CC -V 2>&1 | sed 5q` in
  10748. *Sun\ C*)
  10749. # Sun C++ 5.9
  10750. no_undefined_flag_CXX=' -zdefs'
  10751. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10752. 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'
  10753. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10754. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10755. compiler_needs_object_CXX=yes
  10756. # Not sure whether something based on
  10757. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10758. # would be better.
  10759. output_verbose_link_cmd='echo'
  10760. # Archives containing C++ object files must be created using
  10761. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10762. # necessary to make sure instantiated templates are included
  10763. # in the archive.
  10764. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10765. ;;
  10766. esac
  10767. ;;
  10768. esac
  10769. ;;
  10770. lynxos*)
  10771. # FIXME: insert proper C++ library support
  10772. ld_shlibs_CXX=no
  10773. ;;
  10774. m88k*)
  10775. # FIXME: insert proper C++ library support
  10776. ld_shlibs_CXX=no
  10777. ;;
  10778. mvs*)
  10779. case $cc_basename in
  10780. cxx*)
  10781. # FIXME: insert proper C++ library support
  10782. ld_shlibs_CXX=no
  10783. ;;
  10784. *)
  10785. # FIXME: insert proper C++ library support
  10786. ld_shlibs_CXX=no
  10787. ;;
  10788. esac
  10789. ;;
  10790. netbsd*)
  10791. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10792. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10793. wlarc=
  10794. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10795. hardcode_direct_CXX=yes
  10796. hardcode_shlibpath_var_CXX=no
  10797. fi
  10798. # Workaround some broken pre-1.5 toolchains
  10799. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10800. ;;
  10801. *nto* | *qnx*)
  10802. ld_shlibs_CXX=yes
  10803. ;;
  10804. openbsd2*)
  10805. # C++ shared libraries are fairly broken
  10806. ld_shlibs_CXX=no
  10807. ;;
  10808. openbsd*)
  10809. if test -f /usr/libexec/ld.so; then
  10810. hardcode_direct_CXX=yes
  10811. hardcode_shlibpath_var_CXX=no
  10812. hardcode_direct_absolute_CXX=yes
  10813. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10814. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10815. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10816. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10817. export_dynamic_flag_spec_CXX='${wl}-E'
  10818. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10819. fi
  10820. output_verbose_link_cmd=echo
  10821. else
  10822. ld_shlibs_CXX=no
  10823. fi
  10824. ;;
  10825. osf3* | osf4* | osf5*)
  10826. case $cc_basename in
  10827. KCC*)
  10828. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10829. # KCC will only create a shared library if the output file
  10830. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10831. # to its proper name (with version) after linking.
  10832. 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'
  10833. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10834. hardcode_libdir_separator_CXX=:
  10835. # Archives containing C++ object files must be created using
  10836. # the KAI C++ compiler.
  10837. case $host in
  10838. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10839. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10840. esac
  10841. ;;
  10842. RCC*)
  10843. # Rational C++ 2.4.1
  10844. # FIXME: insert proper C++ library support
  10845. ld_shlibs_CXX=no
  10846. ;;
  10847. cxx*)
  10848. case $host in
  10849. osf3*)
  10850. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10851. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10852. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10853. ;;
  10854. *)
  10855. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10856. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10857. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10858. echo "-hidden">> $lib.exp~
  10859. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10860. $RM $lib.exp'
  10861. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10862. ;;
  10863. esac
  10864. hardcode_libdir_separator_CXX=:
  10865. # Commands to make compiler produce verbose output that lists
  10866. # what "hidden" libraries, object files and flags are used when
  10867. # linking a shared library.
  10868. #
  10869. # There doesn't appear to be a way to prevent this compiler from
  10870. # explicitly linking system object files so we need to strip them
  10871. # from the output so that they don't get included in the library
  10872. # dependencies.
  10873. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10874. ;;
  10875. *)
  10876. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10877. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10878. case $host in
  10879. osf3*)
  10880. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10881. ;;
  10882. *)
  10883. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10884. ;;
  10885. esac
  10886. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10887. hardcode_libdir_separator_CXX=:
  10888. # Commands to make compiler produce verbose output that lists
  10889. # what "hidden" libraries, object files and flags are used when
  10890. # linking a shared library.
  10891. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10892. else
  10893. # FIXME: insert proper C++ library support
  10894. ld_shlibs_CXX=no
  10895. fi
  10896. ;;
  10897. esac
  10898. ;;
  10899. psos*)
  10900. # FIXME: insert proper C++ library support
  10901. ld_shlibs_CXX=no
  10902. ;;
  10903. sunos4*)
  10904. case $cc_basename in
  10905. CC*)
  10906. # Sun C++ 4.x
  10907. # FIXME: insert proper C++ library support
  10908. ld_shlibs_CXX=no
  10909. ;;
  10910. lcc*)
  10911. # Lucid
  10912. # FIXME: insert proper C++ library support
  10913. ld_shlibs_CXX=no
  10914. ;;
  10915. *)
  10916. # FIXME: insert proper C++ library support
  10917. ld_shlibs_CXX=no
  10918. ;;
  10919. esac
  10920. ;;
  10921. solaris*)
  10922. case $cc_basename in
  10923. CC*)
  10924. # Sun C++ 4.2, 5.x and Centerline C++
  10925. archive_cmds_need_lc_CXX=yes
  10926. no_undefined_flag_CXX=' -zdefs'
  10927. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10928. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10929. $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'
  10930. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10931. hardcode_shlibpath_var_CXX=no
  10932. case $host_os in
  10933. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10934. *)
  10935. # The compiler driver will combine and reorder linker options,
  10936. # but understands `-z linker_flag'.
  10937. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10938. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10939. ;;
  10940. esac
  10941. link_all_deplibs_CXX=yes
  10942. output_verbose_link_cmd='echo'
  10943. # Archives containing C++ object files must be created using
  10944. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10945. # necessary to make sure instantiated templates are included
  10946. # in the archive.
  10947. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10948. ;;
  10949. gcx*)
  10950. # Green Hills C++ Compiler
  10951. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10952. # The C++ compiler must be used to create the archive.
  10953. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10954. ;;
  10955. *)
  10956. # GNU C++ compiler with Solaris linker
  10957. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10958. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10959. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10960. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10961. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10962. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10963. # Commands to make compiler produce verbose output that lists
  10964. # what "hidden" libraries, object files and flags are used when
  10965. # linking a shared library.
  10966. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10967. else
  10968. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10969. # platform.
  10970. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10971. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10972. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10973. # Commands to make compiler produce verbose output that lists
  10974. # what "hidden" libraries, object files and flags are used when
  10975. # linking a shared library.
  10976. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10977. fi
  10978. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10979. case $host_os in
  10980. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10981. *)
  10982. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10983. ;;
  10984. esac
  10985. fi
  10986. ;;
  10987. esac
  10988. ;;
  10989. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10990. no_undefined_flag_CXX='${wl}-z,text'
  10991. archive_cmds_need_lc_CXX=no
  10992. hardcode_shlibpath_var_CXX=no
  10993. runpath_var='LD_RUN_PATH'
  10994. case $cc_basename in
  10995. CC*)
  10996. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10997. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10998. ;;
  10999. *)
  11000. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11001. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. ;;
  11003. esac
  11004. ;;
  11005. sysv5* | sco3.2v5* | sco5v6*)
  11006. # Note: We can NOT use -z defs as we might desire, because we do not
  11007. # link with -lc, and that would cause any symbols used from libc to
  11008. # always be unresolved, which means just about no library would
  11009. # ever link correctly. If we're not using GNU ld we use -z text
  11010. # though, which does catch some bad symbols but isn't as heavy-handed
  11011. # as -z defs.
  11012. no_undefined_flag_CXX='${wl}-z,text'
  11013. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11014. archive_cmds_need_lc_CXX=no
  11015. hardcode_shlibpath_var_CXX=no
  11016. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11017. hardcode_libdir_separator_CXX=':'
  11018. link_all_deplibs_CXX=yes
  11019. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11020. runpath_var='LD_RUN_PATH'
  11021. case $cc_basename in
  11022. CC*)
  11023. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11024. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11025. ;;
  11026. *)
  11027. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11028. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11029. ;;
  11030. esac
  11031. ;;
  11032. tandem*)
  11033. case $cc_basename in
  11034. NCC*)
  11035. # NonStop-UX NCC 3.20
  11036. # FIXME: insert proper C++ library support
  11037. ld_shlibs_CXX=no
  11038. ;;
  11039. *)
  11040. # FIXME: insert proper C++ library support
  11041. ld_shlibs_CXX=no
  11042. ;;
  11043. esac
  11044. ;;
  11045. vxworks*)
  11046. # FIXME: insert proper C++ library support
  11047. ld_shlibs_CXX=no
  11048. ;;
  11049. *)
  11050. # FIXME: insert proper C++ library support
  11051. ld_shlibs_CXX=no
  11052. ;;
  11053. esac
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11055. $as_echo "$ld_shlibs_CXX" >&6; }
  11056. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11057. GCC_CXX="$GXX"
  11058. LD_CXX="$LD"
  11059. ## CAVEAT EMPTOR:
  11060. ## There is no encapsulation within the following macros, do not change
  11061. ## the running order or otherwise move them around unless you know exactly
  11062. ## what you are doing...
  11063. # Dependencies to place before and after the object being linked:
  11064. predep_objects_CXX=
  11065. postdep_objects_CXX=
  11066. predeps_CXX=
  11067. postdeps_CXX=
  11068. compiler_lib_search_path_CXX=
  11069. cat > conftest.$ac_ext <<_LT_EOF
  11070. class Foo
  11071. {
  11072. public:
  11073. Foo (void) { a = 0; }
  11074. private:
  11075. int a;
  11076. };
  11077. _LT_EOF
  11078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11079. (eval $ac_compile) 2>&5
  11080. ac_status=$?
  11081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11082. test $ac_status = 0; }; then
  11083. # Parse the compiler output and extract the necessary
  11084. # objects, libraries and library flags.
  11085. # Sentinel used to keep track of whether or not we are before
  11086. # the conftest object file.
  11087. pre_test_object_deps_done=no
  11088. for p in `eval "$output_verbose_link_cmd"`; do
  11089. case $p in
  11090. -L* | -R* | -l*)
  11091. # Some compilers place space between "-{L,R}" and the path.
  11092. # Remove the space.
  11093. if test $p = "-L" ||
  11094. test $p = "-R"; then
  11095. prev=$p
  11096. continue
  11097. else
  11098. prev=
  11099. fi
  11100. if test "$pre_test_object_deps_done" = no; then
  11101. case $p in
  11102. -L* | -R*)
  11103. # Internal compiler library paths should come after those
  11104. # provided the user. The postdeps already come after the
  11105. # user supplied libs so there is no need to process them.
  11106. if test -z "$compiler_lib_search_path_CXX"; then
  11107. compiler_lib_search_path_CXX="${prev}${p}"
  11108. else
  11109. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11110. fi
  11111. ;;
  11112. # The "-l" case would never come before the object being
  11113. # linked, so don't bother handling this case.
  11114. esac
  11115. else
  11116. if test -z "$postdeps_CXX"; then
  11117. postdeps_CXX="${prev}${p}"
  11118. else
  11119. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11120. fi
  11121. fi
  11122. ;;
  11123. *.$objext)
  11124. # This assumes that the test object file only shows up
  11125. # once in the compiler output.
  11126. if test "$p" = "conftest.$objext"; then
  11127. pre_test_object_deps_done=yes
  11128. continue
  11129. fi
  11130. if test "$pre_test_object_deps_done" = no; then
  11131. if test -z "$predep_objects_CXX"; then
  11132. predep_objects_CXX="$p"
  11133. else
  11134. predep_objects_CXX="$predep_objects_CXX $p"
  11135. fi
  11136. else
  11137. if test -z "$postdep_objects_CXX"; then
  11138. postdep_objects_CXX="$p"
  11139. else
  11140. postdep_objects_CXX="$postdep_objects_CXX $p"
  11141. fi
  11142. fi
  11143. ;;
  11144. *) ;; # Ignore the rest.
  11145. esac
  11146. done
  11147. # Clean up.
  11148. rm -f a.out a.exe
  11149. else
  11150. echo "libtool.m4: error: problem compiling CXX test program"
  11151. fi
  11152. $RM -f confest.$objext
  11153. # PORTME: override above test on systems where it is broken
  11154. case $host_os in
  11155. interix[3-9]*)
  11156. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11157. # hack all around it, let's just trust "g++" to DTRT.
  11158. predep_objects_CXX=
  11159. postdep_objects_CXX=
  11160. postdeps_CXX=
  11161. ;;
  11162. linux*)
  11163. case `$CC -V 2>&1 | sed 5q` in
  11164. *Sun\ C*)
  11165. # Sun C++ 5.9
  11166. # The more standards-conforming stlport4 library is
  11167. # incompatible with the Cstd library. Avoid specifying
  11168. # it if it's in CXXFLAGS. Ignore libCrun as
  11169. # -library=stlport4 depends on it.
  11170. case " $CXX $CXXFLAGS " in
  11171. *" -library=stlport4 "*)
  11172. solaris_use_stlport4=yes
  11173. ;;
  11174. esac
  11175. if test "$solaris_use_stlport4" != yes; then
  11176. postdeps_CXX='-library=Cstd -library=Crun'
  11177. fi
  11178. ;;
  11179. esac
  11180. ;;
  11181. solaris*)
  11182. case $cc_basename in
  11183. CC*)
  11184. # The more standards-conforming stlport4 library is
  11185. # incompatible with the Cstd library. Avoid specifying
  11186. # it if it's in CXXFLAGS. Ignore libCrun as
  11187. # -library=stlport4 depends on it.
  11188. case " $CXX $CXXFLAGS " in
  11189. *" -library=stlport4 "*)
  11190. solaris_use_stlport4=yes
  11191. ;;
  11192. esac
  11193. # Adding this requires a known-good setup of shared libraries for
  11194. # Sun compiler versions before 5.6, else PIC objects from an old
  11195. # archive will be linked into the output, leading to subtle bugs.
  11196. if test "$solaris_use_stlport4" != yes; then
  11197. postdeps_CXX='-library=Cstd -library=Crun'
  11198. fi
  11199. ;;
  11200. esac
  11201. ;;
  11202. esac
  11203. case " $postdeps_CXX " in
  11204. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11205. esac
  11206. compiler_lib_search_dirs_CXX=
  11207. if test -n "${compiler_lib_search_path_CXX}"; then
  11208. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11209. fi
  11210. lt_prog_compiler_wl_CXX=
  11211. lt_prog_compiler_pic_CXX=
  11212. lt_prog_compiler_static_CXX=
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11214. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11215. # C++ specific cases for pic, static, wl, etc.
  11216. if test "$GXX" = yes; then
  11217. lt_prog_compiler_wl_CXX='-Wl,'
  11218. lt_prog_compiler_static_CXX='-static'
  11219. case $host_os in
  11220. aix*)
  11221. # All AIX code is PIC.
  11222. if test "$host_cpu" = ia64; then
  11223. # AIX 5 now supports IA64 processor
  11224. lt_prog_compiler_static_CXX='-Bstatic'
  11225. fi
  11226. ;;
  11227. amigaos*)
  11228. case $host_cpu in
  11229. powerpc)
  11230. # see comment about AmigaOS4 .so support
  11231. lt_prog_compiler_pic_CXX='-fPIC'
  11232. ;;
  11233. m68k)
  11234. # FIXME: we need at least 68020 code to build shared libraries, but
  11235. # adding the `-m68020' flag to GCC prevents building anything better,
  11236. # like `-m68040'.
  11237. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11238. ;;
  11239. esac
  11240. ;;
  11241. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11242. # PIC is the default for these OSes.
  11243. ;;
  11244. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11245. # This hack is so that the source file can tell whether it is being
  11246. # built for inclusion in a dll (and should export symbols for example).
  11247. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11248. # (--disable-auto-import) libraries
  11249. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11250. ;;
  11251. darwin* | rhapsody*)
  11252. # PIC is the default on this platform
  11253. # Common symbols not allowed in MH_DYLIB files
  11254. lt_prog_compiler_pic_CXX='-fno-common'
  11255. ;;
  11256. *djgpp*)
  11257. # DJGPP does not support shared libraries at all
  11258. lt_prog_compiler_pic_CXX=
  11259. ;;
  11260. interix[3-9]*)
  11261. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11262. # Instead, we relocate shared libraries at runtime.
  11263. ;;
  11264. sysv4*MP*)
  11265. if test -d /usr/nec; then
  11266. lt_prog_compiler_pic_CXX=-Kconform_pic
  11267. fi
  11268. ;;
  11269. hpux*)
  11270. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11271. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11272. # sets the default TLS model and affects inlining.
  11273. case $host_cpu in
  11274. hppa*64*)
  11275. ;;
  11276. *)
  11277. lt_prog_compiler_pic_CXX='-fPIC'
  11278. ;;
  11279. esac
  11280. ;;
  11281. *qnx* | *nto*)
  11282. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11283. # it will coredump.
  11284. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11285. ;;
  11286. *)
  11287. lt_prog_compiler_pic_CXX='-fPIC'
  11288. ;;
  11289. esac
  11290. else
  11291. case $host_os in
  11292. aix[4-9]*)
  11293. # All AIX code is PIC.
  11294. if test "$host_cpu" = ia64; then
  11295. # AIX 5 now supports IA64 processor
  11296. lt_prog_compiler_static_CXX='-Bstatic'
  11297. else
  11298. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11299. fi
  11300. ;;
  11301. chorus*)
  11302. case $cc_basename in
  11303. cxch68*)
  11304. # Green Hills C++ Compiler
  11305. # _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"
  11306. ;;
  11307. esac
  11308. ;;
  11309. dgux*)
  11310. case $cc_basename in
  11311. ec++*)
  11312. lt_prog_compiler_pic_CXX='-KPIC'
  11313. ;;
  11314. ghcx*)
  11315. # Green Hills C++ Compiler
  11316. lt_prog_compiler_pic_CXX='-pic'
  11317. ;;
  11318. *)
  11319. ;;
  11320. esac
  11321. ;;
  11322. freebsd* | dragonfly*)
  11323. # FreeBSD uses GNU C++
  11324. ;;
  11325. hpux9* | hpux10* | hpux11*)
  11326. case $cc_basename in
  11327. CC*)
  11328. lt_prog_compiler_wl_CXX='-Wl,'
  11329. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11330. if test "$host_cpu" != ia64; then
  11331. lt_prog_compiler_pic_CXX='+Z'
  11332. fi
  11333. ;;
  11334. aCC*)
  11335. lt_prog_compiler_wl_CXX='-Wl,'
  11336. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11337. case $host_cpu in
  11338. hppa*64*|ia64*)
  11339. # +Z the default
  11340. ;;
  11341. *)
  11342. lt_prog_compiler_pic_CXX='+Z'
  11343. ;;
  11344. esac
  11345. ;;
  11346. *)
  11347. ;;
  11348. esac
  11349. ;;
  11350. interix*)
  11351. # This is c89, which is MS Visual C++ (no shared libs)
  11352. # Anyone wants to do a port?
  11353. ;;
  11354. irix5* | irix6* | nonstopux*)
  11355. case $cc_basename in
  11356. CC*)
  11357. lt_prog_compiler_wl_CXX='-Wl,'
  11358. lt_prog_compiler_static_CXX='-non_shared'
  11359. # CC pic flag -KPIC is the default.
  11360. ;;
  11361. *)
  11362. ;;
  11363. esac
  11364. ;;
  11365. linux* | k*bsd*-gnu)
  11366. case $cc_basename in
  11367. KCC*)
  11368. # KAI C++ Compiler
  11369. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11370. lt_prog_compiler_pic_CXX='-fPIC'
  11371. ;;
  11372. ecpc* )
  11373. # old Intel C++ for x86_64 which still supported -KPIC.
  11374. lt_prog_compiler_wl_CXX='-Wl,'
  11375. lt_prog_compiler_pic_CXX='-KPIC'
  11376. lt_prog_compiler_static_CXX='-static'
  11377. ;;
  11378. icpc* )
  11379. # Intel C++, used to be incompatible with GCC.
  11380. # ICC 10 doesn't accept -KPIC any more.
  11381. lt_prog_compiler_wl_CXX='-Wl,'
  11382. lt_prog_compiler_pic_CXX='-fPIC'
  11383. lt_prog_compiler_static_CXX='-static'
  11384. ;;
  11385. pgCC* | pgcpp*)
  11386. # Portland Group C++ compiler
  11387. lt_prog_compiler_wl_CXX='-Wl,'
  11388. lt_prog_compiler_pic_CXX='-fpic'
  11389. lt_prog_compiler_static_CXX='-Bstatic'
  11390. ;;
  11391. cxx*)
  11392. # Compaq C++
  11393. # Make sure the PIC flag is empty. It appears that all Alpha
  11394. # Linux and Compaq Tru64 Unix objects are PIC.
  11395. lt_prog_compiler_pic_CXX=
  11396. lt_prog_compiler_static_CXX='-non_shared'
  11397. ;;
  11398. xlc* | xlC*)
  11399. # IBM XL 8.0 on PPC
  11400. lt_prog_compiler_wl_CXX='-Wl,'
  11401. lt_prog_compiler_pic_CXX='-qpic'
  11402. lt_prog_compiler_static_CXX='-qstaticlink'
  11403. ;;
  11404. *)
  11405. case `$CC -V 2>&1 | sed 5q` in
  11406. *Sun\ C*)
  11407. # Sun C++ 5.9
  11408. lt_prog_compiler_pic_CXX='-KPIC'
  11409. lt_prog_compiler_static_CXX='-Bstatic'
  11410. lt_prog_compiler_wl_CXX='-Qoption ld '
  11411. ;;
  11412. esac
  11413. ;;
  11414. esac
  11415. ;;
  11416. lynxos*)
  11417. ;;
  11418. m88k*)
  11419. ;;
  11420. mvs*)
  11421. case $cc_basename in
  11422. cxx*)
  11423. lt_prog_compiler_pic_CXX='-W c,exportall'
  11424. ;;
  11425. *)
  11426. ;;
  11427. esac
  11428. ;;
  11429. netbsd* | netbsdelf*-gnu)
  11430. ;;
  11431. *qnx* | *nto*)
  11432. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11433. # it will coredump.
  11434. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11435. ;;
  11436. osf3* | osf4* | osf5*)
  11437. case $cc_basename in
  11438. KCC*)
  11439. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11440. ;;
  11441. RCC*)
  11442. # Rational C++ 2.4.1
  11443. lt_prog_compiler_pic_CXX='-pic'
  11444. ;;
  11445. cxx*)
  11446. # Digital/Compaq C++
  11447. lt_prog_compiler_wl_CXX='-Wl,'
  11448. # Make sure the PIC flag is empty. It appears that all Alpha
  11449. # Linux and Compaq Tru64 Unix objects are PIC.
  11450. lt_prog_compiler_pic_CXX=
  11451. lt_prog_compiler_static_CXX='-non_shared'
  11452. ;;
  11453. *)
  11454. ;;
  11455. esac
  11456. ;;
  11457. psos*)
  11458. ;;
  11459. solaris*)
  11460. case $cc_basename in
  11461. CC*)
  11462. # Sun C++ 4.2, 5.x and Centerline C++
  11463. lt_prog_compiler_pic_CXX='-KPIC'
  11464. lt_prog_compiler_static_CXX='-Bstatic'
  11465. lt_prog_compiler_wl_CXX='-Qoption ld '
  11466. ;;
  11467. gcx*)
  11468. # Green Hills C++ Compiler
  11469. lt_prog_compiler_pic_CXX='-PIC'
  11470. ;;
  11471. *)
  11472. ;;
  11473. esac
  11474. ;;
  11475. sunos4*)
  11476. case $cc_basename in
  11477. CC*)
  11478. # Sun C++ 4.x
  11479. lt_prog_compiler_pic_CXX='-pic'
  11480. lt_prog_compiler_static_CXX='-Bstatic'
  11481. ;;
  11482. lcc*)
  11483. # Lucid
  11484. lt_prog_compiler_pic_CXX='-pic'
  11485. ;;
  11486. *)
  11487. ;;
  11488. esac
  11489. ;;
  11490. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11491. case $cc_basename in
  11492. CC*)
  11493. lt_prog_compiler_wl_CXX='-Wl,'
  11494. lt_prog_compiler_pic_CXX='-KPIC'
  11495. lt_prog_compiler_static_CXX='-Bstatic'
  11496. ;;
  11497. esac
  11498. ;;
  11499. tandem*)
  11500. case $cc_basename in
  11501. NCC*)
  11502. # NonStop-UX NCC 3.20
  11503. lt_prog_compiler_pic_CXX='-KPIC'
  11504. ;;
  11505. *)
  11506. ;;
  11507. esac
  11508. ;;
  11509. vxworks*)
  11510. ;;
  11511. *)
  11512. lt_prog_compiler_can_build_shared_CXX=no
  11513. ;;
  11514. esac
  11515. fi
  11516. case $host_os in
  11517. # For platforms which do not support PIC, -DPIC is meaningless:
  11518. *djgpp*)
  11519. lt_prog_compiler_pic_CXX=
  11520. ;;
  11521. *)
  11522. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11523. ;;
  11524. esac
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11526. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11527. #
  11528. # Check to make sure the PIC flag actually works.
  11529. #
  11530. if test -n "$lt_prog_compiler_pic_CXX"; then
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11532. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11533. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11534. $as_echo_n "(cached) " >&6
  11535. else
  11536. lt_cv_prog_compiler_pic_works_CXX=no
  11537. ac_outfile=conftest.$ac_objext
  11538. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11539. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11540. # Insert the option either (1) after the last *FLAGS variable, or
  11541. # (2) before a word containing "conftest.", or (3) at the end.
  11542. # Note that $ac_compile itself does not contain backslashes and begins
  11543. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11544. # The option is referenced via a variable to avoid confusing sed.
  11545. lt_compile=`echo "$ac_compile" | $SED \
  11546. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11547. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11548. -e 's:$: $lt_compiler_flag:'`
  11549. (eval echo "\"\$as_me:13337: $lt_compile\"" >&5)
  11550. (eval "$lt_compile" 2>conftest.err)
  11551. ac_status=$?
  11552. cat conftest.err >&5
  11553. echo "$as_me:13341: \$? = $ac_status" >&5
  11554. if (exit $ac_status) && test -s "$ac_outfile"; then
  11555. # The compiler can only warn and ignore the option if not recognized
  11556. # So say no if there are warnings other than the usual output.
  11557. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11558. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11559. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11560. lt_cv_prog_compiler_pic_works_CXX=yes
  11561. fi
  11562. fi
  11563. $RM conftest*
  11564. fi
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11566. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11567. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11568. case $lt_prog_compiler_pic_CXX in
  11569. "" | " "*) ;;
  11570. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11571. esac
  11572. else
  11573. lt_prog_compiler_pic_CXX=
  11574. lt_prog_compiler_can_build_shared_CXX=no
  11575. fi
  11576. fi
  11577. #
  11578. # Check to make sure the static flag actually works.
  11579. #
  11580. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11582. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11583. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11584. $as_echo_n "(cached) " >&6
  11585. else
  11586. lt_cv_prog_compiler_static_works_CXX=no
  11587. save_LDFLAGS="$LDFLAGS"
  11588. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11589. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11590. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11591. # The linker can only warn and ignore the option if not recognized
  11592. # So say no if there are warnings
  11593. if test -s conftest.err; then
  11594. # Append any errors to the config.log.
  11595. cat conftest.err 1>&5
  11596. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11597. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11598. if diff conftest.exp conftest.er2 >/dev/null; then
  11599. lt_cv_prog_compiler_static_works_CXX=yes
  11600. fi
  11601. else
  11602. lt_cv_prog_compiler_static_works_CXX=yes
  11603. fi
  11604. fi
  11605. $RM -r conftest*
  11606. LDFLAGS="$save_LDFLAGS"
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11609. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11610. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11611. :
  11612. else
  11613. lt_prog_compiler_static_CXX=
  11614. fi
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11616. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11617. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11618. $as_echo_n "(cached) " >&6
  11619. else
  11620. lt_cv_prog_compiler_c_o_CXX=no
  11621. $RM -r conftest 2>/dev/null
  11622. mkdir conftest
  11623. cd conftest
  11624. mkdir out
  11625. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11626. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11627. # Insert the option either (1) after the last *FLAGS variable, or
  11628. # (2) before a word containing "conftest.", or (3) at the end.
  11629. # Note that $ac_compile itself does not contain backslashes and begins
  11630. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11631. lt_compile=`echo "$ac_compile" | $SED \
  11632. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11633. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11634. -e 's:$: $lt_compiler_flag:'`
  11635. (eval echo "\"\$as_me:13436: $lt_compile\"" >&5)
  11636. (eval "$lt_compile" 2>out/conftest.err)
  11637. ac_status=$?
  11638. cat out/conftest.err >&5
  11639. echo "$as_me:13440: \$? = $ac_status" >&5
  11640. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11641. then
  11642. # The compiler can only warn and ignore the option if not recognized
  11643. # So say no if there are warnings
  11644. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11645. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11646. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11647. lt_cv_prog_compiler_c_o_CXX=yes
  11648. fi
  11649. fi
  11650. chmod u+w . 2>&5
  11651. $RM conftest*
  11652. # SGI C++ compiler will create directory out/ii_files/ for
  11653. # template instantiation
  11654. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11655. $RM out/* && rmdir out
  11656. cd ..
  11657. $RM -r conftest
  11658. $RM conftest*
  11659. fi
  11660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11661. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11663. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11664. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11665. $as_echo_n "(cached) " >&6
  11666. else
  11667. lt_cv_prog_compiler_c_o_CXX=no
  11668. $RM -r conftest 2>/dev/null
  11669. mkdir conftest
  11670. cd conftest
  11671. mkdir out
  11672. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11673. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11674. # Insert the option either (1) after the last *FLAGS variable, or
  11675. # (2) before a word containing "conftest.", or (3) at the end.
  11676. # Note that $ac_compile itself does not contain backslashes and begins
  11677. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11678. lt_compile=`echo "$ac_compile" | $SED \
  11679. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11680. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11681. -e 's:$: $lt_compiler_flag:'`
  11682. (eval echo "\"\$as_me:13488: $lt_compile\"" >&5)
  11683. (eval "$lt_compile" 2>out/conftest.err)
  11684. ac_status=$?
  11685. cat out/conftest.err >&5
  11686. echo "$as_me:13492: \$? = $ac_status" >&5
  11687. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11688. then
  11689. # The compiler can only warn and ignore the option if not recognized
  11690. # So say no if there are warnings
  11691. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11692. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11693. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11694. lt_cv_prog_compiler_c_o_CXX=yes
  11695. fi
  11696. fi
  11697. chmod u+w . 2>&5
  11698. $RM conftest*
  11699. # SGI C++ compiler will create directory out/ii_files/ for
  11700. # template instantiation
  11701. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11702. $RM out/* && rmdir out
  11703. cd ..
  11704. $RM -r conftest
  11705. $RM conftest*
  11706. fi
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11708. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11709. hard_links="nottested"
  11710. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11711. # do not overwrite the value of need_locks provided by the user
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11713. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11714. hard_links=yes
  11715. $RM conftest*
  11716. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11717. touch conftest.a
  11718. ln conftest.a conftest.b 2>&5 || hard_links=no
  11719. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11721. $as_echo "$hard_links" >&6; }
  11722. if test "$hard_links" = no; then
  11723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11724. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11725. need_locks=warn
  11726. fi
  11727. else
  11728. need_locks=no
  11729. fi
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11731. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11732. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11733. case $host_os in
  11734. aix[4-9]*)
  11735. # If we're using GNU nm, then we don't want the "-C" option.
  11736. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11737. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11738. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11739. else
  11740. 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'
  11741. fi
  11742. ;;
  11743. pw32*)
  11744. export_symbols_cmds_CXX="$ltdll_cmds"
  11745. ;;
  11746. cygwin* | mingw* | cegcc*)
  11747. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11748. ;;
  11749. linux* | k*bsd*-gnu)
  11750. link_all_deplibs_CXX=no
  11751. ;;
  11752. *)
  11753. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11754. ;;
  11755. esac
  11756. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11758. $as_echo "$ld_shlibs_CXX" >&6; }
  11759. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11760. with_gnu_ld_CXX=$with_gnu_ld
  11761. #
  11762. # Do we need to explicitly link libc?
  11763. #
  11764. case "x$archive_cmds_need_lc_CXX" in
  11765. x|xyes)
  11766. # Assume -lc should be added
  11767. archive_cmds_need_lc_CXX=yes
  11768. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11769. case $archive_cmds_CXX in
  11770. *'~'*)
  11771. # FIXME: we may have to deal with multi-command sequences.
  11772. ;;
  11773. '$CC '*)
  11774. # Test whether the compiler implicitly links with -lc since on some
  11775. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11776. # to ld, don't add -lc before -lgcc.
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11778. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11779. $RM conftest*
  11780. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11781. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11782. (eval $ac_compile) 2>&5
  11783. ac_status=$?
  11784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11785. test $ac_status = 0; } 2>conftest.err; then
  11786. soname=conftest
  11787. lib=conftest
  11788. libobjs=conftest.$ac_objext
  11789. deplibs=
  11790. wl=$lt_prog_compiler_wl_CXX
  11791. pic_flag=$lt_prog_compiler_pic_CXX
  11792. compiler_flags=-v
  11793. linker_flags=-v
  11794. verstring=
  11795. output_objdir=.
  11796. libname=conftest
  11797. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11798. allow_undefined_flag_CXX=
  11799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11800. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11801. ac_status=$?
  11802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11803. test $ac_status = 0; }
  11804. then
  11805. archive_cmds_need_lc_CXX=no
  11806. else
  11807. archive_cmds_need_lc_CXX=yes
  11808. fi
  11809. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11810. else
  11811. cat conftest.err 1>&5
  11812. fi
  11813. $RM conftest*
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11815. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11816. ;;
  11817. esac
  11818. fi
  11819. ;;
  11820. esac
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11822. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11823. library_names_spec=
  11824. libname_spec='lib$name'
  11825. soname_spec=
  11826. shrext_cmds=".so"
  11827. postinstall_cmds=
  11828. postuninstall_cmds=
  11829. finish_cmds=
  11830. finish_eval=
  11831. shlibpath_var=
  11832. shlibpath_overrides_runpath=unknown
  11833. version_type=none
  11834. dynamic_linker="$host_os ld.so"
  11835. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11836. need_lib_prefix=unknown
  11837. hardcode_into_libs=no
  11838. # when you set need_version to no, make sure it does not cause -set_version
  11839. # flags to be left without arguments
  11840. need_version=unknown
  11841. case $host_os in
  11842. aix3*)
  11843. version_type=linux
  11844. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11845. shlibpath_var=LIBPATH
  11846. # AIX 3 has no versioning support, so we append a major version to the name.
  11847. soname_spec='${libname}${release}${shared_ext}$major'
  11848. ;;
  11849. aix[4-9]*)
  11850. version_type=linux
  11851. need_lib_prefix=no
  11852. need_version=no
  11853. hardcode_into_libs=yes
  11854. if test "$host_cpu" = ia64; then
  11855. # AIX 5 supports IA64
  11856. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11857. shlibpath_var=LD_LIBRARY_PATH
  11858. else
  11859. # With GCC up to 2.95.x, collect2 would create an import file
  11860. # for dependence libraries. The import file would start with
  11861. # the line `#! .'. This would cause the generated library to
  11862. # depend on `.', always an invalid library. This was fixed in
  11863. # development snapshots of GCC prior to 3.0.
  11864. case $host_os in
  11865. aix4 | aix4.[01] | aix4.[01].*)
  11866. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11867. echo ' yes '
  11868. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11869. :
  11870. else
  11871. can_build_shared=no
  11872. fi
  11873. ;;
  11874. esac
  11875. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11876. # soname into executable. Probably we can add versioning support to
  11877. # collect2, so additional links can be useful in future.
  11878. if test "$aix_use_runtimelinking" = yes; then
  11879. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11880. # instead of lib<name>.a to let people know that these are not
  11881. # typical AIX shared libraries.
  11882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11883. else
  11884. # We preserve .a as extension for shared libraries through AIX4.2
  11885. # and later when we are not doing run time linking.
  11886. library_names_spec='${libname}${release}.a $libname.a'
  11887. soname_spec='${libname}${release}${shared_ext}$major'
  11888. fi
  11889. shlibpath_var=LIBPATH
  11890. fi
  11891. ;;
  11892. amigaos*)
  11893. case $host_cpu in
  11894. powerpc)
  11895. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11896. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11898. ;;
  11899. m68k)
  11900. library_names_spec='$libname.ixlibrary $libname.a'
  11901. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11902. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11903. ;;
  11904. esac
  11905. ;;
  11906. beos*)
  11907. library_names_spec='${libname}${shared_ext}'
  11908. dynamic_linker="$host_os ld.so"
  11909. shlibpath_var=LIBRARY_PATH
  11910. ;;
  11911. bsdi[45]*)
  11912. version_type=linux
  11913. need_version=no
  11914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11915. soname_spec='${libname}${release}${shared_ext}$major'
  11916. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11917. shlibpath_var=LD_LIBRARY_PATH
  11918. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11919. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11920. # the default ld.so.conf also contains /usr/contrib/lib and
  11921. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11922. # libtool to hard-code these into programs
  11923. ;;
  11924. cygwin* | mingw* | pw32* | cegcc*)
  11925. version_type=windows
  11926. shrext_cmds=".dll"
  11927. need_version=no
  11928. need_lib_prefix=no
  11929. case $GCC,$host_os in
  11930. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11931. library_names_spec='$libname.dll.a'
  11932. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11933. postinstall_cmds='base_file=`basename \${file}`~
  11934. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11935. dldir=$destdir/`dirname \$dlpath`~
  11936. test -d \$dldir || mkdir -p \$dldir~
  11937. $install_prog $dir/$dlname \$dldir/$dlname~
  11938. chmod a+x \$dldir/$dlname~
  11939. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11940. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11941. fi'
  11942. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11943. dlpath=$dir/\$dldll~
  11944. $RM \$dlpath'
  11945. shlibpath_overrides_runpath=yes
  11946. case $host_os in
  11947. cygwin*)
  11948. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11949. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11950. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11951. ;;
  11952. mingw* | cegcc*)
  11953. # MinGW DLLs use traditional 'lib' prefix
  11954. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11955. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11956. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11957. # It is most probably a Windows format PATH printed by
  11958. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11959. # path with ; separators, and with drive letters. We can handle the
  11960. # drive letters (cygwin fileutils understands them), so leave them,
  11961. # especially as we might pass files found there to a mingw objdump,
  11962. # which wouldn't understand a cygwinified path. Ahh.
  11963. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11964. else
  11965. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11966. fi
  11967. ;;
  11968. pw32*)
  11969. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11970. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11971. ;;
  11972. esac
  11973. ;;
  11974. *)
  11975. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11976. ;;
  11977. esac
  11978. dynamic_linker='Win32 ld.exe'
  11979. # FIXME: first we should search . and the directory the executable is in
  11980. shlibpath_var=PATH
  11981. ;;
  11982. darwin* | rhapsody*)
  11983. dynamic_linker="$host_os dyld"
  11984. version_type=darwin
  11985. need_lib_prefix=no
  11986. need_version=no
  11987. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11988. soname_spec='${libname}${release}${major}$shared_ext'
  11989. shlibpath_overrides_runpath=yes
  11990. shlibpath_var=DYLD_LIBRARY_PATH
  11991. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11992. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11993. ;;
  11994. dgux*)
  11995. version_type=linux
  11996. need_lib_prefix=no
  11997. need_version=no
  11998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11999. soname_spec='${libname}${release}${shared_ext}$major'
  12000. shlibpath_var=LD_LIBRARY_PATH
  12001. ;;
  12002. freebsd1*)
  12003. dynamic_linker=no
  12004. ;;
  12005. freebsd* | dragonfly*)
  12006. # DragonFly does not have aout. When/if they implement a new
  12007. # versioning mechanism, adjust this.
  12008. if test -x /usr/bin/objformat; then
  12009. objformat=`/usr/bin/objformat`
  12010. else
  12011. case $host_os in
  12012. freebsd[123]*) objformat=aout ;;
  12013. *) objformat=elf ;;
  12014. esac
  12015. fi
  12016. version_type=freebsd-$objformat
  12017. case $version_type in
  12018. freebsd-elf*)
  12019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12020. need_version=no
  12021. need_lib_prefix=no
  12022. ;;
  12023. freebsd-*)
  12024. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12025. need_version=yes
  12026. ;;
  12027. esac
  12028. shlibpath_var=LD_LIBRARY_PATH
  12029. case $host_os in
  12030. freebsd2*)
  12031. shlibpath_overrides_runpath=yes
  12032. ;;
  12033. freebsd3.[01]* | freebsdelf3.[01]*)
  12034. shlibpath_overrides_runpath=yes
  12035. hardcode_into_libs=yes
  12036. ;;
  12037. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12038. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12039. shlibpath_overrides_runpath=no
  12040. hardcode_into_libs=yes
  12041. ;;
  12042. *) # from 4.6 on, and DragonFly
  12043. shlibpath_overrides_runpath=yes
  12044. hardcode_into_libs=yes
  12045. ;;
  12046. esac
  12047. ;;
  12048. gnu*)
  12049. version_type=linux
  12050. need_lib_prefix=no
  12051. need_version=no
  12052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12053. soname_spec='${libname}${release}${shared_ext}$major'
  12054. shlibpath_var=LD_LIBRARY_PATH
  12055. hardcode_into_libs=yes
  12056. ;;
  12057. hpux9* | hpux10* | hpux11*)
  12058. # Give a soname corresponding to the major version so that dld.sl refuses to
  12059. # link against other versions.
  12060. version_type=sunos
  12061. need_lib_prefix=no
  12062. need_version=no
  12063. case $host_cpu in
  12064. ia64*)
  12065. shrext_cmds='.so'
  12066. hardcode_into_libs=yes
  12067. dynamic_linker="$host_os dld.so"
  12068. shlibpath_var=LD_LIBRARY_PATH
  12069. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12071. soname_spec='${libname}${release}${shared_ext}$major'
  12072. if test "X$HPUX_IA64_MODE" = X32; then
  12073. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12074. else
  12075. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12076. fi
  12077. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12078. ;;
  12079. hppa*64*)
  12080. shrext_cmds='.sl'
  12081. hardcode_into_libs=yes
  12082. dynamic_linker="$host_os dld.sl"
  12083. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12084. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12086. soname_spec='${libname}${release}${shared_ext}$major'
  12087. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12088. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12089. ;;
  12090. *)
  12091. shrext_cmds='.sl'
  12092. dynamic_linker="$host_os dld.sl"
  12093. shlibpath_var=SHLIB_PATH
  12094. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12096. soname_spec='${libname}${release}${shared_ext}$major'
  12097. ;;
  12098. esac
  12099. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12100. postinstall_cmds='chmod 555 $lib'
  12101. ;;
  12102. interix[3-9]*)
  12103. version_type=linux
  12104. need_lib_prefix=no
  12105. need_version=no
  12106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12107. soname_spec='${libname}${release}${shared_ext}$major'
  12108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12109. shlibpath_var=LD_LIBRARY_PATH
  12110. shlibpath_overrides_runpath=no
  12111. hardcode_into_libs=yes
  12112. ;;
  12113. irix5* | irix6* | nonstopux*)
  12114. case $host_os in
  12115. nonstopux*) version_type=nonstopux ;;
  12116. *)
  12117. if test "$lt_cv_prog_gnu_ld" = yes; then
  12118. version_type=linux
  12119. else
  12120. version_type=irix
  12121. fi ;;
  12122. esac
  12123. need_lib_prefix=no
  12124. need_version=no
  12125. soname_spec='${libname}${release}${shared_ext}$major'
  12126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12127. case $host_os in
  12128. irix5* | nonstopux*)
  12129. libsuff= shlibsuff=
  12130. ;;
  12131. *)
  12132. case $LD in # libtool.m4 will add one of these switches to LD
  12133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12134. libsuff= shlibsuff= libmagic=32-bit;;
  12135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12139. *) libsuff= shlibsuff= libmagic=never-match;;
  12140. esac
  12141. ;;
  12142. esac
  12143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12144. shlibpath_overrides_runpath=no
  12145. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12146. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12147. hardcode_into_libs=yes
  12148. ;;
  12149. # No shared lib support for Linux oldld, aout, or coff.
  12150. linux*oldld* | linux*aout* | linux*coff*)
  12151. dynamic_linker=no
  12152. ;;
  12153. # This must be Linux ELF.
  12154. linux* | k*bsd*-gnu)
  12155. version_type=linux
  12156. need_lib_prefix=no
  12157. need_version=no
  12158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12159. soname_spec='${libname}${release}${shared_ext}$major'
  12160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12161. shlibpath_var=LD_LIBRARY_PATH
  12162. shlibpath_overrides_runpath=no
  12163. # Some binutils ld are patched to set DT_RUNPATH
  12164. save_LDFLAGS=$LDFLAGS
  12165. save_libdir=$libdir
  12166. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12167. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12169. /* end confdefs.h. */
  12170. int
  12171. main ()
  12172. {
  12173. ;
  12174. return 0;
  12175. }
  12176. _ACEOF
  12177. if ac_fn_cxx_try_link "$LINENO"; then :
  12178. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12179. shlibpath_overrides_runpath=yes
  12180. fi
  12181. fi
  12182. rm -f core conftest.err conftest.$ac_objext \
  12183. conftest$ac_exeext conftest.$ac_ext
  12184. LDFLAGS=$save_LDFLAGS
  12185. libdir=$save_libdir
  12186. # This implies no fast_install, which is unacceptable.
  12187. # Some rework will be needed to allow for fast_install
  12188. # before this can be enabled.
  12189. hardcode_into_libs=yes
  12190. # Append ld.so.conf contents to the search path
  12191. if test -f /etc/ld.so.conf; then
  12192. 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;/^$/d' | tr '\n' ' '`
  12193. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12194. fi
  12195. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12196. # powerpc, because MkLinux only supported shared libraries with the
  12197. # GNU dynamic linker. Since this was broken with cross compilers,
  12198. # most powerpc-linux boxes support dynamic linking these days and
  12199. # people can always --disable-shared, the test was removed, and we
  12200. # assume the GNU/Linux dynamic linker is in use.
  12201. dynamic_linker='GNU/Linux ld.so'
  12202. ;;
  12203. netbsdelf*-gnu)
  12204. version_type=linux
  12205. need_lib_prefix=no
  12206. need_version=no
  12207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12208. soname_spec='${libname}${release}${shared_ext}$major'
  12209. shlibpath_var=LD_LIBRARY_PATH
  12210. shlibpath_overrides_runpath=no
  12211. hardcode_into_libs=yes
  12212. dynamic_linker='NetBSD ld.elf_so'
  12213. ;;
  12214. netbsd*)
  12215. version_type=sunos
  12216. need_lib_prefix=no
  12217. need_version=no
  12218. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12220. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12221. dynamic_linker='NetBSD (a.out) ld.so'
  12222. else
  12223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12224. soname_spec='${libname}${release}${shared_ext}$major'
  12225. dynamic_linker='NetBSD ld.elf_so'
  12226. fi
  12227. shlibpath_var=LD_LIBRARY_PATH
  12228. shlibpath_overrides_runpath=yes
  12229. hardcode_into_libs=yes
  12230. ;;
  12231. newsos6)
  12232. version_type=linux
  12233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12234. shlibpath_var=LD_LIBRARY_PATH
  12235. shlibpath_overrides_runpath=yes
  12236. ;;
  12237. *nto* | *qnx*)
  12238. version_type=qnx
  12239. need_lib_prefix=no
  12240. need_version=no
  12241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12242. soname_spec='${libname}${release}${shared_ext}$major'
  12243. shlibpath_var=LD_LIBRARY_PATH
  12244. shlibpath_overrides_runpath=no
  12245. hardcode_into_libs=yes
  12246. dynamic_linker='ldqnx.so'
  12247. ;;
  12248. openbsd*)
  12249. version_type=sunos
  12250. sys_lib_dlsearch_path_spec="/usr/lib"
  12251. need_lib_prefix=no
  12252. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12253. case $host_os in
  12254. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12255. *) need_version=no ;;
  12256. esac
  12257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12258. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12259. shlibpath_var=LD_LIBRARY_PATH
  12260. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12261. case $host_os in
  12262. openbsd2.[89] | openbsd2.[89].*)
  12263. shlibpath_overrides_runpath=no
  12264. ;;
  12265. *)
  12266. shlibpath_overrides_runpath=yes
  12267. ;;
  12268. esac
  12269. else
  12270. shlibpath_overrides_runpath=yes
  12271. fi
  12272. ;;
  12273. os2*)
  12274. libname_spec='$name'
  12275. shrext_cmds=".dll"
  12276. need_lib_prefix=no
  12277. library_names_spec='$libname${shared_ext} $libname.a'
  12278. dynamic_linker='OS/2 ld.exe'
  12279. shlibpath_var=LIBPATH
  12280. ;;
  12281. osf3* | osf4* | osf5*)
  12282. version_type=osf
  12283. need_lib_prefix=no
  12284. need_version=no
  12285. soname_spec='${libname}${release}${shared_ext}$major'
  12286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12287. shlibpath_var=LD_LIBRARY_PATH
  12288. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12289. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12290. ;;
  12291. rdos*)
  12292. dynamic_linker=no
  12293. ;;
  12294. solaris*)
  12295. version_type=linux
  12296. need_lib_prefix=no
  12297. need_version=no
  12298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12299. soname_spec='${libname}${release}${shared_ext}$major'
  12300. shlibpath_var=LD_LIBRARY_PATH
  12301. shlibpath_overrides_runpath=yes
  12302. hardcode_into_libs=yes
  12303. # ldd complains unless libraries are executable
  12304. postinstall_cmds='chmod +x $lib'
  12305. ;;
  12306. sunos4*)
  12307. version_type=sunos
  12308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12309. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12310. shlibpath_var=LD_LIBRARY_PATH
  12311. shlibpath_overrides_runpath=yes
  12312. if test "$with_gnu_ld" = yes; then
  12313. need_lib_prefix=no
  12314. fi
  12315. need_version=yes
  12316. ;;
  12317. sysv4 | sysv4.3*)
  12318. version_type=linux
  12319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12320. soname_spec='${libname}${release}${shared_ext}$major'
  12321. shlibpath_var=LD_LIBRARY_PATH
  12322. case $host_vendor in
  12323. sni)
  12324. shlibpath_overrides_runpath=no
  12325. need_lib_prefix=no
  12326. runpath_var=LD_RUN_PATH
  12327. ;;
  12328. siemens)
  12329. need_lib_prefix=no
  12330. ;;
  12331. motorola)
  12332. need_lib_prefix=no
  12333. need_version=no
  12334. shlibpath_overrides_runpath=no
  12335. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12336. ;;
  12337. esac
  12338. ;;
  12339. sysv4*MP*)
  12340. if test -d /usr/nec ;then
  12341. version_type=linux
  12342. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12343. soname_spec='$libname${shared_ext}.$major'
  12344. shlibpath_var=LD_LIBRARY_PATH
  12345. fi
  12346. ;;
  12347. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12348. version_type=freebsd-elf
  12349. need_lib_prefix=no
  12350. need_version=no
  12351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12352. soname_spec='${libname}${release}${shared_ext}$major'
  12353. shlibpath_var=LD_LIBRARY_PATH
  12354. shlibpath_overrides_runpath=yes
  12355. hardcode_into_libs=yes
  12356. if test "$with_gnu_ld" = yes; then
  12357. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12358. else
  12359. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12360. case $host_os in
  12361. sco3.2v5*)
  12362. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12363. ;;
  12364. esac
  12365. fi
  12366. sys_lib_dlsearch_path_spec='/usr/lib'
  12367. ;;
  12368. tpf*)
  12369. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12370. version_type=linux
  12371. need_lib_prefix=no
  12372. need_version=no
  12373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12374. shlibpath_var=LD_LIBRARY_PATH
  12375. shlibpath_overrides_runpath=no
  12376. hardcode_into_libs=yes
  12377. ;;
  12378. uts4*)
  12379. version_type=linux
  12380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12381. soname_spec='${libname}${release}${shared_ext}$major'
  12382. shlibpath_var=LD_LIBRARY_PATH
  12383. ;;
  12384. *)
  12385. dynamic_linker=no
  12386. ;;
  12387. esac
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12389. $as_echo "$dynamic_linker" >&6; }
  12390. test "$dynamic_linker" = no && can_build_shared=no
  12391. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12392. if test "$GCC" = yes; then
  12393. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12394. fi
  12395. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12396. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12397. fi
  12398. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12399. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12400. fi
  12401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12402. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12403. hardcode_action_CXX=
  12404. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12405. test -n "$runpath_var_CXX" ||
  12406. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12407. # We can hardcode non-existent directories.
  12408. if test "$hardcode_direct_CXX" != no &&
  12409. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12410. # have to relink, otherwise we might link with an installed library
  12411. # when we should be linking with a yet-to-be-installed one
  12412. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12413. test "$hardcode_minus_L_CXX" != no; then
  12414. # Linking always hardcodes the temporary library directory.
  12415. hardcode_action_CXX=relink
  12416. else
  12417. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12418. hardcode_action_CXX=immediate
  12419. fi
  12420. else
  12421. # We cannot hardcode anything, or else we can only hardcode existing
  12422. # directories.
  12423. hardcode_action_CXX=unsupported
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12426. $as_echo "$hardcode_action_CXX" >&6; }
  12427. if test "$hardcode_action_CXX" = relink ||
  12428. test "$inherit_rpath_CXX" = yes; then
  12429. # Fast installation is not supported
  12430. enable_fast_install=no
  12431. elif test "$shlibpath_overrides_runpath" = yes ||
  12432. test "$enable_shared" = no; then
  12433. # Fast installation is not necessary
  12434. enable_fast_install=needless
  12435. fi
  12436. fi # test -n "$compiler"
  12437. CC=$lt_save_CC
  12438. LDCXX=$LD
  12439. LD=$lt_save_LD
  12440. GCC=$lt_save_GCC
  12441. with_gnu_ld=$lt_save_with_gnu_ld
  12442. lt_cv_path_LDCXX=$lt_cv_path_LD
  12443. lt_cv_path_LD=$lt_save_path_LD
  12444. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12445. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12446. fi # test "$_lt_caught_CXX_error" != yes
  12447. ac_ext=cpp
  12448. ac_cpp='$CXXCPP $CPPFLAGS'
  12449. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12450. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12451. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12452. ac_config_commands="$ac_config_commands libtool"
  12453. # Only expand once:
  12454. # Check whether --enable-debug was given.
  12455. if test "${enable_debug+set}" = set; then :
  12456. enableval=$enable_debug; if test x$enableval = xyes ; then
  12457. enable_debug="yes"
  12458. else
  12459. enable_debug="no"
  12460. fi
  12461. else
  12462. enable_debug="yes"
  12463. fi
  12464. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12465. CXXFLAGS="-O0 -ggdb -Wall -Wcast-align -Wpointer-arith"
  12466. fi
  12467. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  12468. if test "x$GXX" = "xyes" ; then
  12469. CXXFLAGS="$CXXFLAGS -Wno-sign-compare"
  12470. fi
  12471. # Check for Boost libraries
  12472. # Check whether --with-boost was given.
  12473. if test "${with_boost+set}" = set; then :
  12474. withval=$with_boost;
  12475. if test "$withval" = "no"; then
  12476. want_boost="no"
  12477. elif test "$withval" = "yes"; then
  12478. want_boost="yes"
  12479. ac_boost_path=""
  12480. else
  12481. want_boost="yes"
  12482. ac_boost_path="$withval"
  12483. fi
  12484. else
  12485. want_boost="yes"
  12486. fi
  12487. # Check whether --with-boost-libdir was given.
  12488. if test "${with_boost_libdir+set}" = set; then :
  12489. withval=$with_boost_libdir;
  12490. if test -d $withval
  12491. then
  12492. ac_boost_lib_path="$withval"
  12493. else
  12494. as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
  12495. fi
  12496. else
  12497. ac_boost_lib_path=""
  12498. fi
  12499. if test "x$want_boost" = "xyes"; then
  12500. boost_lib_version_req=1.36
  12501. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12502. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12503. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12504. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12505. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12506. boost_lib_version_req_sub_minor="0"
  12507. fi
  12508. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12510. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12511. succeeded=no
  12512. if test "$ac_boost_path" != ""; then
  12513. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  12514. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12515. else
  12516. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12517. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12518. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  12519. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12520. break;
  12521. fi
  12522. done
  12523. fi
  12524. if test "$ac_boost_lib_path" != ""; then
  12525. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12526. fi
  12527. CPPFLAGS_SAVED="$CPPFLAGS"
  12528. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12529. export CPPFLAGS
  12530. LDFLAGS_SAVED="$LDFLAGS"
  12531. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12532. export LDFLAGS
  12533. ac_ext=cpp
  12534. ac_cpp='$CXXCPP $CPPFLAGS'
  12535. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12536. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12537. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12539. /* end confdefs.h. */
  12540. #include <boost/version.hpp>
  12541. int
  12542. main ()
  12543. {
  12544. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12545. // Everything is okay
  12546. #else
  12547. # error Boost version is too old
  12548. #endif
  12549. ;
  12550. return 0;
  12551. }
  12552. _ACEOF
  12553. if ac_fn_cxx_try_compile "$LINENO"; then :
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12555. $as_echo "yes" >&6; }
  12556. succeeded=yes
  12557. found_system=yes
  12558. fi
  12559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12560. ac_ext=cpp
  12561. ac_cpp='$CXXCPP $CPPFLAGS'
  12562. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12563. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12564. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12565. if test "x$succeeded" != "xyes"; then
  12566. _version=0
  12567. if test "$ac_boost_path" != ""; then
  12568. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12569. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12570. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12571. V_CHECK=`expr $_version_tmp \> $_version`
  12572. if test "$V_CHECK" = "1" ; then
  12573. _version=$_version_tmp
  12574. fi
  12575. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12576. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12577. done
  12578. fi
  12579. else
  12580. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12581. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12582. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12583. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12584. V_CHECK=`expr $_version_tmp \> $_version`
  12585. if test "$V_CHECK" = "1" ; then
  12586. _version=$_version_tmp
  12587. best_path=$ac_boost_path
  12588. fi
  12589. done
  12590. fi
  12591. done
  12592. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12593. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12594. if test "$ac_boost_lib_path" = ""
  12595. then
  12596. BOOST_LDFLAGS="-L$best_path/lib"
  12597. fi
  12598. if test "x$BOOST_ROOT" != "x"; then
  12599. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  12600. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12601. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12602. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12603. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12604. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12606. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12607. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12608. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  12609. fi
  12610. fi
  12611. fi
  12612. fi
  12613. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12614. export CPPFLAGS
  12615. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12616. export LDFLAGS
  12617. ac_ext=cpp
  12618. ac_cpp='$CXXCPP $CPPFLAGS'
  12619. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12620. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12621. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12623. /* end confdefs.h. */
  12624. #include <boost/version.hpp>
  12625. int
  12626. main ()
  12627. {
  12628. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12629. // Everything is okay
  12630. #else
  12631. # error Boost version is too old
  12632. #endif
  12633. ;
  12634. return 0;
  12635. }
  12636. _ACEOF
  12637. if ac_fn_cxx_try_compile "$LINENO"; then :
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12639. $as_echo "yes" >&6; }
  12640. succeeded=yes
  12641. found_system=yes
  12642. fi
  12643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12644. ac_ext=cpp
  12645. ac_cpp='$CXXCPP $CPPFLAGS'
  12646. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12647. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12648. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12649. fi
  12650. if test "$succeeded" != "yes" ; then
  12651. if test "$_version" = "0" ; then
  12652. as_fn_error "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5
  12653. else
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12655. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12656. fi
  12657. else
  12658. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12659. fi
  12660. CPPFLAGS="$CPPFLAGS_SAVED"
  12661. LDFLAGS="$LDFLAGS_SAVED"
  12662. fi
  12663. # Check whether --with-boost-system was given.
  12664. if test "${with_boost_system+set}" = set; then :
  12665. withval=$with_boost_system;
  12666. if test "$withval" = "no"; then
  12667. want_boost="no"
  12668. elif test "$withval" = "yes"; then
  12669. want_boost="yes"
  12670. ax_boost_user_system_lib=""
  12671. else
  12672. want_boost="yes"
  12673. ax_boost_user_system_lib="$withval"
  12674. fi
  12675. else
  12676. want_boost="yes"
  12677. fi
  12678. if test "x$want_boost" = "xyes"; then
  12679. CPPFLAGS_SAVED="$CPPFLAGS"
  12680. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12681. export CPPFLAGS
  12682. LDFLAGS_SAVED="$LDFLAGS"
  12683. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12684. export LDFLAGS
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12686. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12687. if test "${ax_cv_boost_system+set}" = set; then :
  12688. $as_echo_n "(cached) " >&6
  12689. else
  12690. ac_ext=cpp
  12691. ac_cpp='$CXXCPP $CPPFLAGS'
  12692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12695. CXXFLAGS_SAVE=$CXXFLAGS
  12696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12697. /* end confdefs.h. */
  12698. #include <boost/system/error_code.hpp>
  12699. int
  12700. main ()
  12701. {
  12702. boost::system::system_category
  12703. ;
  12704. return 0;
  12705. }
  12706. _ACEOF
  12707. if ac_fn_cxx_try_compile "$LINENO"; then :
  12708. ax_cv_boost_system=yes
  12709. else
  12710. ax_cv_boost_system=no
  12711. fi
  12712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12713. CXXFLAGS=$CXXFLAGS_SAVE
  12714. ac_ext=cpp
  12715. ac_cpp='$CXXCPP $CPPFLAGS'
  12716. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12717. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12718. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12719. fi
  12720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12721. $as_echo "$ax_cv_boost_system" >&6; }
  12722. if test "x$ax_cv_boost_system" = "xyes"; then
  12723. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12724. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12725. LDFLAGS_SAVE=$LDFLAGS
  12726. if test "x$ax_boost_user_system_lib" = "x"; then
  12727. for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  12728. ax_lib=${libextension}
  12729. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12731. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12732. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12733. $as_echo_n "(cached) " >&6
  12734. else
  12735. ac_check_lib_save_LIBS=$LIBS
  12736. LIBS="-l$ax_lib $LIBS"
  12737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12738. /* end confdefs.h. */
  12739. /* Override any GCC internal prototype to avoid an error.
  12740. Use char because int might match the return type of a GCC
  12741. builtin and then its argument prototype would still apply. */
  12742. #ifdef __cplusplus
  12743. extern "C"
  12744. #endif
  12745. char exit ();
  12746. int
  12747. main ()
  12748. {
  12749. return exit ();
  12750. ;
  12751. return 0;
  12752. }
  12753. _ACEOF
  12754. if ac_fn_cxx_try_link "$LINENO"; then :
  12755. eval "$as_ac_Lib=yes"
  12756. else
  12757. eval "$as_ac_Lib=no"
  12758. fi
  12759. rm -f core conftest.err conftest.$ac_objext \
  12760. conftest$ac_exeext conftest.$ac_ext
  12761. LIBS=$ac_check_lib_save_LIBS
  12762. fi
  12763. eval ac_res=\$$as_ac_Lib
  12764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12765. $as_echo "$ac_res" >&6; }
  12766. eval as_val=\$$as_ac_Lib
  12767. if test "x$as_val" = x""yes; then :
  12768. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12769. else
  12770. link_system="no"
  12771. fi
  12772. done
  12773. if test "x$link_system" != "xyes"; then
  12774. for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
  12775. ax_lib=${libextension}
  12776. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12778. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12779. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12780. $as_echo_n "(cached) " >&6
  12781. else
  12782. ac_check_lib_save_LIBS=$LIBS
  12783. LIBS="-l$ax_lib $LIBS"
  12784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12785. /* end confdefs.h. */
  12786. /* Override any GCC internal prototype to avoid an error.
  12787. Use char because int might match the return type of a GCC
  12788. builtin and then its argument prototype would still apply. */
  12789. #ifdef __cplusplus
  12790. extern "C"
  12791. #endif
  12792. char exit ();
  12793. int
  12794. main ()
  12795. {
  12796. return exit ();
  12797. ;
  12798. return 0;
  12799. }
  12800. _ACEOF
  12801. if ac_fn_cxx_try_link "$LINENO"; then :
  12802. eval "$as_ac_Lib=yes"
  12803. else
  12804. eval "$as_ac_Lib=no"
  12805. fi
  12806. rm -f core conftest.err conftest.$ac_objext \
  12807. conftest$ac_exeext conftest.$ac_ext
  12808. LIBS=$ac_check_lib_save_LIBS
  12809. fi
  12810. eval ac_res=\$$as_ac_Lib
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12812. $as_echo "$ac_res" >&6; }
  12813. eval as_val=\$$as_ac_Lib
  12814. if test "x$as_val" = x""yes; then :
  12815. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12816. else
  12817. link_system="no"
  12818. fi
  12819. done
  12820. fi
  12821. else
  12822. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12823. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12825. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12826. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12827. $as_echo_n "(cached) " >&6
  12828. else
  12829. ac_check_lib_save_LIBS=$LIBS
  12830. LIBS="-l$ax_lib $LIBS"
  12831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12832. /* end confdefs.h. */
  12833. /* Override any GCC internal prototype to avoid an error.
  12834. Use char because int might match the return type of a GCC
  12835. builtin and then its argument prototype would still apply. */
  12836. #ifdef __cplusplus
  12837. extern "C"
  12838. #endif
  12839. char exit ();
  12840. int
  12841. main ()
  12842. {
  12843. return exit ();
  12844. ;
  12845. return 0;
  12846. }
  12847. _ACEOF
  12848. if ac_fn_cxx_try_link "$LINENO"; then :
  12849. eval "$as_ac_Lib=yes"
  12850. else
  12851. eval "$as_ac_Lib=no"
  12852. fi
  12853. rm -f core conftest.err conftest.$ac_objext \
  12854. conftest$ac_exeext conftest.$ac_ext
  12855. LIBS=$ac_check_lib_save_LIBS
  12856. fi
  12857. eval ac_res=\$$as_ac_Lib
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12859. $as_echo "$ac_res" >&6; }
  12860. eval as_val=\$$as_ac_Lib
  12861. if test "x$as_val" = x""yes; then :
  12862. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12863. else
  12864. link_system="no"
  12865. fi
  12866. done
  12867. fi
  12868. if test "x$link_system" = "xno"; then
  12869. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  12870. fi
  12871. fi
  12872. CPPFLAGS="$CPPFLAGS_SAVED"
  12873. LDFLAGS="$LDFLAGS_SAVED"
  12874. fi
  12875. # Check whether --with-boost-filesystem was given.
  12876. if test "${with_boost_filesystem+set}" = set; then :
  12877. withval=$with_boost_filesystem;
  12878. if test "$withval" = "no"; then
  12879. want_boost="no"
  12880. elif test "$withval" = "yes"; then
  12881. want_boost="yes"
  12882. ax_boost_user_filesystem_lib=""
  12883. else
  12884. want_boost="yes"
  12885. ax_boost_user_filesystem_lib="$withval"
  12886. fi
  12887. else
  12888. want_boost="yes"
  12889. fi
  12890. if test "x$want_boost" = "xyes"; then
  12891. CPPFLAGS_SAVED="$CPPFLAGS"
  12892. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12893. export CPPFLAGS
  12894. LDFLAGS_SAVED="$LDFLAGS"
  12895. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12896. export LDFLAGS
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12898. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12899. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12900. $as_echo_n "(cached) " >&6
  12901. else
  12902. ac_ext=cpp
  12903. ac_cpp='$CXXCPP $CPPFLAGS'
  12904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12908. /* end confdefs.h. */
  12909. #include <boost/filesystem/path.hpp>
  12910. int
  12911. main ()
  12912. {
  12913. using namespace boost::filesystem;
  12914. path my_path( "foo/bar/data.txt" );
  12915. return 0;
  12916. ;
  12917. return 0;
  12918. }
  12919. _ACEOF
  12920. if ac_fn_cxx_try_compile "$LINENO"; then :
  12921. ax_cv_boost_filesystem=yes
  12922. else
  12923. ax_cv_boost_filesystem=no
  12924. fi
  12925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12926. ac_ext=cpp
  12927. ac_cpp='$CXXCPP $CPPFLAGS'
  12928. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12929. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12930. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12931. fi
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  12933. $as_echo "$ax_cv_boost_filesystem" >&6; }
  12934. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  12935. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  12936. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12937. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  12938. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;'` ; do
  12939. ax_lib=${libextension}
  12940. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12942. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12943. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12944. $as_echo_n "(cached) " >&6
  12945. else
  12946. ac_check_lib_save_LIBS=$LIBS
  12947. LIBS="-l$ax_lib $LIBS"
  12948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12949. /* end confdefs.h. */
  12950. /* Override any GCC internal prototype to avoid an error.
  12951. Use char because int might match the return type of a GCC
  12952. builtin and then its argument prototype would still apply. */
  12953. #ifdef __cplusplus
  12954. extern "C"
  12955. #endif
  12956. char exit ();
  12957. int
  12958. main ()
  12959. {
  12960. return exit ();
  12961. ;
  12962. return 0;
  12963. }
  12964. _ACEOF
  12965. if ac_fn_cxx_try_link "$LINENO"; then :
  12966. eval "$as_ac_Lib=yes"
  12967. else
  12968. eval "$as_ac_Lib=no"
  12969. fi
  12970. rm -f core conftest.err conftest.$ac_objext \
  12971. conftest$ac_exeext conftest.$ac_ext
  12972. LIBS=$ac_check_lib_save_LIBS
  12973. fi
  12974. eval ac_res=\$$as_ac_Lib
  12975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12976. $as_echo "$ac_res" >&6; }
  12977. eval as_val=\$$as_ac_Lib
  12978. if test "x$as_val" = x""yes; then :
  12979. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12980. else
  12981. link_filesystem="no"
  12982. fi
  12983. done
  12984. if test "x$link_program_options" != "xyes"; then
  12985. for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
  12986. ax_lib=${libextension}
  12987. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12989. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12990. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12991. $as_echo_n "(cached) " >&6
  12992. else
  12993. ac_check_lib_save_LIBS=$LIBS
  12994. LIBS="-l$ax_lib $LIBS"
  12995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12996. /* end confdefs.h. */
  12997. /* Override any GCC internal prototype to avoid an error.
  12998. Use char because int might match the return type of a GCC
  12999. builtin and then its argument prototype would still apply. */
  13000. #ifdef __cplusplus
  13001. extern "C"
  13002. #endif
  13003. char exit ();
  13004. int
  13005. main ()
  13006. {
  13007. return exit ();
  13008. ;
  13009. return 0;
  13010. }
  13011. _ACEOF
  13012. if ac_fn_cxx_try_link "$LINENO"; then :
  13013. eval "$as_ac_Lib=yes"
  13014. else
  13015. eval "$as_ac_Lib=no"
  13016. fi
  13017. rm -f core conftest.err conftest.$ac_objext \
  13018. conftest$ac_exeext conftest.$ac_ext
  13019. LIBS=$ac_check_lib_save_LIBS
  13020. fi
  13021. eval ac_res=\$$as_ac_Lib
  13022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13023. $as_echo "$ac_res" >&6; }
  13024. eval as_val=\$$as_ac_Lib
  13025. if test "x$as_val" = x""yes; then :
  13026. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13027. else
  13028. link_filesystem="no"
  13029. fi
  13030. done
  13031. fi
  13032. else
  13033. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13034. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13036. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13037. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13038. $as_echo_n "(cached) " >&6
  13039. else
  13040. ac_check_lib_save_LIBS=$LIBS
  13041. LIBS="-l$ax_lib $LIBS"
  13042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13043. /* end confdefs.h. */
  13044. /* Override any GCC internal prototype to avoid an error.
  13045. Use char because int might match the return type of a GCC
  13046. builtin and then its argument prototype would still apply. */
  13047. #ifdef __cplusplus
  13048. extern "C"
  13049. #endif
  13050. char exit ();
  13051. int
  13052. main ()
  13053. {
  13054. return exit ();
  13055. ;
  13056. return 0;
  13057. }
  13058. _ACEOF
  13059. if ac_fn_cxx_try_link "$LINENO"; then :
  13060. eval "$as_ac_Lib=yes"
  13061. else
  13062. eval "$as_ac_Lib=no"
  13063. fi
  13064. rm -f core conftest.err conftest.$ac_objext \
  13065. conftest$ac_exeext conftest.$ac_ext
  13066. LIBS=$ac_check_lib_save_LIBS
  13067. fi
  13068. eval ac_res=\$$as_ac_Lib
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13070. $as_echo "$ac_res" >&6; }
  13071. eval as_val=\$$as_ac_Lib
  13072. if test "x$as_val" = x""yes; then :
  13073. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13074. else
  13075. link_filesystem="no"
  13076. fi
  13077. done
  13078. fi
  13079. if test "x$link_filesystem" != "xyes"; then
  13080. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13081. fi
  13082. fi
  13083. CPPFLAGS="$CPPFLAGS_SAVED"
  13084. LDFLAGS="$LDFLAGS_SAVED"
  13085. fi
  13086. # Check whether --with-boost-thread was given.
  13087. if test "${with_boost_thread+set}" = set; then :
  13088. withval=$with_boost_thread;
  13089. if test "$withval" = "no"; then
  13090. want_boost="no"
  13091. elif test "$withval" = "yes"; then
  13092. want_boost="yes"
  13093. ax_boost_user_thread_lib=""
  13094. else
  13095. want_boost="yes"
  13096. ax_boost_user_thread_lib="$withval"
  13097. fi
  13098. else
  13099. want_boost="yes"
  13100. fi
  13101. if test "x$want_boost" = "xyes"; then
  13102. CPPFLAGS_SAVED="$CPPFLAGS"
  13103. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13104. export CPPFLAGS
  13105. LDFLAGS_SAVED="$LDFLAGS"
  13106. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13107. export LDFLAGS
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13109. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13110. if test "${ax_cv_boost_thread+set}" = set; then :
  13111. $as_echo_n "(cached) " >&6
  13112. else
  13113. ac_ext=cpp
  13114. ac_cpp='$CXXCPP $CPPFLAGS'
  13115. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13116. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13117. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13118. CXXFLAGS_SAVE=$CXXFLAGS
  13119. if test "x$build_os" = "xsolaris" ; then
  13120. CXXFLAGS="-pthreads $CXXFLAGS"
  13121. elif test "x$build_os" = "xming32" ; then
  13122. CXXFLAGS="-mthreads $CXXFLAGS"
  13123. else
  13124. CXXFLAGS="-pthread $CXXFLAGS"
  13125. fi
  13126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13127. /* end confdefs.h. */
  13128. #include <boost/thread/thread.hpp>
  13129. int
  13130. main ()
  13131. {
  13132. boost::thread_group thrds;
  13133. return 0;
  13134. ;
  13135. return 0;
  13136. }
  13137. _ACEOF
  13138. if ac_fn_cxx_try_compile "$LINENO"; then :
  13139. ax_cv_boost_thread=yes
  13140. else
  13141. ax_cv_boost_thread=no
  13142. fi
  13143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13144. CXXFLAGS=$CXXFLAGS_SAVE
  13145. ac_ext=cpp
  13146. ac_cpp='$CXXCPP $CPPFLAGS'
  13147. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13148. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13149. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13150. fi
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13152. $as_echo "$ax_cv_boost_thread" >&6; }
  13153. if test "x$ax_cv_boost_thread" = "xyes"; then
  13154. if test "x$build_os" = "xsolaris" ; then
  13155. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13156. elif test "x$build_os" = "xming32" ; then
  13157. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13158. else
  13159. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13160. fi
  13161. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13162. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13163. LDFLAGS_SAVE=$LDFLAGS
  13164. case "x$build_os" in
  13165. *bsd* )
  13166. LDFLAGS="-pthread $LDFLAGS"
  13167. break;
  13168. ;;
  13169. esac
  13170. if test "x$ax_boost_user_thread_lib" = "x"; then
  13171. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;' -e 's;^lib\(boost_thread.*\)\.a*$;\1;'` ; do
  13172. ax_lib=${libextension}
  13173. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13175. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13176. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13177. $as_echo_n "(cached) " >&6
  13178. else
  13179. ac_check_lib_save_LIBS=$LIBS
  13180. LIBS="-l$ax_lib $LIBS"
  13181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13182. /* end confdefs.h. */
  13183. /* Override any GCC internal prototype to avoid an error.
  13184. Use char because int might match the return type of a GCC
  13185. builtin and then its argument prototype would still apply. */
  13186. #ifdef __cplusplus
  13187. extern "C"
  13188. #endif
  13189. char exit ();
  13190. int
  13191. main ()
  13192. {
  13193. return exit ();
  13194. ;
  13195. return 0;
  13196. }
  13197. _ACEOF
  13198. if ac_fn_cxx_try_link "$LINENO"; then :
  13199. eval "$as_ac_Lib=yes"
  13200. else
  13201. eval "$as_ac_Lib=no"
  13202. fi
  13203. rm -f core conftest.err conftest.$ac_objext \
  13204. conftest$ac_exeext conftest.$ac_ext
  13205. LIBS=$ac_check_lib_save_LIBS
  13206. fi
  13207. eval ac_res=\$$as_ac_Lib
  13208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13209. $as_echo "$ac_res" >&6; }
  13210. eval as_val=\$$as_ac_Lib
  13211. if test "x$as_val" = x""yes; then :
  13212. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13213. else
  13214. link_thread="no"
  13215. fi
  13216. done
  13217. if test "x$link_thread" != "xyes"; then
  13218. for libextension in `ls $BOOSTLIBDIR/boost_thread*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;' -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  13219. ax_lib=${libextension}
  13220. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13222. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13223. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13224. $as_echo_n "(cached) " >&6
  13225. else
  13226. ac_check_lib_save_LIBS=$LIBS
  13227. LIBS="-l$ax_lib $LIBS"
  13228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13229. /* end confdefs.h. */
  13230. /* Override any GCC internal prototype to avoid an error.
  13231. Use char because int might match the return type of a GCC
  13232. builtin and then its argument prototype would still apply. */
  13233. #ifdef __cplusplus
  13234. extern "C"
  13235. #endif
  13236. char exit ();
  13237. int
  13238. main ()
  13239. {
  13240. return exit ();
  13241. ;
  13242. return 0;
  13243. }
  13244. _ACEOF
  13245. if ac_fn_cxx_try_link "$LINENO"; then :
  13246. eval "$as_ac_Lib=yes"
  13247. else
  13248. eval "$as_ac_Lib=no"
  13249. fi
  13250. rm -f core conftest.err conftest.$ac_objext \
  13251. conftest$ac_exeext conftest.$ac_ext
  13252. LIBS=$ac_check_lib_save_LIBS
  13253. fi
  13254. eval ac_res=\$$as_ac_Lib
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13256. $as_echo "$ac_res" >&6; }
  13257. eval as_val=\$$as_ac_Lib
  13258. if test "x$as_val" = x""yes; then :
  13259. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13260. else
  13261. link_thread="no"
  13262. fi
  13263. done
  13264. fi
  13265. else
  13266. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13267. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13269. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13270. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13271. $as_echo_n "(cached) " >&6
  13272. else
  13273. ac_check_lib_save_LIBS=$LIBS
  13274. LIBS="-l$ax_lib $LIBS"
  13275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13276. /* end confdefs.h. */
  13277. /* Override any GCC internal prototype to avoid an error.
  13278. Use char because int might match the return type of a GCC
  13279. builtin and then its argument prototype would still apply. */
  13280. #ifdef __cplusplus
  13281. extern "C"
  13282. #endif
  13283. char exit ();
  13284. int
  13285. main ()
  13286. {
  13287. return exit ();
  13288. ;
  13289. return 0;
  13290. }
  13291. _ACEOF
  13292. if ac_fn_cxx_try_link "$LINENO"; then :
  13293. eval "$as_ac_Lib=yes"
  13294. else
  13295. eval "$as_ac_Lib=no"
  13296. fi
  13297. rm -f core conftest.err conftest.$ac_objext \
  13298. conftest$ac_exeext conftest.$ac_ext
  13299. LIBS=$ac_check_lib_save_LIBS
  13300. fi
  13301. eval ac_res=\$$as_ac_Lib
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13303. $as_echo "$ac_res" >&6; }
  13304. eval as_val=\$$as_ac_Lib
  13305. if test "x$as_val" = x""yes; then :
  13306. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13307. else
  13308. link_thread="no"
  13309. fi
  13310. done
  13311. fi
  13312. if test "x$link_thread" = "xno"; then
  13313. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13314. else
  13315. case "x$build_os" in
  13316. *bsd* )
  13317. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13318. break;
  13319. ;;
  13320. esac
  13321. fi
  13322. fi
  13323. CPPFLAGS="$CPPFLAGS_SAVED"
  13324. LDFLAGS="$LDFLAGS_SAVED"
  13325. fi
  13326. # Check whether --with-boost-iostreams was given.
  13327. if test "${with_boost_iostreams+set}" = set; then :
  13328. withval=$with_boost_iostreams;
  13329. if test "$withval" = "no"; then
  13330. want_boost="no"
  13331. elif test "$withval" = "yes"; then
  13332. want_boost="yes"
  13333. ax_boost_user_iostreams_lib=""
  13334. else
  13335. want_boost="yes"
  13336. ax_boost_user_iostreams_lib="$withval"
  13337. fi
  13338. else
  13339. want_boost="yes"
  13340. fi
  13341. if test "x$want_boost" = "xyes"; then
  13342. CPPFLAGS_SAVED="$CPPFLAGS"
  13343. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13344. export CPPFLAGS
  13345. LDFLAGS_SAVED="$LDFLAGS"
  13346. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13347. export LDFLAGS
  13348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13349. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13350. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13351. $as_echo_n "(cached) " >&6
  13352. else
  13353. ac_ext=cpp
  13354. ac_cpp='$CXXCPP $CPPFLAGS'
  13355. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13356. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13357. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13359. /* end confdefs.h. */
  13360. #include <boost/iostreams/filtering_stream.hpp>
  13361. #include <boost/range/iterator_range.hpp>
  13362. int
  13363. main ()
  13364. {
  13365. std::string input = "Hello World!";
  13366. namespace io = boost::iostreams;
  13367. io::filtering_istream in(boost::make_iterator_range(input));
  13368. return 0;
  13369. ;
  13370. return 0;
  13371. }
  13372. _ACEOF
  13373. if ac_fn_cxx_try_compile "$LINENO"; then :
  13374. ax_cv_boost_iostreams=yes
  13375. else
  13376. ax_cv_boost_iostreams=no
  13377. fi
  13378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13379. ac_ext=cpp
  13380. ac_cpp='$CXXCPP $CPPFLAGS'
  13381. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13382. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13383. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13384. fi
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13386. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13387. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13388. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13389. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13390. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13391. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13392. ax_lib=${libextension}
  13393. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13395. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13396. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13397. $as_echo_n "(cached) " >&6
  13398. else
  13399. ac_check_lib_save_LIBS=$LIBS
  13400. LIBS="-l$ax_lib $LIBS"
  13401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13402. /* end confdefs.h. */
  13403. /* Override any GCC internal prototype to avoid an error.
  13404. Use char because int might match the return type of a GCC
  13405. builtin and then its argument prototype would still apply. */
  13406. #ifdef __cplusplus
  13407. extern "C"
  13408. #endif
  13409. char exit ();
  13410. int
  13411. main ()
  13412. {
  13413. return exit ();
  13414. ;
  13415. return 0;
  13416. }
  13417. _ACEOF
  13418. if ac_fn_cxx_try_link "$LINENO"; then :
  13419. eval "$as_ac_Lib=yes"
  13420. else
  13421. eval "$as_ac_Lib=no"
  13422. fi
  13423. rm -f core conftest.err conftest.$ac_objext \
  13424. conftest$ac_exeext conftest.$ac_ext
  13425. LIBS=$ac_check_lib_save_LIBS
  13426. fi
  13427. eval ac_res=\$$as_ac_Lib
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13429. $as_echo "$ac_res" >&6; }
  13430. eval as_val=\$$as_ac_Lib
  13431. if test "x$as_val" = x""yes; then :
  13432. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13433. else
  13434. link_iostreams="no"
  13435. fi
  13436. done
  13437. if test "x$link_iostreams" != "xyes"; then
  13438. for libextension in `ls $BOOSTLIBDIR/boost_iostreams*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_iostreams.*\)\.dll.*$;\1;' -e 's;^\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13439. ax_lib=${libextension}
  13440. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13442. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13443. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13444. $as_echo_n "(cached) " >&6
  13445. else
  13446. ac_check_lib_save_LIBS=$LIBS
  13447. LIBS="-l$ax_lib $LIBS"
  13448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13449. /* end confdefs.h. */
  13450. /* Override any GCC internal prototype to avoid an error.
  13451. Use char because int might match the return type of a GCC
  13452. builtin and then its argument prototype would still apply. */
  13453. #ifdef __cplusplus
  13454. extern "C"
  13455. #endif
  13456. char exit ();
  13457. int
  13458. main ()
  13459. {
  13460. return exit ();
  13461. ;
  13462. return 0;
  13463. }
  13464. _ACEOF
  13465. if ac_fn_cxx_try_link "$LINENO"; then :
  13466. eval "$as_ac_Lib=yes"
  13467. else
  13468. eval "$as_ac_Lib=no"
  13469. fi
  13470. rm -f core conftest.err conftest.$ac_objext \
  13471. conftest$ac_exeext conftest.$ac_ext
  13472. LIBS=$ac_check_lib_save_LIBS
  13473. fi
  13474. eval ac_res=\$$as_ac_Lib
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13476. $as_echo "$ac_res" >&6; }
  13477. eval as_val=\$$as_ac_Lib
  13478. if test "x$as_val" = x""yes; then :
  13479. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13480. else
  13481. link_iostreams="no"
  13482. fi
  13483. done
  13484. fi
  13485. else
  13486. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13487. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13489. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13490. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13491. $as_echo_n "(cached) " >&6
  13492. else
  13493. ac_check_lib_save_LIBS=$LIBS
  13494. LIBS="-l$ax_lib $LIBS"
  13495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13496. /* end confdefs.h. */
  13497. int
  13498. main ()
  13499. {
  13500. return main ();
  13501. ;
  13502. return 0;
  13503. }
  13504. _ACEOF
  13505. if ac_fn_cxx_try_link "$LINENO"; then :
  13506. eval "$as_ac_Lib=yes"
  13507. else
  13508. eval "$as_ac_Lib=no"
  13509. fi
  13510. rm -f core conftest.err conftest.$ac_objext \
  13511. conftest$ac_exeext conftest.$ac_ext
  13512. LIBS=$ac_check_lib_save_LIBS
  13513. fi
  13514. eval ac_res=\$$as_ac_Lib
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13516. $as_echo "$ac_res" >&6; }
  13517. eval as_val=\$$as_ac_Lib
  13518. if test "x$as_val" = x""yes; then :
  13519. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13520. else
  13521. link_iostreams="no"
  13522. fi
  13523. done
  13524. fi
  13525. if test "x$link_iostreams" != "xyes"; then
  13526. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13527. fi
  13528. fi
  13529. CPPFLAGS="$CPPFLAGS_SAVED"
  13530. LDFLAGS="$LDFLAGS_SAVED"
  13531. fi
  13532. # Check for SDL libraries
  13533. saved_LIBS=$LIBS
  13534. # Extract the first word of "sdl-config", so it can be a program name with args.
  13535. set dummy sdl-config; ac_word=$2
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13537. $as_echo_n "checking for $ac_word... " >&6; }
  13538. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13539. $as_echo_n "(cached) " >&6
  13540. else
  13541. if test -n "$HAVE_SDL_CONFIG"; then
  13542. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13543. else
  13544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13545. for as_dir in $PATH
  13546. do
  13547. IFS=$as_save_IFS
  13548. test -z "$as_dir" && as_dir=.
  13549. for ac_exec_ext in '' $ac_executable_extensions; do
  13550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13551. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13553. break 2
  13554. fi
  13555. done
  13556. done
  13557. IFS=$as_save_IFS
  13558. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13559. fi
  13560. fi
  13561. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13562. if test -n "$HAVE_SDL_CONFIG"; then
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13564. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13565. else
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13567. $as_echo "no" >&6; }
  13568. fi
  13569. if test "$HAVE_SDL_CONFIG" = no; then
  13570. as_fn_error "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13571. fi
  13572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13573. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13574. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13575. $as_echo_n "(cached) " >&6
  13576. else
  13577. ac_check_lib_save_LIBS=$LIBS
  13578. LIBS="-lSDL $LIBS"
  13579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13580. /* end confdefs.h. */
  13581. /* Override any GCC internal prototype to avoid an error.
  13582. Use char because int might match the return type of a GCC
  13583. builtin and then its argument prototype would still apply. */
  13584. #ifdef __cplusplus
  13585. extern "C"
  13586. #endif
  13587. char SDL_Init ();
  13588. int
  13589. main ()
  13590. {
  13591. return SDL_Init ();
  13592. ;
  13593. return 0;
  13594. }
  13595. _ACEOF
  13596. if ac_fn_cxx_try_link "$LINENO"; then :
  13597. ac_cv_lib_SDL_SDL_Init=yes
  13598. else
  13599. ac_cv_lib_SDL_SDL_Init=no
  13600. fi
  13601. rm -f core conftest.err conftest.$ac_objext \
  13602. conftest$ac_exeext conftest.$ac_ext
  13603. LIBS=$ac_check_lib_save_LIBS
  13604. fi
  13605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13606. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13607. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13608. cat >>confdefs.h <<_ACEOF
  13609. #define HAVE_LIBSDL 1
  13610. _ACEOF
  13611. LIBS="-lSDL $LIBS"
  13612. else
  13613. as_fn_error "SDL library not found. Please install it." "$LINENO" 5
  13614. fi
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13616. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13617. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13618. $as_echo_n "(cached) " >&6
  13619. else
  13620. ac_check_lib_save_LIBS=$LIBS
  13621. LIBS="-lSDL_mixer $LIBS"
  13622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13623. /* end confdefs.h. */
  13624. int
  13625. main ()
  13626. {
  13627. return main ();
  13628. ;
  13629. return 0;
  13630. }
  13631. _ACEOF
  13632. if ac_fn_cxx_try_link "$LINENO"; then :
  13633. ac_cv_lib_SDL_mixer_main=yes
  13634. else
  13635. ac_cv_lib_SDL_mixer_main=no
  13636. fi
  13637. rm -f core conftest.err conftest.$ac_objext \
  13638. conftest$ac_exeext conftest.$ac_ext
  13639. LIBS=$ac_check_lib_save_LIBS
  13640. fi
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13642. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13643. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13644. cat >>confdefs.h <<_ACEOF
  13645. #define HAVE_LIBSDL_MIXER 1
  13646. _ACEOF
  13647. LIBS="-lSDL_mixer $LIBS"
  13648. else
  13649. as_fn_error "SDL_mixer library not found. Please install it." "$LINENO" 5
  13650. fi
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13652. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13653. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13654. $as_echo_n "(cached) " >&6
  13655. else
  13656. ac_check_lib_save_LIBS=$LIBS
  13657. LIBS="-lSDL_image $LIBS"
  13658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13659. /* end confdefs.h. */
  13660. /* Override any GCC internal prototype to avoid an error.
  13661. Use char because int might match the return type of a GCC
  13662. builtin and then its argument prototype would still apply. */
  13663. #ifdef __cplusplus
  13664. extern "C"
  13665. #endif
  13666. char IMG_Load ();
  13667. int
  13668. main ()
  13669. {
  13670. return IMG_Load ();
  13671. ;
  13672. return 0;
  13673. }
  13674. _ACEOF
  13675. if ac_fn_cxx_try_link "$LINENO"; then :
  13676. ac_cv_lib_SDL_image_IMG_Load=yes
  13677. else
  13678. ac_cv_lib_SDL_image_IMG_Load=no
  13679. fi
  13680. rm -f core conftest.err conftest.$ac_objext \
  13681. conftest$ac_exeext conftest.$ac_ext
  13682. LIBS=$ac_check_lib_save_LIBS
  13683. fi
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13685. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13686. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13687. cat >>confdefs.h <<_ACEOF
  13688. #define HAVE_LIBSDL_IMAGE 1
  13689. _ACEOF
  13690. LIBS="-lSDL_image $LIBS"
  13691. else
  13692. as_fn_error "SDL_image library not found. Please install it." "$LINENO" 5
  13693. fi
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13695. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13696. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13697. $as_echo_n "(cached) " >&6
  13698. else
  13699. ac_check_lib_save_LIBS=$LIBS
  13700. LIBS="-lSDL_ttf $LIBS"
  13701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13702. /* end confdefs.h. */
  13703. int
  13704. main ()
  13705. {
  13706. return main ();
  13707. ;
  13708. return 0;
  13709. }
  13710. _ACEOF
  13711. if ac_fn_cxx_try_link "$LINENO"; then :
  13712. ac_cv_lib_SDL_ttf_main=yes
  13713. else
  13714. ac_cv_lib_SDL_ttf_main=no
  13715. fi
  13716. rm -f core conftest.err conftest.$ac_objext \
  13717. conftest$ac_exeext conftest.$ac_ext
  13718. LIBS=$ac_check_lib_save_LIBS
  13719. fi
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  13721. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  13722. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  13723. cat >>confdefs.h <<_ACEOF
  13724. #define HAVE_LIBSDL_TTF 1
  13725. _ACEOF
  13726. LIBS="-lSDL_ttf $LIBS"
  13727. else
  13728. as_fn_error "SDL_ttf library not found. Please install it." "$LINENO" 5
  13729. fi
  13730. SDL_CXXFLAGS=`sdl-config --cflags`
  13731. SDL_LIBS="`sdl-config --libs` $LIBS"
  13732. LIBS=$saved_LIBS
  13733. # Check for ffmpeg libraries
  13734. saved_LIBS=$LIBS
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
  13736. $as_echo_n "checking for main in -lavformat... " >&6; }
  13737. if test "${ac_cv_lib_avformat_main+set}" = set; then :
  13738. $as_echo_n "(cached) " >&6
  13739. else
  13740. ac_check_lib_save_LIBS=$LIBS
  13741. LIBS="-lavformat $LIBS"
  13742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13743. /* end confdefs.h. */
  13744. int
  13745. main ()
  13746. {
  13747. return main ();
  13748. ;
  13749. return 0;
  13750. }
  13751. _ACEOF
  13752. if ac_fn_cxx_try_link "$LINENO"; then :
  13753. ac_cv_lib_avformat_main=yes
  13754. else
  13755. ac_cv_lib_avformat_main=no
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext \
  13758. conftest$ac_exeext conftest.$ac_ext
  13759. LIBS=$ac_check_lib_save_LIBS
  13760. fi
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
  13762. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  13763. if test "x$ac_cv_lib_avformat_main" = x""yes; then :
  13764. cat >>confdefs.h <<_ACEOF
  13765. #define HAVE_LIBAVFORMAT 1
  13766. _ACEOF
  13767. LIBS="-lavformat $LIBS"
  13768. else
  13769. as_fn_error "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  13770. fi
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
  13772. $as_echo_n "checking for main in -lswscale... " >&6; }
  13773. if test "${ac_cv_lib_swscale_main+set}" = set; then :
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. ac_check_lib_save_LIBS=$LIBS
  13777. LIBS="-lswscale $LIBS"
  13778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13779. /* end confdefs.h. */
  13780. int
  13781. main ()
  13782. {
  13783. return main ();
  13784. ;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_cxx_try_link "$LINENO"; then :
  13789. ac_cv_lib_swscale_main=yes
  13790. else
  13791. ac_cv_lib_swscale_main=no
  13792. fi
  13793. rm -f core conftest.err conftest.$ac_objext \
  13794. conftest$ac_exeext conftest.$ac_ext
  13795. LIBS=$ac_check_lib_save_LIBS
  13796. fi
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
  13798. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  13799. if test "x$ac_cv_lib_swscale_main" = x""yes; then :
  13800. cat >>confdefs.h <<_ACEOF
  13801. #define HAVE_LIBSWSCALE 1
  13802. _ACEOF
  13803. LIBS="-lswscale $LIBS"
  13804. else
  13805. as_fn_error "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  13806. fi
  13807. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  13808. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  13809. LIBS=$saved_LIBS
  13810. # Checks for header files.
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13812. $as_echo_n "checking for ANSI C header files... " >&6; }
  13813. if test "${ac_cv_header_stdc+set}" = set; then :
  13814. $as_echo_n "(cached) " >&6
  13815. else
  13816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13817. /* end confdefs.h. */
  13818. #include <stdlib.h>
  13819. #include <stdarg.h>
  13820. #include <string.h>
  13821. #include <float.h>
  13822. int
  13823. main ()
  13824. {
  13825. ;
  13826. return 0;
  13827. }
  13828. _ACEOF
  13829. if ac_fn_cxx_try_compile "$LINENO"; then :
  13830. ac_cv_header_stdc=yes
  13831. else
  13832. ac_cv_header_stdc=no
  13833. fi
  13834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13835. if test $ac_cv_header_stdc = yes; then
  13836. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13838. /* end confdefs.h. */
  13839. #include <string.h>
  13840. _ACEOF
  13841. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13842. $EGREP "memchr" >/dev/null 2>&1; then :
  13843. else
  13844. ac_cv_header_stdc=no
  13845. fi
  13846. rm -f conftest*
  13847. fi
  13848. if test $ac_cv_header_stdc = yes; then
  13849. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13851. /* end confdefs.h. */
  13852. #include <stdlib.h>
  13853. _ACEOF
  13854. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13855. $EGREP "free" >/dev/null 2>&1; then :
  13856. else
  13857. ac_cv_header_stdc=no
  13858. fi
  13859. rm -f conftest*
  13860. fi
  13861. if test $ac_cv_header_stdc = yes; then
  13862. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13863. if test "$cross_compiling" = yes; then :
  13864. :
  13865. else
  13866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13867. /* end confdefs.h. */
  13868. #include <ctype.h>
  13869. #include <stdlib.h>
  13870. #if ((' ' & 0x0FF) == 0x020)
  13871. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13872. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13873. #else
  13874. # define ISLOWER(c) \
  13875. (('a' <= (c) && (c) <= 'i') \
  13876. || ('j' <= (c) && (c) <= 'r') \
  13877. || ('s' <= (c) && (c) <= 'z'))
  13878. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13879. #endif
  13880. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13881. int
  13882. main ()
  13883. {
  13884. int i;
  13885. for (i = 0; i < 256; i++)
  13886. if (XOR (islower (i), ISLOWER (i))
  13887. || toupper (i) != TOUPPER (i))
  13888. return 2;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. if ac_fn_cxx_try_run "$LINENO"; then :
  13893. else
  13894. ac_cv_header_stdc=no
  13895. fi
  13896. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13897. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13898. fi
  13899. fi
  13900. fi
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13902. $as_echo "$ac_cv_header_stdc" >&6; }
  13903. if test $ac_cv_header_stdc = yes; then
  13904. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13905. fi
  13906. for ac_header in fcntl.h stdlib.h string.h
  13907. do :
  13908. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13909. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13910. eval as_val=\$$as_ac_Header
  13911. if test "x$as_val" = x""yes; then :
  13912. cat >>confdefs.h <<_ACEOF
  13913. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13914. _ACEOF
  13915. fi
  13916. done
  13917. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13918. for ac_header in boost/filesystem.hpp boost/algorithm/string.hpp boost/algorithm/string/replace.hpp boost/filesystem/operations.hpp boost/assign/std/vector.hpp boost/algorithm/string/find.hpp boost/function.hpp boost/bind.hpp
  13919. do :
  13920. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13921. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13922. eval as_val=\$$as_ac_Header
  13923. if test "x$as_val" = x""yes; then :
  13924. cat >>confdefs.h <<_ACEOF
  13925. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13926. _ACEOF
  13927. else
  13928. as_fn_error "Required boost headers not found. Please install it." "$LINENO" 5
  13929. fi
  13930. done
  13931. # Checks for library functions.
  13932. for ac_func in atexit memset pow select sqrt
  13933. do :
  13934. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13935. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13936. eval as_val=\$$as_ac_var
  13937. if test "x$as_val" = x""yes; then :
  13938. cat >>confdefs.h <<_ACEOF
  13939. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13940. _ACEOF
  13941. fi
  13942. done
  13943. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  13944. cat >confcache <<\_ACEOF
  13945. # This file is a shell script that caches the results of configure
  13946. # tests run on this system so they can be shared between configure
  13947. # scripts and configure runs, see configure's option --config-cache.
  13948. # It is not useful on other systems. If it contains results you don't
  13949. # want to keep, you may remove or edit it.
  13950. #
  13951. # config.status only pays attention to the cache file if you give it
  13952. # the --recheck option to rerun configure.
  13953. #
  13954. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13955. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13956. # following values.
  13957. _ACEOF
  13958. # The following way of writing the cache mishandles newlines in values,
  13959. # but we know of no workaround that is simple, portable, and efficient.
  13960. # So, we kill variables containing newlines.
  13961. # Ultrix sh set writes to stderr and can't be redirected directly,
  13962. # and sets the high bit in the cache file unless we assign to the vars.
  13963. (
  13964. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13965. eval ac_val=\$$ac_var
  13966. case $ac_val in #(
  13967. *${as_nl}*)
  13968. case $ac_var in #(
  13969. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13970. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13971. esac
  13972. case $ac_var in #(
  13973. _ | IFS | as_nl) ;; #(
  13974. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13975. *) { eval $ac_var=; unset $ac_var;} ;;
  13976. esac ;;
  13977. esac
  13978. done
  13979. (set) 2>&1 |
  13980. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13981. *${as_nl}ac_space=\ *)
  13982. # `set' does not quote correctly, so add quotes: double-quote
  13983. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13984. sed -n \
  13985. "s/'/'\\\\''/g;
  13986. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13987. ;; #(
  13988. *)
  13989. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13990. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13991. ;;
  13992. esac |
  13993. sort
  13994. ) |
  13995. sed '
  13996. /^ac_cv_env_/b end
  13997. t clear
  13998. :clear
  13999. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14000. t end
  14001. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14002. :end' >>confcache
  14003. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14004. if test -w "$cache_file"; then
  14005. test "x$cache_file" != "x/dev/null" &&
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14007. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14008. cat confcache >$cache_file
  14009. else
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14011. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14012. fi
  14013. fi
  14014. rm -f confcache
  14015. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14016. # Let make expand exec_prefix.
  14017. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14018. # Transform confdefs.h into DEFS.
  14019. # Protect against shell expansion while executing Makefile rules.
  14020. # Protect against Makefile macro expansion.
  14021. #
  14022. # If the first sed substitution is executed (which looks for macros that
  14023. # take arguments), then branch to the quote section. Otherwise,
  14024. # look for a macro that doesn't take arguments.
  14025. ac_script='
  14026. :mline
  14027. /\\$/{
  14028. N
  14029. s,\\\n,,
  14030. b mline
  14031. }
  14032. t clear
  14033. :clear
  14034. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14035. t quote
  14036. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14037. t quote
  14038. b any
  14039. :quote
  14040. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14041. s/\[/\\&/g
  14042. s/\]/\\&/g
  14043. s/\$/$$/g
  14044. H
  14045. :any
  14046. ${
  14047. g
  14048. s/^\n//
  14049. s/\n/ /g
  14050. p
  14051. }
  14052. '
  14053. DEFS=`sed -n "$ac_script" confdefs.h`
  14054. ac_libobjs=
  14055. ac_ltlibobjs=
  14056. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14057. # 1. Remove the extension, and $U if already installed.
  14058. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14059. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14060. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14061. # will be set to the directory where LIBOBJS objects are built.
  14062. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14063. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14064. done
  14065. LIBOBJS=$ac_libobjs
  14066. LTLIBOBJS=$ac_ltlibobjs
  14067. if test -n "$EXEEXT"; then
  14068. am__EXEEXT_TRUE=
  14069. am__EXEEXT_FALSE='#'
  14070. else
  14071. am__EXEEXT_TRUE='#'
  14072. am__EXEEXT_FALSE=
  14073. fi
  14074. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14075. as_fn_error "conditional \"AMDEP\" was never defined.
  14076. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14077. fi
  14078. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14079. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14080. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14081. fi
  14082. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14083. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14084. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14085. fi
  14086. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14087. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14088. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14089. fi
  14090. : ${CONFIG_STATUS=./config.status}
  14091. ac_write_fail=0
  14092. ac_clean_files_save=$ac_clean_files
  14093. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14095. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14096. as_write_fail=0
  14097. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14098. #! $SHELL
  14099. # Generated by $as_me.
  14100. # Run this file to recreate the current configuration.
  14101. # Compiler output produced by configure, useful for debugging
  14102. # configure, is in config.log if it exists.
  14103. debug=false
  14104. ac_cs_recheck=false
  14105. ac_cs_silent=false
  14106. SHELL=\${CONFIG_SHELL-$SHELL}
  14107. export SHELL
  14108. _ASEOF
  14109. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14110. ## -------------------- ##
  14111. ## M4sh Initialization. ##
  14112. ## -------------------- ##
  14113. # Be more Bourne compatible
  14114. DUALCASE=1; export DUALCASE # for MKS sh
  14115. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14116. emulate sh
  14117. NULLCMD=:
  14118. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14119. # is contrary to our usage. Disable this feature.
  14120. alias -g '${1+"$@"}'='"$@"'
  14121. setopt NO_GLOB_SUBST
  14122. else
  14123. case `(set -o) 2>/dev/null` in #(
  14124. *posix*) :
  14125. set -o posix ;; #(
  14126. *) :
  14127. ;;
  14128. esac
  14129. fi
  14130. as_nl='
  14131. '
  14132. export as_nl
  14133. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14134. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14135. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14136. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14137. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14138. # but without wasting forks for bash or zsh.
  14139. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14140. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14141. as_echo='print -r --'
  14142. as_echo_n='print -rn --'
  14143. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14144. as_echo='printf %s\n'
  14145. as_echo_n='printf %s'
  14146. else
  14147. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14148. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14149. as_echo_n='/usr/ucb/echo -n'
  14150. else
  14151. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14152. as_echo_n_body='eval
  14153. arg=$1;
  14154. case $arg in #(
  14155. *"$as_nl"*)
  14156. expr "X$arg" : "X\\(.*\\)$as_nl";
  14157. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14158. esac;
  14159. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14160. '
  14161. export as_echo_n_body
  14162. as_echo_n='sh -c $as_echo_n_body as_echo'
  14163. fi
  14164. export as_echo_body
  14165. as_echo='sh -c $as_echo_body as_echo'
  14166. fi
  14167. # The user is always right.
  14168. if test "${PATH_SEPARATOR+set}" != set; then
  14169. PATH_SEPARATOR=:
  14170. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14171. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14172. PATH_SEPARATOR=';'
  14173. }
  14174. fi
  14175. # IFS
  14176. # We need space, tab and new line, in precisely that order. Quoting is
  14177. # there to prevent editors from complaining about space-tab.
  14178. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14179. # splitting by setting IFS to empty value.)
  14180. IFS=" "" $as_nl"
  14181. # Find who we are. Look in the path if we contain no directory separator.
  14182. case $0 in #((
  14183. *[\\/]* ) as_myself=$0 ;;
  14184. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14185. for as_dir in $PATH
  14186. do
  14187. IFS=$as_save_IFS
  14188. test -z "$as_dir" && as_dir=.
  14189. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14190. done
  14191. IFS=$as_save_IFS
  14192. ;;
  14193. esac
  14194. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14195. # in which case we are not to be found in the path.
  14196. if test "x$as_myself" = x; then
  14197. as_myself=$0
  14198. fi
  14199. if test ! -f "$as_myself"; then
  14200. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14201. exit 1
  14202. fi
  14203. # Unset variables that we do not need and which cause bugs (e.g. in
  14204. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14205. # suppresses any "Segmentation fault" message there. '((' could
  14206. # trigger a bug in pdksh 5.2.14.
  14207. for as_var in BASH_ENV ENV MAIL MAILPATH
  14208. do eval test x\${$as_var+set} = xset \
  14209. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14210. done
  14211. PS1='$ '
  14212. PS2='> '
  14213. PS4='+ '
  14214. # NLS nuisances.
  14215. LC_ALL=C
  14216. export LC_ALL
  14217. LANGUAGE=C
  14218. export LANGUAGE
  14219. # CDPATH.
  14220. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14221. # as_fn_error ERROR [LINENO LOG_FD]
  14222. # ---------------------------------
  14223. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14224. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14225. # script with status $?, using 1 if that was 0.
  14226. as_fn_error ()
  14227. {
  14228. as_status=$?; test $as_status -eq 0 && as_status=1
  14229. if test "$3"; then
  14230. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14231. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14232. fi
  14233. $as_echo "$as_me: error: $1" >&2
  14234. as_fn_exit $as_status
  14235. } # as_fn_error
  14236. # as_fn_set_status STATUS
  14237. # -----------------------
  14238. # Set $? to STATUS, without forking.
  14239. as_fn_set_status ()
  14240. {
  14241. return $1
  14242. } # as_fn_set_status
  14243. # as_fn_exit STATUS
  14244. # -----------------
  14245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14246. as_fn_exit ()
  14247. {
  14248. set +e
  14249. as_fn_set_status $1
  14250. exit $1
  14251. } # as_fn_exit
  14252. # as_fn_unset VAR
  14253. # ---------------
  14254. # Portably unset VAR.
  14255. as_fn_unset ()
  14256. {
  14257. { eval $1=; unset $1;}
  14258. }
  14259. as_unset=as_fn_unset
  14260. # as_fn_append VAR VALUE
  14261. # ----------------------
  14262. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14263. # advantage of any shell optimizations that allow amortized linear growth over
  14264. # repeated appends, instead of the typical quadratic growth present in naive
  14265. # implementations.
  14266. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14267. eval 'as_fn_append ()
  14268. {
  14269. eval $1+=\$2
  14270. }'
  14271. else
  14272. as_fn_append ()
  14273. {
  14274. eval $1=\$$1\$2
  14275. }
  14276. fi # as_fn_append
  14277. # as_fn_arith ARG...
  14278. # ------------------
  14279. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14280. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14281. # must be portable across $(()) and expr.
  14282. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14283. eval 'as_fn_arith ()
  14284. {
  14285. as_val=$(( $* ))
  14286. }'
  14287. else
  14288. as_fn_arith ()
  14289. {
  14290. as_val=`expr "$@" || test $? -eq 1`
  14291. }
  14292. fi # as_fn_arith
  14293. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14294. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14295. as_expr=expr
  14296. else
  14297. as_expr=false
  14298. fi
  14299. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14300. as_basename=basename
  14301. else
  14302. as_basename=false
  14303. fi
  14304. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14305. as_dirname=dirname
  14306. else
  14307. as_dirname=false
  14308. fi
  14309. as_me=`$as_basename -- "$0" ||
  14310. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14311. X"$0" : 'X\(//\)$' \| \
  14312. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14313. $as_echo X/"$0" |
  14314. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14315. s//\1/
  14316. q
  14317. }
  14318. /^X\/\(\/\/\)$/{
  14319. s//\1/
  14320. q
  14321. }
  14322. /^X\/\(\/\).*/{
  14323. s//\1/
  14324. q
  14325. }
  14326. s/.*/./; q'`
  14327. # Avoid depending upon Character Ranges.
  14328. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14329. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14330. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14331. as_cr_digits='0123456789'
  14332. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14333. ECHO_C= ECHO_N= ECHO_T=
  14334. case `echo -n x` in #(((((
  14335. -n*)
  14336. case `echo 'xy\c'` in
  14337. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14338. xy) ECHO_C='\c';;
  14339. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14340. ECHO_T=' ';;
  14341. esac;;
  14342. *)
  14343. ECHO_N='-n';;
  14344. esac
  14345. rm -f conf$$ conf$$.exe conf$$.file
  14346. if test -d conf$$.dir; then
  14347. rm -f conf$$.dir/conf$$.file
  14348. else
  14349. rm -f conf$$.dir
  14350. mkdir conf$$.dir 2>/dev/null
  14351. fi
  14352. if (echo >conf$$.file) 2>/dev/null; then
  14353. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14354. as_ln_s='ln -s'
  14355. # ... but there are two gotchas:
  14356. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14357. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14358. # In both cases, we have to default to `cp -p'.
  14359. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14360. as_ln_s='cp -p'
  14361. elif ln conf$$.file conf$$ 2>/dev/null; then
  14362. as_ln_s=ln
  14363. else
  14364. as_ln_s='cp -p'
  14365. fi
  14366. else
  14367. as_ln_s='cp -p'
  14368. fi
  14369. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14370. rmdir conf$$.dir 2>/dev/null
  14371. # as_fn_mkdir_p
  14372. # -------------
  14373. # Create "$as_dir" as a directory, including parents if necessary.
  14374. as_fn_mkdir_p ()
  14375. {
  14376. case $as_dir in #(
  14377. -*) as_dir=./$as_dir;;
  14378. esac
  14379. test -d "$as_dir" || eval $as_mkdir_p || {
  14380. as_dirs=
  14381. while :; do
  14382. case $as_dir in #(
  14383. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14384. *) as_qdir=$as_dir;;
  14385. esac
  14386. as_dirs="'$as_qdir' $as_dirs"
  14387. as_dir=`$as_dirname -- "$as_dir" ||
  14388. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14389. X"$as_dir" : 'X\(//\)[^/]' \| \
  14390. X"$as_dir" : 'X\(//\)$' \| \
  14391. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14392. $as_echo X"$as_dir" |
  14393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14394. s//\1/
  14395. q
  14396. }
  14397. /^X\(\/\/\)[^/].*/{
  14398. s//\1/
  14399. q
  14400. }
  14401. /^X\(\/\/\)$/{
  14402. s//\1/
  14403. q
  14404. }
  14405. /^X\(\/\).*/{
  14406. s//\1/
  14407. q
  14408. }
  14409. s/.*/./; q'`
  14410. test -d "$as_dir" && break
  14411. done
  14412. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14413. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14414. } # as_fn_mkdir_p
  14415. if mkdir -p . 2>/dev/null; then
  14416. as_mkdir_p='mkdir -p "$as_dir"'
  14417. else
  14418. test -d ./-p && rmdir ./-p
  14419. as_mkdir_p=false
  14420. fi
  14421. if test -x / >/dev/null 2>&1; then
  14422. as_test_x='test -x'
  14423. else
  14424. if ls -dL / >/dev/null 2>&1; then
  14425. as_ls_L_option=L
  14426. else
  14427. as_ls_L_option=
  14428. fi
  14429. as_test_x='
  14430. eval sh -c '\''
  14431. if test -d "$1"; then
  14432. test -d "$1/.";
  14433. else
  14434. case $1 in #(
  14435. -*)set "./$1";;
  14436. esac;
  14437. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14438. ???[sx]*):;;*)false;;esac;fi
  14439. '\'' sh
  14440. '
  14441. fi
  14442. as_executable_p=$as_test_x
  14443. # Sed expression to map a string onto a valid CPP name.
  14444. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14445. # Sed expression to map a string onto a valid variable name.
  14446. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14447. exec 6>&1
  14448. ## ----------------------------------- ##
  14449. ## Main body of $CONFIG_STATUS script. ##
  14450. ## ----------------------------------- ##
  14451. _ASEOF
  14452. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14454. # Save the log message, to keep $0 and so on meaningful, and to
  14455. # report actual input values of CONFIG_FILES etc. instead of their
  14456. # values after options handling.
  14457. ac_log="
  14458. This file was extended by vcmi $as_me 0.8, which was
  14459. generated by GNU Autoconf 2.65. Invocation command line was
  14460. CONFIG_FILES = $CONFIG_FILES
  14461. CONFIG_HEADERS = $CONFIG_HEADERS
  14462. CONFIG_LINKS = $CONFIG_LINKS
  14463. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14464. $ $0 $@
  14465. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14466. "
  14467. _ACEOF
  14468. case $ac_config_files in *"
  14469. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14470. esac
  14471. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14472. # Files that config.status was made for.
  14473. config_files="$ac_config_files"
  14474. config_commands="$ac_config_commands"
  14475. _ACEOF
  14476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14477. ac_cs_usage="\
  14478. \`$as_me' instantiates files and other configuration actions
  14479. from templates according to the current configuration. Unless the files
  14480. and actions are specified as TAGs, all are instantiated by default.
  14481. Usage: $0 [OPTION]... [TAG]...
  14482. -h, --help print this help, then exit
  14483. -V, --version print version number and configuration settings, then exit
  14484. --config print configuration, then exit
  14485. -q, --quiet, --silent
  14486. do not print progress messages
  14487. -d, --debug don't remove temporary files
  14488. --recheck update $as_me by reconfiguring in the same conditions
  14489. --file=FILE[:TEMPLATE]
  14490. instantiate the configuration file FILE
  14491. Configuration files:
  14492. $config_files
  14493. Configuration commands:
  14494. $config_commands
  14495. Report bugs to the package provider."
  14496. _ACEOF
  14497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14498. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14499. ac_cs_version="\\
  14500. vcmi config.status 0.8
  14501. configured by $0, generated by GNU Autoconf 2.65,
  14502. with options \\"\$ac_cs_config\\"
  14503. Copyright (C) 2009 Free Software Foundation, Inc.
  14504. This config.status script is free software; the Free Software Foundation
  14505. gives unlimited permission to copy, distribute and modify it."
  14506. ac_pwd='$ac_pwd'
  14507. srcdir='$srcdir'
  14508. INSTALL='$INSTALL'
  14509. MKDIR_P='$MKDIR_P'
  14510. AWK='$AWK'
  14511. test -n "\$AWK" || AWK=awk
  14512. _ACEOF
  14513. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14514. # The default lists apply if the user does not specify any file.
  14515. ac_need_defaults=:
  14516. while test $# != 0
  14517. do
  14518. case $1 in
  14519. --*=*)
  14520. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14521. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14522. ac_shift=:
  14523. ;;
  14524. *)
  14525. ac_option=$1
  14526. ac_optarg=$2
  14527. ac_shift=shift
  14528. ;;
  14529. esac
  14530. case $ac_option in
  14531. # Handling of the options.
  14532. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14533. ac_cs_recheck=: ;;
  14534. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14535. $as_echo "$ac_cs_version"; exit ;;
  14536. --config | --confi | --conf | --con | --co | --c )
  14537. $as_echo "$ac_cs_config"; exit ;;
  14538. --debug | --debu | --deb | --de | --d | -d )
  14539. debug=: ;;
  14540. --file | --fil | --fi | --f )
  14541. $ac_shift
  14542. case $ac_optarg in
  14543. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14544. esac
  14545. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14546. ac_need_defaults=false;;
  14547. --he | --h | --help | --hel | -h )
  14548. $as_echo "$ac_cs_usage"; exit ;;
  14549. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14550. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14551. ac_cs_silent=: ;;
  14552. # This is an error.
  14553. -*) as_fn_error "unrecognized option: \`$1'
  14554. Try \`$0 --help' for more information." ;;
  14555. *) as_fn_append ac_config_targets " $1"
  14556. ac_need_defaults=false ;;
  14557. esac
  14558. shift
  14559. done
  14560. ac_configure_extra_args=
  14561. if $ac_cs_silent; then
  14562. exec 6>/dev/null
  14563. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14564. fi
  14565. _ACEOF
  14566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14567. if \$ac_cs_recheck; then
  14568. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14569. shift
  14570. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14571. CONFIG_SHELL='$SHELL'
  14572. export CONFIG_SHELL
  14573. exec "\$@"
  14574. fi
  14575. _ACEOF
  14576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14577. exec 5>>config.log
  14578. {
  14579. echo
  14580. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14581. ## Running $as_me. ##
  14582. _ASBOX
  14583. $as_echo "$ac_log"
  14584. } >&5
  14585. _ACEOF
  14586. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14587. #
  14588. # INIT-COMMANDS
  14589. #
  14590. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14591. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14592. # if CDPATH is set.
  14593. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14594. sed_quote_subst='$sed_quote_subst'
  14595. double_quote_subst='$double_quote_subst'
  14596. delay_variable_subst='$delay_variable_subst'
  14597. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14598. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14599. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14600. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14601. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14602. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14603. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14604. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14605. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14606. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14607. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14608. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14609. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14610. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14611. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14612. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14613. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14614. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14615. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14616. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14617. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14618. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14619. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14620. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14621. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14622. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14623. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14624. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14625. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14626. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14627. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14628. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14629. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14630. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14631. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14632. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14633. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14634. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14635. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14636. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14637. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14638. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14639. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14640. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14641. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  14642. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14643. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14644. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14645. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14646. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14647. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14648. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14649. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14650. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14651. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14652. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14653. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14654. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14655. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14656. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14657. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14658. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14659. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14660. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14661. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14662. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14663. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14664. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14665. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14666. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14667. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14668. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14669. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14670. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14671. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14672. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14673. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14674. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14675. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14676. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14677. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14678. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14679. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14680. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14681. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14682. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14683. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14684. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14685. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14686. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14687. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14688. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14689. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14690. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14691. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14692. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14693. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14694. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14695. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14696. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14697. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14698. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14699. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14700. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14701. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14702. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14703. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14704. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14705. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14706. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14707. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14708. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14709. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14710. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14711. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14712. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14713. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14714. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14715. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  14716. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14717. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14718. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14719. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14720. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14721. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14722. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14723. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14724. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14725. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14726. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14727. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14728. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14729. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14730. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14731. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14732. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14733. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14734. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14735. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14736. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14737. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14738. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14739. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14740. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14741. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14742. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14743. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14744. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14745. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14746. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14747. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14748. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14749. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14750. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14751. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14752. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14753. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14754. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14755. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14756. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14757. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14758. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14759. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14760. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14761. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14762. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14763. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14764. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14765. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14766. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14767. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14768. LTCC='$LTCC'
  14769. LTCFLAGS='$LTCFLAGS'
  14770. compiler='$compiler_DEFAULT'
  14771. # Quote evaled strings.
  14772. for var in SED \
  14773. GREP \
  14774. EGREP \
  14775. FGREP \
  14776. LD \
  14777. NM \
  14778. LN_S \
  14779. lt_SP2NL \
  14780. lt_NL2SP \
  14781. reload_flag \
  14782. OBJDUMP \
  14783. deplibs_check_method \
  14784. file_magic_cmd \
  14785. AR \
  14786. AR_FLAGS \
  14787. STRIP \
  14788. RANLIB \
  14789. CC \
  14790. CFLAGS \
  14791. compiler \
  14792. lt_cv_sys_global_symbol_pipe \
  14793. lt_cv_sys_global_symbol_to_cdecl \
  14794. lt_cv_sys_global_symbol_to_c_name_address \
  14795. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14796. SHELL \
  14797. ECHO \
  14798. lt_prog_compiler_no_builtin_flag \
  14799. lt_prog_compiler_wl \
  14800. lt_prog_compiler_pic \
  14801. lt_prog_compiler_static \
  14802. lt_cv_prog_compiler_c_o \
  14803. need_locks \
  14804. DSYMUTIL \
  14805. NMEDIT \
  14806. LIPO \
  14807. OTOOL \
  14808. OTOOL64 \
  14809. shrext_cmds \
  14810. export_dynamic_flag_spec \
  14811. whole_archive_flag_spec \
  14812. compiler_needs_object \
  14813. with_gnu_ld \
  14814. allow_undefined_flag \
  14815. no_undefined_flag \
  14816. hardcode_libdir_flag_spec \
  14817. hardcode_libdir_flag_spec_ld \
  14818. hardcode_libdir_separator \
  14819. fix_srcfile_path \
  14820. exclude_expsyms \
  14821. include_expsyms \
  14822. file_list_spec \
  14823. variables_saved_for_relink \
  14824. libname_spec \
  14825. library_names_spec \
  14826. soname_spec \
  14827. finish_eval \
  14828. old_striplib \
  14829. striplib \
  14830. compiler_lib_search_dirs \
  14831. predep_objects \
  14832. postdep_objects \
  14833. predeps \
  14834. postdeps \
  14835. compiler_lib_search_path \
  14836. LD_CXX \
  14837. compiler_CXX \
  14838. lt_prog_compiler_no_builtin_flag_CXX \
  14839. lt_prog_compiler_wl_CXX \
  14840. lt_prog_compiler_pic_CXX \
  14841. lt_prog_compiler_static_CXX \
  14842. lt_cv_prog_compiler_c_o_CXX \
  14843. export_dynamic_flag_spec_CXX \
  14844. whole_archive_flag_spec_CXX \
  14845. compiler_needs_object_CXX \
  14846. with_gnu_ld_CXX \
  14847. allow_undefined_flag_CXX \
  14848. no_undefined_flag_CXX \
  14849. hardcode_libdir_flag_spec_CXX \
  14850. hardcode_libdir_flag_spec_ld_CXX \
  14851. hardcode_libdir_separator_CXX \
  14852. fix_srcfile_path_CXX \
  14853. exclude_expsyms_CXX \
  14854. include_expsyms_CXX \
  14855. file_list_spec_CXX \
  14856. compiler_lib_search_dirs_CXX \
  14857. predep_objects_CXX \
  14858. postdep_objects_CXX \
  14859. predeps_CXX \
  14860. postdeps_CXX \
  14861. compiler_lib_search_path_CXX; do
  14862. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14863. *[\\\\\\\`\\"\\\$]*)
  14864. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14865. ;;
  14866. *)
  14867. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14868. ;;
  14869. esac
  14870. done
  14871. # Double-quote double-evaled strings.
  14872. for var in reload_cmds \
  14873. old_postinstall_cmds \
  14874. old_postuninstall_cmds \
  14875. old_archive_cmds \
  14876. extract_expsyms_cmds \
  14877. old_archive_from_new_cmds \
  14878. old_archive_from_expsyms_cmds \
  14879. archive_cmds \
  14880. archive_expsym_cmds \
  14881. module_cmds \
  14882. module_expsym_cmds \
  14883. export_symbols_cmds \
  14884. prelink_cmds \
  14885. postinstall_cmds \
  14886. postuninstall_cmds \
  14887. finish_cmds \
  14888. sys_lib_search_path_spec \
  14889. sys_lib_dlsearch_path_spec \
  14890. old_archive_cmds_CXX \
  14891. old_archive_from_new_cmds_CXX \
  14892. old_archive_from_expsyms_cmds_CXX \
  14893. archive_cmds_CXX \
  14894. archive_expsym_cmds_CXX \
  14895. module_cmds_CXX \
  14896. module_expsym_cmds_CXX \
  14897. export_symbols_cmds_CXX \
  14898. prelink_cmds_CXX; do
  14899. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14900. *[\\\\\\\`\\"\\\$]*)
  14901. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14902. ;;
  14903. *)
  14904. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14905. ;;
  14906. esac
  14907. done
  14908. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14909. case \$lt_ECHO in
  14910. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14911. ;;
  14912. esac
  14913. ac_aux_dir='$ac_aux_dir'
  14914. xsi_shell='$xsi_shell'
  14915. lt_shell_append='$lt_shell_append'
  14916. # See if we are running on zsh, and set the options which allow our
  14917. # commands through without removal of \ escapes INIT.
  14918. if test -n "\${ZSH_VERSION+set}" ; then
  14919. setopt NO_GLOB_SUBST
  14920. fi
  14921. PACKAGE='$PACKAGE'
  14922. VERSION='$VERSION'
  14923. TIMESTAMP='$TIMESTAMP'
  14924. RM='$RM'
  14925. ofile='$ofile'
  14926. _ACEOF
  14927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14928. # Handling of arguments.
  14929. for ac_config_target in $ac_config_targets
  14930. do
  14931. case $ac_config_target in
  14932. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14933. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14934. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14935. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14936. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  14937. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  14938. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  14939. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  14940. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  14941. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14942. esac
  14943. done
  14944. # If the user did not use the arguments to specify the items to instantiate,
  14945. # then the envvar interface is used. Set only those that are not.
  14946. # We use the long form for the default assignment because of an extremely
  14947. # bizarre bug on SunOS 4.1.3.
  14948. if $ac_need_defaults; then
  14949. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14950. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14951. fi
  14952. # Have a temporary directory for convenience. Make it in the build tree
  14953. # simply because there is no reason against having it here, and in addition,
  14954. # creating and moving files from /tmp can sometimes cause problems.
  14955. # Hook for its removal unless debugging.
  14956. # Note that there is a small window in which the directory will not be cleaned:
  14957. # after its creation but before its name has been assigned to `$tmp'.
  14958. $debug ||
  14959. {
  14960. tmp=
  14961. trap 'exit_status=$?
  14962. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14963. ' 0
  14964. trap 'as_fn_exit 1' 1 2 13 15
  14965. }
  14966. # Create a (secure) tmp directory for tmp files.
  14967. {
  14968. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14969. test -n "$tmp" && test -d "$tmp"
  14970. } ||
  14971. {
  14972. tmp=./conf$$-$RANDOM
  14973. (umask 077 && mkdir "$tmp")
  14974. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14975. # Set up the scripts for CONFIG_FILES section.
  14976. # No need to generate them if there are no CONFIG_FILES.
  14977. # This happens for instance with `./config.status config.h'.
  14978. if test -n "$CONFIG_FILES"; then
  14979. ac_cr=`echo X | tr X '\015'`
  14980. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14981. # But we know of no other shell where ac_cr would be empty at this
  14982. # point, so we can use a bashism as a fallback.
  14983. if test "x$ac_cr" = x; then
  14984. eval ac_cr=\$\'\\r\'
  14985. fi
  14986. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14987. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14988. ac_cs_awk_cr='\r'
  14989. else
  14990. ac_cs_awk_cr=$ac_cr
  14991. fi
  14992. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14993. _ACEOF
  14994. {
  14995. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14996. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14997. echo "_ACEOF"
  14998. } >conf$$subs.sh ||
  14999. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15000. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15001. ac_delim='%!_!# '
  15002. for ac_last_try in false false false false false :; do
  15003. . ./conf$$subs.sh ||
  15004. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15005. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15006. if test $ac_delim_n = $ac_delim_num; then
  15007. break
  15008. elif $ac_last_try; then
  15009. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15010. else
  15011. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15012. fi
  15013. done
  15014. rm -f conf$$subs.sh
  15015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15016. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15017. _ACEOF
  15018. sed -n '
  15019. h
  15020. s/^/S["/; s/!.*/"]=/
  15021. p
  15022. g
  15023. s/^[^!]*!//
  15024. :repl
  15025. t repl
  15026. s/'"$ac_delim"'$//
  15027. t delim
  15028. :nl
  15029. h
  15030. s/\(.\{148\}\)..*/\1/
  15031. t more1
  15032. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15033. p
  15034. n
  15035. b repl
  15036. :more1
  15037. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15038. p
  15039. g
  15040. s/.\{148\}//
  15041. t nl
  15042. :delim
  15043. h
  15044. s/\(.\{148\}\)..*/\1/
  15045. t more2
  15046. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15047. p
  15048. b
  15049. :more2
  15050. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15051. p
  15052. g
  15053. s/.\{148\}//
  15054. t delim
  15055. ' <conf$$subs.awk | sed '
  15056. /^[^""]/{
  15057. N
  15058. s/\n//
  15059. }
  15060. ' >>$CONFIG_STATUS || ac_write_fail=1
  15061. rm -f conf$$subs.awk
  15062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15063. _ACAWK
  15064. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15065. for (key in S) S_is_set[key] = 1
  15066. FS = ""
  15067. }
  15068. {
  15069. line = $ 0
  15070. nfields = split(line, field, "@")
  15071. substed = 0
  15072. len = length(field[1])
  15073. for (i = 2; i < nfields; i++) {
  15074. key = field[i]
  15075. keylen = length(key)
  15076. if (S_is_set[key]) {
  15077. value = S[key]
  15078. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15079. len += length(value) + length(field[++i])
  15080. substed = 1
  15081. } else
  15082. len += 1 + keylen
  15083. }
  15084. print line
  15085. }
  15086. _ACAWK
  15087. _ACEOF
  15088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15089. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15090. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15091. else
  15092. cat
  15093. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15094. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15095. _ACEOF
  15096. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15097. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15098. # trailing colons and then remove the whole line if VPATH becomes empty
  15099. # (actually we leave an empty line to preserve line numbers).
  15100. if test "x$srcdir" = x.; then
  15101. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15102. s/:*\$(srcdir):*/:/
  15103. s/:*\${srcdir}:*/:/
  15104. s/:*@srcdir@:*/:/
  15105. s/^\([^=]*=[ ]*\):*/\1/
  15106. s/:*$//
  15107. s/^[^=]*=[ ]*$//
  15108. }'
  15109. fi
  15110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15111. fi # test -n "$CONFIG_FILES"
  15112. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15113. shift
  15114. for ac_tag
  15115. do
  15116. case $ac_tag in
  15117. :[FHLC]) ac_mode=$ac_tag; continue;;
  15118. esac
  15119. case $ac_mode$ac_tag in
  15120. :[FHL]*:*);;
  15121. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15122. :[FH]-) ac_tag=-:-;;
  15123. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15124. esac
  15125. ac_save_IFS=$IFS
  15126. IFS=:
  15127. set x $ac_tag
  15128. IFS=$ac_save_IFS
  15129. shift
  15130. ac_file=$1
  15131. shift
  15132. case $ac_mode in
  15133. :L) ac_source=$1;;
  15134. :[FH])
  15135. ac_file_inputs=
  15136. for ac_f
  15137. do
  15138. case $ac_f in
  15139. -) ac_f="$tmp/stdin";;
  15140. *) # Look for the file first in the build tree, then in the source tree
  15141. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15142. # because $ac_f cannot contain `:'.
  15143. test -f "$ac_f" ||
  15144. case $ac_f in
  15145. [\\/$]*) false;;
  15146. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15147. esac ||
  15148. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15149. esac
  15150. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15151. as_fn_append ac_file_inputs " '$ac_f'"
  15152. done
  15153. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15154. # use $as_me), people would be surprised to read:
  15155. # /* config.h. Generated by config.status. */
  15156. configure_input='Generated from '`
  15157. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15158. `' by configure.'
  15159. if test x"$ac_file" != x-; then
  15160. configure_input="$ac_file. $configure_input"
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15162. $as_echo "$as_me: creating $ac_file" >&6;}
  15163. fi
  15164. # Neutralize special characters interpreted by sed in replacement strings.
  15165. case $configure_input in #(
  15166. *\&* | *\|* | *\\* )
  15167. ac_sed_conf_input=`$as_echo "$configure_input" |
  15168. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15169. *) ac_sed_conf_input=$configure_input;;
  15170. esac
  15171. case $ac_tag in
  15172. *:-:* | *:-) cat >"$tmp/stdin" \
  15173. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15174. esac
  15175. ;;
  15176. esac
  15177. ac_dir=`$as_dirname -- "$ac_file" ||
  15178. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15179. X"$ac_file" : 'X\(//\)[^/]' \| \
  15180. X"$ac_file" : 'X\(//\)$' \| \
  15181. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15182. $as_echo X"$ac_file" |
  15183. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15184. s//\1/
  15185. q
  15186. }
  15187. /^X\(\/\/\)[^/].*/{
  15188. s//\1/
  15189. q
  15190. }
  15191. /^X\(\/\/\)$/{
  15192. s//\1/
  15193. q
  15194. }
  15195. /^X\(\/\).*/{
  15196. s//\1/
  15197. q
  15198. }
  15199. s/.*/./; q'`
  15200. as_dir="$ac_dir"; as_fn_mkdir_p
  15201. ac_builddir=.
  15202. case "$ac_dir" in
  15203. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15204. *)
  15205. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15206. # A ".." for each directory in $ac_dir_suffix.
  15207. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15208. case $ac_top_builddir_sub in
  15209. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15210. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15211. esac ;;
  15212. esac
  15213. ac_abs_top_builddir=$ac_pwd
  15214. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15215. # for backward compatibility:
  15216. ac_top_builddir=$ac_top_build_prefix
  15217. case $srcdir in
  15218. .) # We are building in place.
  15219. ac_srcdir=.
  15220. ac_top_srcdir=$ac_top_builddir_sub
  15221. ac_abs_top_srcdir=$ac_pwd ;;
  15222. [\\/]* | ?:[\\/]* ) # Absolute name.
  15223. ac_srcdir=$srcdir$ac_dir_suffix;
  15224. ac_top_srcdir=$srcdir
  15225. ac_abs_top_srcdir=$srcdir ;;
  15226. *) # Relative name.
  15227. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15228. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15229. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15230. esac
  15231. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15232. case $ac_mode in
  15233. :F)
  15234. #
  15235. # CONFIG_FILE
  15236. #
  15237. case $INSTALL in
  15238. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15239. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15240. esac
  15241. ac_MKDIR_P=$MKDIR_P
  15242. case $MKDIR_P in
  15243. [\\/$]* | ?:[\\/]* ) ;;
  15244. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15245. esac
  15246. _ACEOF
  15247. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15248. # If the template does not know about datarootdir, expand it.
  15249. # FIXME: This hack should be removed a few years after 2.60.
  15250. ac_datarootdir_hack=; ac_datarootdir_seen=
  15251. ac_sed_dataroot='
  15252. /datarootdir/ {
  15253. p
  15254. q
  15255. }
  15256. /@datadir@/p
  15257. /@docdir@/p
  15258. /@infodir@/p
  15259. /@localedir@/p
  15260. /@mandir@/p'
  15261. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15262. *datarootdir*) ac_datarootdir_seen=yes;;
  15263. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15265. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15266. _ACEOF
  15267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15268. ac_datarootdir_hack='
  15269. s&@datadir@&$datadir&g
  15270. s&@docdir@&$docdir&g
  15271. s&@infodir@&$infodir&g
  15272. s&@localedir@&$localedir&g
  15273. s&@mandir@&$mandir&g
  15274. s&\\\${datarootdir}&$datarootdir&g' ;;
  15275. esac
  15276. _ACEOF
  15277. # Neutralize VPATH when `$srcdir' = `.'.
  15278. # Shell code in configure.ac might set extrasub.
  15279. # FIXME: do we really want to maintain this feature?
  15280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15281. ac_sed_extra="$ac_vpsub
  15282. $extrasub
  15283. _ACEOF
  15284. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15285. :t
  15286. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15287. s|@configure_input@|$ac_sed_conf_input|;t t
  15288. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15289. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15290. s&@srcdir@&$ac_srcdir&;t t
  15291. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15292. s&@top_srcdir@&$ac_top_srcdir&;t t
  15293. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15294. s&@builddir@&$ac_builddir&;t t
  15295. s&@abs_builddir@&$ac_abs_builddir&;t t
  15296. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15297. s&@INSTALL@&$ac_INSTALL&;t t
  15298. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15299. $ac_datarootdir_hack
  15300. "
  15301. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15302. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15303. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15304. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15305. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15307. which seems to be undefined. Please make sure it is defined." >&5
  15308. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15309. which seems to be undefined. Please make sure it is defined." >&2;}
  15310. rm -f "$tmp/stdin"
  15311. case $ac_file in
  15312. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15313. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15314. esac \
  15315. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15316. ;;
  15317. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15318. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15319. ;;
  15320. esac
  15321. case $ac_file$ac_mode in
  15322. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15323. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15324. # are listed without --file. Let's play safe and only enable the eval
  15325. # if we detect the quoting.
  15326. case $CONFIG_FILES in
  15327. *\'*) eval set x "$CONFIG_FILES" ;;
  15328. *) set x $CONFIG_FILES ;;
  15329. esac
  15330. shift
  15331. for mf
  15332. do
  15333. # Strip MF so we end up with the name of the file.
  15334. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15335. # Check whether this is an Automake generated Makefile or not.
  15336. # We used to match only the files named `Makefile.in', but
  15337. # some people rename them; so instead we look at the file content.
  15338. # Grep'ing the first line is not enough: some people post-process
  15339. # each Makefile.in and add a new line on top of each file to say so.
  15340. # Grep'ing the whole file is not good either: AIX grep has a line
  15341. # limit of 2048, but all sed's we know have understand at least 4000.
  15342. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15343. dirpart=`$as_dirname -- "$mf" ||
  15344. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15345. X"$mf" : 'X\(//\)[^/]' \| \
  15346. X"$mf" : 'X\(//\)$' \| \
  15347. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15348. $as_echo X"$mf" |
  15349. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15350. s//\1/
  15351. q
  15352. }
  15353. /^X\(\/\/\)[^/].*/{
  15354. s//\1/
  15355. q
  15356. }
  15357. /^X\(\/\/\)$/{
  15358. s//\1/
  15359. q
  15360. }
  15361. /^X\(\/\).*/{
  15362. s//\1/
  15363. q
  15364. }
  15365. s/.*/./; q'`
  15366. else
  15367. continue
  15368. fi
  15369. # Extract the definition of DEPDIR, am__include, and am__quote
  15370. # from the Makefile without running `make'.
  15371. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15372. test -z "$DEPDIR" && continue
  15373. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15374. test -z "am__include" && continue
  15375. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15376. # When using ansi2knr, U may be empty or an underscore; expand it
  15377. U=`sed -n 's/^U = //p' < "$mf"`
  15378. # Find all dependency output files, they are included files with
  15379. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15380. # simplest approach to changing $(DEPDIR) to its actual value in the
  15381. # expansion.
  15382. for file in `sed -n "
  15383. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15384. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15385. # Make sure the directory exists.
  15386. test -f "$dirpart/$file" && continue
  15387. fdir=`$as_dirname -- "$file" ||
  15388. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15389. X"$file" : 'X\(//\)[^/]' \| \
  15390. X"$file" : 'X\(//\)$' \| \
  15391. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15392. $as_echo X"$file" |
  15393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15394. s//\1/
  15395. q
  15396. }
  15397. /^X\(\/\/\)[^/].*/{
  15398. s//\1/
  15399. q
  15400. }
  15401. /^X\(\/\/\)$/{
  15402. s//\1/
  15403. q
  15404. }
  15405. /^X\(\/\).*/{
  15406. s//\1/
  15407. q
  15408. }
  15409. s/.*/./; q'`
  15410. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15411. # echo "creating $dirpart/$file"
  15412. echo '# dummy' > "$dirpart/$file"
  15413. done
  15414. done
  15415. }
  15416. ;;
  15417. "libtool":C)
  15418. # See if we are running on zsh, and set the options which allow our
  15419. # commands through without removal of \ escapes.
  15420. if test -n "${ZSH_VERSION+set}" ; then
  15421. setopt NO_GLOB_SUBST
  15422. fi
  15423. cfgfile="${ofile}T"
  15424. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15425. $RM "$cfgfile"
  15426. cat <<_LT_EOF >> "$cfgfile"
  15427. #! $SHELL
  15428. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15429. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15430. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15431. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15432. #
  15433. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15434. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15435. # Written by Gordon Matzigkeit, 1996
  15436. #
  15437. # This file is part of GNU Libtool.
  15438. #
  15439. # GNU Libtool is free software; you can redistribute it and/or
  15440. # modify it under the terms of the GNU General Public License as
  15441. # published by the Free Software Foundation; either version 2 of
  15442. # the License, or (at your option) any later version.
  15443. #
  15444. # As a special exception to the GNU General Public License,
  15445. # if you distribute this file as part of a program or library that
  15446. # is built using GNU Libtool, you may include this file under the
  15447. # same distribution terms that you use for the rest of that program.
  15448. #
  15449. # GNU Libtool is distributed in the hope that it will be useful,
  15450. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15451. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15452. # GNU General Public License for more details.
  15453. #
  15454. # You should have received a copy of the GNU General Public License
  15455. # along with GNU Libtool; see the file COPYING. If not, a copy
  15456. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15457. # obtained by writing to the Free Software Foundation, Inc.,
  15458. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15459. # The names of the tagged configurations supported by this script.
  15460. available_tags="CXX "
  15461. # ### BEGIN LIBTOOL CONFIG
  15462. # Whether or not to build shared libraries.
  15463. build_libtool_libs=$enable_shared
  15464. # Whether or not to build static libraries.
  15465. build_old_libs=$enable_static
  15466. # Which release of libtool.m4 was used?
  15467. macro_version=$macro_version
  15468. macro_revision=$macro_revision
  15469. # What type of objects to build.
  15470. pic_mode=$pic_mode
  15471. # Whether or not to optimize for fast installation.
  15472. fast_install=$enable_fast_install
  15473. # The host system.
  15474. host_alias=$host_alias
  15475. host=$host
  15476. host_os=$host_os
  15477. # The build system.
  15478. build_alias=$build_alias
  15479. build=$build
  15480. build_os=$build_os
  15481. # A sed program that does not truncate output.
  15482. SED=$lt_SED
  15483. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15484. Xsed="\$SED -e 1s/^X//"
  15485. # A grep program that handles long lines.
  15486. GREP=$lt_GREP
  15487. # An ERE matcher.
  15488. EGREP=$lt_EGREP
  15489. # A literal string matcher.
  15490. FGREP=$lt_FGREP
  15491. # A BSD- or MS-compatible name lister.
  15492. NM=$lt_NM
  15493. # Whether we need soft or hard links.
  15494. LN_S=$lt_LN_S
  15495. # What is the maximum length of a command?
  15496. max_cmd_len=$max_cmd_len
  15497. # Object file suffix (normally "o").
  15498. objext=$ac_objext
  15499. # Executable file suffix (normally "").
  15500. exeext=$exeext
  15501. # whether the shell understands "unset".
  15502. lt_unset=$lt_unset
  15503. # turn spaces into newlines.
  15504. SP2NL=$lt_lt_SP2NL
  15505. # turn newlines into spaces.
  15506. NL2SP=$lt_lt_NL2SP
  15507. # How to create reloadable object files.
  15508. reload_flag=$lt_reload_flag
  15509. reload_cmds=$lt_reload_cmds
  15510. # An object symbol dumper.
  15511. OBJDUMP=$lt_OBJDUMP
  15512. # Method to check whether dependent libraries are shared objects.
  15513. deplibs_check_method=$lt_deplibs_check_method
  15514. # Command to use when deplibs_check_method == "file_magic".
  15515. file_magic_cmd=$lt_file_magic_cmd
  15516. # The archiver.
  15517. AR=$lt_AR
  15518. AR_FLAGS=$lt_AR_FLAGS
  15519. # A symbol stripping program.
  15520. STRIP=$lt_STRIP
  15521. # Commands used to install an old-style archive.
  15522. RANLIB=$lt_RANLIB
  15523. old_postinstall_cmds=$lt_old_postinstall_cmds
  15524. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15525. # A C compiler.
  15526. LTCC=$lt_CC
  15527. # LTCC compiler flags.
  15528. LTCFLAGS=$lt_CFLAGS
  15529. # Take the output of nm and produce a listing of raw symbols and C names.
  15530. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15531. # Transform the output of nm in a proper C declaration.
  15532. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15533. # Transform the output of nm in a C name address pair.
  15534. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15535. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15536. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15537. # The name of the directory that contains temporary libtool files.
  15538. objdir=$objdir
  15539. # Shell to use when invoking shell scripts.
  15540. SHELL=$lt_SHELL
  15541. # An echo program that does not interpret backslashes.
  15542. ECHO=$lt_ECHO
  15543. # Used to examine libraries when file_magic_cmd begins with "file".
  15544. MAGIC_CMD=$MAGIC_CMD
  15545. # Must we lock files when doing compilation?
  15546. need_locks=$lt_need_locks
  15547. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15548. DSYMUTIL=$lt_DSYMUTIL
  15549. # Tool to change global to local symbols on Mac OS X.
  15550. NMEDIT=$lt_NMEDIT
  15551. # Tool to manipulate fat objects and archives on Mac OS X.
  15552. LIPO=$lt_LIPO
  15553. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15554. OTOOL=$lt_OTOOL
  15555. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15556. OTOOL64=$lt_OTOOL64
  15557. # Old archive suffix (normally "a").
  15558. libext=$libext
  15559. # Shared library suffix (normally ".so").
  15560. shrext_cmds=$lt_shrext_cmds
  15561. # The commands to extract the exported symbol list from a shared archive.
  15562. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15563. # Variables whose values should be saved in libtool wrapper scripts and
  15564. # restored at link time.
  15565. variables_saved_for_relink=$lt_variables_saved_for_relink
  15566. # Do we need the "lib" prefix for modules?
  15567. need_lib_prefix=$need_lib_prefix
  15568. # Do we need a version for libraries?
  15569. need_version=$need_version
  15570. # Library versioning type.
  15571. version_type=$version_type
  15572. # Shared library runtime path variable.
  15573. runpath_var=$runpath_var
  15574. # Shared library path variable.
  15575. shlibpath_var=$shlibpath_var
  15576. # Is shlibpath searched before the hard-coded library search path?
  15577. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15578. # Format of library name prefix.
  15579. libname_spec=$lt_libname_spec
  15580. # List of archive names. First name is the real one, the rest are links.
  15581. # The last name is the one that the linker finds with -lNAME
  15582. library_names_spec=$lt_library_names_spec
  15583. # The coded name of the library, if different from the real name.
  15584. soname_spec=$lt_soname_spec
  15585. # Command to use after installation of a shared archive.
  15586. postinstall_cmds=$lt_postinstall_cmds
  15587. # Command to use after uninstallation of a shared archive.
  15588. postuninstall_cmds=$lt_postuninstall_cmds
  15589. # Commands used to finish a libtool library installation in a directory.
  15590. finish_cmds=$lt_finish_cmds
  15591. # As "finish_cmds", except a single script fragment to be evaled but
  15592. # not shown.
  15593. finish_eval=$lt_finish_eval
  15594. # Whether we should hardcode library paths into libraries.
  15595. hardcode_into_libs=$hardcode_into_libs
  15596. # Compile-time system search path for libraries.
  15597. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15598. # Run-time system search path for libraries.
  15599. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15600. # Whether dlopen is supported.
  15601. dlopen_support=$enable_dlopen
  15602. # Whether dlopen of programs is supported.
  15603. dlopen_self=$enable_dlopen_self
  15604. # Whether dlopen of statically linked programs is supported.
  15605. dlopen_self_static=$enable_dlopen_self_static
  15606. # Commands to strip libraries.
  15607. old_striplib=$lt_old_striplib
  15608. striplib=$lt_striplib
  15609. # The linker used to build libraries.
  15610. LD=$lt_LD
  15611. # Commands used to build an old-style archive.
  15612. old_archive_cmds=$lt_old_archive_cmds
  15613. # A language specific compiler.
  15614. CC=$lt_compiler
  15615. # Is the compiler the GNU compiler?
  15616. with_gcc=$GCC
  15617. # Compiler flag to turn off builtin functions.
  15618. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15619. # How to pass a linker flag through the compiler.
  15620. wl=$lt_lt_prog_compiler_wl
  15621. # Additional compiler flags for building library objects.
  15622. pic_flag=$lt_lt_prog_compiler_pic
  15623. # Compiler flag to prevent dynamic linking.
  15624. link_static_flag=$lt_lt_prog_compiler_static
  15625. # Does compiler simultaneously support -c and -o options?
  15626. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15627. # Whether or not to add -lc for building shared libraries.
  15628. build_libtool_need_lc=$archive_cmds_need_lc
  15629. # Whether or not to disallow shared libs when runtime libs are static.
  15630. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15631. # Compiler flag to allow reflexive dlopens.
  15632. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15633. # Compiler flag to generate shared objects directly from archives.
  15634. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15635. # Whether the compiler copes with passing no objects directly.
  15636. compiler_needs_object=$lt_compiler_needs_object
  15637. # Create an old-style archive from a shared archive.
  15638. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15639. # Create a temporary old-style archive to link instead of a shared archive.
  15640. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15641. # Commands used to build a shared archive.
  15642. archive_cmds=$lt_archive_cmds
  15643. archive_expsym_cmds=$lt_archive_expsym_cmds
  15644. # Commands used to build a loadable module if different from building
  15645. # a shared archive.
  15646. module_cmds=$lt_module_cmds
  15647. module_expsym_cmds=$lt_module_expsym_cmds
  15648. # Whether we are building with GNU ld or not.
  15649. with_gnu_ld=$lt_with_gnu_ld
  15650. # Flag that allows shared libraries with undefined symbols to be built.
  15651. allow_undefined_flag=$lt_allow_undefined_flag
  15652. # Flag that enforces no undefined symbols.
  15653. no_undefined_flag=$lt_no_undefined_flag
  15654. # Flag to hardcode \$libdir into a binary during linking.
  15655. # This must work even if \$libdir does not exist
  15656. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15657. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15658. # during linking. This must work even if \$libdir does not exist.
  15659. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15660. # Whether we need a single "-rpath" flag with a separated argument.
  15661. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15662. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15663. # DIR into the resulting binary.
  15664. hardcode_direct=$hardcode_direct
  15665. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15666. # DIR into the resulting binary and the resulting library dependency is
  15667. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15668. # library is relocated.
  15669. hardcode_direct_absolute=$hardcode_direct_absolute
  15670. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15671. # into the resulting binary.
  15672. hardcode_minus_L=$hardcode_minus_L
  15673. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15674. # into the resulting binary.
  15675. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15676. # Set to "yes" if building a shared library automatically hardcodes DIR
  15677. # into the library and all subsequent libraries and executables linked
  15678. # against it.
  15679. hardcode_automatic=$hardcode_automatic
  15680. # Set to yes if linker adds runtime paths of dependent libraries
  15681. # to runtime path list.
  15682. inherit_rpath=$inherit_rpath
  15683. # Whether libtool must link a program against all its dependency libraries.
  15684. link_all_deplibs=$link_all_deplibs
  15685. # Fix the shell variable \$srcfile for the compiler.
  15686. fix_srcfile_path=$lt_fix_srcfile_path
  15687. # Set to "yes" if exported symbols are required.
  15688. always_export_symbols=$always_export_symbols
  15689. # The commands to list exported symbols.
  15690. export_symbols_cmds=$lt_export_symbols_cmds
  15691. # Symbols that should not be listed in the preloaded symbols.
  15692. exclude_expsyms=$lt_exclude_expsyms
  15693. # Symbols that must always be exported.
  15694. include_expsyms=$lt_include_expsyms
  15695. # Commands necessary for linking programs (against libraries) with templates.
  15696. prelink_cmds=$lt_prelink_cmds
  15697. # Specify filename containing input files.
  15698. file_list_spec=$lt_file_list_spec
  15699. # How to hardcode a shared library path into an executable.
  15700. hardcode_action=$hardcode_action
  15701. # The directories searched by this compiler when creating a shared library.
  15702. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15703. # Dependencies to place before and after the objects being linked to
  15704. # create a shared library.
  15705. predep_objects=$lt_predep_objects
  15706. postdep_objects=$lt_postdep_objects
  15707. predeps=$lt_predeps
  15708. postdeps=$lt_postdeps
  15709. # The library search path used internally by the compiler when linking
  15710. # a shared library.
  15711. compiler_lib_search_path=$lt_compiler_lib_search_path
  15712. # ### END LIBTOOL CONFIG
  15713. _LT_EOF
  15714. case $host_os in
  15715. aix3*)
  15716. cat <<\_LT_EOF >> "$cfgfile"
  15717. # AIX sometimes has problems with the GCC collect2 program. For some
  15718. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15719. # vanish in a puff of smoke.
  15720. if test "X${COLLECT_NAMES+set}" != Xset; then
  15721. COLLECT_NAMES=
  15722. export COLLECT_NAMES
  15723. fi
  15724. _LT_EOF
  15725. ;;
  15726. esac
  15727. ltmain="$ac_aux_dir/ltmain.sh"
  15728. # We use sed instead of cat because bash on DJGPP gets confused if
  15729. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15730. # text mode, it properly converts lines to CR/LF. This bash problem
  15731. # is reportedly fixed, but why not run on old versions too?
  15732. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15733. || (rm -f "$cfgfile"; exit 1)
  15734. case $xsi_shell in
  15735. yes)
  15736. cat << \_LT_EOF >> "$cfgfile"
  15737. # func_dirname file append nondir_replacement
  15738. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15739. # otherwise set result to NONDIR_REPLACEMENT.
  15740. func_dirname ()
  15741. {
  15742. case ${1} in
  15743. */*) func_dirname_result="${1%/*}${2}" ;;
  15744. * ) func_dirname_result="${3}" ;;
  15745. esac
  15746. }
  15747. # func_basename file
  15748. func_basename ()
  15749. {
  15750. func_basename_result="${1##*/}"
  15751. }
  15752. # func_dirname_and_basename file append nondir_replacement
  15753. # perform func_basename and func_dirname in a single function
  15754. # call:
  15755. # dirname: Compute the dirname of FILE. If nonempty,
  15756. # add APPEND to the result, otherwise set result
  15757. # to NONDIR_REPLACEMENT.
  15758. # value returned in "$func_dirname_result"
  15759. # basename: Compute filename of FILE.
  15760. # value retuned in "$func_basename_result"
  15761. # Implementation must be kept synchronized with func_dirname
  15762. # and func_basename. For efficiency, we do not delegate to
  15763. # those functions but instead duplicate the functionality here.
  15764. func_dirname_and_basename ()
  15765. {
  15766. case ${1} in
  15767. */*) func_dirname_result="${1%/*}${2}" ;;
  15768. * ) func_dirname_result="${3}" ;;
  15769. esac
  15770. func_basename_result="${1##*/}"
  15771. }
  15772. # func_stripname prefix suffix name
  15773. # strip PREFIX and SUFFIX off of NAME.
  15774. # PREFIX and SUFFIX must not contain globbing or regex special
  15775. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15776. # dot (in which case that matches only a dot).
  15777. func_stripname ()
  15778. {
  15779. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15780. # positional parameters, so assign one to ordinary parameter first.
  15781. func_stripname_result=${3}
  15782. func_stripname_result=${func_stripname_result#"${1}"}
  15783. func_stripname_result=${func_stripname_result%"${2}"}
  15784. }
  15785. # func_opt_split
  15786. func_opt_split ()
  15787. {
  15788. func_opt_split_opt=${1%%=*}
  15789. func_opt_split_arg=${1#*=}
  15790. }
  15791. # func_lo2o object
  15792. func_lo2o ()
  15793. {
  15794. case ${1} in
  15795. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15796. *) func_lo2o_result=${1} ;;
  15797. esac
  15798. }
  15799. # func_xform libobj-or-source
  15800. func_xform ()
  15801. {
  15802. func_xform_result=${1%.*}.lo
  15803. }
  15804. # func_arith arithmetic-term...
  15805. func_arith ()
  15806. {
  15807. func_arith_result=$(( $* ))
  15808. }
  15809. # func_len string
  15810. # STRING may not start with a hyphen.
  15811. func_len ()
  15812. {
  15813. func_len_result=${#1}
  15814. }
  15815. _LT_EOF
  15816. ;;
  15817. *) # Bourne compatible functions.
  15818. cat << \_LT_EOF >> "$cfgfile"
  15819. # func_dirname file append nondir_replacement
  15820. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15821. # otherwise set result to NONDIR_REPLACEMENT.
  15822. func_dirname ()
  15823. {
  15824. # Extract subdirectory from the argument.
  15825. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15826. if test "X$func_dirname_result" = "X${1}"; then
  15827. func_dirname_result="${3}"
  15828. else
  15829. func_dirname_result="$func_dirname_result${2}"
  15830. fi
  15831. }
  15832. # func_basename file
  15833. func_basename ()
  15834. {
  15835. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15836. }
  15837. # func_stripname prefix suffix name
  15838. # strip PREFIX and SUFFIX off of NAME.
  15839. # PREFIX and SUFFIX must not contain globbing or regex special
  15840. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15841. # dot (in which case that matches only a dot).
  15842. # func_strip_suffix prefix name
  15843. func_stripname ()
  15844. {
  15845. case ${2} in
  15846. .*) func_stripname_result=`$ECHO "X${3}" \
  15847. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15848. *) func_stripname_result=`$ECHO "X${3}" \
  15849. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15850. esac
  15851. }
  15852. # sed scripts:
  15853. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15854. my_sed_long_arg='1s/^-[^=]*=//'
  15855. # func_opt_split
  15856. func_opt_split ()
  15857. {
  15858. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15859. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15860. }
  15861. # func_lo2o object
  15862. func_lo2o ()
  15863. {
  15864. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15865. }
  15866. # func_xform libobj-or-source
  15867. func_xform ()
  15868. {
  15869. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15870. }
  15871. # func_arith arithmetic-term...
  15872. func_arith ()
  15873. {
  15874. func_arith_result=`expr "$@"`
  15875. }
  15876. # func_len string
  15877. # STRING may not start with a hyphen.
  15878. func_len ()
  15879. {
  15880. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15881. }
  15882. _LT_EOF
  15883. esac
  15884. case $lt_shell_append in
  15885. yes)
  15886. cat << \_LT_EOF >> "$cfgfile"
  15887. # func_append var value
  15888. # Append VALUE to the end of shell variable VAR.
  15889. func_append ()
  15890. {
  15891. eval "$1+=\$2"
  15892. }
  15893. _LT_EOF
  15894. ;;
  15895. *)
  15896. cat << \_LT_EOF >> "$cfgfile"
  15897. # func_append var value
  15898. # Append VALUE to the end of shell variable VAR.
  15899. func_append ()
  15900. {
  15901. eval "$1=\$$1\$2"
  15902. }
  15903. _LT_EOF
  15904. ;;
  15905. esac
  15906. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15907. || (rm -f "$cfgfile"; exit 1)
  15908. mv -f "$cfgfile" "$ofile" ||
  15909. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15910. chmod +x "$ofile"
  15911. cat <<_LT_EOF >> "$ofile"
  15912. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15913. # The linker used to build libraries.
  15914. LD=$lt_LD_CXX
  15915. # Commands used to build an old-style archive.
  15916. old_archive_cmds=$lt_old_archive_cmds_CXX
  15917. # A language specific compiler.
  15918. CC=$lt_compiler_CXX
  15919. # Is the compiler the GNU compiler?
  15920. with_gcc=$GCC_CXX
  15921. # Compiler flag to turn off builtin functions.
  15922. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15923. # How to pass a linker flag through the compiler.
  15924. wl=$lt_lt_prog_compiler_wl_CXX
  15925. # Additional compiler flags for building library objects.
  15926. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15927. # Compiler flag to prevent dynamic linking.
  15928. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15929. # Does compiler simultaneously support -c and -o options?
  15930. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15931. # Whether or not to add -lc for building shared libraries.
  15932. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15933. # Whether or not to disallow shared libs when runtime libs are static.
  15934. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15935. # Compiler flag to allow reflexive dlopens.
  15936. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15937. # Compiler flag to generate shared objects directly from archives.
  15938. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15939. # Whether the compiler copes with passing no objects directly.
  15940. compiler_needs_object=$lt_compiler_needs_object_CXX
  15941. # Create an old-style archive from a shared archive.
  15942. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15943. # Create a temporary old-style archive to link instead of a shared archive.
  15944. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15945. # Commands used to build a shared archive.
  15946. archive_cmds=$lt_archive_cmds_CXX
  15947. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15948. # Commands used to build a loadable module if different from building
  15949. # a shared archive.
  15950. module_cmds=$lt_module_cmds_CXX
  15951. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15952. # Whether we are building with GNU ld or not.
  15953. with_gnu_ld=$lt_with_gnu_ld_CXX
  15954. # Flag that allows shared libraries with undefined symbols to be built.
  15955. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15956. # Flag that enforces no undefined symbols.
  15957. no_undefined_flag=$lt_no_undefined_flag_CXX
  15958. # Flag to hardcode \$libdir into a binary during linking.
  15959. # This must work even if \$libdir does not exist
  15960. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15961. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15962. # during linking. This must work even if \$libdir does not exist.
  15963. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15964. # Whether we need a single "-rpath" flag with a separated argument.
  15965. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15966. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15967. # DIR into the resulting binary.
  15968. hardcode_direct=$hardcode_direct_CXX
  15969. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15970. # DIR into the resulting binary and the resulting library dependency is
  15971. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15972. # library is relocated.
  15973. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15974. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15975. # into the resulting binary.
  15976. hardcode_minus_L=$hardcode_minus_L_CXX
  15977. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15978. # into the resulting binary.
  15979. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15980. # Set to "yes" if building a shared library automatically hardcodes DIR
  15981. # into the library and all subsequent libraries and executables linked
  15982. # against it.
  15983. hardcode_automatic=$hardcode_automatic_CXX
  15984. # Set to yes if linker adds runtime paths of dependent libraries
  15985. # to runtime path list.
  15986. inherit_rpath=$inherit_rpath_CXX
  15987. # Whether libtool must link a program against all its dependency libraries.
  15988. link_all_deplibs=$link_all_deplibs_CXX
  15989. # Fix the shell variable \$srcfile for the compiler.
  15990. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15991. # Set to "yes" if exported symbols are required.
  15992. always_export_symbols=$always_export_symbols_CXX
  15993. # The commands to list exported symbols.
  15994. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15995. # Symbols that should not be listed in the preloaded symbols.
  15996. exclude_expsyms=$lt_exclude_expsyms_CXX
  15997. # Symbols that must always be exported.
  15998. include_expsyms=$lt_include_expsyms_CXX
  15999. # Commands necessary for linking programs (against libraries) with templates.
  16000. prelink_cmds=$lt_prelink_cmds_CXX
  16001. # Specify filename containing input files.
  16002. file_list_spec=$lt_file_list_spec_CXX
  16003. # How to hardcode a shared library path into an executable.
  16004. hardcode_action=$hardcode_action_CXX
  16005. # The directories searched by this compiler when creating a shared library.
  16006. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16007. # Dependencies to place before and after the objects being linked to
  16008. # create a shared library.
  16009. predep_objects=$lt_predep_objects_CXX
  16010. postdep_objects=$lt_postdep_objects_CXX
  16011. predeps=$lt_predeps_CXX
  16012. postdeps=$lt_postdeps_CXX
  16013. # The library search path used internally by the compiler when linking
  16014. # a shared library.
  16015. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16016. # ### END LIBTOOL TAG CONFIG: CXX
  16017. _LT_EOF
  16018. ;;
  16019. esac
  16020. done # for ac_tag
  16021. as_fn_exit 0
  16022. _ACEOF
  16023. ac_clean_files=$ac_clean_files_save
  16024. test $ac_write_fail = 0 ||
  16025. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16026. # configure is writing to config.log, and then calls config.status.
  16027. # config.status does its own redirection, appending to config.log.
  16028. # Unfortunately, on DOS this fails, as config.log is still kept open
  16029. # by configure, so config.status won't be able to write to it; its
  16030. # output is simply discarded. So we exec the FD to /dev/null,
  16031. # effectively closing config.log, so it can be properly (re)opened and
  16032. # appended to by config.status. When coming back to configure, we
  16033. # need to make the FD available again.
  16034. if test "$no_create" != yes; then
  16035. ac_cs_success=:
  16036. ac_config_status_args=
  16037. test "$silent" = yes &&
  16038. ac_config_status_args="$ac_config_status_args --quiet"
  16039. exec 5>/dev/null
  16040. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16041. exec 5>>config.log
  16042. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16043. # would make configure fail if this is the last instruction.
  16044. $ac_cs_success || as_fn_exit $?
  16045. fi
  16046. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16048. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16049. fi