configure 557 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for vcmi 0.82.
  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.82'
  639. PACKAGE_STRING='vcmi 0.82'
  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. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. CXXCPP
  695. CPP
  696. OTOOL64
  697. OTOOL
  698. LIPO
  699. NMEDIT
  700. DSYMUTIL
  701. lt_ECHO
  702. RANLIB
  703. AR
  704. OBJDUMP
  705. LN_S
  706. NM
  707. ac_ct_DUMPBIN
  708. DUMPBIN
  709. LD
  710. FGREP
  711. EGREP
  712. GREP
  713. SED
  714. am__fastdepCC_FALSE
  715. am__fastdepCC_TRUE
  716. CCDEPMODE
  717. ac_ct_CC
  718. CFLAGS
  719. CC
  720. host_os
  721. host_vendor
  722. host_cpu
  723. host
  724. build_os
  725. build_vendor
  726. build_cpu
  727. build
  728. LIBTOOL
  729. am__fastdepCXX_FALSE
  730. am__fastdepCXX_TRUE
  731. CXXDEPMODE
  732. AMDEPBACKSLASH
  733. AMDEP_FALSE
  734. AMDEP_TRUE
  735. am__quote
  736. am__include
  737. DEPDIR
  738. OBJEXT
  739. EXEEXT
  740. ac_ct_CXX
  741. CPPFLAGS
  742. LDFLAGS
  743. CXXFLAGS
  744. CXX
  745. am__untar
  746. am__tar
  747. AMTAR
  748. am__leading_dot
  749. SET_MAKE
  750. AWK
  751. mkdir_p
  752. MKDIR_P
  753. INSTALL_STRIP_PROGRAM
  754. STRIP
  755. install_sh
  756. MAKEINFO
  757. AUTOHEADER
  758. AUTOMAKE
  759. AUTOCONF
  760. ACLOCAL
  761. VERSION
  762. PACKAGE
  763. CYGPATH_W
  764. am__isrc
  765. INSTALL_DATA
  766. INSTALL_SCRIPT
  767. INSTALL_PROGRAM
  768. target_alias
  769. host_alias
  770. build_alias
  771. LIBS
  772. ECHO_T
  773. ECHO_N
  774. ECHO_C
  775. DEFS
  776. mandir
  777. localedir
  778. libdir
  779. psdir
  780. pdfdir
  781. dvidir
  782. htmldir
  783. infodir
  784. docdir
  785. oldincludedir
  786. includedir
  787. localstatedir
  788. sharedstatedir
  789. sysconfdir
  790. datadir
  791. datarootdir
  792. libexecdir
  793. sbindir
  794. bindir
  795. program_transform_name
  796. prefix
  797. exec_prefix
  798. PACKAGE_URL
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_dependency_tracking
  810. enable_shared
  811. enable_static
  812. with_pic
  813. enable_fast_install
  814. with_gnu_ld
  815. enable_libtool_lock
  816. enable_silent_rules
  817. enable_debug
  818. with_boost
  819. with_boost_libdir
  820. with_boost_system
  821. with_boost_filesystem
  822. with_boost_thread
  823. with_boost_iostreams
  824. '
  825. ac_precious_vars='build_alias
  826. host_alias
  827. target_alias
  828. CXX
  829. CXXFLAGS
  830. LDFLAGS
  831. LIBS
  832. CPPFLAGS
  833. CCC
  834. CC
  835. CFLAGS
  836. CPP
  837. CXXCPP'
  838. # Initialize some variables set by options.
  839. ac_init_help=
  840. ac_init_version=false
  841. ac_unrecognized_opts=
  842. ac_unrecognized_sep=
  843. # The variables have the same names as the options, with
  844. # dashes changed to underlines.
  845. cache_file=/dev/null
  846. exec_prefix=NONE
  847. no_create=
  848. no_recursion=
  849. prefix=NONE
  850. program_prefix=NONE
  851. program_suffix=NONE
  852. program_transform_name=s,x,x,
  853. silent=
  854. site=
  855. srcdir=
  856. verbose=
  857. x_includes=NONE
  858. x_libraries=NONE
  859. # Installation directory options.
  860. # These are left unexpanded so users can "make install exec_prefix=/foo"
  861. # and all the variables that are supposed to be based on exec_prefix
  862. # by default will actually change.
  863. # Use braces instead of parens because sh, perl, etc. also accept them.
  864. # (The list follows the same order as the GNU Coding Standards.)
  865. bindir='${exec_prefix}/bin'
  866. sbindir='${exec_prefix}/sbin'
  867. libexecdir='${exec_prefix}/libexec'
  868. datarootdir='${prefix}/share'
  869. datadir='${datarootdir}'
  870. sysconfdir='${prefix}/etc'
  871. sharedstatedir='${prefix}/com'
  872. localstatedir='${prefix}/var'
  873. includedir='${prefix}/include'
  874. oldincludedir='/usr/include'
  875. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  876. infodir='${datarootdir}/info'
  877. htmldir='${docdir}'
  878. dvidir='${docdir}'
  879. pdfdir='${docdir}'
  880. psdir='${docdir}'
  881. libdir='${exec_prefix}/lib'
  882. localedir='${datarootdir}/locale'
  883. mandir='${datarootdir}/man'
  884. ac_prev=
  885. ac_dashdash=
  886. for ac_option
  887. do
  888. # If the previous option needs an argument, assign it.
  889. if test -n "$ac_prev"; then
  890. eval $ac_prev=\$ac_option
  891. ac_prev=
  892. continue
  893. fi
  894. case $ac_option in
  895. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  896. *) ac_optarg=yes ;;
  897. esac
  898. # Accept the important Cygnus configure options, so we can diagnose typos.
  899. case $ac_dashdash$ac_option in
  900. --)
  901. ac_dashdash=yes ;;
  902. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  903. ac_prev=bindir ;;
  904. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  905. bindir=$ac_optarg ;;
  906. -build | --build | --buil | --bui | --bu)
  907. ac_prev=build_alias ;;
  908. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  909. build_alias=$ac_optarg ;;
  910. -cache-file | --cache-file | --cache-fil | --cache-fi \
  911. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  912. ac_prev=cache_file ;;
  913. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  914. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  915. cache_file=$ac_optarg ;;
  916. --config-cache | -C)
  917. cache_file=config.cache ;;
  918. -datadir | --datadir | --datadi | --datad)
  919. ac_prev=datadir ;;
  920. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  921. datadir=$ac_optarg ;;
  922. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  923. | --dataroo | --dataro | --datar)
  924. ac_prev=datarootdir ;;
  925. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  926. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  927. datarootdir=$ac_optarg ;;
  928. -disable-* | --disable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=no ;;
  943. -docdir | --docdir | --docdi | --doc | --do)
  944. ac_prev=docdir ;;
  945. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  946. docdir=$ac_optarg ;;
  947. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  948. ac_prev=dvidir ;;
  949. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  950. dvidir=$ac_optarg ;;
  951. -enable-* | --enable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=\$ac_optarg ;;
  966. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  967. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  968. | --exec | --exe | --ex)
  969. ac_prev=exec_prefix ;;
  970. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  971. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  972. | --exec=* | --exe=* | --ex=*)
  973. exec_prefix=$ac_optarg ;;
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977. -help | --help | --hel | --he | -h)
  978. ac_init_help=long ;;
  979. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  980. ac_init_help=recursive ;;
  981. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  982. ac_init_help=short ;;
  983. -host | --host | --hos | --ho)
  984. ac_prev=host_alias ;;
  985. -host=* | --host=* | --hos=* | --ho=*)
  986. host_alias=$ac_optarg ;;
  987. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. ac_prev=htmldir ;;
  989. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. | --ht=*)
  991. htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. includedir=$ac_optarg ;;
  998. -infodir | --infodir | --infodi | --infod | --info | --inf)
  999. ac_prev=infodir ;;
  1000. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1001. infodir=$ac_optarg ;;
  1002. -libdir | --libdir | --libdi | --libd)
  1003. ac_prev=libdir ;;
  1004. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1005. libdir=$ac_optarg ;;
  1006. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1007. | --libexe | --libex | --libe)
  1008. ac_prev=libexecdir ;;
  1009. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1010. | --libexe=* | --libex=* | --libe=*)
  1011. libexecdir=$ac_optarg ;;
  1012. -localedir | --localedir | --localedi | --localed | --locale)
  1013. ac_prev=localedir ;;
  1014. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1015. localedir=$ac_optarg ;;
  1016. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1017. | --localstate | --localstat | --localsta | --localst | --locals)
  1018. ac_prev=localstatedir ;;
  1019. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1020. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1021. localstatedir=$ac_optarg ;;
  1022. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023. ac_prev=mandir ;;
  1024. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025. mandir=$ac_optarg ;;
  1026. -nfp | --nfp | --nf)
  1027. # Obsolete; use --without-fp.
  1028. with_fp=no ;;
  1029. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1030. | --no-cr | --no-c | -n)
  1031. no_create=yes ;;
  1032. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1033. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1034. no_recursion=yes ;;
  1035. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1036. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1037. | --oldin | --oldi | --old | --ol | --o)
  1038. ac_prev=oldincludedir ;;
  1039. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1040. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1041. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1042. oldincludedir=$ac_optarg ;;
  1043. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1044. ac_prev=prefix ;;
  1045. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1046. prefix=$ac_optarg ;;
  1047. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1048. | --program-pre | --program-pr | --program-p)
  1049. ac_prev=program_prefix ;;
  1050. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1051. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1052. program_prefix=$ac_optarg ;;
  1053. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1054. | --program-suf | --program-su | --program-s)
  1055. ac_prev=program_suffix ;;
  1056. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1057. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1058. program_suffix=$ac_optarg ;;
  1059. -program-transform-name | --program-transform-name \
  1060. | --program-transform-nam | --program-transform-na \
  1061. | --program-transform-n | --program-transform- \
  1062. | --program-transform | --program-transfor \
  1063. | --program-transfo | --program-transf \
  1064. | --program-trans | --program-tran \
  1065. | --progr-tra | --program-tr | --program-t)
  1066. ac_prev=program_transform_name ;;
  1067. -program-transform-name=* | --program-transform-name=* \
  1068. | --program-transform-nam=* | --program-transform-na=* \
  1069. | --program-transform-n=* | --program-transform-=* \
  1070. | --program-transform=* | --program-transfor=* \
  1071. | --program-transfo=* | --program-transf=* \
  1072. | --program-trans=* | --program-tran=* \
  1073. | --progr-tra=* | --program-tr=* | --program-t=*)
  1074. program_transform_name=$ac_optarg ;;
  1075. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1076. ac_prev=pdfdir ;;
  1077. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1078. pdfdir=$ac_optarg ;;
  1079. -psdir | --psdir | --psdi | --psd | --ps)
  1080. ac_prev=psdir ;;
  1081. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1082. psdir=$ac_optarg ;;
  1083. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1084. | -silent | --silent | --silen | --sile | --sil)
  1085. silent=yes ;;
  1086. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1087. ac_prev=sbindir ;;
  1088. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1089. | --sbi=* | --sb=*)
  1090. sbindir=$ac_optarg ;;
  1091. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1092. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1093. | --sharedst | --shareds | --shared | --share | --shar \
  1094. | --sha | --sh)
  1095. ac_prev=sharedstatedir ;;
  1096. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1097. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1098. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1099. | --sha=* | --sh=*)
  1100. sharedstatedir=$ac_optarg ;;
  1101. -site | --site | --sit)
  1102. ac_prev=site ;;
  1103. -site=* | --site=* | --sit=*)
  1104. site=$ac_optarg ;;
  1105. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1106. ac_prev=srcdir ;;
  1107. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1108. srcdir=$ac_optarg ;;
  1109. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1110. | --syscon | --sysco | --sysc | --sys | --sy)
  1111. ac_prev=sysconfdir ;;
  1112. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1113. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1114. sysconfdir=$ac_optarg ;;
  1115. -target | --target | --targe | --targ | --tar | --ta | --t)
  1116. ac_prev=target_alias ;;
  1117. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1118. target_alias=$ac_optarg ;;
  1119. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1120. verbose=yes ;;
  1121. -version | --version | --versio | --versi | --vers | -V)
  1122. ac_init_version=: ;;
  1123. -with-* | --with-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. as_fn_error "invalid package name: $ac_useropt"
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "with_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval with_$ac_useropt=\$ac_optarg ;;
  1138. -without-* | --without-*)
  1139. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1140. # Reject names that are not valid shell variable names.
  1141. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1142. as_fn_error "invalid package name: $ac_useropt"
  1143. ac_useropt_orig=$ac_useropt
  1144. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1145. case $ac_user_opts in
  1146. *"
  1147. "with_$ac_useropt"
  1148. "*) ;;
  1149. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1150. ac_unrecognized_sep=', ';;
  1151. esac
  1152. eval with_$ac_useropt=no ;;
  1153. --x)
  1154. # Obsolete; use --with-x.
  1155. with_x=yes ;;
  1156. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1157. | --x-incl | --x-inc | --x-in | --x-i)
  1158. ac_prev=x_includes ;;
  1159. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1160. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1161. x_includes=$ac_optarg ;;
  1162. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1163. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1164. ac_prev=x_libraries ;;
  1165. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1166. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1167. x_libraries=$ac_optarg ;;
  1168. -*) as_fn_error "unrecognized option: \`$ac_option'
  1169. Try \`$0 --help' for more information."
  1170. ;;
  1171. *=*)
  1172. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1173. # Reject names that are not valid shell variable names.
  1174. case $ac_envvar in #(
  1175. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1176. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1177. esac
  1178. eval $ac_envvar=\$ac_optarg
  1179. export $ac_envvar ;;
  1180. *)
  1181. # FIXME: should be removed in autoconf 3.0.
  1182. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1183. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1184. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1185. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1186. ;;
  1187. esac
  1188. done
  1189. if test -n "$ac_prev"; then
  1190. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1191. as_fn_error "missing argument to $ac_option"
  1192. fi
  1193. if test -n "$ac_unrecognized_opts"; then
  1194. case $enable_option_checking in
  1195. no) ;;
  1196. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1197. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1198. esac
  1199. fi
  1200. # Check all directory arguments for consistency.
  1201. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1202. datadir sysconfdir sharedstatedir localstatedir includedir \
  1203. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1204. libdir localedir mandir
  1205. do
  1206. eval ac_val=\$$ac_var
  1207. # Remove trailing slashes.
  1208. case $ac_val in
  1209. */ )
  1210. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1211. eval $ac_var=\$ac_val;;
  1212. esac
  1213. # Be sure to have absolute directory names.
  1214. case $ac_val in
  1215. [\\/$]* | ?:[\\/]* ) continue;;
  1216. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1217. esac
  1218. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1231. If a cross compiler is detected then cross compile mode will be used." >&2
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. as_fn_error "working directory cannot be determined"
  1243. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1244. as_fn_error "pwd does not report name of working directory"
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. $as_echo X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1282. fi
  1283. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1284. ac_abs_confdir=`(
  1285. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1286. pwd)`
  1287. # When building in place, set srcdir=.
  1288. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1289. srcdir=.
  1290. fi
  1291. # Remove unnecessary trailing slashes from srcdir.
  1292. # Double slashes in file names in object file debugging info
  1293. # mess up M-x gdb in Emacs.
  1294. case $srcdir in
  1295. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1296. esac
  1297. for ac_var in $ac_precious_vars; do
  1298. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_env_${ac_var}_value=\$${ac_var}
  1300. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1302. done
  1303. #
  1304. # Report the --help message.
  1305. #
  1306. if test "$ac_init_help" = "long"; then
  1307. # Omit some internal or obsolete options to make the list less imposing.
  1308. # This message is too long to be a string in the A/UX 3.1 sh.
  1309. cat <<_ACEOF
  1310. \`configure' configures vcmi 0.82 to adapt to many kinds of systems.
  1311. Usage: $0 [OPTION]... [VAR=VALUE]...
  1312. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1313. VAR=VALUE. See below for descriptions of some of the useful variables.
  1314. Defaults for the options are specified in brackets.
  1315. Configuration:
  1316. -h, --help display this help and exit
  1317. --help=short display options specific to this package
  1318. --help=recursive display the short help of all the included packages
  1319. -V, --version display version information and exit
  1320. -q, --quiet, --silent do not print \`checking...' messages
  1321. --cache-file=FILE cache test results in FILE [disabled]
  1322. -C, --config-cache alias for \`--cache-file=config.cache'
  1323. -n, --no-create do not create output files
  1324. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1325. Installation directories:
  1326. --prefix=PREFIX install architecture-independent files in PREFIX
  1327. [$ac_default_prefix]
  1328. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1329. [PREFIX]
  1330. By default, \`make install' will install all the files in
  1331. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1332. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1333. for instance \`--prefix=\$HOME'.
  1334. For better control, use the options below.
  1335. Fine tuning of the installation directories:
  1336. --bindir=DIR user executables [EPREFIX/bin]
  1337. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1338. --libexecdir=DIR program executables [EPREFIX/libexec]
  1339. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1340. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1341. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1342. --libdir=DIR object code libraries [EPREFIX/lib]
  1343. --includedir=DIR C header files [PREFIX/include]
  1344. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1345. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1346. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1347. --infodir=DIR info documentation [DATAROOTDIR/info]
  1348. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1349. --mandir=DIR man documentation [DATAROOTDIR/man]
  1350. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1351. --htmldir=DIR html documentation [DOCDIR]
  1352. --dvidir=DIR dvi documentation [DOCDIR]
  1353. --pdfdir=DIR pdf documentation [DOCDIR]
  1354. --psdir=DIR ps documentation [DOCDIR]
  1355. _ACEOF
  1356. cat <<\_ACEOF
  1357. Program names:
  1358. --program-prefix=PREFIX prepend PREFIX to installed program names
  1359. --program-suffix=SUFFIX append SUFFIX to installed program names
  1360. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1361. System types:
  1362. --build=BUILD configure for building on BUILD [guessed]
  1363. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1364. _ACEOF
  1365. fi
  1366. if test -n "$ac_init_help"; then
  1367. case $ac_init_help in
  1368. short | recursive ) echo "Configuration of vcmi 0.82:";;
  1369. esac
  1370. cat <<\_ACEOF
  1371. Optional Features:
  1372. --disable-option-checking ignore unrecognized --enable/--with options
  1373. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1374. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1375. --disable-dependency-tracking speeds up one-time build
  1376. --enable-dependency-tracking do not reject slow dependency extractors
  1377. --enable-shared[=PKGS] build shared libraries [default=yes]
  1378. --enable-static[=PKGS] build static libraries [default=no]
  1379. --enable-fast-install[=PKGS]
  1380. optimize for fast installation [default=yes]
  1381. --disable-libtool-lock avoid locking (might break parallel builds)
  1382. --enable-silent-rules less verbose build output (undo: `make V=1')
  1383. --disable-silent-rules verbose build output (undo: `make V=0')
  1384. --disable-debug turn off debugging (default=enable)
  1385. Optional Packages:
  1386. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1387. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1388. --with-pic try to use only PIC/non-PIC objects [default=use
  1389. both]
  1390. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1391. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1392. specify the root directory for boost (optional)
  1393. --with-boost-libdir=LIB_DIR
  1394. Force given directory for boost libraries. Note that
  1395. this will overwrite library path detection, so use
  1396. this parameter only if default library detection
  1397. fails and you know exactly where your boost
  1398. libraries are located.
  1399. --with-boost-system[=special-lib]
  1400. use the System library from boost - it is possible
  1401. to specify a certain library for the linker e.g.
  1402. --with-boost-system=boost_system-gcc-mt
  1403. --with-boost-filesystem[=special-lib]
  1404. use the Filesystem library from boost - it is
  1405. possible to specify a certain library for the linker
  1406. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1407. --with-boost-thread[=special-lib]
  1408. use the Thread library from boost - it is possible
  1409. to specify a certain library for the linker e.g.
  1410. --with-boost-thread=boost_thread-gcc-mt
  1411. --with-boost-iostreams[=special-lib]
  1412. use the IOStreams library from boost - it is
  1413. possible to specify a certain library for the
  1414. linker e.g.
  1415. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1416. Some influential environment variables:
  1417. CXX C++ compiler command
  1418. CXXFLAGS C++ compiler flags
  1419. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1420. nonstandard directory <lib dir>
  1421. LIBS libraries to pass to the linker, e.g. -l<library>
  1422. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1423. you have headers in a nonstandard directory <include dir>
  1424. CC C compiler command
  1425. CFLAGS C compiler flags
  1426. CPP C preprocessor
  1427. CXXCPP C++ preprocessor
  1428. Use these variables to override the choices made by `configure' or to help
  1429. it to find libraries and programs with nonstandard names/locations.
  1430. Report bugs to the package provider.
  1431. _ACEOF
  1432. ac_status=$?
  1433. fi
  1434. if test "$ac_init_help" = "recursive"; then
  1435. # If there are subdirs, report their specific --help.
  1436. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1437. test -d "$ac_dir" ||
  1438. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1439. continue
  1440. ac_builddir=.
  1441. case "$ac_dir" in
  1442. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1443. *)
  1444. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1445. # A ".." for each directory in $ac_dir_suffix.
  1446. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1447. case $ac_top_builddir_sub in
  1448. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1449. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1450. esac ;;
  1451. esac
  1452. ac_abs_top_builddir=$ac_pwd
  1453. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1454. # for backward compatibility:
  1455. ac_top_builddir=$ac_top_build_prefix
  1456. case $srcdir in
  1457. .) # We are building in place.
  1458. ac_srcdir=.
  1459. ac_top_srcdir=$ac_top_builddir_sub
  1460. ac_abs_top_srcdir=$ac_pwd ;;
  1461. [\\/]* | ?:[\\/]* ) # Absolute name.
  1462. ac_srcdir=$srcdir$ac_dir_suffix;
  1463. ac_top_srcdir=$srcdir
  1464. ac_abs_top_srcdir=$srcdir ;;
  1465. *) # Relative name.
  1466. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1467. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1468. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1469. esac
  1470. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1471. cd "$ac_dir" || { ac_status=$?; continue; }
  1472. # Check for guested configure.
  1473. if test -f "$ac_srcdir/configure.gnu"; then
  1474. echo &&
  1475. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1476. elif test -f "$ac_srcdir/configure"; then
  1477. echo &&
  1478. $SHELL "$ac_srcdir/configure" --help=recursive
  1479. else
  1480. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1481. fi || ac_status=$?
  1482. cd "$ac_pwd" || { ac_status=$?; break; }
  1483. done
  1484. fi
  1485. test -n "$ac_init_help" && exit $ac_status
  1486. if $ac_init_version; then
  1487. cat <<\_ACEOF
  1488. vcmi configure 0.82
  1489. generated by GNU Autoconf 2.65
  1490. Copyright (C) 2009 Free Software Foundation, Inc.
  1491. This configure script is free software; the Free Software Foundation
  1492. gives unlimited permission to copy, distribute and modify it.
  1493. _ACEOF
  1494. exit
  1495. fi
  1496. ## ------------------------ ##
  1497. ## Autoconf initialization. ##
  1498. ## ------------------------ ##
  1499. # ac_fn_cxx_try_compile LINENO
  1500. # ----------------------------
  1501. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1502. ac_fn_cxx_try_compile ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. rm -f conftest.$ac_objext
  1506. if { { ac_try="$ac_compile"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_compile") 2>conftest.err
  1514. ac_status=$?
  1515. if test -s conftest.err; then
  1516. grep -v '^ *+' conftest.err >conftest.er1
  1517. cat conftest.er1 >&5
  1518. mv -f conftest.er1 conftest.err
  1519. fi
  1520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1521. test $ac_status = 0; } && {
  1522. test -z "$ac_cxx_werror_flag" ||
  1523. test ! -s conftest.err
  1524. } && test -s conftest.$ac_objext; then :
  1525. ac_retval=0
  1526. else
  1527. $as_echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. ac_retval=1
  1530. fi
  1531. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1532. as_fn_set_status $ac_retval
  1533. } # ac_fn_cxx_try_compile
  1534. # ac_fn_c_try_compile LINENO
  1535. # --------------------------
  1536. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1537. ac_fn_c_try_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. rm -f conftest.$ac_objext
  1541. if { { ac_try="$ac_compile"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_compile") 2>conftest.err
  1549. ac_status=$?
  1550. if test -s conftest.err; then
  1551. grep -v '^ *+' conftest.err >conftest.er1
  1552. cat conftest.er1 >&5
  1553. mv -f conftest.er1 conftest.err
  1554. fi
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; } && {
  1557. test -z "$ac_c_werror_flag" ||
  1558. test ! -s conftest.err
  1559. } && test -s conftest.$ac_objext; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1567. as_fn_set_status $ac_retval
  1568. } # ac_fn_c_try_compile
  1569. # ac_fn_c_try_link LINENO
  1570. # -----------------------
  1571. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1572. ac_fn_c_try_link ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. rm -f conftest.$ac_objext conftest$ac_exeext
  1576. if { { ac_try="$ac_link"
  1577. case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_link") 2>conftest.err
  1584. ac_status=$?
  1585. if test -s conftest.err; then
  1586. grep -v '^ *+' conftest.err >conftest.er1
  1587. cat conftest.er1 >&5
  1588. mv -f conftest.er1 conftest.err
  1589. fi
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; } && {
  1592. test -z "$ac_c_werror_flag" ||
  1593. test ! -s conftest.err
  1594. } && test -s conftest$ac_exeext && {
  1595. test "$cross_compiling" = yes ||
  1596. $as_test_x conftest$ac_exeext
  1597. }; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=1
  1603. fi
  1604. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1605. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1606. # interfere with the next link command; also delete a directory that is
  1607. # left behind by Apple's compiler. We do this before executing the actions.
  1608. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. as_fn_set_status $ac_retval
  1611. } # ac_fn_c_try_link
  1612. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1613. # -------------------------------------------------------
  1614. # Tests whether HEADER exists and can be compiled using the include files in
  1615. # INCLUDES, setting the cache variable VAR accordingly.
  1616. ac_fn_c_check_header_compile ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. $4
  1627. #include <$2>
  1628. _ACEOF
  1629. if ac_fn_c_try_compile "$LINENO"; then :
  1630. eval "$3=yes"
  1631. else
  1632. eval "$3=no"
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1635. fi
  1636. eval ac_res=\$$3
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1638. $as_echo "$ac_res" >&6; }
  1639. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1640. } # ac_fn_c_check_header_compile
  1641. # ac_fn_c_try_cpp LINENO
  1642. # ----------------------
  1643. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1644. ac_fn_c_try_cpp ()
  1645. {
  1646. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1647. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1648. case "(($ac_try" in
  1649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1650. *) ac_try_echo=$ac_try;;
  1651. esac
  1652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1653. $as_echo "$ac_try_echo"; } >&5
  1654. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1655. ac_status=$?
  1656. if test -s conftest.err; then
  1657. grep -v '^ *+' conftest.err >conftest.er1
  1658. cat conftest.er1 >&5
  1659. mv -f conftest.er1 conftest.err
  1660. fi
  1661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1662. test $ac_status = 0; } >/dev/null && {
  1663. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1664. test ! -s conftest.err
  1665. }; then :
  1666. ac_retval=0
  1667. else
  1668. $as_echo "$as_me: failed program was:" >&5
  1669. sed 's/^/| /' conftest.$ac_ext >&5
  1670. ac_retval=1
  1671. fi
  1672. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_cpp
  1675. # ac_fn_c_try_run LINENO
  1676. # ----------------------
  1677. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1678. # that executables *can* be run.
  1679. ac_fn_c_try_run ()
  1680. {
  1681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1682. if { { ac_try="$ac_link"
  1683. case "(($ac_try" in
  1684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1685. *) ac_try_echo=$ac_try;;
  1686. esac
  1687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1688. $as_echo "$ac_try_echo"; } >&5
  1689. (eval "$ac_link") 2>&5
  1690. ac_status=$?
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1693. { { case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_try") 2>&5
  1700. ac_status=$?
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; }; }; then :
  1703. ac_retval=0
  1704. else
  1705. $as_echo "$as_me: program exited with status $ac_status" >&5
  1706. $as_echo "$as_me: failed program was:" >&5
  1707. sed 's/^/| /' conftest.$ac_ext >&5
  1708. ac_retval=$ac_status
  1709. fi
  1710. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1711. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1712. as_fn_set_status $ac_retval
  1713. } # ac_fn_c_try_run
  1714. # ac_fn_c_check_func LINENO FUNC VAR
  1715. # ----------------------------------
  1716. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1717. ac_fn_c_check_func ()
  1718. {
  1719. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1721. $as_echo_n "checking for $2... " >&6; }
  1722. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1723. $as_echo_n "(cached) " >&6
  1724. else
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1728. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1729. #define $2 innocuous_$2
  1730. /* System header to define __stub macros and hopefully few prototypes,
  1731. which can conflict with char $2 (); below.
  1732. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1733. <limits.h> exists even on freestanding compilers. */
  1734. #ifdef __STDC__
  1735. # include <limits.h>
  1736. #else
  1737. # include <assert.h>
  1738. #endif
  1739. #undef $2
  1740. /* Override any GCC internal prototype to avoid an error.
  1741. Use char because int might match the return type of a GCC
  1742. builtin and then its argument prototype would still apply. */
  1743. #ifdef __cplusplus
  1744. extern "C"
  1745. #endif
  1746. char $2 ();
  1747. /* The GNU C library defines this for functions which it implements
  1748. to always fail with ENOSYS. Some functions are actually named
  1749. something starting with __ and the normal name is an alias. */
  1750. #if defined __stub_$2 || defined __stub___$2
  1751. choke me
  1752. #endif
  1753. int
  1754. main ()
  1755. {
  1756. return $2 ();
  1757. ;
  1758. return 0;
  1759. }
  1760. _ACEOF
  1761. if ac_fn_c_try_link "$LINENO"; then :
  1762. eval "$3=yes"
  1763. else
  1764. eval "$3=no"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext \
  1767. conftest$ac_exeext conftest.$ac_ext
  1768. fi
  1769. eval ac_res=\$$3
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1771. $as_echo "$ac_res" >&6; }
  1772. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1773. } # ac_fn_c_check_func
  1774. # ac_fn_cxx_try_cpp LINENO
  1775. # ------------------------
  1776. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1777. ac_fn_cxx_try_cpp ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } >/dev/null && {
  1796. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. }; then :
  1799. ac_retval=0
  1800. else
  1801. $as_echo "$as_me: failed program was:" >&5
  1802. sed 's/^/| /' conftest.$ac_ext >&5
  1803. ac_retval=1
  1804. fi
  1805. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1806. as_fn_set_status $ac_retval
  1807. } # ac_fn_cxx_try_cpp
  1808. # ac_fn_cxx_try_link LINENO
  1809. # -------------------------
  1810. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1811. ac_fn_cxx_try_link ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. rm -f conftest.$ac_objext conftest$ac_exeext
  1815. if { { ac_try="$ac_link"
  1816. case "(($ac_try" in
  1817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1818. *) ac_try_echo=$ac_try;;
  1819. esac
  1820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1821. $as_echo "$ac_try_echo"; } >&5
  1822. (eval "$ac_link") 2>conftest.err
  1823. ac_status=$?
  1824. if test -s conftest.err; then
  1825. grep -v '^ *+' conftest.err >conftest.er1
  1826. cat conftest.er1 >&5
  1827. mv -f conftest.er1 conftest.err
  1828. fi
  1829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1830. test $ac_status = 0; } && {
  1831. test -z "$ac_cxx_werror_flag" ||
  1832. test ! -s conftest.err
  1833. } && test -s conftest$ac_exeext && {
  1834. test "$cross_compiling" = yes ||
  1835. $as_test_x conftest$ac_exeext
  1836. }; then :
  1837. ac_retval=0
  1838. else
  1839. $as_echo "$as_me: failed program was:" >&5
  1840. sed 's/^/| /' conftest.$ac_ext >&5
  1841. ac_retval=1
  1842. fi
  1843. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1844. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1845. # interfere with the next link command; also delete a directory that is
  1846. # left behind by Apple's compiler. We do this before executing the actions.
  1847. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1848. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1849. as_fn_set_status $ac_retval
  1850. } # ac_fn_cxx_try_link
  1851. # ac_fn_cxx_try_run LINENO
  1852. # ------------------------
  1853. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1854. # that executables *can* be run.
  1855. ac_fn_cxx_try_run ()
  1856. {
  1857. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1858. if { { ac_try="$ac_link"
  1859. case "(($ac_try" in
  1860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1861. *) ac_try_echo=$ac_try;;
  1862. esac
  1863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1864. $as_echo "$ac_try_echo"; } >&5
  1865. (eval "$ac_link") 2>&5
  1866. ac_status=$?
  1867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1868. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1869. { { case "(($ac_try" in
  1870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1871. *) ac_try_echo=$ac_try;;
  1872. esac
  1873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1874. $as_echo "$ac_try_echo"; } >&5
  1875. (eval "$ac_try") 2>&5
  1876. ac_status=$?
  1877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1878. test $ac_status = 0; }; }; then :
  1879. ac_retval=0
  1880. else
  1881. $as_echo "$as_me: program exited with status $ac_status" >&5
  1882. $as_echo "$as_me: failed program was:" >&5
  1883. sed 's/^/| /' conftest.$ac_ext >&5
  1884. ac_retval=$ac_status
  1885. fi
  1886. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1887. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1888. as_fn_set_status $ac_retval
  1889. } # ac_fn_cxx_try_run
  1890. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1891. # ---------------------------------------------------------
  1892. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1893. # the include files in INCLUDES and setting the cache variable VAR
  1894. # accordingly.
  1895. ac_fn_cxx_check_header_mongrel ()
  1896. {
  1897. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1898. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1900. $as_echo_n "checking for $2... " >&6; }
  1901. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1902. $as_echo_n "(cached) " >&6
  1903. fi
  1904. eval ac_res=\$$3
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. $as_echo "$ac_res" >&6; }
  1907. else
  1908. # Is the header compilable?
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1910. $as_echo_n "checking $2 usability... " >&6; }
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. $4
  1914. #include <$2>
  1915. _ACEOF
  1916. if ac_fn_cxx_try_compile "$LINENO"; then :
  1917. ac_header_compiler=yes
  1918. else
  1919. ac_header_compiler=no
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1923. $as_echo "$ac_header_compiler" >&6; }
  1924. # Is the header present?
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1926. $as_echo_n "checking $2 presence... " >&6; }
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. #include <$2>
  1930. _ACEOF
  1931. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1932. ac_header_preproc=yes
  1933. else
  1934. ac_header_preproc=no
  1935. fi
  1936. rm -f conftest.err conftest.$ac_ext
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1938. $as_echo "$ac_header_preproc" >&6; }
  1939. # So? What about this header?
  1940. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1941. yes:no: )
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1943. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1945. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1946. ;;
  1947. no:yes:* )
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1949. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1951. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1953. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1955. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1957. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1958. ;;
  1959. esac
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1961. $as_echo_n "checking for $2... " >&6; }
  1962. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1963. $as_echo_n "(cached) " >&6
  1964. else
  1965. eval "$3=\$ac_header_compiler"
  1966. fi
  1967. eval ac_res=\$$3
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. $as_echo "$ac_res" >&6; }
  1970. fi
  1971. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1972. } # ac_fn_cxx_check_header_mongrel
  1973. # ac_fn_cxx_check_func LINENO FUNC VAR
  1974. # ------------------------------------
  1975. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1976. ac_fn_cxx_check_func ()
  1977. {
  1978. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1980. $as_echo_n "checking for $2... " >&6; }
  1981. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1982. $as_echo_n "(cached) " >&6
  1983. else
  1984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1985. /* end confdefs.h. */
  1986. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1987. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1988. #define $2 innocuous_$2
  1989. /* System header to define __stub macros and hopefully few prototypes,
  1990. which can conflict with char $2 (); below.
  1991. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1992. <limits.h> exists even on freestanding compilers. */
  1993. #ifdef __STDC__
  1994. # include <limits.h>
  1995. #else
  1996. # include <assert.h>
  1997. #endif
  1998. #undef $2
  1999. /* Override any GCC internal prototype to avoid an error.
  2000. Use char because int might match the return type of a GCC
  2001. builtin and then its argument prototype would still apply. */
  2002. #ifdef __cplusplus
  2003. extern "C"
  2004. #endif
  2005. char $2 ();
  2006. /* The GNU C library defines this for functions which it implements
  2007. to always fail with ENOSYS. Some functions are actually named
  2008. something starting with __ and the normal name is an alias. */
  2009. #if defined __stub_$2 || defined __stub___$2
  2010. choke me
  2011. #endif
  2012. int
  2013. main ()
  2014. {
  2015. return $2 ();
  2016. ;
  2017. return 0;
  2018. }
  2019. _ACEOF
  2020. if ac_fn_cxx_try_link "$LINENO"; then :
  2021. eval "$3=yes"
  2022. else
  2023. eval "$3=no"
  2024. fi
  2025. rm -f core conftest.err conftest.$ac_objext \
  2026. conftest$ac_exeext conftest.$ac_ext
  2027. fi
  2028. eval ac_res=\$$3
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2030. $as_echo "$ac_res" >&6; }
  2031. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2032. } # ac_fn_cxx_check_func
  2033. cat >config.log <<_ACEOF
  2034. This file contains any messages produced by compilers while
  2035. running configure, to aid debugging if configure makes a mistake.
  2036. It was created by vcmi $as_me 0.82, which was
  2037. generated by GNU Autoconf 2.65. Invocation command line was
  2038. $ $0 $@
  2039. _ACEOF
  2040. exec 5>>config.log
  2041. {
  2042. cat <<_ASUNAME
  2043. ## --------- ##
  2044. ## Platform. ##
  2045. ## --------- ##
  2046. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2047. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2048. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2049. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2050. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2051. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2052. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2053. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2054. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2055. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2056. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2057. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2058. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2059. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2060. _ASUNAME
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064. IFS=$as_save_IFS
  2065. test -z "$as_dir" && as_dir=.
  2066. $as_echo "PATH: $as_dir"
  2067. done
  2068. IFS=$as_save_IFS
  2069. } >&5
  2070. cat >&5 <<_ACEOF
  2071. ## ----------- ##
  2072. ## Core tests. ##
  2073. ## ----------- ##
  2074. _ACEOF
  2075. # Keep a trace of the command line.
  2076. # Strip out --no-create and --no-recursion so they do not pile up.
  2077. # Strip out --silent because we don't want to record it for future runs.
  2078. # Also quote any args containing shell meta-characters.
  2079. # Make two passes to allow for proper duplicate-argument suppression.
  2080. ac_configure_args=
  2081. ac_configure_args0=
  2082. ac_configure_args1=
  2083. ac_must_keep_next=false
  2084. for ac_pass in 1 2
  2085. do
  2086. for ac_arg
  2087. do
  2088. case $ac_arg in
  2089. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2090. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2091. | -silent | --silent | --silen | --sile | --sil)
  2092. continue ;;
  2093. *\'*)
  2094. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2095. esac
  2096. case $ac_pass in
  2097. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2098. 2)
  2099. as_fn_append ac_configure_args1 " '$ac_arg'"
  2100. if test $ac_must_keep_next = true; then
  2101. ac_must_keep_next=false # Got value, back to normal.
  2102. else
  2103. case $ac_arg in
  2104. *=* | --config-cache | -C | -disable-* | --disable-* \
  2105. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2106. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2107. | -with-* | --with-* | -without-* | --without-* | --x)
  2108. case "$ac_configure_args0 " in
  2109. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2110. esac
  2111. ;;
  2112. -* ) ac_must_keep_next=true ;;
  2113. esac
  2114. fi
  2115. as_fn_append ac_configure_args " '$ac_arg'"
  2116. ;;
  2117. esac
  2118. done
  2119. done
  2120. { ac_configure_args0=; unset ac_configure_args0;}
  2121. { ac_configure_args1=; unset ac_configure_args1;}
  2122. # When interrupted or exit'd, cleanup temporary files, and complete
  2123. # config.log. We remove comments because anyway the quotes in there
  2124. # would cause problems or look ugly.
  2125. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2126. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2127. trap 'exit_status=$?
  2128. # Save into config.log some information that might help in debugging.
  2129. {
  2130. echo
  2131. cat <<\_ASBOX
  2132. ## ---------------- ##
  2133. ## Cache variables. ##
  2134. ## ---------------- ##
  2135. _ASBOX
  2136. echo
  2137. # The following way of writing the cache mishandles newlines in values,
  2138. (
  2139. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2140. eval ac_val=\$$ac_var
  2141. case $ac_val in #(
  2142. *${as_nl}*)
  2143. case $ac_var in #(
  2144. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2145. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2146. esac
  2147. case $ac_var in #(
  2148. _ | IFS | as_nl) ;; #(
  2149. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2150. *) { eval $ac_var=; unset $ac_var;} ;;
  2151. esac ;;
  2152. esac
  2153. done
  2154. (set) 2>&1 |
  2155. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2156. *${as_nl}ac_space=\ *)
  2157. sed -n \
  2158. "s/'\''/'\''\\\\'\'''\''/g;
  2159. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2160. ;; #(
  2161. *)
  2162. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2163. ;;
  2164. esac |
  2165. sort
  2166. )
  2167. echo
  2168. cat <<\_ASBOX
  2169. ## ----------------- ##
  2170. ## Output variables. ##
  2171. ## ----------------- ##
  2172. _ASBOX
  2173. echo
  2174. for ac_var in $ac_subst_vars
  2175. do
  2176. eval ac_val=\$$ac_var
  2177. case $ac_val in
  2178. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2179. esac
  2180. $as_echo "$ac_var='\''$ac_val'\''"
  2181. done | sort
  2182. echo
  2183. if test -n "$ac_subst_files"; then
  2184. cat <<\_ASBOX
  2185. ## ------------------- ##
  2186. ## File substitutions. ##
  2187. ## ------------------- ##
  2188. _ASBOX
  2189. echo
  2190. for ac_var in $ac_subst_files
  2191. do
  2192. eval ac_val=\$$ac_var
  2193. case $ac_val in
  2194. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2195. esac
  2196. $as_echo "$ac_var='\''$ac_val'\''"
  2197. done | sort
  2198. echo
  2199. fi
  2200. if test -s confdefs.h; then
  2201. cat <<\_ASBOX
  2202. ## ----------- ##
  2203. ## confdefs.h. ##
  2204. ## ----------- ##
  2205. _ASBOX
  2206. echo
  2207. cat confdefs.h
  2208. echo
  2209. fi
  2210. test "$ac_signal" != 0 &&
  2211. $as_echo "$as_me: caught signal $ac_signal"
  2212. $as_echo "$as_me: exit $exit_status"
  2213. } >&5
  2214. rm -f core *.core core.conftest.* &&
  2215. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2216. exit $exit_status
  2217. ' 0
  2218. for ac_signal in 1 2 13 15; do
  2219. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2220. done
  2221. ac_signal=0
  2222. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2223. rm -f -r conftest* confdefs.h
  2224. $as_echo "/* confdefs.h */" > confdefs.h
  2225. # Predefined preprocessor variables.
  2226. cat >>confdefs.h <<_ACEOF
  2227. #define PACKAGE_NAME "$PACKAGE_NAME"
  2228. _ACEOF
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2231. _ACEOF
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_STRING "$PACKAGE_STRING"
  2237. _ACEOF
  2238. cat >>confdefs.h <<_ACEOF
  2239. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2240. _ACEOF
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_URL "$PACKAGE_URL"
  2243. _ACEOF
  2244. # Let the site file select an alternate cache file if it wants to.
  2245. # Prefer an explicitly selected file to automatically selected ones.
  2246. ac_site_file1=NONE
  2247. ac_site_file2=NONE
  2248. if test -n "$CONFIG_SITE"; then
  2249. ac_site_file1=$CONFIG_SITE
  2250. elif test "x$prefix" != xNONE; then
  2251. ac_site_file1=$prefix/share/config.site
  2252. ac_site_file2=$prefix/etc/config.site
  2253. else
  2254. ac_site_file1=$ac_default_prefix/share/config.site
  2255. ac_site_file2=$ac_default_prefix/etc/config.site
  2256. fi
  2257. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2258. do
  2259. test "x$ac_site_file" = xNONE && continue
  2260. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2262. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2263. sed 's/^/| /' "$ac_site_file" >&5
  2264. . "$ac_site_file"
  2265. fi
  2266. done
  2267. if test -r "$cache_file"; then
  2268. # Some versions of bash will fail to source /dev/null (special files
  2269. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2270. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2272. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2273. case $cache_file in
  2274. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2275. *) . "./$cache_file";;
  2276. esac
  2277. fi
  2278. else
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2280. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2281. >$cache_file
  2282. fi
  2283. # Check that the precious variables saved in the cache have kept the same
  2284. # value.
  2285. ac_cache_corrupted=false
  2286. for ac_var in $ac_precious_vars; do
  2287. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2288. eval ac_new_set=\$ac_env_${ac_var}_set
  2289. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2290. eval ac_new_val=\$ac_env_${ac_var}_value
  2291. case $ac_old_set,$ac_new_set in
  2292. set,)
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2294. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2295. ac_cache_corrupted=: ;;
  2296. ,set)
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2298. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2299. ac_cache_corrupted=: ;;
  2300. ,);;
  2301. *)
  2302. if test "x$ac_old_val" != "x$ac_new_val"; then
  2303. # differences in whitespace do not lead to failure.
  2304. ac_old_val_w=`echo x $ac_old_val`
  2305. ac_new_val_w=`echo x $ac_new_val`
  2306. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2308. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2309. ac_cache_corrupted=:
  2310. else
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2312. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2313. eval $ac_var=\$ac_old_val
  2314. fi
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2316. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2318. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2319. fi;;
  2320. esac
  2321. # Pass precious variables to config.status.
  2322. if test "$ac_new_set" = set; then
  2323. case $ac_new_val in
  2324. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2325. *) ac_arg=$ac_var=$ac_new_val ;;
  2326. esac
  2327. case " $ac_configure_args " in
  2328. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2329. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2330. esac
  2331. fi
  2332. done
  2333. if $ac_cache_corrupted; then
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2337. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2338. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2339. fi
  2340. ## -------------------- ##
  2341. ## Main body of script. ##
  2342. ## -------------------- ##
  2343. ac_ext=c
  2344. ac_cpp='$CPP $CPPFLAGS'
  2345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2348. # Follow NAME_VER in global.h
  2349. am__api_version='1.11'
  2350. ac_aux_dir=
  2351. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2352. for ac_t in install-sh install.sh shtool; do
  2353. if test -f "$ac_dir/$ac_t"; then
  2354. ac_aux_dir=$ac_dir
  2355. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2356. break 2
  2357. fi
  2358. done
  2359. done
  2360. if test -z "$ac_aux_dir"; then
  2361. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2362. fi
  2363. # These three variables are undocumented and unsupported,
  2364. # and are intended to be withdrawn in a future Autoconf release.
  2365. # They can cause serious problems if a builder's source tree is in a directory
  2366. # whose full name contains unusual characters.
  2367. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2368. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2369. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2370. # Find a good install program. We prefer a C program (faster),
  2371. # so one script is as good as another. But avoid the broken or
  2372. # incompatible versions:
  2373. # SysV /etc/install, /usr/sbin/install
  2374. # SunOS /usr/etc/install
  2375. # IRIX /sbin/install
  2376. # AIX /bin/install
  2377. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2378. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2379. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2380. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2381. # OS/2's system install, which has a completely different semantic
  2382. # ./install, which can be erroneously created by make from ./install.sh.
  2383. # Reject install programs that cannot install multiple files.
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2385. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2386. if test -z "$INSTALL"; then
  2387. if test "${ac_cv_path_install+set}" = set; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2391. for as_dir in $PATH
  2392. do
  2393. IFS=$as_save_IFS
  2394. test -z "$as_dir" && as_dir=.
  2395. # Account for people who put trailing slashes in PATH elements.
  2396. case $as_dir/ in #((
  2397. ./ | .// | /[cC]/* | \
  2398. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2399. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2400. /usr/ucb/* ) ;;
  2401. *)
  2402. # OSF1 and SCO ODT 3.0 have their own names for install.
  2403. # Don't use installbsd from OSF since it installs stuff as root
  2404. # by default.
  2405. for ac_prog in ginstall scoinst install; do
  2406. for ac_exec_ext in '' $ac_executable_extensions; do
  2407. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2408. if test $ac_prog = install &&
  2409. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2410. # AIX install. It has an incompatible calling convention.
  2411. :
  2412. elif test $ac_prog = install &&
  2413. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2414. # program-specific install script used by HP pwplus--don't use.
  2415. :
  2416. else
  2417. rm -rf conftest.one conftest.two conftest.dir
  2418. echo one > conftest.one
  2419. echo two > conftest.two
  2420. mkdir conftest.dir
  2421. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2422. test -s conftest.one && test -s conftest.two &&
  2423. test -s conftest.dir/conftest.one &&
  2424. test -s conftest.dir/conftest.two
  2425. then
  2426. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2427. break 3
  2428. fi
  2429. fi
  2430. fi
  2431. done
  2432. done
  2433. ;;
  2434. esac
  2435. done
  2436. IFS=$as_save_IFS
  2437. rm -rf conftest.one conftest.two conftest.dir
  2438. fi
  2439. if test "${ac_cv_path_install+set}" = set; then
  2440. INSTALL=$ac_cv_path_install
  2441. else
  2442. # As a last resort, use the slow shell script. Don't cache a
  2443. # value for INSTALL within a source directory, because that will
  2444. # break other packages using the cache if that directory is
  2445. # removed, or if the value is a relative name.
  2446. INSTALL=$ac_install_sh
  2447. fi
  2448. fi
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2450. $as_echo "$INSTALL" >&6; }
  2451. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2452. # It thinks the first close brace ends the variable substitution.
  2453. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2454. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2455. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2457. $as_echo_n "checking whether build environment is sane... " >&6; }
  2458. # Just in case
  2459. sleep 1
  2460. echo timestamp > conftest.file
  2461. # Reject unsafe characters in $srcdir or the absolute working directory
  2462. # name. Accept space and tab only in the latter.
  2463. am_lf='
  2464. '
  2465. case `pwd` in
  2466. *[\\\"\#\$\&\'\`$am_lf]*)
  2467. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2468. esac
  2469. case $srcdir in
  2470. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2471. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2472. esac
  2473. # Do `set' in a subshell so we don't clobber the current shell's
  2474. # arguments. Must try -L first in case configure is actually a
  2475. # symlink; some systems play weird games with the mod time of symlinks
  2476. # (eg FreeBSD returns the mod time of the symlink's containing
  2477. # directory).
  2478. if (
  2479. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2480. if test "$*" = "X"; then
  2481. # -L didn't work.
  2482. set X `ls -t "$srcdir/configure" conftest.file`
  2483. fi
  2484. rm -f conftest.file
  2485. if test "$*" != "X $srcdir/configure conftest.file" \
  2486. && test "$*" != "X conftest.file $srcdir/configure"; then
  2487. # If neither matched, then we have a broken ls. This can happen
  2488. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2489. # broken ls alias from the environment. This has actually
  2490. # happened. Such a system could not be considered "sane".
  2491. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2492. alias in your environment" "$LINENO" 5
  2493. fi
  2494. test "$2" = conftest.file
  2495. )
  2496. then
  2497. # Ok.
  2498. :
  2499. else
  2500. as_fn_error "newly created file is older than distributed files!
  2501. Check your system clock" "$LINENO" 5
  2502. fi
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2504. $as_echo "yes" >&6; }
  2505. test "$program_prefix" != NONE &&
  2506. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2507. # Use a double $ so make ignores it.
  2508. test "$program_suffix" != NONE &&
  2509. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2510. # Double any \ or $.
  2511. # By default was `s,x,x', remove it if useless.
  2512. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2513. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2514. # expand $ac_aux_dir to an absolute path
  2515. am_aux_dir=`cd $ac_aux_dir && pwd`
  2516. if test x"${MISSING+set}" != xset; then
  2517. case $am_aux_dir in
  2518. *\ * | *\ *)
  2519. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2520. *)
  2521. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2522. esac
  2523. fi
  2524. # Use eval to expand $SHELL
  2525. if eval "$MISSING --run true"; then
  2526. am_missing_run="$MISSING --run "
  2527. else
  2528. am_missing_run=
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2530. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2531. fi
  2532. if test x"${install_sh}" != xset; then
  2533. case $am_aux_dir in
  2534. *\ * | *\ *)
  2535. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2536. *)
  2537. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2538. esac
  2539. fi
  2540. # Installed binaries are usually stripped using `strip' when the user
  2541. # run `make install-strip'. However `strip' might not be the right
  2542. # tool to use in cross-compilation environments, therefore Automake
  2543. # will honor the `STRIP' environment variable to overrule this program.
  2544. if test "$cross_compiling" != no; then
  2545. if test -n "$ac_tool_prefix"; then
  2546. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2547. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2549. $as_echo_n "checking for $ac_word... " >&6; }
  2550. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. if test -n "$STRIP"; then
  2554. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2555. else
  2556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2557. for as_dir in $PATH
  2558. do
  2559. IFS=$as_save_IFS
  2560. test -z "$as_dir" && as_dir=.
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2563. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2565. break 2
  2566. fi
  2567. done
  2568. done
  2569. IFS=$as_save_IFS
  2570. fi
  2571. fi
  2572. STRIP=$ac_cv_prog_STRIP
  2573. if test -n "$STRIP"; then
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2575. $as_echo "$STRIP" >&6; }
  2576. else
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2578. $as_echo "no" >&6; }
  2579. fi
  2580. fi
  2581. if test -z "$ac_cv_prog_STRIP"; then
  2582. ac_ct_STRIP=$STRIP
  2583. # Extract the first word of "strip", so it can be a program name with args.
  2584. set dummy strip; ac_word=$2
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2586. $as_echo_n "checking for $ac_word... " >&6; }
  2587. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. if test -n "$ac_ct_STRIP"; then
  2591. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2592. else
  2593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2594. for as_dir in $PATH
  2595. do
  2596. IFS=$as_save_IFS
  2597. test -z "$as_dir" && as_dir=.
  2598. for ac_exec_ext in '' $ac_executable_extensions; do
  2599. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2600. ac_cv_prog_ac_ct_STRIP="strip"
  2601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2602. break 2
  2603. fi
  2604. done
  2605. done
  2606. IFS=$as_save_IFS
  2607. fi
  2608. fi
  2609. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2610. if test -n "$ac_ct_STRIP"; then
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2612. $as_echo "$ac_ct_STRIP" >&6; }
  2613. else
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2615. $as_echo "no" >&6; }
  2616. fi
  2617. if test "x$ac_ct_STRIP" = x; then
  2618. STRIP=":"
  2619. else
  2620. case $cross_compiling:$ac_tool_warned in
  2621. yes:)
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2624. ac_tool_warned=yes ;;
  2625. esac
  2626. STRIP=$ac_ct_STRIP
  2627. fi
  2628. else
  2629. STRIP="$ac_cv_prog_STRIP"
  2630. fi
  2631. fi
  2632. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2634. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2635. if test -z "$MKDIR_P"; then
  2636. if test "${ac_cv_path_mkdir+set}" = set; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2640. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2641. do
  2642. IFS=$as_save_IFS
  2643. test -z "$as_dir" && as_dir=.
  2644. for ac_prog in mkdir gmkdir; do
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2647. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2648. 'mkdir (GNU coreutils) '* | \
  2649. 'mkdir (coreutils) '* | \
  2650. 'mkdir (fileutils) '4.1*)
  2651. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2652. break 3;;
  2653. esac
  2654. done
  2655. done
  2656. done
  2657. IFS=$as_save_IFS
  2658. fi
  2659. test -d ./--version && rmdir ./--version
  2660. if test "${ac_cv_path_mkdir+set}" = set; then
  2661. MKDIR_P="$ac_cv_path_mkdir -p"
  2662. else
  2663. # As a last resort, use the slow shell script. Don't cache a
  2664. # value for MKDIR_P within a source directory, because that will
  2665. # break other packages using the cache if that directory is
  2666. # removed, or if the value is a relative name.
  2667. MKDIR_P="$ac_install_sh -d"
  2668. fi
  2669. fi
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2671. $as_echo "$MKDIR_P" >&6; }
  2672. mkdir_p="$MKDIR_P"
  2673. case $mkdir_p in
  2674. [\\/$]* | ?:[\\/]*) ;;
  2675. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2676. esac
  2677. for ac_prog in gawk mawk nawk awk
  2678. do
  2679. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2680. set dummy $ac_prog; ac_word=$2
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2682. $as_echo_n "checking for $ac_word... " >&6; }
  2683. if test "${ac_cv_prog_AWK+set}" = set; then :
  2684. $as_echo_n "(cached) " >&6
  2685. else
  2686. if test -n "$AWK"; then
  2687. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2688. else
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH
  2691. do
  2692. IFS=$as_save_IFS
  2693. test -z "$as_dir" && as_dir=.
  2694. for ac_exec_ext in '' $ac_executable_extensions; do
  2695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2696. ac_cv_prog_AWK="$ac_prog"
  2697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2698. break 2
  2699. fi
  2700. done
  2701. done
  2702. IFS=$as_save_IFS
  2703. fi
  2704. fi
  2705. AWK=$ac_cv_prog_AWK
  2706. if test -n "$AWK"; then
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2708. $as_echo "$AWK" >&6; }
  2709. else
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2711. $as_echo "no" >&6; }
  2712. fi
  2713. test -n "$AWK" && break
  2714. done
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2716. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2717. set x ${MAKE-make}
  2718. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2719. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. cat >conftest.make <<\_ACEOF
  2723. SHELL = /bin/sh
  2724. all:
  2725. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2726. _ACEOF
  2727. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2728. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2729. *@@@%%%=?*=@@@%%%*)
  2730. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2731. *)
  2732. eval ac_cv_prog_make_${ac_make}_set=no;;
  2733. esac
  2734. rm -f conftest.make
  2735. fi
  2736. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2738. $as_echo "yes" >&6; }
  2739. SET_MAKE=
  2740. else
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2742. $as_echo "no" >&6; }
  2743. SET_MAKE="MAKE=${MAKE-make}"
  2744. fi
  2745. rm -rf .tst 2>/dev/null
  2746. mkdir .tst 2>/dev/null
  2747. if test -d .tst; then
  2748. am__leading_dot=.
  2749. else
  2750. am__leading_dot=_
  2751. fi
  2752. rmdir .tst 2>/dev/null
  2753. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2754. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2755. # is not polluted with repeated "-I."
  2756. am__isrc=' -I$(srcdir)'
  2757. # test to see if srcdir already configured
  2758. if test -f $srcdir/config.status; then
  2759. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2760. fi
  2761. fi
  2762. # test whether we have cygpath
  2763. if test -z "$CYGPATH_W"; then
  2764. if (cygpath --version) >/dev/null 2>/dev/null; then
  2765. CYGPATH_W='cygpath -w'
  2766. else
  2767. CYGPATH_W=echo
  2768. fi
  2769. fi
  2770. # Define the identity of the package.
  2771. PACKAGE='vcmi'
  2772. VERSION='0.82'
  2773. cat >>confdefs.h <<_ACEOF
  2774. #define PACKAGE "$PACKAGE"
  2775. _ACEOF
  2776. cat >>confdefs.h <<_ACEOF
  2777. #define VERSION "$VERSION"
  2778. _ACEOF
  2779. # Some tools Automake needs.
  2780. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2781. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2782. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2783. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2784. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2785. # We need awk for the "check" target. The system "awk" is bad on
  2786. # some platforms.
  2787. # Always define AMTAR for backward compatibility.
  2788. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2789. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2790. # Checks for build toolchain
  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. ac_ext=cpp
  2797. ac_cpp='$CXXCPP $CPPFLAGS'
  2798. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2799. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2800. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2801. if test -z "$CXX"; then
  2802. if test -n "$CCC"; then
  2803. CXX=$CCC
  2804. else
  2805. if test -n "$ac_tool_prefix"; then
  2806. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2807. do
  2808. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2809. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if test "${ac_cv_prog_CXX+set}" = set; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$CXX"; then
  2816. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2825. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. CXX=$ac_cv_prog_CXX
  2835. if test -n "$CXX"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2837. $as_echo "$CXX" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. test -n "$CXX" && break
  2843. done
  2844. fi
  2845. if test -z "$CXX"; then
  2846. ac_ct_CXX=$CXX
  2847. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2848. do
  2849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2850. set dummy $ac_prog; ac_word=$2
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. $as_echo_n "checking for $ac_word... " >&6; }
  2853. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$ac_ct_CXX"; then
  2857. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2858. else
  2859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2860. for as_dir in $PATH
  2861. do
  2862. IFS=$as_save_IFS
  2863. test -z "$as_dir" && as_dir=.
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2866. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2868. break 2
  2869. fi
  2870. done
  2871. done
  2872. IFS=$as_save_IFS
  2873. fi
  2874. fi
  2875. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2876. if test -n "$ac_ct_CXX"; then
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2878. $as_echo "$ac_ct_CXX" >&6; }
  2879. else
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2881. $as_echo "no" >&6; }
  2882. fi
  2883. test -n "$ac_ct_CXX" && break
  2884. done
  2885. if test "x$ac_ct_CXX" = x; then
  2886. CXX="g++"
  2887. else
  2888. case $cross_compiling:$ac_tool_warned in
  2889. yes:)
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2892. ac_tool_warned=yes ;;
  2893. esac
  2894. CXX=$ac_ct_CXX
  2895. fi
  2896. fi
  2897. fi
  2898. fi
  2899. # Provide some information about the compiler.
  2900. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2901. set X $ac_compile
  2902. ac_compiler=$2
  2903. for ac_option in --version -v -V -qversion; do
  2904. { { ac_try="$ac_compiler $ac_option >&5"
  2905. case "(($ac_try" in
  2906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2907. *) ac_try_echo=$ac_try;;
  2908. esac
  2909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2910. $as_echo "$ac_try_echo"; } >&5
  2911. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2912. ac_status=$?
  2913. if test -s conftest.err; then
  2914. sed '10a\
  2915. ... rest of stderr output deleted ...
  2916. 10q' conftest.err >conftest.er1
  2917. cat conftest.er1 >&5
  2918. fi
  2919. rm -f conftest.er1 conftest.err
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2921. test $ac_status = 0; }
  2922. done
  2923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. ac_clean_files_save=$ac_clean_files
  2933. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2934. # Try to create an executable without -o first, disregard a.out.
  2935. # It will help us diagnose broken compilers, and finding out an intuition
  2936. # of exeext.
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2938. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2939. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2940. # The possible output files:
  2941. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2942. ac_rmfiles=
  2943. for ac_file in $ac_files
  2944. do
  2945. case $ac_file in
  2946. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2947. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2948. esac
  2949. done
  2950. rm -f $ac_rmfiles
  2951. if { { ac_try="$ac_link_default"
  2952. case "(($ac_try" in
  2953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2954. *) ac_try_echo=$ac_try;;
  2955. esac
  2956. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2957. $as_echo "$ac_try_echo"; } >&5
  2958. (eval "$ac_link_default") 2>&5
  2959. ac_status=$?
  2960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2961. test $ac_status = 0; }; then :
  2962. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2963. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2964. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2965. # so that the user can short-circuit this test for compilers unknown to
  2966. # Autoconf.
  2967. for ac_file in $ac_files ''
  2968. do
  2969. test -f "$ac_file" || continue
  2970. case $ac_file in
  2971. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2972. ;;
  2973. [ab].out )
  2974. # We found the default executable, but exeext='' is most
  2975. # certainly right.
  2976. break;;
  2977. *.* )
  2978. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2979. then :; else
  2980. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2981. fi
  2982. # We set ac_cv_exeext here because the later test for it is not
  2983. # safe: cross compilers may not add the suffix if given an `-o'
  2984. # argument, so we may need to know it at that point already.
  2985. # Even if this section looks crufty: it has the advantage of
  2986. # actually working.
  2987. break;;
  2988. * )
  2989. break;;
  2990. esac
  2991. done
  2992. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2993. else
  2994. ac_file=''
  2995. fi
  2996. if test -z "$ac_file"; then :
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2998. $as_echo "no" >&6; }
  2999. $as_echo "$as_me: failed program was:" >&5
  3000. sed 's/^/| /' conftest.$ac_ext >&5
  3001. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3002. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3003. { as_fn_set_status 77
  3004. as_fn_error "C++ compiler cannot create executables
  3005. See \`config.log' for more details." "$LINENO" 5; }; }
  3006. else
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3008. $as_echo "yes" >&6; }
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3011. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3013. $as_echo "$ac_file" >&6; }
  3014. ac_exeext=$ac_cv_exeext
  3015. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3016. ac_clean_files=$ac_clean_files_save
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3018. $as_echo_n "checking for suffix of executables... " >&6; }
  3019. if { { ac_try="$ac_link"
  3020. case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_link") 2>&5
  3027. ac_status=$?
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }; then :
  3030. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3031. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3032. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3033. # `rm'.
  3034. for ac_file in conftest.exe conftest conftest.*; do
  3035. test -f "$ac_file" || continue
  3036. case $ac_file in
  3037. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3038. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3039. break;;
  3040. * ) break;;
  3041. esac
  3042. done
  3043. else
  3044. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3045. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3046. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3047. See \`config.log' for more details." "$LINENO" 5; }
  3048. fi
  3049. rm -f conftest conftest$ac_cv_exeext
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3051. $as_echo "$ac_cv_exeext" >&6; }
  3052. rm -f conftest.$ac_ext
  3053. EXEEXT=$ac_cv_exeext
  3054. ac_exeext=$EXEEXT
  3055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3056. /* end confdefs.h. */
  3057. #include <stdio.h>
  3058. int
  3059. main ()
  3060. {
  3061. FILE *f = fopen ("conftest.out", "w");
  3062. return ferror (f) || fclose (f) != 0;
  3063. ;
  3064. return 0;
  3065. }
  3066. _ACEOF
  3067. ac_clean_files="$ac_clean_files conftest.out"
  3068. # Check that the compiler produces executables we can run. If not, either
  3069. # the compiler is broken, or we cross compile.
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3071. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3072. if test "$cross_compiling" != yes; then
  3073. { { ac_try="$ac_link"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_link") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }
  3084. if { ac_try='./conftest$ac_cv_exeext'
  3085. { { case "(($ac_try" in
  3086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3087. *) ac_try_echo=$ac_try;;
  3088. esac
  3089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3090. $as_echo "$ac_try_echo"; } >&5
  3091. (eval "$ac_try") 2>&5
  3092. ac_status=$?
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3094. test $ac_status = 0; }; }; then
  3095. cross_compiling=no
  3096. else
  3097. if test "$cross_compiling" = maybe; then
  3098. cross_compiling=yes
  3099. else
  3100. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3102. as_fn_error "cannot run C++ compiled programs.
  3103. If you meant to cross compile, use \`--host'.
  3104. See \`config.log' for more details." "$LINENO" 5; }
  3105. fi
  3106. fi
  3107. fi
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3109. $as_echo "$cross_compiling" >&6; }
  3110. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3111. ac_clean_files=$ac_clean_files_save
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3113. $as_echo_n "checking for suffix of object files... " >&6; }
  3114. if test "${ac_cv_objext+set}" = set; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3118. /* end confdefs.h. */
  3119. int
  3120. main ()
  3121. {
  3122. ;
  3123. return 0;
  3124. }
  3125. _ACEOF
  3126. rm -f conftest.o conftest.obj
  3127. if { { ac_try="$ac_compile"
  3128. case "(($ac_try" in
  3129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3130. *) ac_try_echo=$ac_try;;
  3131. esac
  3132. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3133. $as_echo "$ac_try_echo"; } >&5
  3134. (eval "$ac_compile") 2>&5
  3135. ac_status=$?
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3137. test $ac_status = 0; }; then :
  3138. for ac_file in conftest.o conftest.obj conftest.*; do
  3139. test -f "$ac_file" || continue;
  3140. case $ac_file in
  3141. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3142. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3143. break;;
  3144. esac
  3145. done
  3146. else
  3147. $as_echo "$as_me: failed program was:" >&5
  3148. sed 's/^/| /' conftest.$ac_ext >&5
  3149. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3151. as_fn_error "cannot compute suffix of object files: cannot compile
  3152. See \`config.log' for more details." "$LINENO" 5; }
  3153. fi
  3154. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3155. fi
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3157. $as_echo "$ac_cv_objext" >&6; }
  3158. OBJEXT=$ac_cv_objext
  3159. ac_objext=$OBJEXT
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3161. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3162. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. int
  3168. main ()
  3169. {
  3170. #ifndef __GNUC__
  3171. choke me
  3172. #endif
  3173. ;
  3174. return 0;
  3175. }
  3176. _ACEOF
  3177. if ac_fn_cxx_try_compile "$LINENO"; then :
  3178. ac_compiler_gnu=yes
  3179. else
  3180. ac_compiler_gnu=no
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3186. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3187. if test $ac_compiler_gnu = yes; then
  3188. GXX=yes
  3189. else
  3190. GXX=
  3191. fi
  3192. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3193. ac_save_CXXFLAGS=$CXXFLAGS
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3195. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3196. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3197. $as_echo_n "(cached) " >&6
  3198. else
  3199. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3200. ac_cxx_werror_flag=yes
  3201. ac_cv_prog_cxx_g=no
  3202. CXXFLAGS="-g"
  3203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3204. /* end confdefs.h. */
  3205. int
  3206. main ()
  3207. {
  3208. ;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. if ac_fn_cxx_try_compile "$LINENO"; then :
  3213. ac_cv_prog_cxx_g=yes
  3214. else
  3215. CXXFLAGS=""
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. ;
  3222. return 0;
  3223. }
  3224. _ACEOF
  3225. if ac_fn_cxx_try_compile "$LINENO"; then :
  3226. else
  3227. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3228. CXXFLAGS="-g"
  3229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end confdefs.h. */
  3231. int
  3232. main ()
  3233. {
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. if ac_fn_cxx_try_compile "$LINENO"; then :
  3239. ac_cv_prog_cxx_g=yes
  3240. fi
  3241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3249. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3250. if test "$ac_test_CXXFLAGS" = set; then
  3251. CXXFLAGS=$ac_save_CXXFLAGS
  3252. elif test $ac_cv_prog_cxx_g = yes; then
  3253. if test "$GXX" = yes; then
  3254. CXXFLAGS="-g -O2"
  3255. else
  3256. CXXFLAGS="-g"
  3257. fi
  3258. else
  3259. if test "$GXX" = yes; then
  3260. CXXFLAGS="-O2"
  3261. else
  3262. CXXFLAGS=
  3263. fi
  3264. fi
  3265. ac_ext=cpp
  3266. ac_cpp='$CXXCPP $CPPFLAGS'
  3267. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3268. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3269. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3270. DEPDIR="${am__leading_dot}deps"
  3271. ac_config_commands="$ac_config_commands depfiles"
  3272. am_make=${MAKE-make}
  3273. cat > confinc << 'END'
  3274. am__doit:
  3275. @echo this is the am__doit target
  3276. .PHONY: am__doit
  3277. END
  3278. # If we don't find an include directive, just comment out the code.
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3280. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3281. am__include="#"
  3282. am__quote=
  3283. _am_result=none
  3284. # First try GNU make style include.
  3285. echo "include confinc" > confmf
  3286. # Ignore all kinds of additional output from `make'.
  3287. case `$am_make -s -f confmf 2> /dev/null` in #(
  3288. *the\ am__doit\ target*)
  3289. am__include=include
  3290. am__quote=
  3291. _am_result=GNU
  3292. ;;
  3293. esac
  3294. # Now try BSD make style include.
  3295. if test "$am__include" = "#"; then
  3296. echo '.include "confinc"' > confmf
  3297. case `$am_make -s -f confmf 2> /dev/null` in #(
  3298. *the\ am__doit\ target*)
  3299. am__include=.include
  3300. am__quote="\""
  3301. _am_result=BSD
  3302. ;;
  3303. esac
  3304. fi
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3306. $as_echo "$_am_result" >&6; }
  3307. rm -f confinc confmf
  3308. # Check whether --enable-dependency-tracking was given.
  3309. if test "${enable_dependency_tracking+set}" = set; then :
  3310. enableval=$enable_dependency_tracking;
  3311. fi
  3312. if test "x$enable_dependency_tracking" != xno; then
  3313. am_depcomp="$ac_aux_dir/depcomp"
  3314. AMDEPBACKSLASH='\'
  3315. fi
  3316. if test "x$enable_dependency_tracking" != xno; then
  3317. AMDEP_TRUE=
  3318. AMDEP_FALSE='#'
  3319. else
  3320. AMDEP_TRUE='#'
  3321. AMDEP_FALSE=
  3322. fi
  3323. depcc="$CXX" am_compiler_list=
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3325. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3326. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3327. $as_echo_n "(cached) " >&6
  3328. else
  3329. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3330. # We make a subdir and do the tests there. Otherwise we can end up
  3331. # making bogus files that we don't know about and never remove. For
  3332. # instance it was reported that on HP-UX the gcc test will end up
  3333. # making a dummy file named `D' -- because `-MD' means `put the output
  3334. # in D'.
  3335. mkdir conftest.dir
  3336. # Copy depcomp to subdir because otherwise we won't find it if we're
  3337. # using a relative directory.
  3338. cp "$am_depcomp" conftest.dir
  3339. cd conftest.dir
  3340. # We will build objects and dependencies in a subdirectory because
  3341. # it helps to detect inapplicable dependency modes. For instance
  3342. # both Tru64's cc and ICC support -MD to output dependencies as a
  3343. # side effect of compilation, but ICC will put the dependencies in
  3344. # the current directory while Tru64 will put them in the object
  3345. # directory.
  3346. mkdir sub
  3347. am_cv_CXX_dependencies_compiler_type=none
  3348. if test "$am_compiler_list" = ""; then
  3349. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3350. fi
  3351. am__universal=false
  3352. case " $depcc " in #(
  3353. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3354. esac
  3355. for depmode in $am_compiler_list; do
  3356. # Setup a source with many dependencies, because some compilers
  3357. # like to wrap large dependency lists on column 80 (with \), and
  3358. # we should not choose a depcomp mode which is confused by this.
  3359. #
  3360. # We need to recreate these files for each test, as the compiler may
  3361. # overwrite some of them when testing with obscure command lines.
  3362. # This happens at least with the AIX C compiler.
  3363. : > sub/conftest.c
  3364. for i in 1 2 3 4 5 6; do
  3365. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3366. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3367. # Solaris 8's {/usr,}/bin/sh.
  3368. touch sub/conftst$i.h
  3369. done
  3370. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3371. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3372. # mode. It turns out that the SunPro C++ compiler does not properly
  3373. # handle `-M -o', and we need to detect this. Also, some Intel
  3374. # versions had trouble with output in subdirs
  3375. am__obj=sub/conftest.${OBJEXT-o}
  3376. am__minus_obj="-o $am__obj"
  3377. case $depmode in
  3378. gcc)
  3379. # This depmode causes a compiler race in universal mode.
  3380. test "$am__universal" = false || continue
  3381. ;;
  3382. nosideeffect)
  3383. # after this tag, mechanisms are not by side-effect, so they'll
  3384. # only be used when explicitly requested
  3385. if test "x$enable_dependency_tracking" = xyes; then
  3386. continue
  3387. else
  3388. break
  3389. fi
  3390. ;;
  3391. msvisualcpp | msvcmsys)
  3392. # This compiler won't grok `-c -o', but also, the minuso test has
  3393. # not run yet. These depmodes are late enough in the game, and
  3394. # so weak that their functioning should not be impacted.
  3395. am__obj=conftest.${OBJEXT-o}
  3396. am__minus_obj=
  3397. ;;
  3398. none) break ;;
  3399. esac
  3400. if depmode=$depmode \
  3401. source=sub/conftest.c object=$am__obj \
  3402. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3403. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3404. >/dev/null 2>conftest.err &&
  3405. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3406. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3407. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3408. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3409. # icc doesn't choke on unknown options, it will just issue warnings
  3410. # or remarks (even with -Werror). So we grep stderr for any message
  3411. # that says an option was ignored or not supported.
  3412. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3413. # icc: Command line warning: ignoring option '-M'; no argument required
  3414. # The diagnosis changed in icc 8.0:
  3415. # icc: Command line remark: option '-MP' not supported
  3416. if (grep 'ignoring option' conftest.err ||
  3417. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3418. am_cv_CXX_dependencies_compiler_type=$depmode
  3419. break
  3420. fi
  3421. fi
  3422. done
  3423. cd ..
  3424. rm -rf conftest.dir
  3425. else
  3426. am_cv_CXX_dependencies_compiler_type=none
  3427. fi
  3428. fi
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3430. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3431. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3432. if
  3433. test "x$enable_dependency_tracking" != xno \
  3434. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3435. am__fastdepCXX_TRUE=
  3436. am__fastdepCXX_FALSE='#'
  3437. else
  3438. am__fastdepCXX_TRUE='#'
  3439. am__fastdepCXX_FALSE=
  3440. fi
  3441. # Check whether --enable-shared was given.
  3442. if test "${enable_shared+set}" = set; then :
  3443. enableval=$enable_shared; p=${PACKAGE-default}
  3444. case $enableval in
  3445. yes) enable_shared=yes ;;
  3446. no) enable_shared=no ;;
  3447. *)
  3448. enable_shared=no
  3449. # Look at the argument we got. We use all the common list separators.
  3450. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3451. for pkg in $enableval; do
  3452. IFS="$lt_save_ifs"
  3453. if test "X$pkg" = "X$p"; then
  3454. enable_shared=yes
  3455. fi
  3456. done
  3457. IFS="$lt_save_ifs"
  3458. ;;
  3459. esac
  3460. else
  3461. enable_shared=yes
  3462. fi
  3463. # Check whether --enable-static was given.
  3464. if test "${enable_static+set}" = set; then :
  3465. enableval=$enable_static; p=${PACKAGE-default}
  3466. case $enableval in
  3467. yes) enable_static=yes ;;
  3468. no) enable_static=no ;;
  3469. *)
  3470. enable_static=no
  3471. # Look at the argument we got. We use all the common list separators.
  3472. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3473. for pkg in $enableval; do
  3474. IFS="$lt_save_ifs"
  3475. if test "X$pkg" = "X$p"; then
  3476. enable_static=yes
  3477. fi
  3478. done
  3479. IFS="$lt_save_ifs"
  3480. ;;
  3481. esac
  3482. else
  3483. enable_static=no
  3484. fi
  3485. case `pwd` in
  3486. *\ * | *\ *)
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3488. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3489. esac
  3490. macro_version='2.2.6b'
  3491. macro_revision='1.3017'
  3492. ltmain="$ac_aux_dir/ltmain.sh"
  3493. # Make sure we can run config.sub.
  3494. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3495. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3497. $as_echo_n "checking build system type... " >&6; }
  3498. if test "${ac_cv_build+set}" = set; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. ac_build_alias=$build_alias
  3502. test "x$ac_build_alias" = x &&
  3503. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3504. test "x$ac_build_alias" = x &&
  3505. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3506. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3507. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3508. fi
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3510. $as_echo "$ac_cv_build" >&6; }
  3511. case $ac_cv_build in
  3512. *-*-*) ;;
  3513. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3514. esac
  3515. build=$ac_cv_build
  3516. ac_save_IFS=$IFS; IFS='-'
  3517. set x $ac_cv_build
  3518. shift
  3519. build_cpu=$1
  3520. build_vendor=$2
  3521. shift; shift
  3522. # Remember, the first character of IFS is used to create $*,
  3523. # except with old shells:
  3524. build_os=$*
  3525. IFS=$ac_save_IFS
  3526. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3528. $as_echo_n "checking host system type... " >&6; }
  3529. if test "${ac_cv_host+set}" = set; then :
  3530. $as_echo_n "(cached) " >&6
  3531. else
  3532. if test "x$host_alias" = x; then
  3533. ac_cv_host=$ac_cv_build
  3534. else
  3535. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3536. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3537. fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3540. $as_echo "$ac_cv_host" >&6; }
  3541. case $ac_cv_host in
  3542. *-*-*) ;;
  3543. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3544. esac
  3545. host=$ac_cv_host
  3546. ac_save_IFS=$IFS; IFS='-'
  3547. set x $ac_cv_host
  3548. shift
  3549. host_cpu=$1
  3550. host_vendor=$2
  3551. shift; shift
  3552. # Remember, the first character of IFS is used to create $*,
  3553. # except with old shells:
  3554. host_os=$*
  3555. IFS=$ac_save_IFS
  3556. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3557. ac_ext=c
  3558. ac_cpp='$CPP $CPPFLAGS'
  3559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3562. if test -n "$ac_tool_prefix"; then
  3563. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3564. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3566. $as_echo_n "checking for $ac_word... " >&6; }
  3567. if test "${ac_cv_prog_CC+set}" = set; then :
  3568. $as_echo_n "(cached) " >&6
  3569. else
  3570. if test -n "$CC"; then
  3571. ac_cv_prog_CC="$CC" # Let the user override the test.
  3572. else
  3573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3574. for as_dir in $PATH
  3575. do
  3576. IFS=$as_save_IFS
  3577. test -z "$as_dir" && as_dir=.
  3578. for ac_exec_ext in '' $ac_executable_extensions; do
  3579. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3580. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3582. break 2
  3583. fi
  3584. done
  3585. done
  3586. IFS=$as_save_IFS
  3587. fi
  3588. fi
  3589. CC=$ac_cv_prog_CC
  3590. if test -n "$CC"; then
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3592. $as_echo "$CC" >&6; }
  3593. else
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3595. $as_echo "no" >&6; }
  3596. fi
  3597. fi
  3598. if test -z "$ac_cv_prog_CC"; then
  3599. ac_ct_CC=$CC
  3600. # Extract the first word of "gcc", so it can be a program name with args.
  3601. set dummy gcc; ac_word=$2
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3603. $as_echo_n "checking for $ac_word... " >&6; }
  3604. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3605. $as_echo_n "(cached) " >&6
  3606. else
  3607. if test -n "$ac_ct_CC"; then
  3608. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3609. else
  3610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3611. for as_dir in $PATH
  3612. do
  3613. IFS=$as_save_IFS
  3614. test -z "$as_dir" && as_dir=.
  3615. for ac_exec_ext in '' $ac_executable_extensions; do
  3616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3617. ac_cv_prog_ac_ct_CC="gcc"
  3618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3619. break 2
  3620. fi
  3621. done
  3622. done
  3623. IFS=$as_save_IFS
  3624. fi
  3625. fi
  3626. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3627. if test -n "$ac_ct_CC"; then
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3629. $as_echo "$ac_ct_CC" >&6; }
  3630. else
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3632. $as_echo "no" >&6; }
  3633. fi
  3634. if test "x$ac_ct_CC" = x; then
  3635. CC=""
  3636. else
  3637. case $cross_compiling:$ac_tool_warned in
  3638. yes:)
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3641. ac_tool_warned=yes ;;
  3642. esac
  3643. CC=$ac_ct_CC
  3644. fi
  3645. else
  3646. CC="$ac_cv_prog_CC"
  3647. fi
  3648. if test -z "$CC"; then
  3649. if test -n "$ac_tool_prefix"; then
  3650. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3651. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3653. $as_echo_n "checking for $ac_word... " >&6; }
  3654. if test "${ac_cv_prog_CC+set}" = set; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. if test -n "$CC"; then
  3658. ac_cv_prog_CC="$CC" # Let the user override the test.
  3659. else
  3660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3661. for as_dir in $PATH
  3662. do
  3663. IFS=$as_save_IFS
  3664. test -z "$as_dir" && as_dir=.
  3665. for ac_exec_ext in '' $ac_executable_extensions; do
  3666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3667. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3669. break 2
  3670. fi
  3671. done
  3672. done
  3673. IFS=$as_save_IFS
  3674. fi
  3675. fi
  3676. CC=$ac_cv_prog_CC
  3677. if test -n "$CC"; then
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3679. $as_echo "$CC" >&6; }
  3680. else
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3682. $as_echo "no" >&6; }
  3683. fi
  3684. fi
  3685. fi
  3686. if test -z "$CC"; then
  3687. # Extract the first word of "cc", so it can be a program name with args.
  3688. set dummy cc; ac_word=$2
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3690. $as_echo_n "checking for $ac_word... " >&6; }
  3691. if test "${ac_cv_prog_CC+set}" = set; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. if test -n "$CC"; then
  3695. ac_cv_prog_CC="$CC" # Let the user override the test.
  3696. else
  3697. ac_prog_rejected=no
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3705. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3706. ac_prog_rejected=yes
  3707. continue
  3708. fi
  3709. ac_cv_prog_CC="cc"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. if test $ac_prog_rejected = yes; then
  3717. # We found a bogon in the path, so make sure we never use it.
  3718. set dummy $ac_cv_prog_CC
  3719. shift
  3720. if test $# != 0; then
  3721. # We chose a different compiler from the bogus one.
  3722. # However, it has the same basename, so the bogon will be chosen
  3723. # first if we set CC to just the basename; use the full file name.
  3724. shift
  3725. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3726. fi
  3727. fi
  3728. fi
  3729. fi
  3730. CC=$ac_cv_prog_CC
  3731. if test -n "$CC"; then
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3733. $as_echo "$CC" >&6; }
  3734. else
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3736. $as_echo "no" >&6; }
  3737. fi
  3738. fi
  3739. if test -z "$CC"; then
  3740. if test -n "$ac_tool_prefix"; then
  3741. for ac_prog in cl.exe
  3742. do
  3743. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3744. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3746. $as_echo_n "checking for $ac_word... " >&6; }
  3747. if test "${ac_cv_prog_CC+set}" = set; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -n "$CC"; then
  3751. ac_cv_prog_CC="$CC" # Let the user override the test.
  3752. else
  3753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754. for as_dir in $PATH
  3755. do
  3756. IFS=$as_save_IFS
  3757. test -z "$as_dir" && as_dir=.
  3758. for ac_exec_ext in '' $ac_executable_extensions; do
  3759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3760. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. fi
  3768. fi
  3769. CC=$ac_cv_prog_CC
  3770. if test -n "$CC"; then
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3772. $as_echo "$CC" >&6; }
  3773. else
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3775. $as_echo "no" >&6; }
  3776. fi
  3777. test -n "$CC" && break
  3778. done
  3779. fi
  3780. if test -z "$CC"; then
  3781. ac_ct_CC=$CC
  3782. for ac_prog in cl.exe
  3783. do
  3784. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3785. set dummy $ac_prog; ac_word=$2
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3787. $as_echo_n "checking for $ac_word... " >&6; }
  3788. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if test -n "$ac_ct_CC"; then
  3792. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3793. else
  3794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3795. for as_dir in $PATH
  3796. do
  3797. IFS=$as_save_IFS
  3798. test -z "$as_dir" && as_dir=.
  3799. for ac_exec_ext in '' $ac_executable_extensions; do
  3800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3801. ac_cv_prog_ac_ct_CC="$ac_prog"
  3802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3803. break 2
  3804. fi
  3805. done
  3806. done
  3807. IFS=$as_save_IFS
  3808. fi
  3809. fi
  3810. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3811. if test -n "$ac_ct_CC"; then
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3813. $as_echo "$ac_ct_CC" >&6; }
  3814. else
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3816. $as_echo "no" >&6; }
  3817. fi
  3818. test -n "$ac_ct_CC" && break
  3819. done
  3820. if test "x$ac_ct_CC" = x; then
  3821. CC=""
  3822. else
  3823. case $cross_compiling:$ac_tool_warned in
  3824. yes:)
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3826. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3827. ac_tool_warned=yes ;;
  3828. esac
  3829. CC=$ac_ct_CC
  3830. fi
  3831. fi
  3832. fi
  3833. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3834. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3835. as_fn_error "no acceptable C compiler found in \$PATH
  3836. See \`config.log' for more details." "$LINENO" 5; }
  3837. # Provide some information about the compiler.
  3838. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3839. set X $ac_compile
  3840. ac_compiler=$2
  3841. for ac_option in --version -v -V -qversion; do
  3842. { { ac_try="$ac_compiler $ac_option >&5"
  3843. case "(($ac_try" in
  3844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3845. *) ac_try_echo=$ac_try;;
  3846. esac
  3847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3848. $as_echo "$ac_try_echo"; } >&5
  3849. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3850. ac_status=$?
  3851. if test -s conftest.err; then
  3852. sed '10a\
  3853. ... rest of stderr output deleted ...
  3854. 10q' conftest.err >conftest.er1
  3855. cat conftest.er1 >&5
  3856. fi
  3857. rm -f conftest.er1 conftest.err
  3858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3859. test $ac_status = 0; }
  3860. done
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3862. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3863. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3867. /* end confdefs.h. */
  3868. int
  3869. main ()
  3870. {
  3871. #ifndef __GNUC__
  3872. choke me
  3873. #endif
  3874. ;
  3875. return 0;
  3876. }
  3877. _ACEOF
  3878. if ac_fn_c_try_compile "$LINENO"; then :
  3879. ac_compiler_gnu=yes
  3880. else
  3881. ac_compiler_gnu=no
  3882. fi
  3883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3884. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3887. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3888. if test $ac_compiler_gnu = yes; then
  3889. GCC=yes
  3890. else
  3891. GCC=
  3892. fi
  3893. ac_test_CFLAGS=${CFLAGS+set}
  3894. ac_save_CFLAGS=$CFLAGS
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3896. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3897. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3898. $as_echo_n "(cached) " >&6
  3899. else
  3900. ac_save_c_werror_flag=$ac_c_werror_flag
  3901. ac_c_werror_flag=yes
  3902. ac_cv_prog_cc_g=no
  3903. CFLAGS="-g"
  3904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3905. /* end confdefs.h. */
  3906. int
  3907. main ()
  3908. {
  3909. ;
  3910. return 0;
  3911. }
  3912. _ACEOF
  3913. if ac_fn_c_try_compile "$LINENO"; then :
  3914. ac_cv_prog_cc_g=yes
  3915. else
  3916. CFLAGS=""
  3917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3918. /* end confdefs.h. */
  3919. int
  3920. main ()
  3921. {
  3922. ;
  3923. return 0;
  3924. }
  3925. _ACEOF
  3926. if ac_fn_c_try_compile "$LINENO"; then :
  3927. else
  3928. ac_c_werror_flag=$ac_save_c_werror_flag
  3929. CFLAGS="-g"
  3930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3931. /* end confdefs.h. */
  3932. int
  3933. main ()
  3934. {
  3935. ;
  3936. return 0;
  3937. }
  3938. _ACEOF
  3939. if ac_fn_c_try_compile "$LINENO"; then :
  3940. ac_cv_prog_cc_g=yes
  3941. fi
  3942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3943. fi
  3944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3947. ac_c_werror_flag=$ac_save_c_werror_flag
  3948. fi
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3950. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3951. if test "$ac_test_CFLAGS" = set; then
  3952. CFLAGS=$ac_save_CFLAGS
  3953. elif test $ac_cv_prog_cc_g = yes; then
  3954. if test "$GCC" = yes; then
  3955. CFLAGS="-g -O2"
  3956. else
  3957. CFLAGS="-g"
  3958. fi
  3959. else
  3960. if test "$GCC" = yes; then
  3961. CFLAGS="-O2"
  3962. else
  3963. CFLAGS=
  3964. fi
  3965. fi
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3967. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3968. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. ac_cv_prog_cc_c89=no
  3972. ac_save_CC=$CC
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. #include <stdarg.h>
  3976. #include <stdio.h>
  3977. #include <sys/types.h>
  3978. #include <sys/stat.h>
  3979. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3980. struct buf { int x; };
  3981. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3982. static char *e (p, i)
  3983. char **p;
  3984. int i;
  3985. {
  3986. return p[i];
  3987. }
  3988. static char *f (char * (*g) (char **, int), char **p, ...)
  3989. {
  3990. char *s;
  3991. va_list v;
  3992. va_start (v,p);
  3993. s = g (p, va_arg (v,int));
  3994. va_end (v);
  3995. return s;
  3996. }
  3997. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3998. function prototypes and stuff, but not '\xHH' hex character constants.
  3999. These don't provoke an error unfortunately, instead are silently treated
  4000. as 'x'. The following induces an error, until -std is added to get
  4001. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4002. array size at least. It's necessary to write '\x00'==0 to get something
  4003. that's true only with -std. */
  4004. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4005. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4006. inside strings and character constants. */
  4007. #define FOO(x) 'x'
  4008. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4009. int test (int i, double x);
  4010. struct s1 {int (*f) (int a);};
  4011. struct s2 {int (*f) (double a);};
  4012. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4013. int argc;
  4014. char **argv;
  4015. int
  4016. main ()
  4017. {
  4018. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4019. ;
  4020. return 0;
  4021. }
  4022. _ACEOF
  4023. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4024. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4025. do
  4026. CC="$ac_save_CC $ac_arg"
  4027. if ac_fn_c_try_compile "$LINENO"; then :
  4028. ac_cv_prog_cc_c89=$ac_arg
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext
  4031. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4032. done
  4033. rm -f conftest.$ac_ext
  4034. CC=$ac_save_CC
  4035. fi
  4036. # AC_CACHE_VAL
  4037. case "x$ac_cv_prog_cc_c89" in
  4038. x)
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4040. $as_echo "none needed" >&6; } ;;
  4041. xno)
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4043. $as_echo "unsupported" >&6; } ;;
  4044. *)
  4045. CC="$CC $ac_cv_prog_cc_c89"
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4047. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4048. esac
  4049. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4050. fi
  4051. ac_ext=cpp
  4052. ac_cpp='$CXXCPP $CPPFLAGS'
  4053. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4054. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4055. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4056. depcc="$CC" am_compiler_list=
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4058. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4059. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4063. # We make a subdir and do the tests there. Otherwise we can end up
  4064. # making bogus files that we don't know about and never remove. For
  4065. # instance it was reported that on HP-UX the gcc test will end up
  4066. # making a dummy file named `D' -- because `-MD' means `put the output
  4067. # in D'.
  4068. mkdir conftest.dir
  4069. # Copy depcomp to subdir because otherwise we won't find it if we're
  4070. # using a relative directory.
  4071. cp "$am_depcomp" conftest.dir
  4072. cd conftest.dir
  4073. # We will build objects and dependencies in a subdirectory because
  4074. # it helps to detect inapplicable dependency modes. For instance
  4075. # both Tru64's cc and ICC support -MD to output dependencies as a
  4076. # side effect of compilation, but ICC will put the dependencies in
  4077. # the current directory while Tru64 will put them in the object
  4078. # directory.
  4079. mkdir sub
  4080. am_cv_CC_dependencies_compiler_type=none
  4081. if test "$am_compiler_list" = ""; then
  4082. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4083. fi
  4084. am__universal=false
  4085. case " $depcc " in #(
  4086. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4087. esac
  4088. for depmode in $am_compiler_list; do
  4089. # Setup a source with many dependencies, because some compilers
  4090. # like to wrap large dependency lists on column 80 (with \), and
  4091. # we should not choose a depcomp mode which is confused by this.
  4092. #
  4093. # We need to recreate these files for each test, as the compiler may
  4094. # overwrite some of them when testing with obscure command lines.
  4095. # This happens at least with the AIX C compiler.
  4096. : > sub/conftest.c
  4097. for i in 1 2 3 4 5 6; do
  4098. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4099. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4100. # Solaris 8's {/usr,}/bin/sh.
  4101. touch sub/conftst$i.h
  4102. done
  4103. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4104. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4105. # mode. It turns out that the SunPro C++ compiler does not properly
  4106. # handle `-M -o', and we need to detect this. Also, some Intel
  4107. # versions had trouble with output in subdirs
  4108. am__obj=sub/conftest.${OBJEXT-o}
  4109. am__minus_obj="-o $am__obj"
  4110. case $depmode in
  4111. gcc)
  4112. # This depmode causes a compiler race in universal mode.
  4113. test "$am__universal" = false || continue
  4114. ;;
  4115. nosideeffect)
  4116. # after this tag, mechanisms are not by side-effect, so they'll
  4117. # only be used when explicitly requested
  4118. if test "x$enable_dependency_tracking" = xyes; then
  4119. continue
  4120. else
  4121. break
  4122. fi
  4123. ;;
  4124. msvisualcpp | msvcmsys)
  4125. # This compiler won't grok `-c -o', but also, the minuso test has
  4126. # not run yet. These depmodes are late enough in the game, and
  4127. # so weak that their functioning should not be impacted.
  4128. am__obj=conftest.${OBJEXT-o}
  4129. am__minus_obj=
  4130. ;;
  4131. none) break ;;
  4132. esac
  4133. if depmode=$depmode \
  4134. source=sub/conftest.c object=$am__obj \
  4135. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4136. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4137. >/dev/null 2>conftest.err &&
  4138. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4139. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4140. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4141. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4142. # icc doesn't choke on unknown options, it will just issue warnings
  4143. # or remarks (even with -Werror). So we grep stderr for any message
  4144. # that says an option was ignored or not supported.
  4145. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4146. # icc: Command line warning: ignoring option '-M'; no argument required
  4147. # The diagnosis changed in icc 8.0:
  4148. # icc: Command line remark: option '-MP' not supported
  4149. if (grep 'ignoring option' conftest.err ||
  4150. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4151. am_cv_CC_dependencies_compiler_type=$depmode
  4152. break
  4153. fi
  4154. fi
  4155. done
  4156. cd ..
  4157. rm -rf conftest.dir
  4158. else
  4159. am_cv_CC_dependencies_compiler_type=none
  4160. fi
  4161. fi
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4163. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4164. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4165. if
  4166. test "x$enable_dependency_tracking" != xno \
  4167. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4168. am__fastdepCC_TRUE=
  4169. am__fastdepCC_FALSE='#'
  4170. else
  4171. am__fastdepCC_TRUE='#'
  4172. am__fastdepCC_FALSE=
  4173. fi
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4175. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4176. if test "${ac_cv_path_SED+set}" = set; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4180. for ac_i in 1 2 3 4 5 6 7; do
  4181. ac_script="$ac_script$as_nl$ac_script"
  4182. done
  4183. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4184. { ac_script=; unset ac_script;}
  4185. if test -z "$SED"; then
  4186. ac_path_SED_found=false
  4187. # Loop through the user's path and test for each of PROGNAME-LIST
  4188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4189. for as_dir in $PATH
  4190. do
  4191. IFS=$as_save_IFS
  4192. test -z "$as_dir" && as_dir=.
  4193. for ac_prog in sed gsed; do
  4194. for ac_exec_ext in '' $ac_executable_extensions; do
  4195. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4196. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4197. # Check for GNU ac_path_SED and select it if it is found.
  4198. # Check for GNU $ac_path_SED
  4199. case `"$ac_path_SED" --version 2>&1` in
  4200. *GNU*)
  4201. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4202. *)
  4203. ac_count=0
  4204. $as_echo_n 0123456789 >"conftest.in"
  4205. while :
  4206. do
  4207. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4208. mv "conftest.tmp" "conftest.in"
  4209. cp "conftest.in" "conftest.nl"
  4210. $as_echo '' >> "conftest.nl"
  4211. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4212. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4213. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4214. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4215. # Best one so far, save it but keep looking for a better one
  4216. ac_cv_path_SED="$ac_path_SED"
  4217. ac_path_SED_max=$ac_count
  4218. fi
  4219. # 10*(2^10) chars as input seems more than enough
  4220. test $ac_count -gt 10 && break
  4221. done
  4222. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4223. esac
  4224. $ac_path_SED_found && break 3
  4225. done
  4226. done
  4227. done
  4228. IFS=$as_save_IFS
  4229. if test -z "$ac_cv_path_SED"; then
  4230. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4231. fi
  4232. else
  4233. ac_cv_path_SED=$SED
  4234. fi
  4235. fi
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4237. $as_echo "$ac_cv_path_SED" >&6; }
  4238. SED="$ac_cv_path_SED"
  4239. rm -f conftest.sed
  4240. test -z "$SED" && SED=sed
  4241. Xsed="$SED -e 1s/^X//"
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4243. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4244. if test "${ac_cv_path_GREP+set}" = set; then :
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. if test -z "$GREP"; then
  4248. ac_path_GREP_found=false
  4249. # Loop through the user's path and test for each of PROGNAME-LIST
  4250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4251. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4252. do
  4253. IFS=$as_save_IFS
  4254. test -z "$as_dir" && as_dir=.
  4255. for ac_prog in grep ggrep; do
  4256. for ac_exec_ext in '' $ac_executable_extensions; do
  4257. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4258. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4259. # Check for GNU ac_path_GREP and select it if it is found.
  4260. # Check for GNU $ac_path_GREP
  4261. case `"$ac_path_GREP" --version 2>&1` in
  4262. *GNU*)
  4263. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4264. *)
  4265. ac_count=0
  4266. $as_echo_n 0123456789 >"conftest.in"
  4267. while :
  4268. do
  4269. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4270. mv "conftest.tmp" "conftest.in"
  4271. cp "conftest.in" "conftest.nl"
  4272. $as_echo 'GREP' >> "conftest.nl"
  4273. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4274. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4275. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4276. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4277. # Best one so far, save it but keep looking for a better one
  4278. ac_cv_path_GREP="$ac_path_GREP"
  4279. ac_path_GREP_max=$ac_count
  4280. fi
  4281. # 10*(2^10) chars as input seems more than enough
  4282. test $ac_count -gt 10 && break
  4283. done
  4284. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4285. esac
  4286. $ac_path_GREP_found && break 3
  4287. done
  4288. done
  4289. done
  4290. IFS=$as_save_IFS
  4291. if test -z "$ac_cv_path_GREP"; then
  4292. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4293. fi
  4294. else
  4295. ac_cv_path_GREP=$GREP
  4296. fi
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4299. $as_echo "$ac_cv_path_GREP" >&6; }
  4300. GREP="$ac_cv_path_GREP"
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4302. $as_echo_n "checking for egrep... " >&6; }
  4303. if test "${ac_cv_path_EGREP+set}" = set; then :
  4304. $as_echo_n "(cached) " >&6
  4305. else
  4306. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4307. then ac_cv_path_EGREP="$GREP -E"
  4308. else
  4309. if test -z "$EGREP"; then
  4310. ac_path_EGREP_found=false
  4311. # Loop through the user's path and test for each of PROGNAME-LIST
  4312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4313. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_prog in egrep; do
  4318. for ac_exec_ext in '' $ac_executable_extensions; do
  4319. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4320. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4321. # Check for GNU ac_path_EGREP and select it if it is found.
  4322. # Check for GNU $ac_path_EGREP
  4323. case `"$ac_path_EGREP" --version 2>&1` in
  4324. *GNU*)
  4325. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4326. *)
  4327. ac_count=0
  4328. $as_echo_n 0123456789 >"conftest.in"
  4329. while :
  4330. do
  4331. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4332. mv "conftest.tmp" "conftest.in"
  4333. cp "conftest.in" "conftest.nl"
  4334. $as_echo 'EGREP' >> "conftest.nl"
  4335. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4336. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4337. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4338. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4339. # Best one so far, save it but keep looking for a better one
  4340. ac_cv_path_EGREP="$ac_path_EGREP"
  4341. ac_path_EGREP_max=$ac_count
  4342. fi
  4343. # 10*(2^10) chars as input seems more than enough
  4344. test $ac_count -gt 10 && break
  4345. done
  4346. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4347. esac
  4348. $ac_path_EGREP_found && break 3
  4349. done
  4350. done
  4351. done
  4352. IFS=$as_save_IFS
  4353. if test -z "$ac_cv_path_EGREP"; then
  4354. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4355. fi
  4356. else
  4357. ac_cv_path_EGREP=$EGREP
  4358. fi
  4359. fi
  4360. fi
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4362. $as_echo "$ac_cv_path_EGREP" >&6; }
  4363. EGREP="$ac_cv_path_EGREP"
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4365. $as_echo_n "checking for fgrep... " >&6; }
  4366. if test "${ac_cv_path_FGREP+set}" = set; then :
  4367. $as_echo_n "(cached) " >&6
  4368. else
  4369. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4370. then ac_cv_path_FGREP="$GREP -F"
  4371. else
  4372. if test -z "$FGREP"; then
  4373. ac_path_FGREP_found=false
  4374. # Loop through the user's path and test for each of PROGNAME-LIST
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4377. do
  4378. IFS=$as_save_IFS
  4379. test -z "$as_dir" && as_dir=.
  4380. for ac_prog in fgrep; do
  4381. for ac_exec_ext in '' $ac_executable_extensions; do
  4382. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4383. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4384. # Check for GNU ac_path_FGREP and select it if it is found.
  4385. # Check for GNU $ac_path_FGREP
  4386. case `"$ac_path_FGREP" --version 2>&1` in
  4387. *GNU*)
  4388. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4389. *)
  4390. ac_count=0
  4391. $as_echo_n 0123456789 >"conftest.in"
  4392. while :
  4393. do
  4394. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4395. mv "conftest.tmp" "conftest.in"
  4396. cp "conftest.in" "conftest.nl"
  4397. $as_echo 'FGREP' >> "conftest.nl"
  4398. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4399. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4400. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4401. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4402. # Best one so far, save it but keep looking for a better one
  4403. ac_cv_path_FGREP="$ac_path_FGREP"
  4404. ac_path_FGREP_max=$ac_count
  4405. fi
  4406. # 10*(2^10) chars as input seems more than enough
  4407. test $ac_count -gt 10 && break
  4408. done
  4409. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4410. esac
  4411. $ac_path_FGREP_found && break 3
  4412. done
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. if test -z "$ac_cv_path_FGREP"; then
  4417. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4418. fi
  4419. else
  4420. ac_cv_path_FGREP=$FGREP
  4421. fi
  4422. fi
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4425. $as_echo "$ac_cv_path_FGREP" >&6; }
  4426. FGREP="$ac_cv_path_FGREP"
  4427. test -z "$GREP" && GREP=grep
  4428. # Check whether --with-gnu-ld was given.
  4429. if test "${with_gnu_ld+set}" = set; then :
  4430. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4431. else
  4432. with_gnu_ld=no
  4433. fi
  4434. ac_prog=ld
  4435. if test "$GCC" = yes; then
  4436. # Check if gcc -print-prog-name=ld gives a path.
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4438. $as_echo_n "checking for ld used by $CC... " >&6; }
  4439. case $host in
  4440. *-*-mingw*)
  4441. # gcc leaves a trailing carriage return which upsets mingw
  4442. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4443. *)
  4444. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4445. esac
  4446. case $ac_prog in
  4447. # Accept absolute paths.
  4448. [\\/]* | ?:[\\/]*)
  4449. re_direlt='/[^/][^/]*/\.\./'
  4450. # Canonicalize the pathname of ld
  4451. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4452. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4453. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4454. done
  4455. test -z "$LD" && LD="$ac_prog"
  4456. ;;
  4457. "")
  4458. # If it fails, then pretend we aren't using GCC.
  4459. ac_prog=ld
  4460. ;;
  4461. *)
  4462. # If it is relative, then search for the first ld in PATH.
  4463. with_gnu_ld=unknown
  4464. ;;
  4465. esac
  4466. elif test "$with_gnu_ld" = yes; then
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4468. $as_echo_n "checking for GNU ld... " >&6; }
  4469. else
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4471. $as_echo_n "checking for non-GNU ld... " >&6; }
  4472. fi
  4473. if test "${lt_cv_path_LD+set}" = set; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. if test -z "$LD"; then
  4477. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4478. for ac_dir in $PATH; do
  4479. IFS="$lt_save_ifs"
  4480. test -z "$ac_dir" && ac_dir=.
  4481. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4482. lt_cv_path_LD="$ac_dir/$ac_prog"
  4483. # Check to see if the program is GNU ld. I'd rather use --version,
  4484. # but apparently some variants of GNU ld only accept -v.
  4485. # Break only if it was the GNU/non-GNU ld that we prefer.
  4486. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4487. *GNU* | *'with BFD'*)
  4488. test "$with_gnu_ld" != no && break
  4489. ;;
  4490. *)
  4491. test "$with_gnu_ld" != yes && break
  4492. ;;
  4493. esac
  4494. fi
  4495. done
  4496. IFS="$lt_save_ifs"
  4497. else
  4498. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4499. fi
  4500. fi
  4501. LD="$lt_cv_path_LD"
  4502. if test -n "$LD"; then
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4504. $as_echo "$LD" >&6; }
  4505. else
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4507. $as_echo "no" >&6; }
  4508. fi
  4509. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4511. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4512. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4516. case `$LD -v 2>&1 </dev/null` in
  4517. *GNU* | *'with BFD'*)
  4518. lt_cv_prog_gnu_ld=yes
  4519. ;;
  4520. *)
  4521. lt_cv_prog_gnu_ld=no
  4522. ;;
  4523. esac
  4524. fi
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4526. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4527. with_gnu_ld=$lt_cv_prog_gnu_ld
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4529. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4530. if test "${lt_cv_path_NM+set}" = set; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. if test -n "$NM"; then
  4534. # Let the user override the test.
  4535. lt_cv_path_NM="$NM"
  4536. else
  4537. lt_nm_to_check="${ac_tool_prefix}nm"
  4538. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4539. lt_nm_to_check="$lt_nm_to_check nm"
  4540. fi
  4541. for lt_tmp_nm in $lt_nm_to_check; do
  4542. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4543. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4544. IFS="$lt_save_ifs"
  4545. test -z "$ac_dir" && ac_dir=.
  4546. tmp_nm="$ac_dir/$lt_tmp_nm"
  4547. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4548. # Check to see if the nm accepts a BSD-compat flag.
  4549. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4550. # nm: unknown option "B" ignored
  4551. # Tru64's nm complains that /dev/null is an invalid object file
  4552. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4553. */dev/null* | *'Invalid file or object type'*)
  4554. lt_cv_path_NM="$tmp_nm -B"
  4555. break
  4556. ;;
  4557. *)
  4558. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4559. */dev/null*)
  4560. lt_cv_path_NM="$tmp_nm -p"
  4561. break
  4562. ;;
  4563. *)
  4564. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4565. continue # so that we can try to find one that supports BSD flags
  4566. ;;
  4567. esac
  4568. ;;
  4569. esac
  4570. fi
  4571. done
  4572. IFS="$lt_save_ifs"
  4573. done
  4574. : ${lt_cv_path_NM=no}
  4575. fi
  4576. fi
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4578. $as_echo "$lt_cv_path_NM" >&6; }
  4579. if test "$lt_cv_path_NM" != "no"; then
  4580. NM="$lt_cv_path_NM"
  4581. else
  4582. # Didn't find any BSD compatible name lister, look for dumpbin.
  4583. if test -n "$ac_tool_prefix"; then
  4584. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4585. do
  4586. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4587. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4589. $as_echo_n "checking for $ac_word... " >&6; }
  4590. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. if test -n "$DUMPBIN"; then
  4594. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4595. else
  4596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597. for as_dir in $PATH
  4598. do
  4599. IFS=$as_save_IFS
  4600. test -z "$as_dir" && as_dir=.
  4601. for ac_exec_ext in '' $ac_executable_extensions; do
  4602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4603. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4605. break 2
  4606. fi
  4607. done
  4608. done
  4609. IFS=$as_save_IFS
  4610. fi
  4611. fi
  4612. DUMPBIN=$ac_cv_prog_DUMPBIN
  4613. if test -n "$DUMPBIN"; then
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4615. $as_echo "$DUMPBIN" >&6; }
  4616. else
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4618. $as_echo "no" >&6; }
  4619. fi
  4620. test -n "$DUMPBIN" && break
  4621. done
  4622. fi
  4623. if test -z "$DUMPBIN"; then
  4624. ac_ct_DUMPBIN=$DUMPBIN
  4625. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4626. do
  4627. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4628. set dummy $ac_prog; ac_word=$2
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4630. $as_echo_n "checking for $ac_word... " >&6; }
  4631. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. if test -n "$ac_ct_DUMPBIN"; then
  4635. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4636. else
  4637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4638. for as_dir in $PATH
  4639. do
  4640. IFS=$as_save_IFS
  4641. test -z "$as_dir" && as_dir=.
  4642. for ac_exec_ext in '' $ac_executable_extensions; do
  4643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4644. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4646. break 2
  4647. fi
  4648. done
  4649. done
  4650. IFS=$as_save_IFS
  4651. fi
  4652. fi
  4653. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4654. if test -n "$ac_ct_DUMPBIN"; then
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4656. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4657. else
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4659. $as_echo "no" >&6; }
  4660. fi
  4661. test -n "$ac_ct_DUMPBIN" && break
  4662. done
  4663. if test "x$ac_ct_DUMPBIN" = x; then
  4664. DUMPBIN=":"
  4665. else
  4666. case $cross_compiling:$ac_tool_warned in
  4667. yes:)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4670. ac_tool_warned=yes ;;
  4671. esac
  4672. DUMPBIN=$ac_ct_DUMPBIN
  4673. fi
  4674. fi
  4675. if test "$DUMPBIN" != ":"; then
  4676. NM="$DUMPBIN"
  4677. fi
  4678. fi
  4679. test -z "$NM" && NM=nm
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4681. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4682. if test "${lt_cv_nm_interface+set}" = set; then :
  4683. $as_echo_n "(cached) " >&6
  4684. else
  4685. lt_cv_nm_interface="BSD nm"
  4686. echo "int some_variable = 0;" > conftest.$ac_ext
  4687. (eval echo "\"\$as_me:5202: $ac_compile\"" >&5)
  4688. (eval "$ac_compile" 2>conftest.err)
  4689. cat conftest.err >&5
  4690. (eval echo "\"\$as_me:5205: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4691. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4692. cat conftest.err >&5
  4693. (eval echo "\"\$as_me:5208: output\"" >&5)
  4694. cat conftest.out >&5
  4695. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4696. lt_cv_nm_interface="MS dumpbin"
  4697. fi
  4698. rm -f conftest*
  4699. fi
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4701. $as_echo "$lt_cv_nm_interface" >&6; }
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4703. $as_echo_n "checking whether ln -s works... " >&6; }
  4704. LN_S=$as_ln_s
  4705. if test "$LN_S" = "ln -s"; then
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4707. $as_echo "yes" >&6; }
  4708. else
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4710. $as_echo "no, using $LN_S" >&6; }
  4711. fi
  4712. # find the maximum length of command line arguments
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4714. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4715. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4716. $as_echo_n "(cached) " >&6
  4717. else
  4718. i=0
  4719. teststring="ABCD"
  4720. case $build_os in
  4721. msdosdjgpp*)
  4722. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4723. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4724. # during glob expansion). Even if it were fixed, the result of this
  4725. # check would be larger than it should be.
  4726. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4727. ;;
  4728. gnu*)
  4729. # Under GNU Hurd, this test is not required because there is
  4730. # no limit to the length of command line arguments.
  4731. # Libtool will interpret -1 as no limit whatsoever
  4732. lt_cv_sys_max_cmd_len=-1;
  4733. ;;
  4734. cygwin* | mingw* | cegcc*)
  4735. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4736. # about 5 minutes as the teststring grows exponentially.
  4737. # Worse, since 9x/ME are not pre-emptively multitasking,
  4738. # you end up with a "frozen" computer, even though with patience
  4739. # the test eventually succeeds (with a max line length of 256k).
  4740. # Instead, let's just punt: use the minimum linelength reported by
  4741. # all of the supported platforms: 8192 (on NT/2K/XP).
  4742. lt_cv_sys_max_cmd_len=8192;
  4743. ;;
  4744. amigaos*)
  4745. # On AmigaOS with pdksh, this test takes hours, literally.
  4746. # So we just punt and use a minimum line length of 8192.
  4747. lt_cv_sys_max_cmd_len=8192;
  4748. ;;
  4749. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4750. # This has been around since 386BSD, at least. Likely further.
  4751. if test -x /sbin/sysctl; then
  4752. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4753. elif test -x /usr/sbin/sysctl; then
  4754. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4755. else
  4756. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4757. fi
  4758. # And add a safety zone
  4759. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4760. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4761. ;;
  4762. interix*)
  4763. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4764. lt_cv_sys_max_cmd_len=196608
  4765. ;;
  4766. osf*)
  4767. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4768. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4769. # nice to cause kernel panics so lets avoid the loop below.
  4770. # First set a reasonable default.
  4771. lt_cv_sys_max_cmd_len=16384
  4772. #
  4773. if test -x /sbin/sysconfig; then
  4774. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4775. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4776. esac
  4777. fi
  4778. ;;
  4779. sco3.2v5*)
  4780. lt_cv_sys_max_cmd_len=102400
  4781. ;;
  4782. sysv5* | sco5v6* | sysv4.2uw2*)
  4783. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4784. if test -n "$kargmax"; then
  4785. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4786. else
  4787. lt_cv_sys_max_cmd_len=32768
  4788. fi
  4789. ;;
  4790. *)
  4791. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4792. if test -n "$lt_cv_sys_max_cmd_len"; then
  4793. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4794. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4795. else
  4796. # Make teststring a little bigger before we do anything with it.
  4797. # a 1K string should be a reasonable start.
  4798. for i in 1 2 3 4 5 6 7 8 ; do
  4799. teststring=$teststring$teststring
  4800. done
  4801. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4802. # If test is not a shell built-in, we'll probably end up computing a
  4803. # maximum length that is only half of the actual maximum length, but
  4804. # we can't tell.
  4805. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4806. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4807. test $i != 17 # 1/2 MB should be enough
  4808. do
  4809. i=`expr $i + 1`
  4810. teststring=$teststring$teststring
  4811. done
  4812. # Only check the string length outside the loop.
  4813. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4814. teststring=
  4815. # Add a significant safety factor because C++ compilers can tack on
  4816. # massive amounts of additional arguments before passing them to the
  4817. # linker. It appears as though 1/2 is a usable value.
  4818. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4819. fi
  4820. ;;
  4821. esac
  4822. fi
  4823. if test -n $lt_cv_sys_max_cmd_len ; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4825. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4828. $as_echo "none" >&6; }
  4829. fi
  4830. max_cmd_len=$lt_cv_sys_max_cmd_len
  4831. : ${CP="cp -f"}
  4832. : ${MV="mv -f"}
  4833. : ${RM="rm -f"}
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4835. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4836. # Try some XSI features
  4837. xsi_shell=no
  4838. ( _lt_dummy="a/b/c"
  4839. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4840. = c,a/b,, \
  4841. && eval 'test $(( 1 + 1 )) -eq 2 \
  4842. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4843. && xsi_shell=yes
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4845. $as_echo "$xsi_shell" >&6; }
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4847. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4848. lt_shell_append=no
  4849. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4850. >/dev/null 2>&1 \
  4851. && lt_shell_append=yes
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4853. $as_echo "$lt_shell_append" >&6; }
  4854. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4855. lt_unset=unset
  4856. else
  4857. lt_unset=false
  4858. fi
  4859. # test EBCDIC or ASCII
  4860. case `echo X|tr X '\101'` in
  4861. A) # ASCII based system
  4862. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4863. lt_SP2NL='tr \040 \012'
  4864. lt_NL2SP='tr \015\012 \040\040'
  4865. ;;
  4866. *) # EBCDIC based system
  4867. lt_SP2NL='tr \100 \n'
  4868. lt_NL2SP='tr \r\n \100\100'
  4869. ;;
  4870. esac
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4872. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4873. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. lt_cv_ld_reload_flag='-r'
  4877. fi
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4879. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4880. reload_flag=$lt_cv_ld_reload_flag
  4881. case $reload_flag in
  4882. "" | " "*) ;;
  4883. *) reload_flag=" $reload_flag" ;;
  4884. esac
  4885. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4886. case $host_os in
  4887. darwin*)
  4888. if test "$GCC" = yes; then
  4889. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4890. else
  4891. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4892. fi
  4893. ;;
  4894. esac
  4895. if test -n "$ac_tool_prefix"; then
  4896. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4897. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4899. $as_echo_n "checking for $ac_word... " >&6; }
  4900. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. if test -n "$OBJDUMP"; then
  4904. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4905. else
  4906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4907. for as_dir in $PATH
  4908. do
  4909. IFS=$as_save_IFS
  4910. test -z "$as_dir" && as_dir=.
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4913. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4915. break 2
  4916. fi
  4917. done
  4918. done
  4919. IFS=$as_save_IFS
  4920. fi
  4921. fi
  4922. OBJDUMP=$ac_cv_prog_OBJDUMP
  4923. if test -n "$OBJDUMP"; then
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4925. $as_echo "$OBJDUMP" >&6; }
  4926. else
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4928. $as_echo "no" >&6; }
  4929. fi
  4930. fi
  4931. if test -z "$ac_cv_prog_OBJDUMP"; then
  4932. ac_ct_OBJDUMP=$OBJDUMP
  4933. # Extract the first word of "objdump", so it can be a program name with args.
  4934. set dummy objdump; ac_word=$2
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4936. $as_echo_n "checking for $ac_word... " >&6; }
  4937. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4938. $as_echo_n "(cached) " >&6
  4939. else
  4940. if test -n "$ac_ct_OBJDUMP"; then
  4941. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4942. else
  4943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4944. for as_dir in $PATH
  4945. do
  4946. IFS=$as_save_IFS
  4947. test -z "$as_dir" && as_dir=.
  4948. for ac_exec_ext in '' $ac_executable_extensions; do
  4949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4950. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4952. break 2
  4953. fi
  4954. done
  4955. done
  4956. IFS=$as_save_IFS
  4957. fi
  4958. fi
  4959. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4960. if test -n "$ac_ct_OBJDUMP"; then
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4962. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4963. else
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4965. $as_echo "no" >&6; }
  4966. fi
  4967. if test "x$ac_ct_OBJDUMP" = x; then
  4968. OBJDUMP="false"
  4969. else
  4970. case $cross_compiling:$ac_tool_warned in
  4971. yes:)
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4974. ac_tool_warned=yes ;;
  4975. esac
  4976. OBJDUMP=$ac_ct_OBJDUMP
  4977. fi
  4978. else
  4979. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4980. fi
  4981. test -z "$OBJDUMP" && OBJDUMP=objdump
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4983. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4984. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4988. lt_cv_file_magic_test_file=
  4989. lt_cv_deplibs_check_method='unknown'
  4990. # Need to set the preceding variable on all platforms that support
  4991. # interlibrary dependencies.
  4992. # 'none' -- dependencies not supported.
  4993. # `unknown' -- same as none, but documents that we really don't know.
  4994. # 'pass_all' -- all dependencies passed with no checks.
  4995. # 'test_compile' -- check by making test program.
  4996. # 'file_magic [[regex]]' -- check by looking for files in library path
  4997. # which responds to the $file_magic_cmd with a given extended regex.
  4998. # If you have `file' or equivalent on your system and you're not sure
  4999. # whether `pass_all' will *always* work, you probably want this one.
  5000. case $host_os in
  5001. aix[4-9]*)
  5002. lt_cv_deplibs_check_method=pass_all
  5003. ;;
  5004. beos*)
  5005. lt_cv_deplibs_check_method=pass_all
  5006. ;;
  5007. bsdi[45]*)
  5008. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5009. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5010. lt_cv_file_magic_test_file=/shlib/libc.so
  5011. ;;
  5012. cygwin*)
  5013. # func_win32_libid is a shell function defined in ltmain.sh
  5014. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5015. lt_cv_file_magic_cmd='func_win32_libid'
  5016. ;;
  5017. mingw* | pw32*)
  5018. # Base MSYS/MinGW do not provide the 'file' command needed by
  5019. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5020. # unless we find 'file', for example because we are cross-compiling.
  5021. if ( file / ) >/dev/null 2>&1; then
  5022. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5023. lt_cv_file_magic_cmd='func_win32_libid'
  5024. else
  5025. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5026. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5027. fi
  5028. ;;
  5029. cegcc)
  5030. # use the weaker test based on 'objdump'. See mingw*.
  5031. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5032. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5033. ;;
  5034. darwin* | rhapsody*)
  5035. lt_cv_deplibs_check_method=pass_all
  5036. ;;
  5037. freebsd* | dragonfly*)
  5038. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5039. case $host_cpu in
  5040. i*86 )
  5041. # Not sure whether the presence of OpenBSD here was a mistake.
  5042. # Let's accept both of them until this is cleared up.
  5043. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5044. lt_cv_file_magic_cmd=/usr/bin/file
  5045. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5046. ;;
  5047. esac
  5048. else
  5049. lt_cv_deplibs_check_method=pass_all
  5050. fi
  5051. ;;
  5052. gnu*)
  5053. lt_cv_deplibs_check_method=pass_all
  5054. ;;
  5055. hpux10.20* | hpux11*)
  5056. lt_cv_file_magic_cmd=/usr/bin/file
  5057. case $host_cpu in
  5058. ia64*)
  5059. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5060. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5061. ;;
  5062. hppa*64*)
  5063. 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]'
  5064. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5065. ;;
  5066. *)
  5067. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5068. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5069. ;;
  5070. esac
  5071. ;;
  5072. interix[3-9]*)
  5073. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5074. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5075. ;;
  5076. irix5* | irix6* | nonstopux*)
  5077. case $LD in
  5078. *-32|*"-32 ") libmagic=32-bit;;
  5079. *-n32|*"-n32 ") libmagic=N32;;
  5080. *-64|*"-64 ") libmagic=64-bit;;
  5081. *) libmagic=never-match;;
  5082. esac
  5083. lt_cv_deplibs_check_method=pass_all
  5084. ;;
  5085. # This must be Linux ELF.
  5086. linux* | k*bsd*-gnu)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. netbsd* | netbsdelf*-gnu)
  5090. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5091. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5092. else
  5093. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5094. fi
  5095. ;;
  5096. newos6*)
  5097. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5098. lt_cv_file_magic_cmd=/usr/bin/file
  5099. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5100. ;;
  5101. *nto* | *qnx*)
  5102. lt_cv_deplibs_check_method=pass_all
  5103. ;;
  5104. openbsd*)
  5105. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5106. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5107. else
  5108. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5109. fi
  5110. ;;
  5111. osf3* | osf4* | osf5*)
  5112. lt_cv_deplibs_check_method=pass_all
  5113. ;;
  5114. rdos*)
  5115. lt_cv_deplibs_check_method=pass_all
  5116. ;;
  5117. solaris*)
  5118. lt_cv_deplibs_check_method=pass_all
  5119. ;;
  5120. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5121. lt_cv_deplibs_check_method=pass_all
  5122. ;;
  5123. sysv4 | sysv4.3*)
  5124. case $host_vendor in
  5125. motorola)
  5126. 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]'
  5127. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5128. ;;
  5129. ncr)
  5130. lt_cv_deplibs_check_method=pass_all
  5131. ;;
  5132. sequent)
  5133. lt_cv_file_magic_cmd='/bin/file'
  5134. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5135. ;;
  5136. sni)
  5137. lt_cv_file_magic_cmd='/bin/file'
  5138. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5139. lt_cv_file_magic_test_file=/lib/libc.so
  5140. ;;
  5141. siemens)
  5142. lt_cv_deplibs_check_method=pass_all
  5143. ;;
  5144. pc)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. esac
  5148. ;;
  5149. tpf*)
  5150. lt_cv_deplibs_check_method=pass_all
  5151. ;;
  5152. esac
  5153. fi
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5155. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5156. file_magic_cmd=$lt_cv_file_magic_cmd
  5157. deplibs_check_method=$lt_cv_deplibs_check_method
  5158. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5159. if test -n "$ac_tool_prefix"; then
  5160. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5161. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5163. $as_echo_n "checking for $ac_word... " >&6; }
  5164. if test "${ac_cv_prog_AR+set}" = set; then :
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if test -n "$AR"; then
  5168. ac_cv_prog_AR="$AR" # Let the user override the test.
  5169. else
  5170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5171. for as_dir in $PATH
  5172. do
  5173. IFS=$as_save_IFS
  5174. test -z "$as_dir" && as_dir=.
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5177. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5179. break 2
  5180. fi
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. fi
  5185. fi
  5186. AR=$ac_cv_prog_AR
  5187. if test -n "$AR"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5189. $as_echo "$AR" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5192. $as_echo "no" >&6; }
  5193. fi
  5194. fi
  5195. if test -z "$ac_cv_prog_AR"; then
  5196. ac_ct_AR=$AR
  5197. # Extract the first word of "ar", so it can be a program name with args.
  5198. set dummy ar; ac_word=$2
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5200. $as_echo_n "checking for $ac_word... " >&6; }
  5201. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. if test -n "$ac_ct_AR"; then
  5205. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5206. else
  5207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5208. for as_dir in $PATH
  5209. do
  5210. IFS=$as_save_IFS
  5211. test -z "$as_dir" && as_dir=.
  5212. for ac_exec_ext in '' $ac_executable_extensions; do
  5213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5214. ac_cv_prog_ac_ct_AR="ar"
  5215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5216. break 2
  5217. fi
  5218. done
  5219. done
  5220. IFS=$as_save_IFS
  5221. fi
  5222. fi
  5223. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5224. if test -n "$ac_ct_AR"; then
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5226. $as_echo "$ac_ct_AR" >&6; }
  5227. else
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5229. $as_echo "no" >&6; }
  5230. fi
  5231. if test "x$ac_ct_AR" = x; then
  5232. AR="false"
  5233. else
  5234. case $cross_compiling:$ac_tool_warned in
  5235. yes:)
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5237. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5238. ac_tool_warned=yes ;;
  5239. esac
  5240. AR=$ac_ct_AR
  5241. fi
  5242. else
  5243. AR="$ac_cv_prog_AR"
  5244. fi
  5245. test -z "$AR" && AR=ar
  5246. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5247. if test -n "$ac_tool_prefix"; then
  5248. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5249. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5251. $as_echo_n "checking for $ac_word... " >&6; }
  5252. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5253. $as_echo_n "(cached) " >&6
  5254. else
  5255. if test -n "$STRIP"; then
  5256. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5257. else
  5258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5259. for as_dir in $PATH
  5260. do
  5261. IFS=$as_save_IFS
  5262. test -z "$as_dir" && as_dir=.
  5263. for ac_exec_ext in '' $ac_executable_extensions; do
  5264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5265. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5267. break 2
  5268. fi
  5269. done
  5270. done
  5271. IFS=$as_save_IFS
  5272. fi
  5273. fi
  5274. STRIP=$ac_cv_prog_STRIP
  5275. if test -n "$STRIP"; then
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5277. $as_echo "$STRIP" >&6; }
  5278. else
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5280. $as_echo "no" >&6; }
  5281. fi
  5282. fi
  5283. if test -z "$ac_cv_prog_STRIP"; then
  5284. ac_ct_STRIP=$STRIP
  5285. # Extract the first word of "strip", so it can be a program name with args.
  5286. set dummy strip; ac_word=$2
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5288. $as_echo_n "checking for $ac_word... " >&6; }
  5289. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5290. $as_echo_n "(cached) " >&6
  5291. else
  5292. if test -n "$ac_ct_STRIP"; then
  5293. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5294. else
  5295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5296. for as_dir in $PATH
  5297. do
  5298. IFS=$as_save_IFS
  5299. test -z "$as_dir" && as_dir=.
  5300. for ac_exec_ext in '' $ac_executable_extensions; do
  5301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5302. ac_cv_prog_ac_ct_STRIP="strip"
  5303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5304. break 2
  5305. fi
  5306. done
  5307. done
  5308. IFS=$as_save_IFS
  5309. fi
  5310. fi
  5311. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5312. if test -n "$ac_ct_STRIP"; then
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5314. $as_echo "$ac_ct_STRIP" >&6; }
  5315. else
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5317. $as_echo "no" >&6; }
  5318. fi
  5319. if test "x$ac_ct_STRIP" = x; then
  5320. STRIP=":"
  5321. else
  5322. case $cross_compiling:$ac_tool_warned in
  5323. yes:)
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5326. ac_tool_warned=yes ;;
  5327. esac
  5328. STRIP=$ac_ct_STRIP
  5329. fi
  5330. else
  5331. STRIP="$ac_cv_prog_STRIP"
  5332. fi
  5333. test -z "$STRIP" && STRIP=:
  5334. if test -n "$ac_tool_prefix"; then
  5335. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5336. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5338. $as_echo_n "checking for $ac_word... " >&6; }
  5339. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. if test -n "$RANLIB"; then
  5343. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5344. else
  5345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5346. for as_dir in $PATH
  5347. do
  5348. IFS=$as_save_IFS
  5349. test -z "$as_dir" && as_dir=.
  5350. for ac_exec_ext in '' $ac_executable_extensions; do
  5351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5352. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5354. break 2
  5355. fi
  5356. done
  5357. done
  5358. IFS=$as_save_IFS
  5359. fi
  5360. fi
  5361. RANLIB=$ac_cv_prog_RANLIB
  5362. if test -n "$RANLIB"; then
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5364. $as_echo "$RANLIB" >&6; }
  5365. else
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5367. $as_echo "no" >&6; }
  5368. fi
  5369. fi
  5370. if test -z "$ac_cv_prog_RANLIB"; then
  5371. ac_ct_RANLIB=$RANLIB
  5372. # Extract the first word of "ranlib", so it can be a program name with args.
  5373. set dummy ranlib; ac_word=$2
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5375. $as_echo_n "checking for $ac_word... " >&6; }
  5376. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if test -n "$ac_ct_RANLIB"; then
  5380. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5381. else
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5389. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. fi
  5397. fi
  5398. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5399. if test -n "$ac_ct_RANLIB"; then
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5401. $as_echo "$ac_ct_RANLIB" >&6; }
  5402. else
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5404. $as_echo "no" >&6; }
  5405. fi
  5406. if test "x$ac_ct_RANLIB" = x; then
  5407. RANLIB=":"
  5408. else
  5409. case $cross_compiling:$ac_tool_warned in
  5410. yes:)
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5413. ac_tool_warned=yes ;;
  5414. esac
  5415. RANLIB=$ac_ct_RANLIB
  5416. fi
  5417. else
  5418. RANLIB="$ac_cv_prog_RANLIB"
  5419. fi
  5420. test -z "$RANLIB" && RANLIB=:
  5421. # Determine commands to create old-style static archives.
  5422. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5423. old_postinstall_cmds='chmod 644 $oldlib'
  5424. old_postuninstall_cmds=
  5425. if test -n "$RANLIB"; then
  5426. case $host_os in
  5427. openbsd*)
  5428. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5429. ;;
  5430. *)
  5431. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5432. ;;
  5433. esac
  5434. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5435. fi
  5436. # If no C compiler was specified, use CC.
  5437. LTCC=${LTCC-"$CC"}
  5438. # If no C compiler flags were specified, use CFLAGS.
  5439. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5440. # Allow CC to be a program name with arguments.
  5441. compiler=$CC
  5442. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5444. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5445. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5446. $as_echo_n "(cached) " >&6
  5447. else
  5448. # These are sane defaults that work on at least a few old systems.
  5449. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5450. # Character class describing NM global symbol codes.
  5451. symcode='[BCDEGRST]'
  5452. # Regexp to match symbols that can be accessed directly from C.
  5453. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5454. # Define system-specific variables.
  5455. case $host_os in
  5456. aix*)
  5457. symcode='[BCDT]'
  5458. ;;
  5459. cygwin* | mingw* | pw32* | cegcc*)
  5460. symcode='[ABCDGISTW]'
  5461. ;;
  5462. hpux*)
  5463. if test "$host_cpu" = ia64; then
  5464. symcode='[ABCDEGRST]'
  5465. fi
  5466. ;;
  5467. irix* | nonstopux*)
  5468. symcode='[BCDEGRST]'
  5469. ;;
  5470. osf*)
  5471. symcode='[BCDEGQRST]'
  5472. ;;
  5473. solaris*)
  5474. symcode='[BDRT]'
  5475. ;;
  5476. sco3.2v5*)
  5477. symcode='[DT]'
  5478. ;;
  5479. sysv4.2uw2*)
  5480. symcode='[DT]'
  5481. ;;
  5482. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5483. symcode='[ABDT]'
  5484. ;;
  5485. sysv4)
  5486. symcode='[DFNSTU]'
  5487. ;;
  5488. esac
  5489. # If we're using GNU nm, then use its standard symbol codes.
  5490. case `$NM -V 2>&1` in
  5491. *GNU* | *'with BFD'*)
  5492. symcode='[ABCDGIRSTW]' ;;
  5493. esac
  5494. # Transform an extracted symbol line into a proper C declaration.
  5495. # Some systems (esp. on ia64) link data and code symbols differently,
  5496. # so use this general approach.
  5497. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5498. # Transform an extracted symbol line into symbol name and symbol address
  5499. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5500. 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'"
  5501. # Handle CRLF in mingw tool chain
  5502. opt_cr=
  5503. case $build_os in
  5504. mingw*)
  5505. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5506. ;;
  5507. esac
  5508. # Try without a prefix underscore, then with it.
  5509. for ac_symprfx in "" "_"; do
  5510. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5511. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5512. # Write the raw and C identifiers.
  5513. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5514. # Fake it for dumpbin and say T for any non-static function
  5515. # and D for any global variable.
  5516. # Also find C++ and __fastcall symbols from MSVC++,
  5517. # which start with @ or ?.
  5518. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5519. " {last_section=section; section=\$ 3};"\
  5520. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5521. " \$ 0!~/External *\|/{next};"\
  5522. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5523. " {if(hide[section]) next};"\
  5524. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5525. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5526. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5527. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5528. " ' prfx=^$ac_symprfx"
  5529. else
  5530. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5531. fi
  5532. # Check to see that the pipe works correctly.
  5533. pipe_works=no
  5534. rm -f conftest*
  5535. cat > conftest.$ac_ext <<_LT_EOF
  5536. #ifdef __cplusplus
  5537. extern "C" {
  5538. #endif
  5539. char nm_test_var;
  5540. void nm_test_func(void);
  5541. void nm_test_func(void){}
  5542. #ifdef __cplusplus
  5543. }
  5544. #endif
  5545. int main(){nm_test_var='a';nm_test_func();return(0);}
  5546. _LT_EOF
  5547. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5548. (eval $ac_compile) 2>&5
  5549. ac_status=$?
  5550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5551. test $ac_status = 0; }; then
  5552. # Now try to grab the symbols.
  5553. nlist=conftest.nm
  5554. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5555. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5556. ac_status=$?
  5557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5558. test $ac_status = 0; } && test -s "$nlist"; then
  5559. # Try sorting and uniquifying the output.
  5560. if sort "$nlist" | uniq > "$nlist"T; then
  5561. mv -f "$nlist"T "$nlist"
  5562. else
  5563. rm -f "$nlist"T
  5564. fi
  5565. # Make sure that we snagged all the symbols we need.
  5566. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5567. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5568. cat <<_LT_EOF > conftest.$ac_ext
  5569. #ifdef __cplusplus
  5570. extern "C" {
  5571. #endif
  5572. _LT_EOF
  5573. # Now generate the symbol file.
  5574. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5575. cat <<_LT_EOF >> conftest.$ac_ext
  5576. /* The mapping between symbol names and symbols. */
  5577. const struct {
  5578. const char *name;
  5579. void *address;
  5580. }
  5581. lt__PROGRAM__LTX_preloaded_symbols[] =
  5582. {
  5583. { "@PROGRAM@", (void *) 0 },
  5584. _LT_EOF
  5585. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5586. cat <<\_LT_EOF >> conftest.$ac_ext
  5587. {0, (void *) 0}
  5588. };
  5589. /* This works around a problem in FreeBSD linker */
  5590. #ifdef FREEBSD_WORKAROUND
  5591. static const void *lt_preloaded_setup() {
  5592. return lt__PROGRAM__LTX_preloaded_symbols;
  5593. }
  5594. #endif
  5595. #ifdef __cplusplus
  5596. }
  5597. #endif
  5598. _LT_EOF
  5599. # Now try linking the two files.
  5600. mv conftest.$ac_objext conftstm.$ac_objext
  5601. lt_save_LIBS="$LIBS"
  5602. lt_save_CFLAGS="$CFLAGS"
  5603. LIBS="conftstm.$ac_objext"
  5604. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5605. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5606. (eval $ac_link) 2>&5
  5607. ac_status=$?
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5609. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5610. pipe_works=yes
  5611. fi
  5612. LIBS="$lt_save_LIBS"
  5613. CFLAGS="$lt_save_CFLAGS"
  5614. else
  5615. echo "cannot find nm_test_func in $nlist" >&5
  5616. fi
  5617. else
  5618. echo "cannot find nm_test_var in $nlist" >&5
  5619. fi
  5620. else
  5621. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5622. fi
  5623. else
  5624. echo "$progname: failed program was:" >&5
  5625. cat conftest.$ac_ext >&5
  5626. fi
  5627. rm -rf conftest* conftst*
  5628. # Do not use the global_symbol_pipe unless it works.
  5629. if test "$pipe_works" = yes; then
  5630. break
  5631. else
  5632. lt_cv_sys_global_symbol_pipe=
  5633. fi
  5634. done
  5635. fi
  5636. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5637. lt_cv_sys_global_symbol_to_cdecl=
  5638. fi
  5639. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5641. $as_echo "failed" >&6; }
  5642. else
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5644. $as_echo "ok" >&6; }
  5645. fi
  5646. # Check whether --enable-libtool-lock was given.
  5647. if test "${enable_libtool_lock+set}" = set; then :
  5648. enableval=$enable_libtool_lock;
  5649. fi
  5650. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5651. # Some flags need to be propagated to the compiler or linker for good
  5652. # libtool support.
  5653. case $host in
  5654. ia64-*-hpux*)
  5655. # Find out which ABI we are using.
  5656. echo 'int i;' > conftest.$ac_ext
  5657. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5658. (eval $ac_compile) 2>&5
  5659. ac_status=$?
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5661. test $ac_status = 0; }; then
  5662. case `/usr/bin/file conftest.$ac_objext` in
  5663. *ELF-32*)
  5664. HPUX_IA64_MODE="32"
  5665. ;;
  5666. *ELF-64*)
  5667. HPUX_IA64_MODE="64"
  5668. ;;
  5669. esac
  5670. fi
  5671. rm -rf conftest*
  5672. ;;
  5673. *-*-irix6*)
  5674. # Find out which ABI we are using.
  5675. echo '#line 6414 "configure"' > conftest.$ac_ext
  5676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5677. (eval $ac_compile) 2>&5
  5678. ac_status=$?
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5680. test $ac_status = 0; }; then
  5681. if test "$lt_cv_prog_gnu_ld" = yes; then
  5682. case `/usr/bin/file conftest.$ac_objext` in
  5683. *32-bit*)
  5684. LD="${LD-ld} -melf32bsmip"
  5685. ;;
  5686. *N32*)
  5687. LD="${LD-ld} -melf32bmipn32"
  5688. ;;
  5689. *64-bit*)
  5690. LD="${LD-ld} -melf64bmip"
  5691. ;;
  5692. esac
  5693. else
  5694. case `/usr/bin/file conftest.$ac_objext` in
  5695. *32-bit*)
  5696. LD="${LD-ld} -32"
  5697. ;;
  5698. *N32*)
  5699. LD="${LD-ld} -n32"
  5700. ;;
  5701. *64-bit*)
  5702. LD="${LD-ld} -64"
  5703. ;;
  5704. esac
  5705. fi
  5706. fi
  5707. rm -rf conftest*
  5708. ;;
  5709. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5710. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5711. # Find out which ABI we are using.
  5712. echo 'int i;' > conftest.$ac_ext
  5713. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5714. (eval $ac_compile) 2>&5
  5715. ac_status=$?
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5717. test $ac_status = 0; }; then
  5718. case `/usr/bin/file conftest.o` in
  5719. *32-bit*)
  5720. case $host in
  5721. x86_64-*kfreebsd*-gnu)
  5722. LD="${LD-ld} -m elf_i386_fbsd"
  5723. ;;
  5724. x86_64-*linux*)
  5725. LD="${LD-ld} -m elf_i386"
  5726. ;;
  5727. ppc64-*linux*|powerpc64-*linux*)
  5728. LD="${LD-ld} -m elf32ppclinux"
  5729. ;;
  5730. s390x-*linux*)
  5731. LD="${LD-ld} -m elf_s390"
  5732. ;;
  5733. sparc64-*linux*)
  5734. LD="${LD-ld} -m elf32_sparc"
  5735. ;;
  5736. esac
  5737. ;;
  5738. *64-bit*)
  5739. case $host in
  5740. x86_64-*kfreebsd*-gnu)
  5741. LD="${LD-ld} -m elf_x86_64_fbsd"
  5742. ;;
  5743. x86_64-*linux*)
  5744. LD="${LD-ld} -m elf_x86_64"
  5745. ;;
  5746. ppc*-*linux*|powerpc*-*linux*)
  5747. LD="${LD-ld} -m elf64ppc"
  5748. ;;
  5749. s390*-*linux*|s390*-*tpf*)
  5750. LD="${LD-ld} -m elf64_s390"
  5751. ;;
  5752. sparc*-*linux*)
  5753. LD="${LD-ld} -m elf64_sparc"
  5754. ;;
  5755. esac
  5756. ;;
  5757. esac
  5758. fi
  5759. rm -rf conftest*
  5760. ;;
  5761. *-*-sco3.2v5*)
  5762. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5763. SAVE_CFLAGS="$CFLAGS"
  5764. CFLAGS="$CFLAGS -belf"
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5766. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5767. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5768. $as_echo_n "(cached) " >&6
  5769. else
  5770. ac_ext=c
  5771. ac_cpp='$CPP $CPPFLAGS'
  5772. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5773. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5774. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5776. /* end confdefs.h. */
  5777. int
  5778. main ()
  5779. {
  5780. ;
  5781. return 0;
  5782. }
  5783. _ACEOF
  5784. if ac_fn_c_try_link "$LINENO"; then :
  5785. lt_cv_cc_needs_belf=yes
  5786. else
  5787. lt_cv_cc_needs_belf=no
  5788. fi
  5789. rm -f core conftest.err conftest.$ac_objext \
  5790. conftest$ac_exeext conftest.$ac_ext
  5791. ac_ext=c
  5792. ac_cpp='$CPP $CPPFLAGS'
  5793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5798. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5799. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5800. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5801. CFLAGS="$SAVE_CFLAGS"
  5802. fi
  5803. ;;
  5804. sparc*-*solaris*)
  5805. # Find out which ABI we are using.
  5806. echo 'int i;' > conftest.$ac_ext
  5807. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5808. (eval $ac_compile) 2>&5
  5809. ac_status=$?
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5811. test $ac_status = 0; }; then
  5812. case `/usr/bin/file conftest.o` in
  5813. *64-bit*)
  5814. case $lt_cv_prog_gnu_ld in
  5815. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5816. *)
  5817. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5818. LD="${LD-ld} -64"
  5819. fi
  5820. ;;
  5821. esac
  5822. ;;
  5823. esac
  5824. fi
  5825. rm -rf conftest*
  5826. ;;
  5827. esac
  5828. need_locks="$enable_libtool_lock"
  5829. case $host_os in
  5830. rhapsody* | darwin*)
  5831. if test -n "$ac_tool_prefix"; then
  5832. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5833. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5835. $as_echo_n "checking for $ac_word... " >&6; }
  5836. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. if test -n "$DSYMUTIL"; then
  5840. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5841. else
  5842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5843. for as_dir in $PATH
  5844. do
  5845. IFS=$as_save_IFS
  5846. test -z "$as_dir" && as_dir=.
  5847. for ac_exec_ext in '' $ac_executable_extensions; do
  5848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5849. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5851. break 2
  5852. fi
  5853. done
  5854. done
  5855. IFS=$as_save_IFS
  5856. fi
  5857. fi
  5858. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5859. if test -n "$DSYMUTIL"; then
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5861. $as_echo "$DSYMUTIL" >&6; }
  5862. else
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. $as_echo "no" >&6; }
  5865. fi
  5866. fi
  5867. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5868. ac_ct_DSYMUTIL=$DSYMUTIL
  5869. # Extract the first word of "dsymutil", so it can be a program name with args.
  5870. set dummy dsymutil; ac_word=$2
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5872. $as_echo_n "checking for $ac_word... " >&6; }
  5873. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5874. $as_echo_n "(cached) " >&6
  5875. else
  5876. if test -n "$ac_ct_DSYMUTIL"; then
  5877. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5878. else
  5879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5880. for as_dir in $PATH
  5881. do
  5882. IFS=$as_save_IFS
  5883. test -z "$as_dir" && as_dir=.
  5884. for ac_exec_ext in '' $ac_executable_extensions; do
  5885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5886. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5888. break 2
  5889. fi
  5890. done
  5891. done
  5892. IFS=$as_save_IFS
  5893. fi
  5894. fi
  5895. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5896. if test -n "$ac_ct_DSYMUTIL"; then
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5898. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5899. else
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5901. $as_echo "no" >&6; }
  5902. fi
  5903. if test "x$ac_ct_DSYMUTIL" = x; then
  5904. DSYMUTIL=":"
  5905. else
  5906. case $cross_compiling:$ac_tool_warned in
  5907. yes:)
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5910. ac_tool_warned=yes ;;
  5911. esac
  5912. DSYMUTIL=$ac_ct_DSYMUTIL
  5913. fi
  5914. else
  5915. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5916. fi
  5917. if test -n "$ac_tool_prefix"; then
  5918. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5919. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. if test -n "$NMEDIT"; then
  5926. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5927. else
  5928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5929. for as_dir in $PATH
  5930. do
  5931. IFS=$as_save_IFS
  5932. test -z "$as_dir" && as_dir=.
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5935. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. NMEDIT=$ac_cv_prog_NMEDIT
  5945. if test -n "$NMEDIT"; then
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5947. $as_echo "$NMEDIT" >&6; }
  5948. else
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952. fi
  5953. if test -z "$ac_cv_prog_NMEDIT"; then
  5954. ac_ct_NMEDIT=$NMEDIT
  5955. # Extract the first word of "nmedit", so it can be a program name with args.
  5956. set dummy nmedit; ac_word=$2
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5958. $as_echo_n "checking for $ac_word... " >&6; }
  5959. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5960. $as_echo_n "(cached) " >&6
  5961. else
  5962. if test -n "$ac_ct_NMEDIT"; then
  5963. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5964. else
  5965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5966. for as_dir in $PATH
  5967. do
  5968. IFS=$as_save_IFS
  5969. test -z "$as_dir" && as_dir=.
  5970. for ac_exec_ext in '' $ac_executable_extensions; do
  5971. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5972. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5974. break 2
  5975. fi
  5976. done
  5977. done
  5978. IFS=$as_save_IFS
  5979. fi
  5980. fi
  5981. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5982. if test -n "$ac_ct_NMEDIT"; then
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5984. $as_echo "$ac_ct_NMEDIT" >&6; }
  5985. else
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5987. $as_echo "no" >&6; }
  5988. fi
  5989. if test "x$ac_ct_NMEDIT" = x; then
  5990. NMEDIT=":"
  5991. else
  5992. case $cross_compiling:$ac_tool_warned in
  5993. yes:)
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5995. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5996. ac_tool_warned=yes ;;
  5997. esac
  5998. NMEDIT=$ac_ct_NMEDIT
  5999. fi
  6000. else
  6001. NMEDIT="$ac_cv_prog_NMEDIT"
  6002. fi
  6003. if test -n "$ac_tool_prefix"; then
  6004. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6005. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6007. $as_echo_n "checking for $ac_word... " >&6; }
  6008. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6009. $as_echo_n "(cached) " >&6
  6010. else
  6011. if test -n "$LIPO"; then
  6012. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6013. else
  6014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6015. for as_dir in $PATH
  6016. do
  6017. IFS=$as_save_IFS
  6018. test -z "$as_dir" && as_dir=.
  6019. for ac_exec_ext in '' $ac_executable_extensions; do
  6020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6021. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6023. break 2
  6024. fi
  6025. done
  6026. done
  6027. IFS=$as_save_IFS
  6028. fi
  6029. fi
  6030. LIPO=$ac_cv_prog_LIPO
  6031. if test -n "$LIPO"; then
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6033. $as_echo "$LIPO" >&6; }
  6034. else
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6036. $as_echo "no" >&6; }
  6037. fi
  6038. fi
  6039. if test -z "$ac_cv_prog_LIPO"; then
  6040. ac_ct_LIPO=$LIPO
  6041. # Extract the first word of "lipo", so it can be a program name with args.
  6042. set dummy lipo; ac_word=$2
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6044. $as_echo_n "checking for $ac_word... " >&6; }
  6045. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. if test -n "$ac_ct_LIPO"; then
  6049. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6050. else
  6051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6052. for as_dir in $PATH
  6053. do
  6054. IFS=$as_save_IFS
  6055. test -z "$as_dir" && as_dir=.
  6056. for ac_exec_ext in '' $ac_executable_extensions; do
  6057. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6058. ac_cv_prog_ac_ct_LIPO="lipo"
  6059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6060. break 2
  6061. fi
  6062. done
  6063. done
  6064. IFS=$as_save_IFS
  6065. fi
  6066. fi
  6067. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6068. if test -n "$ac_ct_LIPO"; then
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6070. $as_echo "$ac_ct_LIPO" >&6; }
  6071. else
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6073. $as_echo "no" >&6; }
  6074. fi
  6075. if test "x$ac_ct_LIPO" = x; then
  6076. LIPO=":"
  6077. else
  6078. case $cross_compiling:$ac_tool_warned in
  6079. yes:)
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6081. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6082. ac_tool_warned=yes ;;
  6083. esac
  6084. LIPO=$ac_ct_LIPO
  6085. fi
  6086. else
  6087. LIPO="$ac_cv_prog_LIPO"
  6088. fi
  6089. if test -n "$ac_tool_prefix"; then
  6090. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6091. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6093. $as_echo_n "checking for $ac_word... " >&6; }
  6094. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. if test -n "$OTOOL"; then
  6098. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6099. else
  6100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6101. for as_dir in $PATH
  6102. do
  6103. IFS=$as_save_IFS
  6104. test -z "$as_dir" && as_dir=.
  6105. for ac_exec_ext in '' $ac_executable_extensions; do
  6106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6107. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6109. break 2
  6110. fi
  6111. done
  6112. done
  6113. IFS=$as_save_IFS
  6114. fi
  6115. fi
  6116. OTOOL=$ac_cv_prog_OTOOL
  6117. if test -n "$OTOOL"; then
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6119. $as_echo "$OTOOL" >&6; }
  6120. else
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6122. $as_echo "no" >&6; }
  6123. fi
  6124. fi
  6125. if test -z "$ac_cv_prog_OTOOL"; then
  6126. ac_ct_OTOOL=$OTOOL
  6127. # Extract the first word of "otool", so it can be a program name with args.
  6128. set dummy otool; ac_word=$2
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6130. $as_echo_n "checking for $ac_word... " >&6; }
  6131. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. if test -n "$ac_ct_OTOOL"; then
  6135. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6136. else
  6137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6138. for as_dir in $PATH
  6139. do
  6140. IFS=$as_save_IFS
  6141. test -z "$as_dir" && as_dir=.
  6142. for ac_exec_ext in '' $ac_executable_extensions; do
  6143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6144. ac_cv_prog_ac_ct_OTOOL="otool"
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6146. break 2
  6147. fi
  6148. done
  6149. done
  6150. IFS=$as_save_IFS
  6151. fi
  6152. fi
  6153. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6154. if test -n "$ac_ct_OTOOL"; then
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6156. $as_echo "$ac_ct_OTOOL" >&6; }
  6157. else
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6159. $as_echo "no" >&6; }
  6160. fi
  6161. if test "x$ac_ct_OTOOL" = x; then
  6162. OTOOL=":"
  6163. else
  6164. case $cross_compiling:$ac_tool_warned in
  6165. yes:)
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6168. ac_tool_warned=yes ;;
  6169. esac
  6170. OTOOL=$ac_ct_OTOOL
  6171. fi
  6172. else
  6173. OTOOL="$ac_cv_prog_OTOOL"
  6174. fi
  6175. if test -n "$ac_tool_prefix"; then
  6176. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6177. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. if test -n "$OTOOL64"; then
  6184. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6185. else
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6193. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. fi
  6201. fi
  6202. OTOOL64=$ac_cv_prog_OTOOL64
  6203. if test -n "$OTOOL64"; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6205. $as_echo "$OTOOL64" >&6; }
  6206. else
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6208. $as_echo "no" >&6; }
  6209. fi
  6210. fi
  6211. if test -z "$ac_cv_prog_OTOOL64"; then
  6212. ac_ct_OTOOL64=$OTOOL64
  6213. # Extract the first word of "otool64", so it can be a program name with args.
  6214. set dummy otool64; ac_word=$2
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. $as_echo_n "checking for $ac_word... " >&6; }
  6217. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. if test -n "$ac_ct_OTOOL64"; then
  6221. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. test -z "$as_dir" && as_dir=.
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6230. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi
  6238. fi
  6239. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6240. if test -n "$ac_ct_OTOOL64"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6242. $as_echo "$ac_ct_OTOOL64" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. if test "x$ac_ct_OTOOL64" = x; then
  6248. OTOOL64=":"
  6249. else
  6250. case $cross_compiling:$ac_tool_warned in
  6251. yes:)
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6253. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6254. ac_tool_warned=yes ;;
  6255. esac
  6256. OTOOL64=$ac_ct_OTOOL64
  6257. fi
  6258. else
  6259. OTOOL64="$ac_cv_prog_OTOOL64"
  6260. fi
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6262. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6263. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6264. $as_echo_n "(cached) " >&6
  6265. else
  6266. lt_cv_apple_cc_single_mod=no
  6267. if test -z "${LT_MULTI_MODULE}"; then
  6268. # By default we will add the -single_module flag. You can override
  6269. # by either setting the environment variable LT_MULTI_MODULE
  6270. # non-empty at configure time, or by adding -multi_module to the
  6271. # link flags.
  6272. rm -rf libconftest.dylib*
  6273. echo "int foo(void){return 1;}" > conftest.c
  6274. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6275. -dynamiclib -Wl,-single_module conftest.c" >&5
  6276. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6277. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6278. _lt_result=$?
  6279. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6280. lt_cv_apple_cc_single_mod=yes
  6281. else
  6282. cat conftest.err >&5
  6283. fi
  6284. rm -rf libconftest.dylib*
  6285. rm -f conftest.*
  6286. fi
  6287. fi
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6289. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6291. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6292. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. lt_cv_ld_exported_symbols_list=no
  6296. save_LDFLAGS=$LDFLAGS
  6297. echo "_main" > conftest.sym
  6298. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6300. /* end confdefs.h. */
  6301. int
  6302. main ()
  6303. {
  6304. ;
  6305. return 0;
  6306. }
  6307. _ACEOF
  6308. if ac_fn_c_try_link "$LINENO"; then :
  6309. lt_cv_ld_exported_symbols_list=yes
  6310. else
  6311. lt_cv_ld_exported_symbols_list=no
  6312. fi
  6313. rm -f core conftest.err conftest.$ac_objext \
  6314. conftest$ac_exeext conftest.$ac_ext
  6315. LDFLAGS="$save_LDFLAGS"
  6316. fi
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6318. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6319. case $host_os in
  6320. rhapsody* | darwin1.[012])
  6321. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6322. darwin1.*)
  6323. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6324. darwin*) # darwin 5.x on
  6325. # if running on 10.5 or later, the deployment target defaults
  6326. # to the OS version, if on x86, and 10.4, the deployment
  6327. # target defaults to 10.4. Don't you love it?
  6328. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6329. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6330. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6331. 10.[012]*)
  6332. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6333. 10.*)
  6334. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6335. esac
  6336. ;;
  6337. esac
  6338. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6339. _lt_dar_single_mod='$single_module'
  6340. fi
  6341. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6342. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6343. else
  6344. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6345. fi
  6346. if test "$DSYMUTIL" != ":"; then
  6347. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6348. else
  6349. _lt_dsymutil=
  6350. fi
  6351. ;;
  6352. esac
  6353. ac_ext=c
  6354. ac_cpp='$CPP $CPPFLAGS'
  6355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6359. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6360. # On Suns, sometimes $CPP names a directory.
  6361. if test -n "$CPP" && test -d "$CPP"; then
  6362. CPP=
  6363. fi
  6364. if test -z "$CPP"; then
  6365. if test "${ac_cv_prog_CPP+set}" = set; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. # Double quotes because CPP needs to be expanded
  6369. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6370. do
  6371. ac_preproc_ok=false
  6372. for ac_c_preproc_warn_flag in '' yes
  6373. do
  6374. # Use a header file that comes with gcc, so configuring glibc
  6375. # with a fresh cross-compiler works.
  6376. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6377. # <limits.h> exists even on freestanding compilers.
  6378. # On the NeXT, cc -E runs the code through the compiler's parser,
  6379. # not just through cpp. "Syntax error" is here to catch this case.
  6380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6381. /* end confdefs.h. */
  6382. #ifdef __STDC__
  6383. # include <limits.h>
  6384. #else
  6385. # include <assert.h>
  6386. #endif
  6387. Syntax error
  6388. _ACEOF
  6389. if ac_fn_c_try_cpp "$LINENO"; then :
  6390. else
  6391. # Broken: fails on valid input.
  6392. continue
  6393. fi
  6394. rm -f conftest.err conftest.$ac_ext
  6395. # OK, works on sane cases. Now check whether nonexistent headers
  6396. # can be detected and how.
  6397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6398. /* end confdefs.h. */
  6399. #include <ac_nonexistent.h>
  6400. _ACEOF
  6401. if ac_fn_c_try_cpp "$LINENO"; then :
  6402. # Broken: success on invalid input.
  6403. continue
  6404. else
  6405. # Passes both tests.
  6406. ac_preproc_ok=:
  6407. break
  6408. fi
  6409. rm -f conftest.err conftest.$ac_ext
  6410. done
  6411. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6412. rm -f conftest.err conftest.$ac_ext
  6413. if $ac_preproc_ok; then :
  6414. break
  6415. fi
  6416. done
  6417. ac_cv_prog_CPP=$CPP
  6418. fi
  6419. CPP=$ac_cv_prog_CPP
  6420. else
  6421. ac_cv_prog_CPP=$CPP
  6422. fi
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6424. $as_echo "$CPP" >&6; }
  6425. ac_preproc_ok=false
  6426. for ac_c_preproc_warn_flag in '' yes
  6427. do
  6428. # Use a header file that comes with gcc, so configuring glibc
  6429. # with a fresh cross-compiler works.
  6430. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6431. # <limits.h> exists even on freestanding compilers.
  6432. # On the NeXT, cc -E runs the code through the compiler's parser,
  6433. # not just through cpp. "Syntax error" is here to catch this case.
  6434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6435. /* end confdefs.h. */
  6436. #ifdef __STDC__
  6437. # include <limits.h>
  6438. #else
  6439. # include <assert.h>
  6440. #endif
  6441. Syntax error
  6442. _ACEOF
  6443. if ac_fn_c_try_cpp "$LINENO"; then :
  6444. else
  6445. # Broken: fails on valid input.
  6446. continue
  6447. fi
  6448. rm -f conftest.err conftest.$ac_ext
  6449. # OK, works on sane cases. Now check whether nonexistent headers
  6450. # can be detected and how.
  6451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6452. /* end confdefs.h. */
  6453. #include <ac_nonexistent.h>
  6454. _ACEOF
  6455. if ac_fn_c_try_cpp "$LINENO"; then :
  6456. # Broken: success on invalid input.
  6457. continue
  6458. else
  6459. # Passes both tests.
  6460. ac_preproc_ok=:
  6461. break
  6462. fi
  6463. rm -f conftest.err conftest.$ac_ext
  6464. done
  6465. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6466. rm -f conftest.err conftest.$ac_ext
  6467. if $ac_preproc_ok; then :
  6468. else
  6469. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6470. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6471. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6472. See \`config.log' for more details." "$LINENO" 5; }
  6473. fi
  6474. ac_ext=c
  6475. ac_cpp='$CPP $CPPFLAGS'
  6476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6480. $as_echo_n "checking for ANSI C header files... " >&6; }
  6481. if test "${ac_cv_header_stdc+set}" = set; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6485. /* end confdefs.h. */
  6486. #include <stdlib.h>
  6487. #include <stdarg.h>
  6488. #include <string.h>
  6489. #include <float.h>
  6490. int
  6491. main ()
  6492. {
  6493. ;
  6494. return 0;
  6495. }
  6496. _ACEOF
  6497. if ac_fn_c_try_compile "$LINENO"; then :
  6498. ac_cv_header_stdc=yes
  6499. else
  6500. ac_cv_header_stdc=no
  6501. fi
  6502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6503. if test $ac_cv_header_stdc = yes; then
  6504. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6506. /* end confdefs.h. */
  6507. #include <string.h>
  6508. _ACEOF
  6509. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6510. $EGREP "memchr" >/dev/null 2>&1; then :
  6511. else
  6512. ac_cv_header_stdc=no
  6513. fi
  6514. rm -f conftest*
  6515. fi
  6516. if test $ac_cv_header_stdc = yes; then
  6517. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6519. /* end confdefs.h. */
  6520. #include <stdlib.h>
  6521. _ACEOF
  6522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6523. $EGREP "free" >/dev/null 2>&1; then :
  6524. else
  6525. ac_cv_header_stdc=no
  6526. fi
  6527. rm -f conftest*
  6528. fi
  6529. if test $ac_cv_header_stdc = yes; then
  6530. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6531. if test "$cross_compiling" = yes; then :
  6532. :
  6533. else
  6534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6535. /* end confdefs.h. */
  6536. #include <ctype.h>
  6537. #include <stdlib.h>
  6538. #if ((' ' & 0x0FF) == 0x020)
  6539. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6540. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6541. #else
  6542. # define ISLOWER(c) \
  6543. (('a' <= (c) && (c) <= 'i') \
  6544. || ('j' <= (c) && (c) <= 'r') \
  6545. || ('s' <= (c) && (c) <= 'z'))
  6546. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6547. #endif
  6548. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6549. int
  6550. main ()
  6551. {
  6552. int i;
  6553. for (i = 0; i < 256; i++)
  6554. if (XOR (islower (i), ISLOWER (i))
  6555. || toupper (i) != TOUPPER (i))
  6556. return 2;
  6557. return 0;
  6558. }
  6559. _ACEOF
  6560. if ac_fn_c_try_run "$LINENO"; then :
  6561. else
  6562. ac_cv_header_stdc=no
  6563. fi
  6564. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6565. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6566. fi
  6567. fi
  6568. fi
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6570. $as_echo "$ac_cv_header_stdc" >&6; }
  6571. if test $ac_cv_header_stdc = yes; then
  6572. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6573. fi
  6574. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6575. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6576. inttypes.h stdint.h unistd.h
  6577. do :
  6578. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6579. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6580. "
  6581. eval as_val=\$$as_ac_Header
  6582. if test "x$as_val" = x""yes; then :
  6583. cat >>confdefs.h <<_ACEOF
  6584. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6585. _ACEOF
  6586. fi
  6587. done
  6588. for ac_header in dlfcn.h
  6589. do :
  6590. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6591. "
  6592. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6593. cat >>confdefs.h <<_ACEOF
  6594. #define HAVE_DLFCN_H 1
  6595. _ACEOF
  6596. fi
  6597. done
  6598. ac_ext=cpp
  6599. ac_cpp='$CXXCPP $CPPFLAGS'
  6600. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6601. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6602. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6603. if test -z "$CXX"; then
  6604. if test -n "$CCC"; then
  6605. CXX=$CCC
  6606. else
  6607. if test -n "$ac_tool_prefix"; then
  6608. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6609. do
  6610. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6611. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6613. $as_echo_n "checking for $ac_word... " >&6; }
  6614. if test "${ac_cv_prog_CXX+set}" = set; then :
  6615. $as_echo_n "(cached) " >&6
  6616. else
  6617. if test -n "$CXX"; then
  6618. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6619. else
  6620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6621. for as_dir in $PATH
  6622. do
  6623. IFS=$as_save_IFS
  6624. test -z "$as_dir" && as_dir=.
  6625. for ac_exec_ext in '' $ac_executable_extensions; do
  6626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6627. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6629. break 2
  6630. fi
  6631. done
  6632. done
  6633. IFS=$as_save_IFS
  6634. fi
  6635. fi
  6636. CXX=$ac_cv_prog_CXX
  6637. if test -n "$CXX"; then
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6639. $as_echo "$CXX" >&6; }
  6640. else
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6642. $as_echo "no" >&6; }
  6643. fi
  6644. test -n "$CXX" && break
  6645. done
  6646. fi
  6647. if test -z "$CXX"; then
  6648. ac_ct_CXX=$CXX
  6649. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6650. do
  6651. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6652. set dummy $ac_prog; ac_word=$2
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6654. $as_echo_n "checking for $ac_word... " >&6; }
  6655. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. if test -n "$ac_ct_CXX"; then
  6659. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6660. else
  6661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6662. for as_dir in $PATH
  6663. do
  6664. IFS=$as_save_IFS
  6665. test -z "$as_dir" && as_dir=.
  6666. for ac_exec_ext in '' $ac_executable_extensions; do
  6667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6668. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6670. break 2
  6671. fi
  6672. done
  6673. done
  6674. IFS=$as_save_IFS
  6675. fi
  6676. fi
  6677. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6678. if test -n "$ac_ct_CXX"; then
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6680. $as_echo "$ac_ct_CXX" >&6; }
  6681. else
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6683. $as_echo "no" >&6; }
  6684. fi
  6685. test -n "$ac_ct_CXX" && break
  6686. done
  6687. if test "x$ac_ct_CXX" = x; then
  6688. CXX="g++"
  6689. else
  6690. case $cross_compiling:$ac_tool_warned in
  6691. yes:)
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6694. ac_tool_warned=yes ;;
  6695. esac
  6696. CXX=$ac_ct_CXX
  6697. fi
  6698. fi
  6699. fi
  6700. fi
  6701. # Provide some information about the compiler.
  6702. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6703. set X $ac_compile
  6704. ac_compiler=$2
  6705. for ac_option in --version -v -V -qversion; do
  6706. { { ac_try="$ac_compiler $ac_option >&5"
  6707. case "(($ac_try" in
  6708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6709. *) ac_try_echo=$ac_try;;
  6710. esac
  6711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6712. $as_echo "$ac_try_echo"; } >&5
  6713. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6714. ac_status=$?
  6715. if test -s conftest.err; then
  6716. sed '10a\
  6717. ... rest of stderr output deleted ...
  6718. 10q' conftest.err >conftest.er1
  6719. cat conftest.er1 >&5
  6720. fi
  6721. rm -f conftest.er1 conftest.err
  6722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6723. test $ac_status = 0; }
  6724. done
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6726. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6727. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6731. /* end confdefs.h. */
  6732. int
  6733. main ()
  6734. {
  6735. #ifndef __GNUC__
  6736. choke me
  6737. #endif
  6738. ;
  6739. return 0;
  6740. }
  6741. _ACEOF
  6742. if ac_fn_cxx_try_compile "$LINENO"; then :
  6743. ac_compiler_gnu=yes
  6744. else
  6745. ac_compiler_gnu=no
  6746. fi
  6747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6751. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6752. if test $ac_compiler_gnu = yes; then
  6753. GXX=yes
  6754. else
  6755. GXX=
  6756. fi
  6757. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6758. ac_save_CXXFLAGS=$CXXFLAGS
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6760. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6761. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6765. ac_cxx_werror_flag=yes
  6766. ac_cv_prog_cxx_g=no
  6767. CXXFLAGS="-g"
  6768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6769. /* end confdefs.h. */
  6770. int
  6771. main ()
  6772. {
  6773. ;
  6774. return 0;
  6775. }
  6776. _ACEOF
  6777. if ac_fn_cxx_try_compile "$LINENO"; then :
  6778. ac_cv_prog_cxx_g=yes
  6779. else
  6780. CXXFLAGS=""
  6781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6782. /* end confdefs.h. */
  6783. int
  6784. main ()
  6785. {
  6786. ;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. if ac_fn_cxx_try_compile "$LINENO"; then :
  6791. else
  6792. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6793. CXXFLAGS="-g"
  6794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6795. /* end confdefs.h. */
  6796. int
  6797. main ()
  6798. {
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. if ac_fn_cxx_try_compile "$LINENO"; then :
  6804. ac_cv_prog_cxx_g=yes
  6805. fi
  6806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6807. fi
  6808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6809. fi
  6810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6811. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6812. fi
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6814. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6815. if test "$ac_test_CXXFLAGS" = set; then
  6816. CXXFLAGS=$ac_save_CXXFLAGS
  6817. elif test $ac_cv_prog_cxx_g = yes; then
  6818. if test "$GXX" = yes; then
  6819. CXXFLAGS="-g -O2"
  6820. else
  6821. CXXFLAGS="-g"
  6822. fi
  6823. else
  6824. if test "$GXX" = yes; then
  6825. CXXFLAGS="-O2"
  6826. else
  6827. CXXFLAGS=
  6828. fi
  6829. fi
  6830. ac_ext=cpp
  6831. ac_cpp='$CXXCPP $CPPFLAGS'
  6832. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6833. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6834. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6835. depcc="$CXX" am_compiler_list=
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6837. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6838. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6839. $as_echo_n "(cached) " >&6
  6840. else
  6841. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6842. # We make a subdir and do the tests there. Otherwise we can end up
  6843. # making bogus files that we don't know about and never remove. For
  6844. # instance it was reported that on HP-UX the gcc test will end up
  6845. # making a dummy file named `D' -- because `-MD' means `put the output
  6846. # in D'.
  6847. mkdir conftest.dir
  6848. # Copy depcomp to subdir because otherwise we won't find it if we're
  6849. # using a relative directory.
  6850. cp "$am_depcomp" conftest.dir
  6851. cd conftest.dir
  6852. # We will build objects and dependencies in a subdirectory because
  6853. # it helps to detect inapplicable dependency modes. For instance
  6854. # both Tru64's cc and ICC support -MD to output dependencies as a
  6855. # side effect of compilation, but ICC will put the dependencies in
  6856. # the current directory while Tru64 will put them in the object
  6857. # directory.
  6858. mkdir sub
  6859. am_cv_CXX_dependencies_compiler_type=none
  6860. if test "$am_compiler_list" = ""; then
  6861. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6862. fi
  6863. am__universal=false
  6864. case " $depcc " in #(
  6865. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6866. esac
  6867. for depmode in $am_compiler_list; do
  6868. # Setup a source with many dependencies, because some compilers
  6869. # like to wrap large dependency lists on column 80 (with \), and
  6870. # we should not choose a depcomp mode which is confused by this.
  6871. #
  6872. # We need to recreate these files for each test, as the compiler may
  6873. # overwrite some of them when testing with obscure command lines.
  6874. # This happens at least with the AIX C compiler.
  6875. : > sub/conftest.c
  6876. for i in 1 2 3 4 5 6; do
  6877. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6878. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6879. # Solaris 8's {/usr,}/bin/sh.
  6880. touch sub/conftst$i.h
  6881. done
  6882. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6883. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6884. # mode. It turns out that the SunPro C++ compiler does not properly
  6885. # handle `-M -o', and we need to detect this. Also, some Intel
  6886. # versions had trouble with output in subdirs
  6887. am__obj=sub/conftest.${OBJEXT-o}
  6888. am__minus_obj="-o $am__obj"
  6889. case $depmode in
  6890. gcc)
  6891. # This depmode causes a compiler race in universal mode.
  6892. test "$am__universal" = false || continue
  6893. ;;
  6894. nosideeffect)
  6895. # after this tag, mechanisms are not by side-effect, so they'll
  6896. # only be used when explicitly requested
  6897. if test "x$enable_dependency_tracking" = xyes; then
  6898. continue
  6899. else
  6900. break
  6901. fi
  6902. ;;
  6903. msvisualcpp | msvcmsys)
  6904. # This compiler won't grok `-c -o', but also, the minuso test has
  6905. # not run yet. These depmodes are late enough in the game, and
  6906. # so weak that their functioning should not be impacted.
  6907. am__obj=conftest.${OBJEXT-o}
  6908. am__minus_obj=
  6909. ;;
  6910. none) break ;;
  6911. esac
  6912. if depmode=$depmode \
  6913. source=sub/conftest.c object=$am__obj \
  6914. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6915. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6916. >/dev/null 2>conftest.err &&
  6917. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6918. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6919. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6920. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6921. # icc doesn't choke on unknown options, it will just issue warnings
  6922. # or remarks (even with -Werror). So we grep stderr for any message
  6923. # that says an option was ignored or not supported.
  6924. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6925. # icc: Command line warning: ignoring option '-M'; no argument required
  6926. # The diagnosis changed in icc 8.0:
  6927. # icc: Command line remark: option '-MP' not supported
  6928. if (grep 'ignoring option' conftest.err ||
  6929. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6930. am_cv_CXX_dependencies_compiler_type=$depmode
  6931. break
  6932. fi
  6933. fi
  6934. done
  6935. cd ..
  6936. rm -rf conftest.dir
  6937. else
  6938. am_cv_CXX_dependencies_compiler_type=none
  6939. fi
  6940. fi
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6942. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6943. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6944. if
  6945. test "x$enable_dependency_tracking" != xno \
  6946. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6947. am__fastdepCXX_TRUE=
  6948. am__fastdepCXX_FALSE='#'
  6949. else
  6950. am__fastdepCXX_TRUE='#'
  6951. am__fastdepCXX_FALSE=
  6952. fi
  6953. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6954. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6955. (test "X$CXX" != "Xg++"))) ; then
  6956. ac_ext=cpp
  6957. ac_cpp='$CXXCPP $CPPFLAGS'
  6958. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6959. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6960. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6962. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6963. if test -z "$CXXCPP"; then
  6964. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. # Double quotes because CXXCPP needs to be expanded
  6968. for CXXCPP in "$CXX -E" "/lib/cpp"
  6969. do
  6970. ac_preproc_ok=false
  6971. for ac_cxx_preproc_warn_flag in '' yes
  6972. do
  6973. # Use a header file that comes with gcc, so configuring glibc
  6974. # with a fresh cross-compiler works.
  6975. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6976. # <limits.h> exists even on freestanding compilers.
  6977. # On the NeXT, cc -E runs the code through the compiler's parser,
  6978. # not just through cpp. "Syntax error" is here to catch this case.
  6979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6980. /* end confdefs.h. */
  6981. #ifdef __STDC__
  6982. # include <limits.h>
  6983. #else
  6984. # include <assert.h>
  6985. #endif
  6986. Syntax error
  6987. _ACEOF
  6988. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6989. else
  6990. # Broken: fails on valid input.
  6991. continue
  6992. fi
  6993. rm -f conftest.err conftest.$ac_ext
  6994. # OK, works on sane cases. Now check whether nonexistent headers
  6995. # can be detected and how.
  6996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6997. /* end confdefs.h. */
  6998. #include <ac_nonexistent.h>
  6999. _ACEOF
  7000. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7001. # Broken: success on invalid input.
  7002. continue
  7003. else
  7004. # Passes both tests.
  7005. ac_preproc_ok=:
  7006. break
  7007. fi
  7008. rm -f conftest.err conftest.$ac_ext
  7009. done
  7010. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7011. rm -f conftest.err conftest.$ac_ext
  7012. if $ac_preproc_ok; then :
  7013. break
  7014. fi
  7015. done
  7016. ac_cv_prog_CXXCPP=$CXXCPP
  7017. fi
  7018. CXXCPP=$ac_cv_prog_CXXCPP
  7019. else
  7020. ac_cv_prog_CXXCPP=$CXXCPP
  7021. fi
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7023. $as_echo "$CXXCPP" >&6; }
  7024. ac_preproc_ok=false
  7025. for ac_cxx_preproc_warn_flag in '' yes
  7026. do
  7027. # Use a header file that comes with gcc, so configuring glibc
  7028. # with a fresh cross-compiler works.
  7029. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7030. # <limits.h> exists even on freestanding compilers.
  7031. # On the NeXT, cc -E runs the code through the compiler's parser,
  7032. # not just through cpp. "Syntax error" is here to catch this case.
  7033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7034. /* end confdefs.h. */
  7035. #ifdef __STDC__
  7036. # include <limits.h>
  7037. #else
  7038. # include <assert.h>
  7039. #endif
  7040. Syntax error
  7041. _ACEOF
  7042. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7043. else
  7044. # Broken: fails on valid input.
  7045. continue
  7046. fi
  7047. rm -f conftest.err conftest.$ac_ext
  7048. # OK, works on sane cases. Now check whether nonexistent headers
  7049. # can be detected and how.
  7050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7051. /* end confdefs.h. */
  7052. #include <ac_nonexistent.h>
  7053. _ACEOF
  7054. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7055. # Broken: success on invalid input.
  7056. continue
  7057. else
  7058. # Passes both tests.
  7059. ac_preproc_ok=:
  7060. break
  7061. fi
  7062. rm -f conftest.err conftest.$ac_ext
  7063. done
  7064. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7065. rm -f conftest.err conftest.$ac_ext
  7066. if $ac_preproc_ok; then :
  7067. else
  7068. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7070. _lt_caught_CXX_error=yes; }
  7071. fi
  7072. ac_ext=cpp
  7073. ac_cpp='$CXXCPP $CPPFLAGS'
  7074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7077. else
  7078. _lt_caught_CXX_error=yes
  7079. fi
  7080. # Set options
  7081. enable_dlopen=no
  7082. enable_win32_dll=no
  7083. # Check whether --with-pic was given.
  7084. if test "${with_pic+set}" = set; then :
  7085. withval=$with_pic; pic_mode="$withval"
  7086. else
  7087. pic_mode=default
  7088. fi
  7089. test -z "$pic_mode" && pic_mode=default
  7090. # Check whether --enable-fast-install was given.
  7091. if test "${enable_fast_install+set}" = set; then :
  7092. enableval=$enable_fast_install; p=${PACKAGE-default}
  7093. case $enableval in
  7094. yes) enable_fast_install=yes ;;
  7095. no) enable_fast_install=no ;;
  7096. *)
  7097. enable_fast_install=no
  7098. # Look at the argument we got. We use all the common list separators.
  7099. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7100. for pkg in $enableval; do
  7101. IFS="$lt_save_ifs"
  7102. if test "X$pkg" = "X$p"; then
  7103. enable_fast_install=yes
  7104. fi
  7105. done
  7106. IFS="$lt_save_ifs"
  7107. ;;
  7108. esac
  7109. else
  7110. enable_fast_install=yes
  7111. fi
  7112. # This can be used to rebuild libtool when needed
  7113. LIBTOOL_DEPS="$ltmain"
  7114. # Always use our own libtool.
  7115. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7116. test -z "$LN_S" && LN_S="ln -s"
  7117. if test -n "${ZSH_VERSION+set}" ; then
  7118. setopt NO_GLOB_SUBST
  7119. fi
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7121. $as_echo_n "checking for objdir... " >&6; }
  7122. if test "${lt_cv_objdir+set}" = set; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. rm -f .libs 2>/dev/null
  7126. mkdir .libs 2>/dev/null
  7127. if test -d .libs; then
  7128. lt_cv_objdir=.libs
  7129. else
  7130. # MS-DOS does not allow filenames that begin with a dot.
  7131. lt_cv_objdir=_libs
  7132. fi
  7133. rmdir .libs 2>/dev/null
  7134. fi
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7136. $as_echo "$lt_cv_objdir" >&6; }
  7137. objdir=$lt_cv_objdir
  7138. cat >>confdefs.h <<_ACEOF
  7139. #define LT_OBJDIR "$lt_cv_objdir/"
  7140. _ACEOF
  7141. case $host_os in
  7142. aix3*)
  7143. # AIX sometimes has problems with the GCC collect2 program. For some
  7144. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7145. # vanish in a puff of smoke.
  7146. if test "X${COLLECT_NAMES+set}" != Xset; then
  7147. COLLECT_NAMES=
  7148. export COLLECT_NAMES
  7149. fi
  7150. ;;
  7151. esac
  7152. # Sed substitution that helps us do robust quoting. It backslashifies
  7153. # metacharacters that are still active within double-quoted strings.
  7154. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7155. # Same as above, but do not quote variable references.
  7156. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7157. # Sed substitution to delay expansion of an escaped shell variable in a
  7158. # double_quote_subst'ed string.
  7159. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7160. # Sed substitution to delay expansion of an escaped single quote.
  7161. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7162. # Sed substitution to avoid accidental globbing in evaled expressions
  7163. no_glob_subst='s/\*/\\\*/g'
  7164. # Global variables:
  7165. ofile=libtool
  7166. can_build_shared=yes
  7167. # All known linkers require a `.a' archive for static linking (except MSVC,
  7168. # which needs '.lib').
  7169. libext=a
  7170. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7171. old_CC="$CC"
  7172. old_CFLAGS="$CFLAGS"
  7173. # Set sane defaults for various variables
  7174. test -z "$CC" && CC=cc
  7175. test -z "$LTCC" && LTCC=$CC
  7176. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7177. test -z "$LD" && LD=ld
  7178. test -z "$ac_objext" && ac_objext=o
  7179. for cc_temp in $compiler""; do
  7180. case $cc_temp in
  7181. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7182. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7183. \-*) ;;
  7184. *) break;;
  7185. esac
  7186. done
  7187. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7188. # Only perform the check for file, if the check method requires it
  7189. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7190. case $deplibs_check_method in
  7191. file_magic*)
  7192. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7194. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7195. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. case $MAGIC_CMD in
  7199. [\\/*] | ?:[\\/]*)
  7200. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7201. ;;
  7202. *)
  7203. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7204. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7205. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7206. for ac_dir in $ac_dummy; do
  7207. IFS="$lt_save_ifs"
  7208. test -z "$ac_dir" && ac_dir=.
  7209. if test -f $ac_dir/${ac_tool_prefix}file; then
  7210. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7211. if test -n "$file_magic_test_file"; then
  7212. case $deplibs_check_method in
  7213. "file_magic "*)
  7214. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7215. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7216. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7217. $EGREP "$file_magic_regex" > /dev/null; then
  7218. :
  7219. else
  7220. cat <<_LT_EOF 1>&2
  7221. *** Warning: the command libtool uses to detect shared libraries,
  7222. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7223. *** The result is that libtool may fail to recognize shared libraries
  7224. *** as such. This will affect the creation of libtool libraries that
  7225. *** depend on shared libraries, but programs linked with such libtool
  7226. *** libraries will work regardless of this problem. Nevertheless, you
  7227. *** may want to report the problem to your system manager and/or to
  7228. *** [email protected]
  7229. _LT_EOF
  7230. fi ;;
  7231. esac
  7232. fi
  7233. break
  7234. fi
  7235. done
  7236. IFS="$lt_save_ifs"
  7237. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7238. ;;
  7239. esac
  7240. fi
  7241. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7242. if test -n "$MAGIC_CMD"; then
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7244. $as_echo "$MAGIC_CMD" >&6; }
  7245. else
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7247. $as_echo "no" >&6; }
  7248. fi
  7249. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7250. if test -n "$ac_tool_prefix"; then
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7252. $as_echo_n "checking for file... " >&6; }
  7253. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7254. $as_echo_n "(cached) " >&6
  7255. else
  7256. case $MAGIC_CMD in
  7257. [\\/*] | ?:[\\/]*)
  7258. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7259. ;;
  7260. *)
  7261. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7262. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7263. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7264. for ac_dir in $ac_dummy; do
  7265. IFS="$lt_save_ifs"
  7266. test -z "$ac_dir" && ac_dir=.
  7267. if test -f $ac_dir/file; then
  7268. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7269. if test -n "$file_magic_test_file"; then
  7270. case $deplibs_check_method in
  7271. "file_magic "*)
  7272. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7273. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7274. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7275. $EGREP "$file_magic_regex" > /dev/null; then
  7276. :
  7277. else
  7278. cat <<_LT_EOF 1>&2
  7279. *** Warning: the command libtool uses to detect shared libraries,
  7280. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7281. *** The result is that libtool may fail to recognize shared libraries
  7282. *** as such. This will affect the creation of libtool libraries that
  7283. *** depend on shared libraries, but programs linked with such libtool
  7284. *** libraries will work regardless of this problem. Nevertheless, you
  7285. *** may want to report the problem to your system manager and/or to
  7286. *** [email protected]
  7287. _LT_EOF
  7288. fi ;;
  7289. esac
  7290. fi
  7291. break
  7292. fi
  7293. done
  7294. IFS="$lt_save_ifs"
  7295. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7296. ;;
  7297. esac
  7298. fi
  7299. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7300. if test -n "$MAGIC_CMD"; then
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7302. $as_echo "$MAGIC_CMD" >&6; }
  7303. else
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7305. $as_echo "no" >&6; }
  7306. fi
  7307. else
  7308. MAGIC_CMD=:
  7309. fi
  7310. fi
  7311. fi
  7312. ;;
  7313. esac
  7314. # Use C for the default configuration in the libtool script
  7315. lt_save_CC="$CC"
  7316. ac_ext=c
  7317. ac_cpp='$CPP $CPPFLAGS'
  7318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7321. # Source file extension for C test sources.
  7322. ac_ext=c
  7323. # Object file extension for compiled C test sources.
  7324. objext=o
  7325. objext=$objext
  7326. # Code to be used in simple compile tests
  7327. lt_simple_compile_test_code="int some_variable = 0;"
  7328. # Code to be used in simple link tests
  7329. lt_simple_link_test_code='int main(){return(0);}'
  7330. # If no C compiler was specified, use CC.
  7331. LTCC=${LTCC-"$CC"}
  7332. # If no C compiler flags were specified, use CFLAGS.
  7333. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7334. # Allow CC to be a program name with arguments.
  7335. compiler=$CC
  7336. # Save the default compiler, since it gets overwritten when the other
  7337. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7338. compiler_DEFAULT=$CC
  7339. # save warnings/boilerplate of simple test code
  7340. ac_outfile=conftest.$ac_objext
  7341. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7342. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7343. _lt_compiler_boilerplate=`cat conftest.err`
  7344. $RM conftest*
  7345. ac_outfile=conftest.$ac_objext
  7346. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7347. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7348. _lt_linker_boilerplate=`cat conftest.err`
  7349. $RM -r conftest*
  7350. ## CAVEAT EMPTOR:
  7351. ## There is no encapsulation within the following macros, do not change
  7352. ## the running order or otherwise move them around unless you know exactly
  7353. ## what you are doing...
  7354. if test -n "$compiler"; then
  7355. lt_prog_compiler_no_builtin_flag=
  7356. if test "$GCC" = yes; then
  7357. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7359. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7360. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7361. $as_echo_n "(cached) " >&6
  7362. else
  7363. lt_cv_prog_compiler_rtti_exceptions=no
  7364. ac_outfile=conftest.$ac_objext
  7365. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7366. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7367. # Insert the option either (1) after the last *FLAGS variable, or
  7368. # (2) before a word containing "conftest.", or (3) at the end.
  7369. # Note that $ac_compile itself does not contain backslashes and begins
  7370. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7371. # The option is referenced via a variable to avoid confusing sed.
  7372. lt_compile=`echo "$ac_compile" | $SED \
  7373. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7374. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7375. -e 's:$: $lt_compiler_flag:'`
  7376. (eval echo "\"\$as_me:8411: $lt_compile\"" >&5)
  7377. (eval "$lt_compile" 2>conftest.err)
  7378. ac_status=$?
  7379. cat conftest.err >&5
  7380. echo "$as_me:8415: \$? = $ac_status" >&5
  7381. if (exit $ac_status) && test -s "$ac_outfile"; then
  7382. # The compiler can only warn and ignore the option if not recognized
  7383. # So say no if there are warnings other than the usual output.
  7384. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7385. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7386. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7387. lt_cv_prog_compiler_rtti_exceptions=yes
  7388. fi
  7389. fi
  7390. $RM conftest*
  7391. fi
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7393. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7394. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7395. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7396. else
  7397. :
  7398. fi
  7399. fi
  7400. lt_prog_compiler_wl=
  7401. lt_prog_compiler_pic=
  7402. lt_prog_compiler_static=
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7404. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7405. if test "$GCC" = yes; then
  7406. lt_prog_compiler_wl='-Wl,'
  7407. lt_prog_compiler_static='-static'
  7408. case $host_os in
  7409. aix*)
  7410. # All AIX code is PIC.
  7411. if test "$host_cpu" = ia64; then
  7412. # AIX 5 now supports IA64 processor
  7413. lt_prog_compiler_static='-Bstatic'
  7414. fi
  7415. ;;
  7416. amigaos*)
  7417. case $host_cpu in
  7418. powerpc)
  7419. # see comment about AmigaOS4 .so support
  7420. lt_prog_compiler_pic='-fPIC'
  7421. ;;
  7422. m68k)
  7423. # FIXME: we need at least 68020 code to build shared libraries, but
  7424. # adding the `-m68020' flag to GCC prevents building anything better,
  7425. # like `-m68040'.
  7426. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7427. ;;
  7428. esac
  7429. ;;
  7430. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7431. # PIC is the default for these OSes.
  7432. ;;
  7433. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7434. # This hack is so that the source file can tell whether it is being
  7435. # built for inclusion in a dll (and should export symbols for example).
  7436. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7437. # (--disable-auto-import) libraries
  7438. lt_prog_compiler_pic='-DDLL_EXPORT'
  7439. ;;
  7440. darwin* | rhapsody*)
  7441. # PIC is the default on this platform
  7442. # Common symbols not allowed in MH_DYLIB files
  7443. lt_prog_compiler_pic='-fno-common'
  7444. ;;
  7445. hpux*)
  7446. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7447. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7448. # sets the default TLS model and affects inlining.
  7449. case $host_cpu in
  7450. hppa*64*)
  7451. # +Z the default
  7452. ;;
  7453. *)
  7454. lt_prog_compiler_pic='-fPIC'
  7455. ;;
  7456. esac
  7457. ;;
  7458. interix[3-9]*)
  7459. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7460. # Instead, we relocate shared libraries at runtime.
  7461. ;;
  7462. msdosdjgpp*)
  7463. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7464. # on systems that don't support them.
  7465. lt_prog_compiler_can_build_shared=no
  7466. enable_shared=no
  7467. ;;
  7468. *nto* | *qnx*)
  7469. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7470. # it will coredump.
  7471. lt_prog_compiler_pic='-fPIC -shared'
  7472. ;;
  7473. sysv4*MP*)
  7474. if test -d /usr/nec; then
  7475. lt_prog_compiler_pic=-Kconform_pic
  7476. fi
  7477. ;;
  7478. *)
  7479. lt_prog_compiler_pic='-fPIC'
  7480. ;;
  7481. esac
  7482. else
  7483. # PORTME Check for flag to pass linker flags through the system compiler.
  7484. case $host_os in
  7485. aix*)
  7486. lt_prog_compiler_wl='-Wl,'
  7487. if test "$host_cpu" = ia64; then
  7488. # AIX 5 now supports IA64 processor
  7489. lt_prog_compiler_static='-Bstatic'
  7490. else
  7491. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7492. fi
  7493. ;;
  7494. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7495. # This hack is so that the source file can tell whether it is being
  7496. # built for inclusion in a dll (and should export symbols for example).
  7497. lt_prog_compiler_pic='-DDLL_EXPORT'
  7498. ;;
  7499. hpux9* | hpux10* | hpux11*)
  7500. lt_prog_compiler_wl='-Wl,'
  7501. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7502. # not for PA HP-UX.
  7503. case $host_cpu in
  7504. hppa*64*|ia64*)
  7505. # +Z the default
  7506. ;;
  7507. *)
  7508. lt_prog_compiler_pic='+Z'
  7509. ;;
  7510. esac
  7511. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7512. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7513. ;;
  7514. irix5* | irix6* | nonstopux*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. # PIC (with -KPIC) is the default.
  7517. lt_prog_compiler_static='-non_shared'
  7518. ;;
  7519. linux* | k*bsd*-gnu)
  7520. case $cc_basename in
  7521. # old Intel for x86_64 which still supported -KPIC.
  7522. ecc*)
  7523. lt_prog_compiler_wl='-Wl,'
  7524. lt_prog_compiler_pic='-KPIC'
  7525. lt_prog_compiler_static='-static'
  7526. ;;
  7527. # icc used to be incompatible with GCC.
  7528. # ICC 10 doesn't accept -KPIC any more.
  7529. icc* | ifort*)
  7530. lt_prog_compiler_wl='-Wl,'
  7531. lt_prog_compiler_pic='-fPIC'
  7532. lt_prog_compiler_static='-static'
  7533. ;;
  7534. # Lahey Fortran 8.1.
  7535. lf95*)
  7536. lt_prog_compiler_wl='-Wl,'
  7537. lt_prog_compiler_pic='--shared'
  7538. lt_prog_compiler_static='--static'
  7539. ;;
  7540. pgcc* | pgf77* | pgf90* | pgf95*)
  7541. # Portland Group compilers (*not* the Pentium gcc compiler,
  7542. # which looks to be a dead project)
  7543. lt_prog_compiler_wl='-Wl,'
  7544. lt_prog_compiler_pic='-fpic'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. ccc*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. # All Alpha code is PIC.
  7550. lt_prog_compiler_static='-non_shared'
  7551. ;;
  7552. xl*)
  7553. # IBM XL C 8.0/Fortran 10.1 on PPC
  7554. lt_prog_compiler_wl='-Wl,'
  7555. lt_prog_compiler_pic='-qpic'
  7556. lt_prog_compiler_static='-qstaticlink'
  7557. ;;
  7558. *)
  7559. case `$CC -V 2>&1 | sed 5q` in
  7560. *Sun\ C*)
  7561. # Sun C 5.9
  7562. lt_prog_compiler_pic='-KPIC'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. lt_prog_compiler_wl='-Wl,'
  7565. ;;
  7566. *Sun\ F*)
  7567. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7568. lt_prog_compiler_pic='-KPIC'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. lt_prog_compiler_wl=''
  7571. ;;
  7572. esac
  7573. ;;
  7574. esac
  7575. ;;
  7576. newsos6)
  7577. lt_prog_compiler_pic='-KPIC'
  7578. lt_prog_compiler_static='-Bstatic'
  7579. ;;
  7580. *nto* | *qnx*)
  7581. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7582. # it will coredump.
  7583. lt_prog_compiler_pic='-fPIC -shared'
  7584. ;;
  7585. osf3* | osf4* | osf5*)
  7586. lt_prog_compiler_wl='-Wl,'
  7587. # All OSF/1 code is PIC.
  7588. lt_prog_compiler_static='-non_shared'
  7589. ;;
  7590. rdos*)
  7591. lt_prog_compiler_static='-non_shared'
  7592. ;;
  7593. solaris*)
  7594. lt_prog_compiler_pic='-KPIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. case $cc_basename in
  7597. f77* | f90* | f95*)
  7598. lt_prog_compiler_wl='-Qoption ld ';;
  7599. *)
  7600. lt_prog_compiler_wl='-Wl,';;
  7601. esac
  7602. ;;
  7603. sunos4*)
  7604. lt_prog_compiler_wl='-Qoption ld '
  7605. lt_prog_compiler_pic='-PIC'
  7606. lt_prog_compiler_static='-Bstatic'
  7607. ;;
  7608. sysv4 | sysv4.2uw2* | sysv4.3*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. lt_prog_compiler_pic='-KPIC'
  7611. lt_prog_compiler_static='-Bstatic'
  7612. ;;
  7613. sysv4*MP*)
  7614. if test -d /usr/nec ;then
  7615. lt_prog_compiler_pic='-Kconform_pic'
  7616. lt_prog_compiler_static='-Bstatic'
  7617. fi
  7618. ;;
  7619. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7620. lt_prog_compiler_wl='-Wl,'
  7621. lt_prog_compiler_pic='-KPIC'
  7622. lt_prog_compiler_static='-Bstatic'
  7623. ;;
  7624. unicos*)
  7625. lt_prog_compiler_wl='-Wl,'
  7626. lt_prog_compiler_can_build_shared=no
  7627. ;;
  7628. uts4*)
  7629. lt_prog_compiler_pic='-pic'
  7630. lt_prog_compiler_static='-Bstatic'
  7631. ;;
  7632. *)
  7633. lt_prog_compiler_can_build_shared=no
  7634. ;;
  7635. esac
  7636. fi
  7637. case $host_os in
  7638. # For platforms which do not support PIC, -DPIC is meaningless:
  7639. *djgpp*)
  7640. lt_prog_compiler_pic=
  7641. ;;
  7642. *)
  7643. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7644. ;;
  7645. esac
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7647. $as_echo "$lt_prog_compiler_pic" >&6; }
  7648. #
  7649. # Check to make sure the PIC flag actually works.
  7650. #
  7651. if test -n "$lt_prog_compiler_pic"; then
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7653. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7654. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7655. $as_echo_n "(cached) " >&6
  7656. else
  7657. lt_cv_prog_compiler_pic_works=no
  7658. ac_outfile=conftest.$ac_objext
  7659. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7660. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7661. # Insert the option either (1) after the last *FLAGS variable, or
  7662. # (2) before a word containing "conftest.", or (3) at the end.
  7663. # Note that $ac_compile itself does not contain backslashes and begins
  7664. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7665. # The option is referenced via a variable to avoid confusing sed.
  7666. lt_compile=`echo "$ac_compile" | $SED \
  7667. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7668. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7669. -e 's:$: $lt_compiler_flag:'`
  7670. (eval echo "\"\$as_me:8750: $lt_compile\"" >&5)
  7671. (eval "$lt_compile" 2>conftest.err)
  7672. ac_status=$?
  7673. cat conftest.err >&5
  7674. echo "$as_me:8754: \$? = $ac_status" >&5
  7675. if (exit $ac_status) && test -s "$ac_outfile"; then
  7676. # The compiler can only warn and ignore the option if not recognized
  7677. # So say no if there are warnings other than the usual output.
  7678. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7679. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7680. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7681. lt_cv_prog_compiler_pic_works=yes
  7682. fi
  7683. fi
  7684. $RM conftest*
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7687. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7688. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7689. case $lt_prog_compiler_pic in
  7690. "" | " "*) ;;
  7691. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7692. esac
  7693. else
  7694. lt_prog_compiler_pic=
  7695. lt_prog_compiler_can_build_shared=no
  7696. fi
  7697. fi
  7698. #
  7699. # Check to make sure the static flag actually works.
  7700. #
  7701. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7703. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7704. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7705. $as_echo_n "(cached) " >&6
  7706. else
  7707. lt_cv_prog_compiler_static_works=no
  7708. save_LDFLAGS="$LDFLAGS"
  7709. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7710. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7711. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7712. # The linker can only warn and ignore the option if not recognized
  7713. # So say no if there are warnings
  7714. if test -s conftest.err; then
  7715. # Append any errors to the config.log.
  7716. cat conftest.err 1>&5
  7717. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7718. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7719. if diff conftest.exp conftest.er2 >/dev/null; then
  7720. lt_cv_prog_compiler_static_works=yes
  7721. fi
  7722. else
  7723. lt_cv_prog_compiler_static_works=yes
  7724. fi
  7725. fi
  7726. $RM -r conftest*
  7727. LDFLAGS="$save_LDFLAGS"
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7730. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7731. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7732. :
  7733. else
  7734. lt_prog_compiler_static=
  7735. fi
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7737. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7738. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7739. $as_echo_n "(cached) " >&6
  7740. else
  7741. lt_cv_prog_compiler_c_o=no
  7742. $RM -r conftest 2>/dev/null
  7743. mkdir conftest
  7744. cd conftest
  7745. mkdir out
  7746. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7747. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7748. # Insert the option either (1) after the last *FLAGS variable, or
  7749. # (2) before a word containing "conftest.", or (3) at the end.
  7750. # Note that $ac_compile itself does not contain backslashes and begins
  7751. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7752. lt_compile=`echo "$ac_compile" | $SED \
  7753. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7754. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7755. -e 's:$: $lt_compiler_flag:'`
  7756. (eval echo "\"\$as_me:8855: $lt_compile\"" >&5)
  7757. (eval "$lt_compile" 2>out/conftest.err)
  7758. ac_status=$?
  7759. cat out/conftest.err >&5
  7760. echo "$as_me:8859: \$? = $ac_status" >&5
  7761. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7762. then
  7763. # The compiler can only warn and ignore the option if not recognized
  7764. # So say no if there are warnings
  7765. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7766. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7767. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7768. lt_cv_prog_compiler_c_o=yes
  7769. fi
  7770. fi
  7771. chmod u+w . 2>&5
  7772. $RM conftest*
  7773. # SGI C++ compiler will create directory out/ii_files/ for
  7774. # template instantiation
  7775. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7776. $RM out/* && rmdir out
  7777. cd ..
  7778. $RM -r conftest
  7779. $RM conftest*
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7782. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7784. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7785. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7786. $as_echo_n "(cached) " >&6
  7787. else
  7788. lt_cv_prog_compiler_c_o=no
  7789. $RM -r conftest 2>/dev/null
  7790. mkdir conftest
  7791. cd conftest
  7792. mkdir out
  7793. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7794. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7795. # Insert the option either (1) after the last *FLAGS variable, or
  7796. # (2) before a word containing "conftest.", or (3) at the end.
  7797. # Note that $ac_compile itself does not contain backslashes and begins
  7798. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7799. lt_compile=`echo "$ac_compile" | $SED \
  7800. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7801. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7802. -e 's:$: $lt_compiler_flag:'`
  7803. (eval echo "\"\$as_me:8910: $lt_compile\"" >&5)
  7804. (eval "$lt_compile" 2>out/conftest.err)
  7805. ac_status=$?
  7806. cat out/conftest.err >&5
  7807. echo "$as_me:8914: \$? = $ac_status" >&5
  7808. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7809. then
  7810. # The compiler can only warn and ignore the option if not recognized
  7811. # So say no if there are warnings
  7812. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7813. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7814. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7815. lt_cv_prog_compiler_c_o=yes
  7816. fi
  7817. fi
  7818. chmod u+w . 2>&5
  7819. $RM conftest*
  7820. # SGI C++ compiler will create directory out/ii_files/ for
  7821. # template instantiation
  7822. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7823. $RM out/* && rmdir out
  7824. cd ..
  7825. $RM -r conftest
  7826. $RM conftest*
  7827. fi
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7829. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7830. hard_links="nottested"
  7831. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7832. # do not overwrite the value of need_locks provided by the user
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7834. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7835. hard_links=yes
  7836. $RM conftest*
  7837. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7838. touch conftest.a
  7839. ln conftest.a conftest.b 2>&5 || hard_links=no
  7840. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7842. $as_echo "$hard_links" >&6; }
  7843. if test "$hard_links" = no; then
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7845. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7846. need_locks=warn
  7847. fi
  7848. else
  7849. need_locks=no
  7850. fi
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7852. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7853. runpath_var=
  7854. allow_undefined_flag=
  7855. always_export_symbols=no
  7856. archive_cmds=
  7857. archive_expsym_cmds=
  7858. compiler_needs_object=no
  7859. enable_shared_with_static_runtimes=no
  7860. export_dynamic_flag_spec=
  7861. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7862. hardcode_automatic=no
  7863. hardcode_direct=no
  7864. hardcode_direct_absolute=no
  7865. hardcode_libdir_flag_spec=
  7866. hardcode_libdir_flag_spec_ld=
  7867. hardcode_libdir_separator=
  7868. hardcode_minus_L=no
  7869. hardcode_shlibpath_var=unsupported
  7870. inherit_rpath=no
  7871. link_all_deplibs=unknown
  7872. module_cmds=
  7873. module_expsym_cmds=
  7874. old_archive_from_new_cmds=
  7875. old_archive_from_expsyms_cmds=
  7876. thread_safe_flag_spec=
  7877. whole_archive_flag_spec=
  7878. # include_expsyms should be a list of space-separated symbols to be *always*
  7879. # included in the symbol list
  7880. include_expsyms=
  7881. # exclude_expsyms can be an extended regexp of symbols to exclude
  7882. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7883. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7884. # as well as any symbol that contains `d'.
  7885. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7886. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7887. # platforms (ab)use it in PIC code, but their linkers get confused if
  7888. # the symbol is explicitly referenced. Since portable code cannot
  7889. # rely on this symbol name, it's probably fine to never include it in
  7890. # preloaded symbol tables.
  7891. # Exclude shared library initialization/finalization symbols.
  7892. extract_expsyms_cmds=
  7893. case $host_os in
  7894. cygwin* | mingw* | pw32* | cegcc*)
  7895. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7896. # When not using gcc, we currently assume that we are using
  7897. # Microsoft Visual C++.
  7898. if test "$GCC" != yes; then
  7899. with_gnu_ld=no
  7900. fi
  7901. ;;
  7902. interix*)
  7903. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7904. with_gnu_ld=yes
  7905. ;;
  7906. openbsd*)
  7907. with_gnu_ld=no
  7908. ;;
  7909. esac
  7910. ld_shlibs=yes
  7911. if test "$with_gnu_ld" = yes; then
  7912. # If archive_cmds runs LD, not CC, wlarc should be empty
  7913. wlarc='${wl}'
  7914. # Set some defaults for GNU ld with shared library support. These
  7915. # are reset later if shared libraries are not supported. Putting them
  7916. # here allows them to be overridden if necessary.
  7917. runpath_var=LD_RUN_PATH
  7918. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7919. export_dynamic_flag_spec='${wl}--export-dynamic'
  7920. # ancient GNU ld didn't support --whole-archive et. al.
  7921. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7922. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7923. else
  7924. whole_archive_flag_spec=
  7925. fi
  7926. supports_anon_versioning=no
  7927. case `$LD -v 2>&1` in
  7928. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7929. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7930. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7931. *\ 2.11.*) ;; # other 2.11 versions
  7932. *) supports_anon_versioning=yes ;;
  7933. esac
  7934. # See if GNU ld supports shared libraries.
  7935. case $host_os in
  7936. aix[3-9]*)
  7937. # On AIX/PPC, the GNU linker is very broken
  7938. if test "$host_cpu" != ia64; then
  7939. ld_shlibs=no
  7940. cat <<_LT_EOF 1>&2
  7941. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7942. *** to be unable to reliably create shared libraries on AIX.
  7943. *** Therefore, libtool is disabling shared libraries support. If you
  7944. *** really care for shared libraries, you may want to modify your PATH
  7945. *** so that a non-GNU linker is found, and then restart.
  7946. _LT_EOF
  7947. fi
  7948. ;;
  7949. amigaos*)
  7950. case $host_cpu in
  7951. powerpc)
  7952. # see comment about AmigaOS4 .so support
  7953. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7954. archive_expsym_cmds=''
  7955. ;;
  7956. m68k)
  7957. 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)'
  7958. hardcode_libdir_flag_spec='-L$libdir'
  7959. hardcode_minus_L=yes
  7960. ;;
  7961. esac
  7962. ;;
  7963. beos*)
  7964. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7965. allow_undefined_flag=unsupported
  7966. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7967. # support --undefined. This deserves some investigation. FIXME
  7968. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7969. else
  7970. ld_shlibs=no
  7971. fi
  7972. ;;
  7973. cygwin* | mingw* | pw32* | cegcc*)
  7974. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7975. # as there is no search path for DLLs.
  7976. hardcode_libdir_flag_spec='-L$libdir'
  7977. allow_undefined_flag=unsupported
  7978. always_export_symbols=no
  7979. enable_shared_with_static_runtimes=yes
  7980. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7981. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7982. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7983. # If the export-symbols file already is a .def file (1st line
  7984. # is EXPORTS), use it as is; otherwise, prepend...
  7985. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7986. cp $export_symbols $output_objdir/$soname.def;
  7987. else
  7988. echo EXPORTS > $output_objdir/$soname.def;
  7989. cat $export_symbols >> $output_objdir/$soname.def;
  7990. fi~
  7991. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7992. else
  7993. ld_shlibs=no
  7994. fi
  7995. ;;
  7996. interix[3-9]*)
  7997. hardcode_direct=no
  7998. hardcode_shlibpath_var=no
  7999. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8000. export_dynamic_flag_spec='${wl}-E'
  8001. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8002. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8003. # default) and relocated if they conflict, which is a slow very memory
  8004. # consuming and fragmenting process. To avoid this, we pick a random,
  8005. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8006. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8007. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8008. 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'
  8009. ;;
  8010. gnu* | linux* | tpf* | k*bsd*-gnu)
  8011. tmp_diet=no
  8012. if test "$host_os" = linux-dietlibc; then
  8013. case $cc_basename in
  8014. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8015. esac
  8016. fi
  8017. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8018. && test "$tmp_diet" = no
  8019. then
  8020. tmp_addflag=
  8021. tmp_sharedflag='-shared'
  8022. case $cc_basename,$host_cpu in
  8023. pgcc*) # Portland Group C compiler
  8024. 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'
  8025. tmp_addflag=' $pic_flag'
  8026. ;;
  8027. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8028. 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'
  8029. tmp_addflag=' $pic_flag -Mnomain' ;;
  8030. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8031. tmp_addflag=' -i_dynamic' ;;
  8032. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8033. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8034. ifc* | ifort*) # Intel Fortran compiler
  8035. tmp_addflag=' -nofor_main' ;;
  8036. lf95*) # Lahey Fortran 8.1
  8037. whole_archive_flag_spec=
  8038. tmp_sharedflag='--shared' ;;
  8039. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8040. tmp_sharedflag='-qmkshrobj'
  8041. tmp_addflag= ;;
  8042. esac
  8043. case `$CC -V 2>&1 | sed 5q` in
  8044. *Sun\ C*) # Sun C 5.9
  8045. 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'
  8046. compiler_needs_object=yes
  8047. tmp_sharedflag='-G' ;;
  8048. *Sun\ F*) # Sun Fortran 8.3
  8049. tmp_sharedflag='-G' ;;
  8050. esac
  8051. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8052. if test "x$supports_anon_versioning" = xyes; then
  8053. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8054. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8055. echo "local: *; };" >> $output_objdir/$libname.ver~
  8056. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8057. fi
  8058. case $cc_basename in
  8059. xlf*)
  8060. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8061. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8062. hardcode_libdir_flag_spec=
  8063. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8064. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8065. if test "x$supports_anon_versioning" = xyes; then
  8066. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8067. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8068. echo "local: *; };" >> $output_objdir/$libname.ver~
  8069. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8070. fi
  8071. ;;
  8072. esac
  8073. else
  8074. ld_shlibs=no
  8075. fi
  8076. ;;
  8077. netbsd* | netbsdelf*-gnu)
  8078. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8079. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8080. wlarc=
  8081. else
  8082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8083. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8084. fi
  8085. ;;
  8086. solaris*)
  8087. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8088. ld_shlibs=no
  8089. cat <<_LT_EOF 1>&2
  8090. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8091. *** create shared libraries on Solaris systems. Therefore, libtool
  8092. *** is disabling shared libraries support. We urge you to upgrade GNU
  8093. *** binutils to release 2.9.1 or newer. Another option is to modify
  8094. *** your PATH or compiler configuration so that the native linker is
  8095. *** used, and then restart.
  8096. _LT_EOF
  8097. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8098. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8099. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8100. else
  8101. ld_shlibs=no
  8102. fi
  8103. ;;
  8104. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8105. case `$LD -v 2>&1` in
  8106. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8107. ld_shlibs=no
  8108. cat <<_LT_EOF 1>&2
  8109. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8110. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8111. *** is disabling shared libraries support. We urge you to upgrade GNU
  8112. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8113. *** your PATH or compiler configuration so that the native linker is
  8114. *** used, and then restart.
  8115. _LT_EOF
  8116. ;;
  8117. *)
  8118. # For security reasons, it is highly recommended that you always
  8119. # use absolute paths for naming shared libraries, and exclude the
  8120. # DT_RUNPATH tag from executables and libraries. But doing so
  8121. # requires that you compile everything twice, which is a pain.
  8122. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8123. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8124. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8125. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8126. else
  8127. ld_shlibs=no
  8128. fi
  8129. ;;
  8130. esac
  8131. ;;
  8132. sunos4*)
  8133. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8134. wlarc=
  8135. hardcode_direct=yes
  8136. hardcode_shlibpath_var=no
  8137. ;;
  8138. *)
  8139. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8140. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8141. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8142. else
  8143. ld_shlibs=no
  8144. fi
  8145. ;;
  8146. esac
  8147. if test "$ld_shlibs" = no; then
  8148. runpath_var=
  8149. hardcode_libdir_flag_spec=
  8150. export_dynamic_flag_spec=
  8151. whole_archive_flag_spec=
  8152. fi
  8153. else
  8154. # PORTME fill in a description of your system's linker (not GNU ld)
  8155. case $host_os in
  8156. aix3*)
  8157. allow_undefined_flag=unsupported
  8158. always_export_symbols=yes
  8159. 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'
  8160. # Note: this linker hardcodes the directories in LIBPATH if there
  8161. # are no directories specified by -L.
  8162. hardcode_minus_L=yes
  8163. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8164. # Neither direct hardcoding nor static linking is supported with a
  8165. # broken collect2.
  8166. hardcode_direct=unsupported
  8167. fi
  8168. ;;
  8169. aix[4-9]*)
  8170. if test "$host_cpu" = ia64; then
  8171. # On IA64, the linker does run time linking by default, so we don't
  8172. # have to do anything special.
  8173. aix_use_runtimelinking=no
  8174. exp_sym_flag='-Bexport'
  8175. no_entry_flag=""
  8176. else
  8177. # If we're using GNU nm, then we don't want the "-C" option.
  8178. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8179. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8180. 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'
  8181. else
  8182. 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'
  8183. fi
  8184. aix_use_runtimelinking=no
  8185. # Test if we are trying to use run time linking or normal
  8186. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8187. # need to do runtime linking.
  8188. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8189. for ld_flag in $LDFLAGS; do
  8190. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8191. aix_use_runtimelinking=yes
  8192. break
  8193. fi
  8194. done
  8195. ;;
  8196. esac
  8197. exp_sym_flag='-bexport'
  8198. no_entry_flag='-bnoentry'
  8199. fi
  8200. # When large executables or shared objects are built, AIX ld can
  8201. # have problems creating the table of contents. If linking a library
  8202. # or program results in "error TOC overflow" add -mminimal-toc to
  8203. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8204. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8205. archive_cmds=''
  8206. hardcode_direct=yes
  8207. hardcode_direct_absolute=yes
  8208. hardcode_libdir_separator=':'
  8209. link_all_deplibs=yes
  8210. file_list_spec='${wl}-f,'
  8211. if test "$GCC" = yes; then
  8212. case $host_os in aix4.[012]|aix4.[012].*)
  8213. # We only want to do this on AIX 4.2 and lower, the check
  8214. # below for broken collect2 doesn't work under 4.3+
  8215. collect2name=`${CC} -print-prog-name=collect2`
  8216. if test -f "$collect2name" &&
  8217. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8218. then
  8219. # We have reworked collect2
  8220. :
  8221. else
  8222. # We have old collect2
  8223. hardcode_direct=unsupported
  8224. # It fails to find uninstalled libraries when the uninstalled
  8225. # path is not listed in the libpath. Setting hardcode_minus_L
  8226. # to unsupported forces relinking
  8227. hardcode_minus_L=yes
  8228. hardcode_libdir_flag_spec='-L$libdir'
  8229. hardcode_libdir_separator=
  8230. fi
  8231. ;;
  8232. esac
  8233. shared_flag='-shared'
  8234. if test "$aix_use_runtimelinking" = yes; then
  8235. shared_flag="$shared_flag "'${wl}-G'
  8236. fi
  8237. link_all_deplibs=no
  8238. else
  8239. # not using gcc
  8240. if test "$host_cpu" = ia64; then
  8241. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8242. # chokes on -Wl,-G. The following line is correct:
  8243. shared_flag='-G'
  8244. else
  8245. if test "$aix_use_runtimelinking" = yes; then
  8246. shared_flag='${wl}-G'
  8247. else
  8248. shared_flag='${wl}-bM:SRE'
  8249. fi
  8250. fi
  8251. fi
  8252. export_dynamic_flag_spec='${wl}-bexpall'
  8253. # It seems that -bexpall does not export symbols beginning with
  8254. # underscore (_), so it is better to generate a list of symbols to export.
  8255. always_export_symbols=yes
  8256. if test "$aix_use_runtimelinking" = yes; then
  8257. # Warning - without using the other runtime loading flags (-brtl),
  8258. # -berok will link without error, but may produce a broken library.
  8259. allow_undefined_flag='-berok'
  8260. # Determine the default libpath from the value encoded in an
  8261. # empty executable.
  8262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8263. /* end confdefs.h. */
  8264. int
  8265. main ()
  8266. {
  8267. ;
  8268. return 0;
  8269. }
  8270. _ACEOF
  8271. if ac_fn_c_try_link "$LINENO"; then :
  8272. lt_aix_libpath_sed='
  8273. /Import File Strings/,/^$/ {
  8274. /^0/ {
  8275. s/^0 *\(.*\)$/\1/
  8276. p
  8277. }
  8278. }'
  8279. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8280. # Check for a 64-bit object if we didn't find anything.
  8281. if test -z "$aix_libpath"; then
  8282. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8283. fi
  8284. fi
  8285. rm -f core conftest.err conftest.$ac_objext \
  8286. conftest$ac_exeext conftest.$ac_ext
  8287. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8288. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8289. 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"
  8290. else
  8291. if test "$host_cpu" = ia64; then
  8292. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8293. allow_undefined_flag="-z nodefs"
  8294. 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"
  8295. else
  8296. # Determine the default libpath from the value encoded in an
  8297. # empty executable.
  8298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8299. /* end confdefs.h. */
  8300. int
  8301. main ()
  8302. {
  8303. ;
  8304. return 0;
  8305. }
  8306. _ACEOF
  8307. if ac_fn_c_try_link "$LINENO"; then :
  8308. lt_aix_libpath_sed='
  8309. /Import File Strings/,/^$/ {
  8310. /^0/ {
  8311. s/^0 *\(.*\)$/\1/
  8312. p
  8313. }
  8314. }'
  8315. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8316. # Check for a 64-bit object if we didn't find anything.
  8317. if test -z "$aix_libpath"; then
  8318. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8319. fi
  8320. fi
  8321. rm -f core conftest.err conftest.$ac_objext \
  8322. conftest$ac_exeext conftest.$ac_ext
  8323. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8324. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8325. # Warning - without using the other run time loading flags,
  8326. # -berok will link without error, but may produce a broken library.
  8327. no_undefined_flag=' ${wl}-bernotok'
  8328. allow_undefined_flag=' ${wl}-berok'
  8329. # Exported symbols can be pulled into shared objects from archives
  8330. whole_archive_flag_spec='$convenience'
  8331. archive_cmds_need_lc=yes
  8332. # This is similar to how AIX traditionally builds its shared libraries.
  8333. 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'
  8334. fi
  8335. fi
  8336. ;;
  8337. amigaos*)
  8338. case $host_cpu in
  8339. powerpc)
  8340. # see comment about AmigaOS4 .so support
  8341. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8342. archive_expsym_cmds=''
  8343. ;;
  8344. m68k)
  8345. 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)'
  8346. hardcode_libdir_flag_spec='-L$libdir'
  8347. hardcode_minus_L=yes
  8348. ;;
  8349. esac
  8350. ;;
  8351. bsdi[45]*)
  8352. export_dynamic_flag_spec=-rdynamic
  8353. ;;
  8354. cygwin* | mingw* | pw32* | cegcc*)
  8355. # When not using gcc, we currently assume that we are using
  8356. # Microsoft Visual C++.
  8357. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8358. # no search path for DLLs.
  8359. hardcode_libdir_flag_spec=' '
  8360. allow_undefined_flag=unsupported
  8361. # Tell ltmain to make .lib files, not .a files.
  8362. libext=lib
  8363. # Tell ltmain to make .dll files, not .so files.
  8364. shrext_cmds=".dll"
  8365. # FIXME: Setting linknames here is a bad hack.
  8366. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8367. # The linker will automatically build a .lib file if we build a DLL.
  8368. old_archive_from_new_cmds='true'
  8369. # FIXME: Should let the user specify the lib program.
  8370. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8371. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8372. enable_shared_with_static_runtimes=yes
  8373. ;;
  8374. darwin* | rhapsody*)
  8375. archive_cmds_need_lc=no
  8376. hardcode_direct=no
  8377. hardcode_automatic=yes
  8378. hardcode_shlibpath_var=unsupported
  8379. whole_archive_flag_spec=''
  8380. link_all_deplibs=yes
  8381. allow_undefined_flag="$_lt_dar_allow_undefined"
  8382. case $cc_basename in
  8383. ifort*) _lt_dar_can_shared=yes ;;
  8384. *) _lt_dar_can_shared=$GCC ;;
  8385. esac
  8386. if test "$_lt_dar_can_shared" = "yes"; then
  8387. output_verbose_link_cmd=echo
  8388. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8389. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8390. 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}"
  8391. 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}"
  8392. else
  8393. ld_shlibs=no
  8394. fi
  8395. ;;
  8396. dgux*)
  8397. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8398. hardcode_libdir_flag_spec='-L$libdir'
  8399. hardcode_shlibpath_var=no
  8400. ;;
  8401. freebsd1*)
  8402. ld_shlibs=no
  8403. ;;
  8404. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8405. # support. Future versions do this automatically, but an explicit c++rt0.o
  8406. # does not break anything, and helps significantly (at the cost of a little
  8407. # extra space).
  8408. freebsd2.2*)
  8409. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8410. hardcode_libdir_flag_spec='-R$libdir'
  8411. hardcode_direct=yes
  8412. hardcode_shlibpath_var=no
  8413. ;;
  8414. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8415. freebsd2*)
  8416. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8417. hardcode_direct=yes
  8418. hardcode_minus_L=yes
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8422. freebsd* | dragonfly*)
  8423. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8424. hardcode_libdir_flag_spec='-R$libdir'
  8425. hardcode_direct=yes
  8426. hardcode_shlibpath_var=no
  8427. ;;
  8428. hpux9*)
  8429. if test "$GCC" = yes; then
  8430. 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'
  8431. else
  8432. 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'
  8433. fi
  8434. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8435. hardcode_libdir_separator=:
  8436. hardcode_direct=yes
  8437. # hardcode_minus_L: Not really in the search PATH,
  8438. # but as the default location of the library.
  8439. hardcode_minus_L=yes
  8440. export_dynamic_flag_spec='${wl}-E'
  8441. ;;
  8442. hpux10*)
  8443. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8444. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8445. else
  8446. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8447. fi
  8448. if test "$with_gnu_ld" = no; then
  8449. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8450. hardcode_libdir_flag_spec_ld='+b $libdir'
  8451. hardcode_libdir_separator=:
  8452. hardcode_direct=yes
  8453. hardcode_direct_absolute=yes
  8454. export_dynamic_flag_spec='${wl}-E'
  8455. # hardcode_minus_L: Not really in the search PATH,
  8456. # but as the default location of the library.
  8457. hardcode_minus_L=yes
  8458. fi
  8459. ;;
  8460. hpux11*)
  8461. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8462. case $host_cpu in
  8463. hppa*64*)
  8464. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. ;;
  8466. ia64*)
  8467. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8468. ;;
  8469. *)
  8470. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8471. ;;
  8472. esac
  8473. else
  8474. case $host_cpu in
  8475. hppa*64*)
  8476. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8477. ;;
  8478. ia64*)
  8479. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8480. ;;
  8481. *)
  8482. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8483. ;;
  8484. esac
  8485. fi
  8486. if test "$with_gnu_ld" = no; then
  8487. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8488. hardcode_libdir_separator=:
  8489. case $host_cpu in
  8490. hppa*64*|ia64*)
  8491. hardcode_direct=no
  8492. hardcode_shlibpath_var=no
  8493. ;;
  8494. *)
  8495. hardcode_direct=yes
  8496. hardcode_direct_absolute=yes
  8497. export_dynamic_flag_spec='${wl}-E'
  8498. # hardcode_minus_L: Not really in the search PATH,
  8499. # but as the default location of the library.
  8500. hardcode_minus_L=yes
  8501. ;;
  8502. esac
  8503. fi
  8504. ;;
  8505. irix5* | irix6* | nonstopux*)
  8506. if test "$GCC" = yes; then
  8507. 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'
  8508. # Try to use the -exported_symbol ld option, if it does not
  8509. # work, assume that -exports_file does not work either and
  8510. # implicitly export all symbols.
  8511. save_LDFLAGS="$LDFLAGS"
  8512. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8514. /* end confdefs.h. */
  8515. int foo(void) {}
  8516. _ACEOF
  8517. if ac_fn_c_try_link "$LINENO"; then :
  8518. 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'
  8519. fi
  8520. rm -f core conftest.err conftest.$ac_objext \
  8521. conftest$ac_exeext conftest.$ac_ext
  8522. LDFLAGS="$save_LDFLAGS"
  8523. else
  8524. 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'
  8525. 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'
  8526. fi
  8527. archive_cmds_need_lc='no'
  8528. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8529. hardcode_libdir_separator=:
  8530. inherit_rpath=yes
  8531. link_all_deplibs=yes
  8532. ;;
  8533. netbsd* | netbsdelf*-gnu)
  8534. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8535. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8536. else
  8537. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8538. fi
  8539. hardcode_libdir_flag_spec='-R$libdir'
  8540. hardcode_direct=yes
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. newsos6)
  8544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8545. hardcode_direct=yes
  8546. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8547. hardcode_libdir_separator=:
  8548. hardcode_shlibpath_var=no
  8549. ;;
  8550. *nto* | *qnx*)
  8551. ;;
  8552. openbsd*)
  8553. if test -f /usr/libexec/ld.so; then
  8554. hardcode_direct=yes
  8555. hardcode_shlibpath_var=no
  8556. hardcode_direct_absolute=yes
  8557. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8558. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8559. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8560. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8561. export_dynamic_flag_spec='${wl}-E'
  8562. else
  8563. case $host_os in
  8564. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8565. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8566. hardcode_libdir_flag_spec='-R$libdir'
  8567. ;;
  8568. *)
  8569. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8570. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8571. ;;
  8572. esac
  8573. fi
  8574. else
  8575. ld_shlibs=no
  8576. fi
  8577. ;;
  8578. os2*)
  8579. hardcode_libdir_flag_spec='-L$libdir'
  8580. hardcode_minus_L=yes
  8581. allow_undefined_flag=unsupported
  8582. 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'
  8583. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8584. ;;
  8585. osf3*)
  8586. if test "$GCC" = yes; then
  8587. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8588. 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'
  8589. else
  8590. allow_undefined_flag=' -expect_unresolved \*'
  8591. 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'
  8592. fi
  8593. archive_cmds_need_lc='no'
  8594. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8595. hardcode_libdir_separator=:
  8596. ;;
  8597. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8598. if test "$GCC" = yes; then
  8599. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8600. 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'
  8601. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8602. else
  8603. allow_undefined_flag=' -expect_unresolved \*'
  8604. 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'
  8605. 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~
  8606. $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'
  8607. # Both c and cxx compiler support -rpath directly
  8608. hardcode_libdir_flag_spec='-rpath $libdir'
  8609. fi
  8610. archive_cmds_need_lc='no'
  8611. hardcode_libdir_separator=:
  8612. ;;
  8613. solaris*)
  8614. no_undefined_flag=' -z defs'
  8615. if test "$GCC" = yes; then
  8616. wlarc='${wl}'
  8617. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8618. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8619. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8620. else
  8621. case `$CC -V 2>&1` in
  8622. *"Compilers 5.0"*)
  8623. wlarc=''
  8624. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8625. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8626. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8627. ;;
  8628. *)
  8629. wlarc='${wl}'
  8630. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8631. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8632. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8633. ;;
  8634. esac
  8635. fi
  8636. hardcode_libdir_flag_spec='-R$libdir'
  8637. hardcode_shlibpath_var=no
  8638. case $host_os in
  8639. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8640. *)
  8641. # The compiler driver will combine and reorder linker options,
  8642. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8643. # but is careful enough not to reorder.
  8644. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8645. if test "$GCC" = yes; then
  8646. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8647. else
  8648. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8649. fi
  8650. ;;
  8651. esac
  8652. link_all_deplibs=yes
  8653. ;;
  8654. sunos4*)
  8655. if test "x$host_vendor" = xsequent; then
  8656. # Use $CC to link under sequent, because it throws in some extra .o
  8657. # files that make .init and .fini sections work.
  8658. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8659. else
  8660. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8661. fi
  8662. hardcode_libdir_flag_spec='-L$libdir'
  8663. hardcode_direct=yes
  8664. hardcode_minus_L=yes
  8665. hardcode_shlibpath_var=no
  8666. ;;
  8667. sysv4)
  8668. case $host_vendor in
  8669. sni)
  8670. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8671. hardcode_direct=yes # is this really true???
  8672. ;;
  8673. siemens)
  8674. ## LD is ld it makes a PLAMLIB
  8675. ## CC just makes a GrossModule.
  8676. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8677. reload_cmds='$CC -r -o $output$reload_objs'
  8678. hardcode_direct=no
  8679. ;;
  8680. motorola)
  8681. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8682. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8683. ;;
  8684. esac
  8685. runpath_var='LD_RUN_PATH'
  8686. hardcode_shlibpath_var=no
  8687. ;;
  8688. sysv4.3*)
  8689. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8690. hardcode_shlibpath_var=no
  8691. export_dynamic_flag_spec='-Bexport'
  8692. ;;
  8693. sysv4*MP*)
  8694. if test -d /usr/nec; then
  8695. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8696. hardcode_shlibpath_var=no
  8697. runpath_var=LD_RUN_PATH
  8698. hardcode_runpath_var=yes
  8699. ld_shlibs=yes
  8700. fi
  8701. ;;
  8702. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8703. no_undefined_flag='${wl}-z,text'
  8704. archive_cmds_need_lc=no
  8705. hardcode_shlibpath_var=no
  8706. runpath_var='LD_RUN_PATH'
  8707. if test "$GCC" = yes; then
  8708. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8709. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8710. else
  8711. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8712. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8713. fi
  8714. ;;
  8715. sysv5* | sco3.2v5* | sco5v6*)
  8716. # Note: We can NOT use -z defs as we might desire, because we do not
  8717. # link with -lc, and that would cause any symbols used from libc to
  8718. # always be unresolved, which means just about no library would
  8719. # ever link correctly. If we're not using GNU ld we use -z text
  8720. # though, which does catch some bad symbols but isn't as heavy-handed
  8721. # as -z defs.
  8722. no_undefined_flag='${wl}-z,text'
  8723. allow_undefined_flag='${wl}-z,nodefs'
  8724. archive_cmds_need_lc=no
  8725. hardcode_shlibpath_var=no
  8726. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8727. hardcode_libdir_separator=':'
  8728. link_all_deplibs=yes
  8729. export_dynamic_flag_spec='${wl}-Bexport'
  8730. runpath_var='LD_RUN_PATH'
  8731. if test "$GCC" = yes; then
  8732. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8733. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8734. else
  8735. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8736. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8737. fi
  8738. ;;
  8739. uts4*)
  8740. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8741. hardcode_libdir_flag_spec='-L$libdir'
  8742. hardcode_shlibpath_var=no
  8743. ;;
  8744. *)
  8745. ld_shlibs=no
  8746. ;;
  8747. esac
  8748. if test x$host_vendor = xsni; then
  8749. case $host in
  8750. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8751. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8752. ;;
  8753. esac
  8754. fi
  8755. fi
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8757. $as_echo "$ld_shlibs" >&6; }
  8758. test "$ld_shlibs" = no && can_build_shared=no
  8759. with_gnu_ld=$with_gnu_ld
  8760. #
  8761. # Do we need to explicitly link libc?
  8762. #
  8763. case "x$archive_cmds_need_lc" in
  8764. x|xyes)
  8765. # Assume -lc should be added
  8766. archive_cmds_need_lc=yes
  8767. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8768. case $archive_cmds in
  8769. *'~'*)
  8770. # FIXME: we may have to deal with multi-command sequences.
  8771. ;;
  8772. '$CC '*)
  8773. # Test whether the compiler implicitly links with -lc since on some
  8774. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8775. # to ld, don't add -lc before -lgcc.
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8777. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8778. $RM conftest*
  8779. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8780. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8781. (eval $ac_compile) 2>&5
  8782. ac_status=$?
  8783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8784. test $ac_status = 0; } 2>conftest.err; then
  8785. soname=conftest
  8786. lib=conftest
  8787. libobjs=conftest.$ac_objext
  8788. deplibs=
  8789. wl=$lt_prog_compiler_wl
  8790. pic_flag=$lt_prog_compiler_pic
  8791. compiler_flags=-v
  8792. linker_flags=-v
  8793. verstring=
  8794. output_objdir=.
  8795. libname=conftest
  8796. lt_save_allow_undefined_flag=$allow_undefined_flag
  8797. allow_undefined_flag=
  8798. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8799. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8800. ac_status=$?
  8801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8802. test $ac_status = 0; }
  8803. then
  8804. archive_cmds_need_lc=no
  8805. else
  8806. archive_cmds_need_lc=yes
  8807. fi
  8808. allow_undefined_flag=$lt_save_allow_undefined_flag
  8809. else
  8810. cat conftest.err 1>&5
  8811. fi
  8812. $RM conftest*
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8814. $as_echo "$archive_cmds_need_lc" >&6; }
  8815. ;;
  8816. esac
  8817. fi
  8818. ;;
  8819. esac
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8821. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8822. if test "$GCC" = yes; then
  8823. case $host_os in
  8824. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8825. *) lt_awk_arg="/^libraries:/" ;;
  8826. esac
  8827. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8828. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8829. # if the path contains ";" then we assume it to be the separator
  8830. # otherwise default to the standard path separator (i.e. ":") - it is
  8831. # assumed that no part of a normal pathname contains ";" but that should
  8832. # okay in the real world where ";" in dirpaths is itself problematic.
  8833. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8834. else
  8835. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8836. fi
  8837. # Ok, now we have the path, separated by spaces, we can step through it
  8838. # and add multilib dir if necessary.
  8839. lt_tmp_lt_search_path_spec=
  8840. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8841. for lt_sys_path in $lt_search_path_spec; do
  8842. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8843. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8844. else
  8845. test -d "$lt_sys_path" && \
  8846. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8847. fi
  8848. done
  8849. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8850. BEGIN {RS=" "; FS="/|\n";} {
  8851. lt_foo="";
  8852. lt_count=0;
  8853. for (lt_i = NF; lt_i > 0; lt_i--) {
  8854. if ($lt_i != "" && $lt_i != ".") {
  8855. if ($lt_i == "..") {
  8856. lt_count++;
  8857. } else {
  8858. if (lt_count == 0) {
  8859. lt_foo="/" $lt_i lt_foo;
  8860. } else {
  8861. lt_count--;
  8862. }
  8863. }
  8864. }
  8865. }
  8866. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8867. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8868. }'`
  8869. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8870. else
  8871. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8872. fi
  8873. library_names_spec=
  8874. libname_spec='lib$name'
  8875. soname_spec=
  8876. shrext_cmds=".so"
  8877. postinstall_cmds=
  8878. postuninstall_cmds=
  8879. finish_cmds=
  8880. finish_eval=
  8881. shlibpath_var=
  8882. shlibpath_overrides_runpath=unknown
  8883. version_type=none
  8884. dynamic_linker="$host_os ld.so"
  8885. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8886. need_lib_prefix=unknown
  8887. hardcode_into_libs=no
  8888. # when you set need_version to no, make sure it does not cause -set_version
  8889. # flags to be left without arguments
  8890. need_version=unknown
  8891. case $host_os in
  8892. aix3*)
  8893. version_type=linux
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8895. shlibpath_var=LIBPATH
  8896. # AIX 3 has no versioning support, so we append a major version to the name.
  8897. soname_spec='${libname}${release}${shared_ext}$major'
  8898. ;;
  8899. aix[4-9]*)
  8900. version_type=linux
  8901. need_lib_prefix=no
  8902. need_version=no
  8903. hardcode_into_libs=yes
  8904. if test "$host_cpu" = ia64; then
  8905. # AIX 5 supports IA64
  8906. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8907. shlibpath_var=LD_LIBRARY_PATH
  8908. else
  8909. # With GCC up to 2.95.x, collect2 would create an import file
  8910. # for dependence libraries. The import file would start with
  8911. # the line `#! .'. This would cause the generated library to
  8912. # depend on `.', always an invalid library. This was fixed in
  8913. # development snapshots of GCC prior to 3.0.
  8914. case $host_os in
  8915. aix4 | aix4.[01] | aix4.[01].*)
  8916. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8917. echo ' yes '
  8918. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8919. :
  8920. else
  8921. can_build_shared=no
  8922. fi
  8923. ;;
  8924. esac
  8925. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8926. # soname into executable. Probably we can add versioning support to
  8927. # collect2, so additional links can be useful in future.
  8928. if test "$aix_use_runtimelinking" = yes; then
  8929. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8930. # instead of lib<name>.a to let people know that these are not
  8931. # typical AIX shared libraries.
  8932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8933. else
  8934. # We preserve .a as extension for shared libraries through AIX4.2
  8935. # and later when we are not doing run time linking.
  8936. library_names_spec='${libname}${release}.a $libname.a'
  8937. soname_spec='${libname}${release}${shared_ext}$major'
  8938. fi
  8939. shlibpath_var=LIBPATH
  8940. fi
  8941. ;;
  8942. amigaos*)
  8943. case $host_cpu in
  8944. powerpc)
  8945. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8946. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8948. ;;
  8949. m68k)
  8950. library_names_spec='$libname.ixlibrary $libname.a'
  8951. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8952. 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'
  8953. ;;
  8954. esac
  8955. ;;
  8956. beos*)
  8957. library_names_spec='${libname}${shared_ext}'
  8958. dynamic_linker="$host_os ld.so"
  8959. shlibpath_var=LIBRARY_PATH
  8960. ;;
  8961. bsdi[45]*)
  8962. version_type=linux
  8963. need_version=no
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8969. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8970. # the default ld.so.conf also contains /usr/contrib/lib and
  8971. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8972. # libtool to hard-code these into programs
  8973. ;;
  8974. cygwin* | mingw* | pw32* | cegcc*)
  8975. version_type=windows
  8976. shrext_cmds=".dll"
  8977. need_version=no
  8978. need_lib_prefix=no
  8979. case $GCC,$host_os in
  8980. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8981. library_names_spec='$libname.dll.a'
  8982. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8983. postinstall_cmds='base_file=`basename \${file}`~
  8984. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8985. dldir=$destdir/`dirname \$dlpath`~
  8986. test -d \$dldir || mkdir -p \$dldir~
  8987. $install_prog $dir/$dlname \$dldir/$dlname~
  8988. chmod a+x \$dldir/$dlname~
  8989. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8990. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8991. fi'
  8992. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8993. dlpath=$dir/\$dldll~
  8994. $RM \$dlpath'
  8995. shlibpath_overrides_runpath=yes
  8996. case $host_os in
  8997. cygwin*)
  8998. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8999. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9000. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9001. ;;
  9002. mingw* | cegcc*)
  9003. # MinGW DLLs use traditional 'lib' prefix
  9004. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9005. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9006. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9007. # It is most probably a Windows format PATH printed by
  9008. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9009. # path with ; separators, and with drive letters. We can handle the
  9010. # drive letters (cygwin fileutils understands them), so leave them,
  9011. # especially as we might pass files found there to a mingw objdump,
  9012. # which wouldn't understand a cygwinified path. Ahh.
  9013. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9014. else
  9015. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9016. fi
  9017. ;;
  9018. pw32*)
  9019. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9020. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9021. ;;
  9022. esac
  9023. ;;
  9024. *)
  9025. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9026. ;;
  9027. esac
  9028. dynamic_linker='Win32 ld.exe'
  9029. # FIXME: first we should search . and the directory the executable is in
  9030. shlibpath_var=PATH
  9031. ;;
  9032. darwin* | rhapsody*)
  9033. dynamic_linker="$host_os dyld"
  9034. version_type=darwin
  9035. need_lib_prefix=no
  9036. need_version=no
  9037. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9038. soname_spec='${libname}${release}${major}$shared_ext'
  9039. shlibpath_overrides_runpath=yes
  9040. shlibpath_var=DYLD_LIBRARY_PATH
  9041. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9042. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9043. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9044. ;;
  9045. dgux*)
  9046. version_type=linux
  9047. need_lib_prefix=no
  9048. need_version=no
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. ;;
  9053. freebsd1*)
  9054. dynamic_linker=no
  9055. ;;
  9056. freebsd* | dragonfly*)
  9057. # DragonFly does not have aout. When/if they implement a new
  9058. # versioning mechanism, adjust this.
  9059. if test -x /usr/bin/objformat; then
  9060. objformat=`/usr/bin/objformat`
  9061. else
  9062. case $host_os in
  9063. freebsd[123]*) objformat=aout ;;
  9064. *) objformat=elf ;;
  9065. esac
  9066. fi
  9067. version_type=freebsd-$objformat
  9068. case $version_type in
  9069. freebsd-elf*)
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9071. need_version=no
  9072. need_lib_prefix=no
  9073. ;;
  9074. freebsd-*)
  9075. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9076. need_version=yes
  9077. ;;
  9078. esac
  9079. shlibpath_var=LD_LIBRARY_PATH
  9080. case $host_os in
  9081. freebsd2*)
  9082. shlibpath_overrides_runpath=yes
  9083. ;;
  9084. freebsd3.[01]* | freebsdelf3.[01]*)
  9085. shlibpath_overrides_runpath=yes
  9086. hardcode_into_libs=yes
  9087. ;;
  9088. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9089. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9090. shlibpath_overrides_runpath=no
  9091. hardcode_into_libs=yes
  9092. ;;
  9093. *) # from 4.6 on, and DragonFly
  9094. shlibpath_overrides_runpath=yes
  9095. hardcode_into_libs=yes
  9096. ;;
  9097. esac
  9098. ;;
  9099. gnu*)
  9100. version_type=linux
  9101. need_lib_prefix=no
  9102. need_version=no
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. hardcode_into_libs=yes
  9107. ;;
  9108. hpux9* | hpux10* | hpux11*)
  9109. # Give a soname corresponding to the major version so that dld.sl refuses to
  9110. # link against other versions.
  9111. version_type=sunos
  9112. need_lib_prefix=no
  9113. need_version=no
  9114. case $host_cpu in
  9115. ia64*)
  9116. shrext_cmds='.so'
  9117. hardcode_into_libs=yes
  9118. dynamic_linker="$host_os dld.so"
  9119. shlibpath_var=LD_LIBRARY_PATH
  9120. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9122. soname_spec='${libname}${release}${shared_ext}$major'
  9123. if test "X$HPUX_IA64_MODE" = X32; then
  9124. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9125. else
  9126. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9127. fi
  9128. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9129. ;;
  9130. hppa*64*)
  9131. shrext_cmds='.sl'
  9132. hardcode_into_libs=yes
  9133. dynamic_linker="$host_os dld.sl"
  9134. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9135. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9137. soname_spec='${libname}${release}${shared_ext}$major'
  9138. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9139. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9140. ;;
  9141. *)
  9142. shrext_cmds='.sl'
  9143. dynamic_linker="$host_os dld.sl"
  9144. shlibpath_var=SHLIB_PATH
  9145. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9147. soname_spec='${libname}${release}${shared_ext}$major'
  9148. ;;
  9149. esac
  9150. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9151. postinstall_cmds='chmod 555 $lib'
  9152. ;;
  9153. interix[3-9]*)
  9154. version_type=linux
  9155. need_lib_prefix=no
  9156. need_version=no
  9157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9158. soname_spec='${libname}${release}${shared_ext}$major'
  9159. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9160. shlibpath_var=LD_LIBRARY_PATH
  9161. shlibpath_overrides_runpath=no
  9162. hardcode_into_libs=yes
  9163. ;;
  9164. irix5* | irix6* | nonstopux*)
  9165. case $host_os in
  9166. nonstopux*) version_type=nonstopux ;;
  9167. *)
  9168. if test "$lt_cv_prog_gnu_ld" = yes; then
  9169. version_type=linux
  9170. else
  9171. version_type=irix
  9172. fi ;;
  9173. esac
  9174. need_lib_prefix=no
  9175. need_version=no
  9176. soname_spec='${libname}${release}${shared_ext}$major'
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9178. case $host_os in
  9179. irix5* | nonstopux*)
  9180. libsuff= shlibsuff=
  9181. ;;
  9182. *)
  9183. case $LD in # libtool.m4 will add one of these switches to LD
  9184. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9185. libsuff= shlibsuff= libmagic=32-bit;;
  9186. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9187. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9188. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9189. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9190. *) libsuff= shlibsuff= libmagic=never-match;;
  9191. esac
  9192. ;;
  9193. esac
  9194. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9195. shlibpath_overrides_runpath=no
  9196. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9197. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9198. hardcode_into_libs=yes
  9199. ;;
  9200. # No shared lib support for Linux oldld, aout, or coff.
  9201. linux*oldld* | linux*aout* | linux*coff*)
  9202. dynamic_linker=no
  9203. ;;
  9204. # This must be Linux ELF.
  9205. linux* | k*bsd*-gnu)
  9206. version_type=linux
  9207. need_lib_prefix=no
  9208. need_version=no
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9210. soname_spec='${libname}${release}${shared_ext}$major'
  9211. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9212. shlibpath_var=LD_LIBRARY_PATH
  9213. shlibpath_overrides_runpath=no
  9214. # Some binutils ld are patched to set DT_RUNPATH
  9215. save_LDFLAGS=$LDFLAGS
  9216. save_libdir=$libdir
  9217. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9218. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9220. /* end confdefs.h. */
  9221. int
  9222. main ()
  9223. {
  9224. ;
  9225. return 0;
  9226. }
  9227. _ACEOF
  9228. if ac_fn_c_try_link "$LINENO"; then :
  9229. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9230. shlibpath_overrides_runpath=yes
  9231. fi
  9232. fi
  9233. rm -f core conftest.err conftest.$ac_objext \
  9234. conftest$ac_exeext conftest.$ac_ext
  9235. LDFLAGS=$save_LDFLAGS
  9236. libdir=$save_libdir
  9237. # This implies no fast_install, which is unacceptable.
  9238. # Some rework will be needed to allow for fast_install
  9239. # before this can be enabled.
  9240. hardcode_into_libs=yes
  9241. # Append ld.so.conf contents to the search path
  9242. if test -f /etc/ld.so.conf; then
  9243. 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' ' '`
  9244. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9245. fi
  9246. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9247. # powerpc, because MkLinux only supported shared libraries with the
  9248. # GNU dynamic linker. Since this was broken with cross compilers,
  9249. # most powerpc-linux boxes support dynamic linking these days and
  9250. # people can always --disable-shared, the test was removed, and we
  9251. # assume the GNU/Linux dynamic linker is in use.
  9252. dynamic_linker='GNU/Linux ld.so'
  9253. ;;
  9254. netbsdelf*-gnu)
  9255. version_type=linux
  9256. need_lib_prefix=no
  9257. need_version=no
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9259. soname_spec='${libname}${release}${shared_ext}$major'
  9260. shlibpath_var=LD_LIBRARY_PATH
  9261. shlibpath_overrides_runpath=no
  9262. hardcode_into_libs=yes
  9263. dynamic_linker='NetBSD ld.elf_so'
  9264. ;;
  9265. netbsd*)
  9266. version_type=sunos
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9271. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9272. dynamic_linker='NetBSD (a.out) ld.so'
  9273. else
  9274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9275. soname_spec='${libname}${release}${shared_ext}$major'
  9276. dynamic_linker='NetBSD ld.elf_so'
  9277. fi
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. shlibpath_overrides_runpath=yes
  9280. hardcode_into_libs=yes
  9281. ;;
  9282. newsos6)
  9283. version_type=linux
  9284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9285. shlibpath_var=LD_LIBRARY_PATH
  9286. shlibpath_overrides_runpath=yes
  9287. ;;
  9288. *nto* | *qnx*)
  9289. version_type=qnx
  9290. need_lib_prefix=no
  9291. need_version=no
  9292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9293. soname_spec='${libname}${release}${shared_ext}$major'
  9294. shlibpath_var=LD_LIBRARY_PATH
  9295. shlibpath_overrides_runpath=no
  9296. hardcode_into_libs=yes
  9297. dynamic_linker='ldqnx.so'
  9298. ;;
  9299. openbsd*)
  9300. version_type=sunos
  9301. sys_lib_dlsearch_path_spec="/usr/lib"
  9302. need_lib_prefix=no
  9303. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9304. case $host_os in
  9305. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9306. *) need_version=no ;;
  9307. esac
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9309. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9310. shlibpath_var=LD_LIBRARY_PATH
  9311. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9312. case $host_os in
  9313. openbsd2.[89] | openbsd2.[89].*)
  9314. shlibpath_overrides_runpath=no
  9315. ;;
  9316. *)
  9317. shlibpath_overrides_runpath=yes
  9318. ;;
  9319. esac
  9320. else
  9321. shlibpath_overrides_runpath=yes
  9322. fi
  9323. ;;
  9324. os2*)
  9325. libname_spec='$name'
  9326. shrext_cmds=".dll"
  9327. need_lib_prefix=no
  9328. library_names_spec='$libname${shared_ext} $libname.a'
  9329. dynamic_linker='OS/2 ld.exe'
  9330. shlibpath_var=LIBPATH
  9331. ;;
  9332. osf3* | osf4* | osf5*)
  9333. version_type=osf
  9334. need_lib_prefix=no
  9335. need_version=no
  9336. soname_spec='${libname}${release}${shared_ext}$major'
  9337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9338. shlibpath_var=LD_LIBRARY_PATH
  9339. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9340. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9341. ;;
  9342. rdos*)
  9343. dynamic_linker=no
  9344. ;;
  9345. solaris*)
  9346. version_type=linux
  9347. need_lib_prefix=no
  9348. need_version=no
  9349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9350. soname_spec='${libname}${release}${shared_ext}$major'
  9351. shlibpath_var=LD_LIBRARY_PATH
  9352. shlibpath_overrides_runpath=yes
  9353. hardcode_into_libs=yes
  9354. # ldd complains unless libraries are executable
  9355. postinstall_cmds='chmod +x $lib'
  9356. ;;
  9357. sunos4*)
  9358. version_type=sunos
  9359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9360. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9361. shlibpath_var=LD_LIBRARY_PATH
  9362. shlibpath_overrides_runpath=yes
  9363. if test "$with_gnu_ld" = yes; then
  9364. need_lib_prefix=no
  9365. fi
  9366. need_version=yes
  9367. ;;
  9368. sysv4 | sysv4.3*)
  9369. version_type=linux
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9371. soname_spec='${libname}${release}${shared_ext}$major'
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. case $host_vendor in
  9374. sni)
  9375. shlibpath_overrides_runpath=no
  9376. need_lib_prefix=no
  9377. runpath_var=LD_RUN_PATH
  9378. ;;
  9379. siemens)
  9380. need_lib_prefix=no
  9381. ;;
  9382. motorola)
  9383. need_lib_prefix=no
  9384. need_version=no
  9385. shlibpath_overrides_runpath=no
  9386. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9387. ;;
  9388. esac
  9389. ;;
  9390. sysv4*MP*)
  9391. if test -d /usr/nec ;then
  9392. version_type=linux
  9393. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9394. soname_spec='$libname${shared_ext}.$major'
  9395. shlibpath_var=LD_LIBRARY_PATH
  9396. fi
  9397. ;;
  9398. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9399. version_type=freebsd-elf
  9400. need_lib_prefix=no
  9401. need_version=no
  9402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9403. soname_spec='${libname}${release}${shared_ext}$major'
  9404. shlibpath_var=LD_LIBRARY_PATH
  9405. shlibpath_overrides_runpath=yes
  9406. hardcode_into_libs=yes
  9407. if test "$with_gnu_ld" = yes; then
  9408. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9409. else
  9410. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9411. case $host_os in
  9412. sco3.2v5*)
  9413. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9414. ;;
  9415. esac
  9416. fi
  9417. sys_lib_dlsearch_path_spec='/usr/lib'
  9418. ;;
  9419. tpf*)
  9420. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9421. version_type=linux
  9422. need_lib_prefix=no
  9423. need_version=no
  9424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9425. shlibpath_var=LD_LIBRARY_PATH
  9426. shlibpath_overrides_runpath=no
  9427. hardcode_into_libs=yes
  9428. ;;
  9429. uts4*)
  9430. version_type=linux
  9431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9432. soname_spec='${libname}${release}${shared_ext}$major'
  9433. shlibpath_var=LD_LIBRARY_PATH
  9434. ;;
  9435. *)
  9436. dynamic_linker=no
  9437. ;;
  9438. esac
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9440. $as_echo "$dynamic_linker" >&6; }
  9441. test "$dynamic_linker" = no && can_build_shared=no
  9442. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9443. if test "$GCC" = yes; then
  9444. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9445. fi
  9446. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9447. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9448. fi
  9449. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9450. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9451. fi
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9453. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9454. hardcode_action=
  9455. if test -n "$hardcode_libdir_flag_spec" ||
  9456. test -n "$runpath_var" ||
  9457. test "X$hardcode_automatic" = "Xyes" ; then
  9458. # We can hardcode non-existent directories.
  9459. if test "$hardcode_direct" != no &&
  9460. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9461. # have to relink, otherwise we might link with an installed library
  9462. # when we should be linking with a yet-to-be-installed one
  9463. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9464. test "$hardcode_minus_L" != no; then
  9465. # Linking always hardcodes the temporary library directory.
  9466. hardcode_action=relink
  9467. else
  9468. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9469. hardcode_action=immediate
  9470. fi
  9471. else
  9472. # We cannot hardcode anything, or else we can only hardcode existing
  9473. # directories.
  9474. hardcode_action=unsupported
  9475. fi
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9477. $as_echo "$hardcode_action" >&6; }
  9478. if test "$hardcode_action" = relink ||
  9479. test "$inherit_rpath" = yes; then
  9480. # Fast installation is not supported
  9481. enable_fast_install=no
  9482. elif test "$shlibpath_overrides_runpath" = yes ||
  9483. test "$enable_shared" = no; then
  9484. # Fast installation is not necessary
  9485. enable_fast_install=needless
  9486. fi
  9487. if test "x$enable_dlopen" != xyes; then
  9488. enable_dlopen=unknown
  9489. enable_dlopen_self=unknown
  9490. enable_dlopen_self_static=unknown
  9491. else
  9492. lt_cv_dlopen=no
  9493. lt_cv_dlopen_libs=
  9494. case $host_os in
  9495. beos*)
  9496. lt_cv_dlopen="load_add_on"
  9497. lt_cv_dlopen_libs=
  9498. lt_cv_dlopen_self=yes
  9499. ;;
  9500. mingw* | pw32* | cegcc*)
  9501. lt_cv_dlopen="LoadLibrary"
  9502. lt_cv_dlopen_libs=
  9503. ;;
  9504. cygwin*)
  9505. lt_cv_dlopen="dlopen"
  9506. lt_cv_dlopen_libs=
  9507. ;;
  9508. darwin*)
  9509. # if libdl is installed we need to link against it
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9511. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9512. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9513. $as_echo_n "(cached) " >&6
  9514. else
  9515. ac_check_lib_save_LIBS=$LIBS
  9516. LIBS="-ldl $LIBS"
  9517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9518. /* end confdefs.h. */
  9519. /* Override any GCC internal prototype to avoid an error.
  9520. Use char because int might match the return type of a GCC
  9521. builtin and then its argument prototype would still apply. */
  9522. #ifdef __cplusplus
  9523. extern "C"
  9524. #endif
  9525. char dlopen ();
  9526. int
  9527. main ()
  9528. {
  9529. return dlopen ();
  9530. ;
  9531. return 0;
  9532. }
  9533. _ACEOF
  9534. if ac_fn_c_try_link "$LINENO"; then :
  9535. ac_cv_lib_dl_dlopen=yes
  9536. else
  9537. ac_cv_lib_dl_dlopen=no
  9538. fi
  9539. rm -f core conftest.err conftest.$ac_objext \
  9540. conftest$ac_exeext conftest.$ac_ext
  9541. LIBS=$ac_check_lib_save_LIBS
  9542. fi
  9543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9544. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9545. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9546. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9547. else
  9548. lt_cv_dlopen="dyld"
  9549. lt_cv_dlopen_libs=
  9550. lt_cv_dlopen_self=yes
  9551. fi
  9552. ;;
  9553. *)
  9554. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9555. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9556. lt_cv_dlopen="shl_load"
  9557. else
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9559. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9560. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9561. $as_echo_n "(cached) " >&6
  9562. else
  9563. ac_check_lib_save_LIBS=$LIBS
  9564. LIBS="-ldld $LIBS"
  9565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9566. /* end confdefs.h. */
  9567. /* Override any GCC internal prototype to avoid an error.
  9568. Use char because int might match the return type of a GCC
  9569. builtin and then its argument prototype would still apply. */
  9570. #ifdef __cplusplus
  9571. extern "C"
  9572. #endif
  9573. char shl_load ();
  9574. int
  9575. main ()
  9576. {
  9577. return shl_load ();
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. ac_cv_lib_dld_shl_load=yes
  9584. else
  9585. ac_cv_lib_dld_shl_load=no
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LIBS=$ac_check_lib_save_LIBS
  9590. fi
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9592. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9593. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9594. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9595. else
  9596. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9597. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9598. lt_cv_dlopen="dlopen"
  9599. else
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9601. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9602. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9603. $as_echo_n "(cached) " >&6
  9604. else
  9605. ac_check_lib_save_LIBS=$LIBS
  9606. LIBS="-ldl $LIBS"
  9607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9608. /* end confdefs.h. */
  9609. /* Override any GCC internal prototype to avoid an error.
  9610. Use char because int might match the return type of a GCC
  9611. builtin and then its argument prototype would still apply. */
  9612. #ifdef __cplusplus
  9613. extern "C"
  9614. #endif
  9615. char dlopen ();
  9616. int
  9617. main ()
  9618. {
  9619. return dlopen ();
  9620. ;
  9621. return 0;
  9622. }
  9623. _ACEOF
  9624. if ac_fn_c_try_link "$LINENO"; then :
  9625. ac_cv_lib_dl_dlopen=yes
  9626. else
  9627. ac_cv_lib_dl_dlopen=no
  9628. fi
  9629. rm -f core conftest.err conftest.$ac_objext \
  9630. conftest$ac_exeext conftest.$ac_ext
  9631. LIBS=$ac_check_lib_save_LIBS
  9632. fi
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9634. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9635. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9636. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9637. else
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9639. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9640. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9641. $as_echo_n "(cached) " >&6
  9642. else
  9643. ac_check_lib_save_LIBS=$LIBS
  9644. LIBS="-lsvld $LIBS"
  9645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9646. /* end confdefs.h. */
  9647. /* Override any GCC internal prototype to avoid an error.
  9648. Use char because int might match the return type of a GCC
  9649. builtin and then its argument prototype would still apply. */
  9650. #ifdef __cplusplus
  9651. extern "C"
  9652. #endif
  9653. char dlopen ();
  9654. int
  9655. main ()
  9656. {
  9657. return dlopen ();
  9658. ;
  9659. return 0;
  9660. }
  9661. _ACEOF
  9662. if ac_fn_c_try_link "$LINENO"; then :
  9663. ac_cv_lib_svld_dlopen=yes
  9664. else
  9665. ac_cv_lib_svld_dlopen=no
  9666. fi
  9667. rm -f core conftest.err conftest.$ac_objext \
  9668. conftest$ac_exeext conftest.$ac_ext
  9669. LIBS=$ac_check_lib_save_LIBS
  9670. fi
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9672. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9673. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9674. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9675. else
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9677. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9678. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9679. $as_echo_n "(cached) " >&6
  9680. else
  9681. ac_check_lib_save_LIBS=$LIBS
  9682. LIBS="-ldld $LIBS"
  9683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9684. /* end confdefs.h. */
  9685. /* Override any GCC internal prototype to avoid an error.
  9686. Use char because int might match the return type of a GCC
  9687. builtin and then its argument prototype would still apply. */
  9688. #ifdef __cplusplus
  9689. extern "C"
  9690. #endif
  9691. char dld_link ();
  9692. int
  9693. main ()
  9694. {
  9695. return dld_link ();
  9696. ;
  9697. return 0;
  9698. }
  9699. _ACEOF
  9700. if ac_fn_c_try_link "$LINENO"; then :
  9701. ac_cv_lib_dld_dld_link=yes
  9702. else
  9703. ac_cv_lib_dld_dld_link=no
  9704. fi
  9705. rm -f core conftest.err conftest.$ac_objext \
  9706. conftest$ac_exeext conftest.$ac_ext
  9707. LIBS=$ac_check_lib_save_LIBS
  9708. fi
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9710. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9711. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9712. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9713. fi
  9714. fi
  9715. fi
  9716. fi
  9717. fi
  9718. fi
  9719. ;;
  9720. esac
  9721. if test "x$lt_cv_dlopen" != xno; then
  9722. enable_dlopen=yes
  9723. else
  9724. enable_dlopen=no
  9725. fi
  9726. case $lt_cv_dlopen in
  9727. dlopen)
  9728. save_CPPFLAGS="$CPPFLAGS"
  9729. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9730. save_LDFLAGS="$LDFLAGS"
  9731. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9732. save_LIBS="$LIBS"
  9733. LIBS="$lt_cv_dlopen_libs $LIBS"
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9735. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9736. if test "${lt_cv_dlopen_self+set}" = set; then :
  9737. $as_echo_n "(cached) " >&6
  9738. else
  9739. if test "$cross_compiling" = yes; then :
  9740. lt_cv_dlopen_self=cross
  9741. else
  9742. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9743. lt_status=$lt_dlunknown
  9744. cat > conftest.$ac_ext <<_LT_EOF
  9745. #line 11290 "configure"
  9746. #include "confdefs.h"
  9747. #if HAVE_DLFCN_H
  9748. #include <dlfcn.h>
  9749. #endif
  9750. #include <stdio.h>
  9751. #ifdef RTLD_GLOBAL
  9752. # define LT_DLGLOBAL RTLD_GLOBAL
  9753. #else
  9754. # ifdef DL_GLOBAL
  9755. # define LT_DLGLOBAL DL_GLOBAL
  9756. # else
  9757. # define LT_DLGLOBAL 0
  9758. # endif
  9759. #endif
  9760. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9761. find out it does not work in some platform. */
  9762. #ifndef LT_DLLAZY_OR_NOW
  9763. # ifdef RTLD_LAZY
  9764. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9765. # else
  9766. # ifdef DL_LAZY
  9767. # define LT_DLLAZY_OR_NOW DL_LAZY
  9768. # else
  9769. # ifdef RTLD_NOW
  9770. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9771. # else
  9772. # ifdef DL_NOW
  9773. # define LT_DLLAZY_OR_NOW DL_NOW
  9774. # else
  9775. # define LT_DLLAZY_OR_NOW 0
  9776. # endif
  9777. # endif
  9778. # endif
  9779. # endif
  9780. #endif
  9781. void fnord() { int i=42;}
  9782. int main ()
  9783. {
  9784. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9785. int status = $lt_dlunknown;
  9786. if (self)
  9787. {
  9788. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9789. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9790. /* dlclose (self); */
  9791. }
  9792. else
  9793. puts (dlerror ());
  9794. return status;
  9795. }
  9796. _LT_EOF
  9797. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9798. (eval $ac_link) 2>&5
  9799. ac_status=$?
  9800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9801. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9802. (./conftest; exit; ) >&5 2>/dev/null
  9803. lt_status=$?
  9804. case x$lt_status in
  9805. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9806. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9807. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9808. esac
  9809. else :
  9810. # compilation failed
  9811. lt_cv_dlopen_self=no
  9812. fi
  9813. fi
  9814. rm -fr conftest*
  9815. fi
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9817. $as_echo "$lt_cv_dlopen_self" >&6; }
  9818. if test "x$lt_cv_dlopen_self" = xyes; then
  9819. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9821. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9822. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9823. $as_echo_n "(cached) " >&6
  9824. else
  9825. if test "$cross_compiling" = yes; then :
  9826. lt_cv_dlopen_self_static=cross
  9827. else
  9828. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9829. lt_status=$lt_dlunknown
  9830. cat > conftest.$ac_ext <<_LT_EOF
  9831. #line 11386 "configure"
  9832. #include "confdefs.h"
  9833. #if HAVE_DLFCN_H
  9834. #include <dlfcn.h>
  9835. #endif
  9836. #include <stdio.h>
  9837. #ifdef RTLD_GLOBAL
  9838. # define LT_DLGLOBAL RTLD_GLOBAL
  9839. #else
  9840. # ifdef DL_GLOBAL
  9841. # define LT_DLGLOBAL DL_GLOBAL
  9842. # else
  9843. # define LT_DLGLOBAL 0
  9844. # endif
  9845. #endif
  9846. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9847. find out it does not work in some platform. */
  9848. #ifndef LT_DLLAZY_OR_NOW
  9849. # ifdef RTLD_LAZY
  9850. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9851. # else
  9852. # ifdef DL_LAZY
  9853. # define LT_DLLAZY_OR_NOW DL_LAZY
  9854. # else
  9855. # ifdef RTLD_NOW
  9856. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9857. # else
  9858. # ifdef DL_NOW
  9859. # define LT_DLLAZY_OR_NOW DL_NOW
  9860. # else
  9861. # define LT_DLLAZY_OR_NOW 0
  9862. # endif
  9863. # endif
  9864. # endif
  9865. # endif
  9866. #endif
  9867. void fnord() { int i=42;}
  9868. int main ()
  9869. {
  9870. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9871. int status = $lt_dlunknown;
  9872. if (self)
  9873. {
  9874. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9875. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9876. /* dlclose (self); */
  9877. }
  9878. else
  9879. puts (dlerror ());
  9880. return status;
  9881. }
  9882. _LT_EOF
  9883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9884. (eval $ac_link) 2>&5
  9885. ac_status=$?
  9886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9887. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9888. (./conftest; exit; ) >&5 2>/dev/null
  9889. lt_status=$?
  9890. case x$lt_status in
  9891. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9892. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9893. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9894. esac
  9895. else :
  9896. # compilation failed
  9897. lt_cv_dlopen_self_static=no
  9898. fi
  9899. fi
  9900. rm -fr conftest*
  9901. fi
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9903. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9904. fi
  9905. CPPFLAGS="$save_CPPFLAGS"
  9906. LDFLAGS="$save_LDFLAGS"
  9907. LIBS="$save_LIBS"
  9908. ;;
  9909. esac
  9910. case $lt_cv_dlopen_self in
  9911. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9912. *) enable_dlopen_self=unknown ;;
  9913. esac
  9914. case $lt_cv_dlopen_self_static in
  9915. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9916. *) enable_dlopen_self_static=unknown ;;
  9917. esac
  9918. fi
  9919. striplib=
  9920. old_striplib=
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9922. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9923. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9924. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9925. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9927. $as_echo "yes" >&6; }
  9928. else
  9929. # FIXME - insert some real tests, host_os isn't really good enough
  9930. case $host_os in
  9931. darwin*)
  9932. if test -n "$STRIP" ; then
  9933. striplib="$STRIP -x"
  9934. old_striplib="$STRIP -S"
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9936. $as_echo "yes" >&6; }
  9937. else
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9939. $as_echo "no" >&6; }
  9940. fi
  9941. ;;
  9942. *)
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9944. $as_echo "no" >&6; }
  9945. ;;
  9946. esac
  9947. fi
  9948. # Report which library types will actually be built
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9950. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9952. $as_echo "$can_build_shared" >&6; }
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9954. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9955. test "$can_build_shared" = "no" && enable_shared=no
  9956. # On AIX, shared libraries and static libraries use the same namespace, and
  9957. # are all built from PIC.
  9958. case $host_os in
  9959. aix3*)
  9960. test "$enable_shared" = yes && enable_static=no
  9961. if test -n "$RANLIB"; then
  9962. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9963. postinstall_cmds='$RANLIB $lib'
  9964. fi
  9965. ;;
  9966. aix[4-9]*)
  9967. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9968. test "$enable_shared" = yes && enable_static=no
  9969. fi
  9970. ;;
  9971. esac
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9973. $as_echo "$enable_shared" >&6; }
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9975. $as_echo_n "checking whether to build static libraries... " >&6; }
  9976. # Make sure either enable_shared or enable_static is yes.
  9977. test "$enable_shared" = yes || enable_static=yes
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9979. $as_echo "$enable_static" >&6; }
  9980. fi
  9981. ac_ext=cpp
  9982. ac_cpp='$CXXCPP $CPPFLAGS'
  9983. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9984. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9985. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9986. CC="$lt_save_CC"
  9987. ac_ext=cpp
  9988. ac_cpp='$CXXCPP $CPPFLAGS'
  9989. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9990. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9991. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9992. archive_cmds_need_lc_CXX=no
  9993. allow_undefined_flag_CXX=
  9994. always_export_symbols_CXX=no
  9995. archive_expsym_cmds_CXX=
  9996. compiler_needs_object_CXX=no
  9997. export_dynamic_flag_spec_CXX=
  9998. hardcode_direct_CXX=no
  9999. hardcode_direct_absolute_CXX=no
  10000. hardcode_libdir_flag_spec_CXX=
  10001. hardcode_libdir_flag_spec_ld_CXX=
  10002. hardcode_libdir_separator_CXX=
  10003. hardcode_minus_L_CXX=no
  10004. hardcode_shlibpath_var_CXX=unsupported
  10005. hardcode_automatic_CXX=no
  10006. inherit_rpath_CXX=no
  10007. module_cmds_CXX=
  10008. module_expsym_cmds_CXX=
  10009. link_all_deplibs_CXX=unknown
  10010. old_archive_cmds_CXX=$old_archive_cmds
  10011. no_undefined_flag_CXX=
  10012. whole_archive_flag_spec_CXX=
  10013. enable_shared_with_static_runtimes_CXX=no
  10014. # Source file extension for C++ test sources.
  10015. ac_ext=cpp
  10016. # Object file extension for compiled C++ test sources.
  10017. objext=o
  10018. objext_CXX=$objext
  10019. # No sense in running all these tests if we already determined that
  10020. # the CXX compiler isn't working. Some variables (like enable_shared)
  10021. # are currently assumed to apply to all compilers on this platform,
  10022. # and will be corrupted by setting them based on a non-working compiler.
  10023. if test "$_lt_caught_CXX_error" != yes; then
  10024. # Code to be used in simple compile tests
  10025. lt_simple_compile_test_code="int some_variable = 0;"
  10026. # Code to be used in simple link tests
  10027. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10028. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10029. # If no C compiler was specified, use CC.
  10030. LTCC=${LTCC-"$CC"}
  10031. # If no C compiler flags were specified, use CFLAGS.
  10032. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10033. # Allow CC to be a program name with arguments.
  10034. compiler=$CC
  10035. # save warnings/boilerplate of simple test code
  10036. ac_outfile=conftest.$ac_objext
  10037. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10038. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10039. _lt_compiler_boilerplate=`cat conftest.err`
  10040. $RM conftest*
  10041. ac_outfile=conftest.$ac_objext
  10042. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10043. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10044. _lt_linker_boilerplate=`cat conftest.err`
  10045. $RM -r conftest*
  10046. # Allow CC to be a program name with arguments.
  10047. lt_save_CC=$CC
  10048. lt_save_LD=$LD
  10049. lt_save_GCC=$GCC
  10050. GCC=$GXX
  10051. lt_save_with_gnu_ld=$with_gnu_ld
  10052. lt_save_path_LD=$lt_cv_path_LD
  10053. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10054. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10055. else
  10056. $as_unset lt_cv_prog_gnu_ld
  10057. fi
  10058. if test -n "${lt_cv_path_LDCXX+set}"; then
  10059. lt_cv_path_LD=$lt_cv_path_LDCXX
  10060. else
  10061. $as_unset lt_cv_path_LD
  10062. fi
  10063. test -z "${LDCXX+set}" || LD=$LDCXX
  10064. CC=${CXX-"c++"}
  10065. compiler=$CC
  10066. compiler_CXX=$CC
  10067. for cc_temp in $compiler""; do
  10068. case $cc_temp in
  10069. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10070. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10071. \-*) ;;
  10072. *) break;;
  10073. esac
  10074. done
  10075. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10076. if test -n "$compiler"; then
  10077. # We don't want -fno-exception when compiling C++ code, so set the
  10078. # no_builtin_flag separately
  10079. if test "$GXX" = yes; then
  10080. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10081. else
  10082. lt_prog_compiler_no_builtin_flag_CXX=
  10083. fi
  10084. if test "$GXX" = yes; then
  10085. # Set up default GNU C++ configuration
  10086. # Check whether --with-gnu-ld was given.
  10087. if test "${with_gnu_ld+set}" = set; then :
  10088. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10089. else
  10090. with_gnu_ld=no
  10091. fi
  10092. ac_prog=ld
  10093. if test "$GCC" = yes; then
  10094. # Check if gcc -print-prog-name=ld gives a path.
  10095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10096. $as_echo_n "checking for ld used by $CC... " >&6; }
  10097. case $host in
  10098. *-*-mingw*)
  10099. # gcc leaves a trailing carriage return which upsets mingw
  10100. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10101. *)
  10102. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10103. esac
  10104. case $ac_prog in
  10105. # Accept absolute paths.
  10106. [\\/]* | ?:[\\/]*)
  10107. re_direlt='/[^/][^/]*/\.\./'
  10108. # Canonicalize the pathname of ld
  10109. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10110. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10111. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10112. done
  10113. test -z "$LD" && LD="$ac_prog"
  10114. ;;
  10115. "")
  10116. # If it fails, then pretend we aren't using GCC.
  10117. ac_prog=ld
  10118. ;;
  10119. *)
  10120. # If it is relative, then search for the first ld in PATH.
  10121. with_gnu_ld=unknown
  10122. ;;
  10123. esac
  10124. elif test "$with_gnu_ld" = yes; then
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10126. $as_echo_n "checking for GNU ld... " >&6; }
  10127. else
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10129. $as_echo_n "checking for non-GNU ld... " >&6; }
  10130. fi
  10131. if test "${lt_cv_path_LD+set}" = set; then :
  10132. $as_echo_n "(cached) " >&6
  10133. else
  10134. if test -z "$LD"; then
  10135. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10136. for ac_dir in $PATH; do
  10137. IFS="$lt_save_ifs"
  10138. test -z "$ac_dir" && ac_dir=.
  10139. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10140. lt_cv_path_LD="$ac_dir/$ac_prog"
  10141. # Check to see if the program is GNU ld. I'd rather use --version,
  10142. # but apparently some variants of GNU ld only accept -v.
  10143. # Break only if it was the GNU/non-GNU ld that we prefer.
  10144. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10145. *GNU* | *'with BFD'*)
  10146. test "$with_gnu_ld" != no && break
  10147. ;;
  10148. *)
  10149. test "$with_gnu_ld" != yes && break
  10150. ;;
  10151. esac
  10152. fi
  10153. done
  10154. IFS="$lt_save_ifs"
  10155. else
  10156. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10157. fi
  10158. fi
  10159. LD="$lt_cv_path_LD"
  10160. if test -n "$LD"; then
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10162. $as_echo "$LD" >&6; }
  10163. else
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10165. $as_echo "no" >&6; }
  10166. fi
  10167. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10169. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10170. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10174. case `$LD -v 2>&1 </dev/null` in
  10175. *GNU* | *'with BFD'*)
  10176. lt_cv_prog_gnu_ld=yes
  10177. ;;
  10178. *)
  10179. lt_cv_prog_gnu_ld=no
  10180. ;;
  10181. esac
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10184. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10185. with_gnu_ld=$lt_cv_prog_gnu_ld
  10186. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10187. # archiving commands below assume that GNU ld is being used.
  10188. if test "$with_gnu_ld" = yes; then
  10189. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10190. 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'
  10191. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10192. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10193. # If archive_cmds runs LD, not CC, wlarc should be empty
  10194. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10195. # investigate it a little bit more. (MM)
  10196. wlarc='${wl}'
  10197. # ancient GNU ld didn't support --whole-archive et. al.
  10198. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10199. $GREP 'no-whole-archive' > /dev/null; then
  10200. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10201. else
  10202. whole_archive_flag_spec_CXX=
  10203. fi
  10204. else
  10205. with_gnu_ld=no
  10206. wlarc=
  10207. # A generic and very simple default shared library creation
  10208. # command for GNU C++ for the case where it uses the native
  10209. # linker, instead of GNU ld. If possible, this setting should
  10210. # overridden to take advantage of the native linker features on
  10211. # the platform it is being used on.
  10212. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10213. fi
  10214. # Commands to make compiler produce verbose output that lists
  10215. # what "hidden" libraries, object files and flags are used when
  10216. # linking a shared library.
  10217. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10218. else
  10219. GXX=no
  10220. with_gnu_ld=no
  10221. wlarc=
  10222. fi
  10223. # PORTME: fill in a description of your system's C++ link characteristics
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10225. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10226. ld_shlibs_CXX=yes
  10227. case $host_os in
  10228. aix3*)
  10229. # FIXME: insert proper C++ library support
  10230. ld_shlibs_CXX=no
  10231. ;;
  10232. aix[4-9]*)
  10233. if test "$host_cpu" = ia64; then
  10234. # On IA64, the linker does run time linking by default, so we don't
  10235. # have to do anything special.
  10236. aix_use_runtimelinking=no
  10237. exp_sym_flag='-Bexport'
  10238. no_entry_flag=""
  10239. else
  10240. aix_use_runtimelinking=no
  10241. # Test if we are trying to use run time linking or normal
  10242. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10243. # need to do runtime linking.
  10244. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10245. for ld_flag in $LDFLAGS; do
  10246. case $ld_flag in
  10247. *-brtl*)
  10248. aix_use_runtimelinking=yes
  10249. break
  10250. ;;
  10251. esac
  10252. done
  10253. ;;
  10254. esac
  10255. exp_sym_flag='-bexport'
  10256. no_entry_flag='-bnoentry'
  10257. fi
  10258. # When large executables or shared objects are built, AIX ld can
  10259. # have problems creating the table of contents. If linking a library
  10260. # or program results in "error TOC overflow" add -mminimal-toc to
  10261. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10262. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10263. archive_cmds_CXX=''
  10264. hardcode_direct_CXX=yes
  10265. hardcode_direct_absolute_CXX=yes
  10266. hardcode_libdir_separator_CXX=':'
  10267. link_all_deplibs_CXX=yes
  10268. file_list_spec_CXX='${wl}-f,'
  10269. if test "$GXX" = yes; then
  10270. case $host_os in aix4.[012]|aix4.[012].*)
  10271. # We only want to do this on AIX 4.2 and lower, the check
  10272. # below for broken collect2 doesn't work under 4.3+
  10273. collect2name=`${CC} -print-prog-name=collect2`
  10274. if test -f "$collect2name" &&
  10275. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10276. then
  10277. # We have reworked collect2
  10278. :
  10279. else
  10280. # We have old collect2
  10281. hardcode_direct_CXX=unsupported
  10282. # It fails to find uninstalled libraries when the uninstalled
  10283. # path is not listed in the libpath. Setting hardcode_minus_L
  10284. # to unsupported forces relinking
  10285. hardcode_minus_L_CXX=yes
  10286. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10287. hardcode_libdir_separator_CXX=
  10288. fi
  10289. esac
  10290. shared_flag='-shared'
  10291. if test "$aix_use_runtimelinking" = yes; then
  10292. shared_flag="$shared_flag "'${wl}-G'
  10293. fi
  10294. else
  10295. # not using gcc
  10296. if test "$host_cpu" = ia64; then
  10297. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10298. # chokes on -Wl,-G. The following line is correct:
  10299. shared_flag='-G'
  10300. else
  10301. if test "$aix_use_runtimelinking" = yes; then
  10302. shared_flag='${wl}-G'
  10303. else
  10304. shared_flag='${wl}-bM:SRE'
  10305. fi
  10306. fi
  10307. fi
  10308. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10309. # It seems that -bexpall does not export symbols beginning with
  10310. # underscore (_), so it is better to generate a list of symbols to
  10311. # export.
  10312. always_export_symbols_CXX=yes
  10313. if test "$aix_use_runtimelinking" = yes; then
  10314. # Warning - without using the other runtime loading flags (-brtl),
  10315. # -berok will link without error, but may produce a broken library.
  10316. allow_undefined_flag_CXX='-berok'
  10317. # Determine the default libpath from the value encoded in an empty
  10318. # executable.
  10319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10320. /* end confdefs.h. */
  10321. int
  10322. main ()
  10323. {
  10324. ;
  10325. return 0;
  10326. }
  10327. _ACEOF
  10328. if ac_fn_cxx_try_link "$LINENO"; then :
  10329. lt_aix_libpath_sed='
  10330. /Import File Strings/,/^$/ {
  10331. /^0/ {
  10332. s/^0 *\(.*\)$/\1/
  10333. p
  10334. }
  10335. }'
  10336. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10337. # Check for a 64-bit object if we didn't find anything.
  10338. if test -z "$aix_libpath"; then
  10339. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10340. fi
  10341. fi
  10342. rm -f core conftest.err conftest.$ac_objext \
  10343. conftest$ac_exeext conftest.$ac_ext
  10344. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10345. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10346. 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"
  10347. else
  10348. if test "$host_cpu" = ia64; then
  10349. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10350. allow_undefined_flag_CXX="-z nodefs"
  10351. 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"
  10352. else
  10353. # Determine the default libpath from the value encoded in an
  10354. # empty executable.
  10355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10356. /* end confdefs.h. */
  10357. int
  10358. main ()
  10359. {
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_cxx_try_link "$LINENO"; then :
  10365. lt_aix_libpath_sed='
  10366. /Import File Strings/,/^$/ {
  10367. /^0/ {
  10368. s/^0 *\(.*\)$/\1/
  10369. p
  10370. }
  10371. }'
  10372. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10373. # Check for a 64-bit object if we didn't find anything.
  10374. if test -z "$aix_libpath"; then
  10375. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10376. fi
  10377. fi
  10378. rm -f core conftest.err conftest.$ac_objext \
  10379. conftest$ac_exeext conftest.$ac_ext
  10380. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10381. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10382. # Warning - without using the other run time loading flags,
  10383. # -berok will link without error, but may produce a broken library.
  10384. no_undefined_flag_CXX=' ${wl}-bernotok'
  10385. allow_undefined_flag_CXX=' ${wl}-berok'
  10386. # Exported symbols can be pulled into shared objects from archives
  10387. whole_archive_flag_spec_CXX='$convenience'
  10388. archive_cmds_need_lc_CXX=yes
  10389. # This is similar to how AIX traditionally builds its shared
  10390. # libraries.
  10391. 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'
  10392. fi
  10393. fi
  10394. ;;
  10395. beos*)
  10396. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10397. allow_undefined_flag_CXX=unsupported
  10398. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10399. # support --undefined. This deserves some investigation. FIXME
  10400. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10401. else
  10402. ld_shlibs_CXX=no
  10403. fi
  10404. ;;
  10405. chorus*)
  10406. case $cc_basename in
  10407. *)
  10408. # FIXME: insert proper C++ library support
  10409. ld_shlibs_CXX=no
  10410. ;;
  10411. esac
  10412. ;;
  10413. cygwin* | mingw* | pw32* | cegcc*)
  10414. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10415. # as there is no search path for DLLs.
  10416. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10417. allow_undefined_flag_CXX=unsupported
  10418. always_export_symbols_CXX=no
  10419. enable_shared_with_static_runtimes_CXX=yes
  10420. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10421. 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'
  10422. # If the export-symbols file already is a .def file (1st line
  10423. # is EXPORTS), use it as is; otherwise, prepend...
  10424. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10425. cp $export_symbols $output_objdir/$soname.def;
  10426. else
  10427. echo EXPORTS > $output_objdir/$soname.def;
  10428. cat $export_symbols >> $output_objdir/$soname.def;
  10429. fi~
  10430. $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'
  10431. else
  10432. ld_shlibs_CXX=no
  10433. fi
  10434. ;;
  10435. darwin* | rhapsody*)
  10436. archive_cmds_need_lc_CXX=no
  10437. hardcode_direct_CXX=no
  10438. hardcode_automatic_CXX=yes
  10439. hardcode_shlibpath_var_CXX=unsupported
  10440. whole_archive_flag_spec_CXX=''
  10441. link_all_deplibs_CXX=yes
  10442. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10443. case $cc_basename in
  10444. ifort*) _lt_dar_can_shared=yes ;;
  10445. *) _lt_dar_can_shared=$GCC ;;
  10446. esac
  10447. if test "$_lt_dar_can_shared" = "yes"; then
  10448. output_verbose_link_cmd=echo
  10449. 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}"
  10450. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10451. 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}"
  10452. 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}"
  10453. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10454. 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}"
  10455. 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}"
  10456. fi
  10457. else
  10458. ld_shlibs_CXX=no
  10459. fi
  10460. ;;
  10461. dgux*)
  10462. case $cc_basename in
  10463. ec++*)
  10464. # FIXME: insert proper C++ library support
  10465. ld_shlibs_CXX=no
  10466. ;;
  10467. ghcx*)
  10468. # Green Hills C++ Compiler
  10469. # FIXME: insert proper C++ library support
  10470. ld_shlibs_CXX=no
  10471. ;;
  10472. *)
  10473. # FIXME: insert proper C++ library support
  10474. ld_shlibs_CXX=no
  10475. ;;
  10476. esac
  10477. ;;
  10478. freebsd[12]*)
  10479. # C++ shared libraries reported to be fairly broken before
  10480. # switch to ELF
  10481. ld_shlibs_CXX=no
  10482. ;;
  10483. freebsd-elf*)
  10484. archive_cmds_need_lc_CXX=no
  10485. ;;
  10486. freebsd* | dragonfly*)
  10487. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10488. # conventions
  10489. ld_shlibs_CXX=yes
  10490. ;;
  10491. gnu*)
  10492. ;;
  10493. hpux9*)
  10494. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10495. hardcode_libdir_separator_CXX=:
  10496. export_dynamic_flag_spec_CXX='${wl}-E'
  10497. hardcode_direct_CXX=yes
  10498. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10499. # but as the default
  10500. # location of the library.
  10501. case $cc_basename in
  10502. CC*)
  10503. # FIXME: insert proper C++ library support
  10504. ld_shlibs_CXX=no
  10505. ;;
  10506. aCC*)
  10507. 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'
  10508. # Commands to make compiler produce verbose output that lists
  10509. # what "hidden" libraries, object files and flags are used when
  10510. # linking a shared library.
  10511. #
  10512. # There doesn't appear to be a way to prevent this compiler from
  10513. # explicitly linking system object files so we need to strip them
  10514. # from the output so that they don't get included in the library
  10515. # dependencies.
  10516. 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'
  10517. ;;
  10518. *)
  10519. if test "$GXX" = yes; then
  10520. 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'
  10521. else
  10522. # FIXME: insert proper C++ library support
  10523. ld_shlibs_CXX=no
  10524. fi
  10525. ;;
  10526. esac
  10527. ;;
  10528. hpux10*|hpux11*)
  10529. if test $with_gnu_ld = no; then
  10530. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10531. hardcode_libdir_separator_CXX=:
  10532. case $host_cpu in
  10533. hppa*64*|ia64*)
  10534. ;;
  10535. *)
  10536. export_dynamic_flag_spec_CXX='${wl}-E'
  10537. ;;
  10538. esac
  10539. fi
  10540. case $host_cpu in
  10541. hppa*64*|ia64*)
  10542. hardcode_direct_CXX=no
  10543. hardcode_shlibpath_var_CXX=no
  10544. ;;
  10545. *)
  10546. hardcode_direct_CXX=yes
  10547. hardcode_direct_absolute_CXX=yes
  10548. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10549. # but as the default
  10550. # location of the library.
  10551. ;;
  10552. esac
  10553. case $cc_basename in
  10554. CC*)
  10555. # FIXME: insert proper C++ library support
  10556. ld_shlibs_CXX=no
  10557. ;;
  10558. aCC*)
  10559. case $host_cpu in
  10560. hppa*64*)
  10561. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10562. ;;
  10563. ia64*)
  10564. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10565. ;;
  10566. *)
  10567. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10568. ;;
  10569. esac
  10570. # Commands to make compiler produce verbose output that lists
  10571. # what "hidden" libraries, object files and flags are used when
  10572. # linking a shared library.
  10573. #
  10574. # There doesn't appear to be a way to prevent this compiler from
  10575. # explicitly linking system object files so we need to strip them
  10576. # from the output so that they don't get included in the library
  10577. # dependencies.
  10578. 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'
  10579. ;;
  10580. *)
  10581. if test "$GXX" = yes; then
  10582. if test $with_gnu_ld = no; then
  10583. case $host_cpu in
  10584. hppa*64*)
  10585. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10586. ;;
  10587. ia64*)
  10588. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10589. ;;
  10590. *)
  10591. 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'
  10592. ;;
  10593. esac
  10594. fi
  10595. else
  10596. # FIXME: insert proper C++ library support
  10597. ld_shlibs_CXX=no
  10598. fi
  10599. ;;
  10600. esac
  10601. ;;
  10602. interix[3-9]*)
  10603. hardcode_direct_CXX=no
  10604. hardcode_shlibpath_var_CXX=no
  10605. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10606. export_dynamic_flag_spec_CXX='${wl}-E'
  10607. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10608. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10609. # default) and relocated if they conflict, which is a slow very memory
  10610. # consuming and fragmenting process. To avoid this, we pick a random,
  10611. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10612. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10613. 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'
  10614. 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'
  10615. ;;
  10616. irix5* | irix6*)
  10617. case $cc_basename in
  10618. CC*)
  10619. # SGI C++
  10620. 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'
  10621. # Archives containing C++ object files must be created using
  10622. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10623. # necessary to make sure instantiated templates are included
  10624. # in the archive.
  10625. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10626. ;;
  10627. *)
  10628. if test "$GXX" = yes; then
  10629. if test "$with_gnu_ld" = no; then
  10630. 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'
  10631. else
  10632. 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'
  10633. fi
  10634. fi
  10635. link_all_deplibs_CXX=yes
  10636. ;;
  10637. esac
  10638. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10639. hardcode_libdir_separator_CXX=:
  10640. inherit_rpath_CXX=yes
  10641. ;;
  10642. linux* | k*bsd*-gnu)
  10643. case $cc_basename in
  10644. KCC*)
  10645. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10646. # KCC will only create a shared library if the output file
  10647. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10648. # to its proper name (with version) after linking.
  10649. 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'
  10650. 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'
  10651. # Commands to make compiler produce verbose output that lists
  10652. # what "hidden" libraries, object files and flags are used when
  10653. # linking a shared library.
  10654. #
  10655. # There doesn't appear to be a way to prevent this compiler from
  10656. # explicitly linking system object files so we need to strip them
  10657. # from the output so that they don't get included in the library
  10658. # dependencies.
  10659. 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'
  10660. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10661. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10662. # Archives containing C++ object files must be created using
  10663. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10664. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10665. ;;
  10666. icpc* | ecpc* )
  10667. # Intel C++
  10668. with_gnu_ld=yes
  10669. # version 8.0 and above of icpc choke on multiply defined symbols
  10670. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10671. # earlier do not add the objects themselves.
  10672. case `$CC -V 2>&1` in
  10673. *"Version 7."*)
  10674. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10675. 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'
  10676. ;;
  10677. *) # Version 8.0 or newer
  10678. tmp_idyn=
  10679. case $host_cpu in
  10680. ia64*) tmp_idyn=' -i_dynamic';;
  10681. esac
  10682. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10683. 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'
  10684. ;;
  10685. esac
  10686. archive_cmds_need_lc_CXX=no
  10687. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10688. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10689. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10690. ;;
  10691. pgCC* | pgcpp*)
  10692. # Portland Group C++ compiler
  10693. case `$CC -V` in
  10694. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10695. prelink_cmds_CXX='tpldir=Template.dir~
  10696. rm -rf $tpldir~
  10697. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10698. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10699. old_archive_cmds_CXX='tpldir=Template.dir~
  10700. rm -rf $tpldir~
  10701. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10702. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10703. $RANLIB $oldlib'
  10704. archive_cmds_CXX='tpldir=Template.dir~
  10705. rm -rf $tpldir~
  10706. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10707. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10708. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10709. rm -rf $tpldir~
  10710. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10711. $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'
  10712. ;;
  10713. *) # Version 6 will use weak symbols
  10714. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10715. 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'
  10716. ;;
  10717. esac
  10718. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10719. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10720. 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'
  10721. ;;
  10722. cxx*)
  10723. # Compaq C++
  10724. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10725. 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'
  10726. runpath_var=LD_RUN_PATH
  10727. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10728. hardcode_libdir_separator_CXX=:
  10729. # Commands to make compiler produce verbose output that lists
  10730. # what "hidden" libraries, object files and flags are used when
  10731. # linking a shared library.
  10732. #
  10733. # There doesn't appear to be a way to prevent this compiler from
  10734. # explicitly linking system object files so we need to strip them
  10735. # from the output so that they don't get included in the library
  10736. # dependencies.
  10737. 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'
  10738. ;;
  10739. xl*)
  10740. # IBM XL 8.0 on PPC, with GNU ld
  10741. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10742. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10743. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10744. if test "x$supports_anon_versioning" = xyes; then
  10745. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10746. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10747. echo "local: *; };" >> $output_objdir/$libname.ver~
  10748. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10749. fi
  10750. ;;
  10751. *)
  10752. case `$CC -V 2>&1 | sed 5q` in
  10753. *Sun\ C*)
  10754. # Sun C++ 5.9
  10755. no_undefined_flag_CXX=' -zdefs'
  10756. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10757. 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'
  10758. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10759. 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'
  10760. compiler_needs_object_CXX=yes
  10761. # Not sure whether something based on
  10762. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10763. # would be better.
  10764. output_verbose_link_cmd='echo'
  10765. # Archives containing C++ object files must be created using
  10766. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10767. # necessary to make sure instantiated templates are included
  10768. # in the archive.
  10769. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10770. ;;
  10771. esac
  10772. ;;
  10773. esac
  10774. ;;
  10775. lynxos*)
  10776. # FIXME: insert proper C++ library support
  10777. ld_shlibs_CXX=no
  10778. ;;
  10779. m88k*)
  10780. # FIXME: insert proper C++ library support
  10781. ld_shlibs_CXX=no
  10782. ;;
  10783. mvs*)
  10784. case $cc_basename in
  10785. cxx*)
  10786. # FIXME: insert proper C++ library support
  10787. ld_shlibs_CXX=no
  10788. ;;
  10789. *)
  10790. # FIXME: insert proper C++ library support
  10791. ld_shlibs_CXX=no
  10792. ;;
  10793. esac
  10794. ;;
  10795. netbsd*)
  10796. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10797. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10798. wlarc=
  10799. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10800. hardcode_direct_CXX=yes
  10801. hardcode_shlibpath_var_CXX=no
  10802. fi
  10803. # Workaround some broken pre-1.5 toolchains
  10804. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10805. ;;
  10806. *nto* | *qnx*)
  10807. ld_shlibs_CXX=yes
  10808. ;;
  10809. openbsd2*)
  10810. # C++ shared libraries are fairly broken
  10811. ld_shlibs_CXX=no
  10812. ;;
  10813. openbsd*)
  10814. if test -f /usr/libexec/ld.so; then
  10815. hardcode_direct_CXX=yes
  10816. hardcode_shlibpath_var_CXX=no
  10817. hardcode_direct_absolute_CXX=yes
  10818. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10819. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10820. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10821. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10822. export_dynamic_flag_spec_CXX='${wl}-E'
  10823. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10824. fi
  10825. output_verbose_link_cmd=echo
  10826. else
  10827. ld_shlibs_CXX=no
  10828. fi
  10829. ;;
  10830. osf3* | osf4* | osf5*)
  10831. case $cc_basename in
  10832. KCC*)
  10833. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10834. # KCC will only create a shared library if the output file
  10835. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10836. # to its proper name (with version) after linking.
  10837. 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'
  10838. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10839. hardcode_libdir_separator_CXX=:
  10840. # Archives containing C++ object files must be created using
  10841. # the KAI C++ compiler.
  10842. case $host in
  10843. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10844. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10845. esac
  10846. ;;
  10847. RCC*)
  10848. # Rational C++ 2.4.1
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. ;;
  10852. cxx*)
  10853. case $host in
  10854. osf3*)
  10855. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10856. 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'
  10857. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10858. ;;
  10859. *)
  10860. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10861. 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'
  10862. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10863. echo "-hidden">> $lib.exp~
  10864. $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~
  10865. $RM $lib.exp'
  10866. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10867. ;;
  10868. esac
  10869. hardcode_libdir_separator_CXX=:
  10870. # Commands to make compiler produce verbose output that lists
  10871. # what "hidden" libraries, object files and flags are used when
  10872. # linking a shared library.
  10873. #
  10874. # There doesn't appear to be a way to prevent this compiler from
  10875. # explicitly linking system object files so we need to strip them
  10876. # from the output so that they don't get included in the library
  10877. # dependencies.
  10878. 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'
  10879. ;;
  10880. *)
  10881. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10882. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10883. case $host in
  10884. osf3*)
  10885. 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'
  10886. ;;
  10887. *)
  10888. 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'
  10889. ;;
  10890. esac
  10891. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10892. hardcode_libdir_separator_CXX=:
  10893. # Commands to make compiler produce verbose output that lists
  10894. # what "hidden" libraries, object files and flags are used when
  10895. # linking a shared library.
  10896. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10897. else
  10898. # FIXME: insert proper C++ library support
  10899. ld_shlibs_CXX=no
  10900. fi
  10901. ;;
  10902. esac
  10903. ;;
  10904. psos*)
  10905. # FIXME: insert proper C++ library support
  10906. ld_shlibs_CXX=no
  10907. ;;
  10908. sunos4*)
  10909. case $cc_basename in
  10910. CC*)
  10911. # Sun C++ 4.x
  10912. # FIXME: insert proper C++ library support
  10913. ld_shlibs_CXX=no
  10914. ;;
  10915. lcc*)
  10916. # Lucid
  10917. # FIXME: insert proper C++ library support
  10918. ld_shlibs_CXX=no
  10919. ;;
  10920. *)
  10921. # FIXME: insert proper C++ library support
  10922. ld_shlibs_CXX=no
  10923. ;;
  10924. esac
  10925. ;;
  10926. solaris*)
  10927. case $cc_basename in
  10928. CC*)
  10929. # Sun C++ 4.2, 5.x and Centerline C++
  10930. archive_cmds_need_lc_CXX=yes
  10931. no_undefined_flag_CXX=' -zdefs'
  10932. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10933. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10934. $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'
  10935. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10936. hardcode_shlibpath_var_CXX=no
  10937. case $host_os in
  10938. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10939. *)
  10940. # The compiler driver will combine and reorder linker options,
  10941. # but understands `-z linker_flag'.
  10942. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10943. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10944. ;;
  10945. esac
  10946. link_all_deplibs_CXX=yes
  10947. output_verbose_link_cmd='echo'
  10948. # Archives containing C++ object files must be created using
  10949. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10950. # necessary to make sure instantiated templates are included
  10951. # in the archive.
  10952. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10953. ;;
  10954. gcx*)
  10955. # Green Hills C++ Compiler
  10956. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10957. # The C++ compiler must be used to create the archive.
  10958. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10959. ;;
  10960. *)
  10961. # GNU C++ compiler with Solaris linker
  10962. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10963. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10964. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10965. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10966. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10967. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10968. # Commands to make compiler produce verbose output that lists
  10969. # what "hidden" libraries, object files and flags are used when
  10970. # linking a shared library.
  10971. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10972. else
  10973. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10974. # platform.
  10975. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10976. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10977. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10978. # Commands to make compiler produce verbose output that lists
  10979. # what "hidden" libraries, object files and flags are used when
  10980. # linking a shared library.
  10981. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10982. fi
  10983. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10984. case $host_os in
  10985. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10986. *)
  10987. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10988. ;;
  10989. esac
  10990. fi
  10991. ;;
  10992. esac
  10993. ;;
  10994. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10995. no_undefined_flag_CXX='${wl}-z,text'
  10996. archive_cmds_need_lc_CXX=no
  10997. hardcode_shlibpath_var_CXX=no
  10998. runpath_var='LD_RUN_PATH'
  10999. case $cc_basename in
  11000. CC*)
  11001. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11003. ;;
  11004. *)
  11005. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11006. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11007. ;;
  11008. esac
  11009. ;;
  11010. sysv5* | sco3.2v5* | sco5v6*)
  11011. # Note: We can NOT use -z defs as we might desire, because we do not
  11012. # link with -lc, and that would cause any symbols used from libc to
  11013. # always be unresolved, which means just about no library would
  11014. # ever link correctly. If we're not using GNU ld we use -z text
  11015. # though, which does catch some bad symbols but isn't as heavy-handed
  11016. # as -z defs.
  11017. no_undefined_flag_CXX='${wl}-z,text'
  11018. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11019. archive_cmds_need_lc_CXX=no
  11020. hardcode_shlibpath_var_CXX=no
  11021. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11022. hardcode_libdir_separator_CXX=':'
  11023. link_all_deplibs_CXX=yes
  11024. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11025. runpath_var='LD_RUN_PATH'
  11026. case $cc_basename in
  11027. CC*)
  11028. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11029. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11030. ;;
  11031. *)
  11032. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11033. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11034. ;;
  11035. esac
  11036. ;;
  11037. tandem*)
  11038. case $cc_basename in
  11039. NCC*)
  11040. # NonStop-UX NCC 3.20
  11041. # FIXME: insert proper C++ library support
  11042. ld_shlibs_CXX=no
  11043. ;;
  11044. *)
  11045. # FIXME: insert proper C++ library support
  11046. ld_shlibs_CXX=no
  11047. ;;
  11048. esac
  11049. ;;
  11050. vxworks*)
  11051. # FIXME: insert proper C++ library support
  11052. ld_shlibs_CXX=no
  11053. ;;
  11054. *)
  11055. # FIXME: insert proper C++ library support
  11056. ld_shlibs_CXX=no
  11057. ;;
  11058. esac
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11060. $as_echo "$ld_shlibs_CXX" >&6; }
  11061. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11062. GCC_CXX="$GXX"
  11063. LD_CXX="$LD"
  11064. ## CAVEAT EMPTOR:
  11065. ## There is no encapsulation within the following macros, do not change
  11066. ## the running order or otherwise move them around unless you know exactly
  11067. ## what you are doing...
  11068. # Dependencies to place before and after the object being linked:
  11069. predep_objects_CXX=
  11070. postdep_objects_CXX=
  11071. predeps_CXX=
  11072. postdeps_CXX=
  11073. compiler_lib_search_path_CXX=
  11074. cat > conftest.$ac_ext <<_LT_EOF
  11075. class Foo
  11076. {
  11077. public:
  11078. Foo (void) { a = 0; }
  11079. private:
  11080. int a;
  11081. };
  11082. _LT_EOF
  11083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11084. (eval $ac_compile) 2>&5
  11085. ac_status=$?
  11086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11087. test $ac_status = 0; }; then
  11088. # Parse the compiler output and extract the necessary
  11089. # objects, libraries and library flags.
  11090. # Sentinel used to keep track of whether or not we are before
  11091. # the conftest object file.
  11092. pre_test_object_deps_done=no
  11093. for p in `eval "$output_verbose_link_cmd"`; do
  11094. case $p in
  11095. -L* | -R* | -l*)
  11096. # Some compilers place space between "-{L,R}" and the path.
  11097. # Remove the space.
  11098. if test $p = "-L" ||
  11099. test $p = "-R"; then
  11100. prev=$p
  11101. continue
  11102. else
  11103. prev=
  11104. fi
  11105. if test "$pre_test_object_deps_done" = no; then
  11106. case $p in
  11107. -L* | -R*)
  11108. # Internal compiler library paths should come after those
  11109. # provided the user. The postdeps already come after the
  11110. # user supplied libs so there is no need to process them.
  11111. if test -z "$compiler_lib_search_path_CXX"; then
  11112. compiler_lib_search_path_CXX="${prev}${p}"
  11113. else
  11114. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11115. fi
  11116. ;;
  11117. # The "-l" case would never come before the object being
  11118. # linked, so don't bother handling this case.
  11119. esac
  11120. else
  11121. if test -z "$postdeps_CXX"; then
  11122. postdeps_CXX="${prev}${p}"
  11123. else
  11124. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11125. fi
  11126. fi
  11127. ;;
  11128. *.$objext)
  11129. # This assumes that the test object file only shows up
  11130. # once in the compiler output.
  11131. if test "$p" = "conftest.$objext"; then
  11132. pre_test_object_deps_done=yes
  11133. continue
  11134. fi
  11135. if test "$pre_test_object_deps_done" = no; then
  11136. if test -z "$predep_objects_CXX"; then
  11137. predep_objects_CXX="$p"
  11138. else
  11139. predep_objects_CXX="$predep_objects_CXX $p"
  11140. fi
  11141. else
  11142. if test -z "$postdep_objects_CXX"; then
  11143. postdep_objects_CXX="$p"
  11144. else
  11145. postdep_objects_CXX="$postdep_objects_CXX $p"
  11146. fi
  11147. fi
  11148. ;;
  11149. *) ;; # Ignore the rest.
  11150. esac
  11151. done
  11152. # Clean up.
  11153. rm -f a.out a.exe
  11154. else
  11155. echo "libtool.m4: error: problem compiling CXX test program"
  11156. fi
  11157. $RM -f confest.$objext
  11158. # PORTME: override above test on systems where it is broken
  11159. case $host_os in
  11160. interix[3-9]*)
  11161. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11162. # hack all around it, let's just trust "g++" to DTRT.
  11163. predep_objects_CXX=
  11164. postdep_objects_CXX=
  11165. postdeps_CXX=
  11166. ;;
  11167. linux*)
  11168. case `$CC -V 2>&1 | sed 5q` in
  11169. *Sun\ C*)
  11170. # Sun C++ 5.9
  11171. # The more standards-conforming stlport4 library is
  11172. # incompatible with the Cstd library. Avoid specifying
  11173. # it if it's in CXXFLAGS. Ignore libCrun as
  11174. # -library=stlport4 depends on it.
  11175. case " $CXX $CXXFLAGS " in
  11176. *" -library=stlport4 "*)
  11177. solaris_use_stlport4=yes
  11178. ;;
  11179. esac
  11180. if test "$solaris_use_stlport4" != yes; then
  11181. postdeps_CXX='-library=Cstd -library=Crun'
  11182. fi
  11183. ;;
  11184. esac
  11185. ;;
  11186. solaris*)
  11187. case $cc_basename in
  11188. CC*)
  11189. # The more standards-conforming stlport4 library is
  11190. # incompatible with the Cstd library. Avoid specifying
  11191. # it if it's in CXXFLAGS. Ignore libCrun as
  11192. # -library=stlport4 depends on it.
  11193. case " $CXX $CXXFLAGS " in
  11194. *" -library=stlport4 "*)
  11195. solaris_use_stlport4=yes
  11196. ;;
  11197. esac
  11198. # Adding this requires a known-good setup of shared libraries for
  11199. # Sun compiler versions before 5.6, else PIC objects from an old
  11200. # archive will be linked into the output, leading to subtle bugs.
  11201. if test "$solaris_use_stlport4" != yes; then
  11202. postdeps_CXX='-library=Cstd -library=Crun'
  11203. fi
  11204. ;;
  11205. esac
  11206. ;;
  11207. esac
  11208. case " $postdeps_CXX " in
  11209. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11210. esac
  11211. compiler_lib_search_dirs_CXX=
  11212. if test -n "${compiler_lib_search_path_CXX}"; then
  11213. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11214. fi
  11215. lt_prog_compiler_wl_CXX=
  11216. lt_prog_compiler_pic_CXX=
  11217. lt_prog_compiler_static_CXX=
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11219. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11220. # C++ specific cases for pic, static, wl, etc.
  11221. if test "$GXX" = yes; then
  11222. lt_prog_compiler_wl_CXX='-Wl,'
  11223. lt_prog_compiler_static_CXX='-static'
  11224. case $host_os in
  11225. aix*)
  11226. # All AIX code is PIC.
  11227. if test "$host_cpu" = ia64; then
  11228. # AIX 5 now supports IA64 processor
  11229. lt_prog_compiler_static_CXX='-Bstatic'
  11230. fi
  11231. ;;
  11232. amigaos*)
  11233. case $host_cpu in
  11234. powerpc)
  11235. # see comment about AmigaOS4 .so support
  11236. lt_prog_compiler_pic_CXX='-fPIC'
  11237. ;;
  11238. m68k)
  11239. # FIXME: we need at least 68020 code to build shared libraries, but
  11240. # adding the `-m68020' flag to GCC prevents building anything better,
  11241. # like `-m68040'.
  11242. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11243. ;;
  11244. esac
  11245. ;;
  11246. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11247. # PIC is the default for these OSes.
  11248. ;;
  11249. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11250. # This hack is so that the source file can tell whether it is being
  11251. # built for inclusion in a dll (and should export symbols for example).
  11252. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11253. # (--disable-auto-import) libraries
  11254. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11255. ;;
  11256. darwin* | rhapsody*)
  11257. # PIC is the default on this platform
  11258. # Common symbols not allowed in MH_DYLIB files
  11259. lt_prog_compiler_pic_CXX='-fno-common'
  11260. ;;
  11261. *djgpp*)
  11262. # DJGPP does not support shared libraries at all
  11263. lt_prog_compiler_pic_CXX=
  11264. ;;
  11265. interix[3-9]*)
  11266. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11267. # Instead, we relocate shared libraries at runtime.
  11268. ;;
  11269. sysv4*MP*)
  11270. if test -d /usr/nec; then
  11271. lt_prog_compiler_pic_CXX=-Kconform_pic
  11272. fi
  11273. ;;
  11274. hpux*)
  11275. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11276. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11277. # sets the default TLS model and affects inlining.
  11278. case $host_cpu in
  11279. hppa*64*)
  11280. ;;
  11281. *)
  11282. lt_prog_compiler_pic_CXX='-fPIC'
  11283. ;;
  11284. esac
  11285. ;;
  11286. *qnx* | *nto*)
  11287. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11288. # it will coredump.
  11289. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11290. ;;
  11291. *)
  11292. lt_prog_compiler_pic_CXX='-fPIC'
  11293. ;;
  11294. esac
  11295. else
  11296. case $host_os in
  11297. aix[4-9]*)
  11298. # All AIX code is PIC.
  11299. if test "$host_cpu" = ia64; then
  11300. # AIX 5 now supports IA64 processor
  11301. lt_prog_compiler_static_CXX='-Bstatic'
  11302. else
  11303. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11304. fi
  11305. ;;
  11306. chorus*)
  11307. case $cc_basename in
  11308. cxch68*)
  11309. # Green Hills C++ Compiler
  11310. # _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"
  11311. ;;
  11312. esac
  11313. ;;
  11314. dgux*)
  11315. case $cc_basename in
  11316. ec++*)
  11317. lt_prog_compiler_pic_CXX='-KPIC'
  11318. ;;
  11319. ghcx*)
  11320. # Green Hills C++ Compiler
  11321. lt_prog_compiler_pic_CXX='-pic'
  11322. ;;
  11323. *)
  11324. ;;
  11325. esac
  11326. ;;
  11327. freebsd* | dragonfly*)
  11328. # FreeBSD uses GNU C++
  11329. ;;
  11330. hpux9* | hpux10* | hpux11*)
  11331. case $cc_basename in
  11332. CC*)
  11333. lt_prog_compiler_wl_CXX='-Wl,'
  11334. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11335. if test "$host_cpu" != ia64; then
  11336. lt_prog_compiler_pic_CXX='+Z'
  11337. fi
  11338. ;;
  11339. aCC*)
  11340. lt_prog_compiler_wl_CXX='-Wl,'
  11341. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11342. case $host_cpu in
  11343. hppa*64*|ia64*)
  11344. # +Z the default
  11345. ;;
  11346. *)
  11347. lt_prog_compiler_pic_CXX='+Z'
  11348. ;;
  11349. esac
  11350. ;;
  11351. *)
  11352. ;;
  11353. esac
  11354. ;;
  11355. interix*)
  11356. # This is c89, which is MS Visual C++ (no shared libs)
  11357. # Anyone wants to do a port?
  11358. ;;
  11359. irix5* | irix6* | nonstopux*)
  11360. case $cc_basename in
  11361. CC*)
  11362. lt_prog_compiler_wl_CXX='-Wl,'
  11363. lt_prog_compiler_static_CXX='-non_shared'
  11364. # CC pic flag -KPIC is the default.
  11365. ;;
  11366. *)
  11367. ;;
  11368. esac
  11369. ;;
  11370. linux* | k*bsd*-gnu)
  11371. case $cc_basename in
  11372. KCC*)
  11373. # KAI C++ Compiler
  11374. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11375. lt_prog_compiler_pic_CXX='-fPIC'
  11376. ;;
  11377. ecpc* )
  11378. # old Intel C++ for x86_64 which still supported -KPIC.
  11379. lt_prog_compiler_wl_CXX='-Wl,'
  11380. lt_prog_compiler_pic_CXX='-KPIC'
  11381. lt_prog_compiler_static_CXX='-static'
  11382. ;;
  11383. icpc* )
  11384. # Intel C++, used to be incompatible with GCC.
  11385. # ICC 10 doesn't accept -KPIC any more.
  11386. lt_prog_compiler_wl_CXX='-Wl,'
  11387. lt_prog_compiler_pic_CXX='-fPIC'
  11388. lt_prog_compiler_static_CXX='-static'
  11389. ;;
  11390. pgCC* | pgcpp*)
  11391. # Portland Group C++ compiler
  11392. lt_prog_compiler_wl_CXX='-Wl,'
  11393. lt_prog_compiler_pic_CXX='-fpic'
  11394. lt_prog_compiler_static_CXX='-Bstatic'
  11395. ;;
  11396. cxx*)
  11397. # Compaq C++
  11398. # Make sure the PIC flag is empty. It appears that all Alpha
  11399. # Linux and Compaq Tru64 Unix objects are PIC.
  11400. lt_prog_compiler_pic_CXX=
  11401. lt_prog_compiler_static_CXX='-non_shared'
  11402. ;;
  11403. xlc* | xlC*)
  11404. # IBM XL 8.0 on PPC
  11405. lt_prog_compiler_wl_CXX='-Wl,'
  11406. lt_prog_compiler_pic_CXX='-qpic'
  11407. lt_prog_compiler_static_CXX='-qstaticlink'
  11408. ;;
  11409. *)
  11410. case `$CC -V 2>&1 | sed 5q` in
  11411. *Sun\ C*)
  11412. # Sun C++ 5.9
  11413. lt_prog_compiler_pic_CXX='-KPIC'
  11414. lt_prog_compiler_static_CXX='-Bstatic'
  11415. lt_prog_compiler_wl_CXX='-Qoption ld '
  11416. ;;
  11417. esac
  11418. ;;
  11419. esac
  11420. ;;
  11421. lynxos*)
  11422. ;;
  11423. m88k*)
  11424. ;;
  11425. mvs*)
  11426. case $cc_basename in
  11427. cxx*)
  11428. lt_prog_compiler_pic_CXX='-W c,exportall'
  11429. ;;
  11430. *)
  11431. ;;
  11432. esac
  11433. ;;
  11434. netbsd* | netbsdelf*-gnu)
  11435. ;;
  11436. *qnx* | *nto*)
  11437. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11438. # it will coredump.
  11439. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11440. ;;
  11441. osf3* | osf4* | osf5*)
  11442. case $cc_basename in
  11443. KCC*)
  11444. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11445. ;;
  11446. RCC*)
  11447. # Rational C++ 2.4.1
  11448. lt_prog_compiler_pic_CXX='-pic'
  11449. ;;
  11450. cxx*)
  11451. # Digital/Compaq C++
  11452. lt_prog_compiler_wl_CXX='-Wl,'
  11453. # Make sure the PIC flag is empty. It appears that all Alpha
  11454. # Linux and Compaq Tru64 Unix objects are PIC.
  11455. lt_prog_compiler_pic_CXX=
  11456. lt_prog_compiler_static_CXX='-non_shared'
  11457. ;;
  11458. *)
  11459. ;;
  11460. esac
  11461. ;;
  11462. psos*)
  11463. ;;
  11464. solaris*)
  11465. case $cc_basename in
  11466. CC*)
  11467. # Sun C++ 4.2, 5.x and Centerline C++
  11468. lt_prog_compiler_pic_CXX='-KPIC'
  11469. lt_prog_compiler_static_CXX='-Bstatic'
  11470. lt_prog_compiler_wl_CXX='-Qoption ld '
  11471. ;;
  11472. gcx*)
  11473. # Green Hills C++ Compiler
  11474. lt_prog_compiler_pic_CXX='-PIC'
  11475. ;;
  11476. *)
  11477. ;;
  11478. esac
  11479. ;;
  11480. sunos4*)
  11481. case $cc_basename in
  11482. CC*)
  11483. # Sun C++ 4.x
  11484. lt_prog_compiler_pic_CXX='-pic'
  11485. lt_prog_compiler_static_CXX='-Bstatic'
  11486. ;;
  11487. lcc*)
  11488. # Lucid
  11489. lt_prog_compiler_pic_CXX='-pic'
  11490. ;;
  11491. *)
  11492. ;;
  11493. esac
  11494. ;;
  11495. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11496. case $cc_basename in
  11497. CC*)
  11498. lt_prog_compiler_wl_CXX='-Wl,'
  11499. lt_prog_compiler_pic_CXX='-KPIC'
  11500. lt_prog_compiler_static_CXX='-Bstatic'
  11501. ;;
  11502. esac
  11503. ;;
  11504. tandem*)
  11505. case $cc_basename in
  11506. NCC*)
  11507. # NonStop-UX NCC 3.20
  11508. lt_prog_compiler_pic_CXX='-KPIC'
  11509. ;;
  11510. *)
  11511. ;;
  11512. esac
  11513. ;;
  11514. vxworks*)
  11515. ;;
  11516. *)
  11517. lt_prog_compiler_can_build_shared_CXX=no
  11518. ;;
  11519. esac
  11520. fi
  11521. case $host_os in
  11522. # For platforms which do not support PIC, -DPIC is meaningless:
  11523. *djgpp*)
  11524. lt_prog_compiler_pic_CXX=
  11525. ;;
  11526. *)
  11527. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11528. ;;
  11529. esac
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11531. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11532. #
  11533. # Check to make sure the PIC flag actually works.
  11534. #
  11535. if test -n "$lt_prog_compiler_pic_CXX"; then
  11536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11537. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11538. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11539. $as_echo_n "(cached) " >&6
  11540. else
  11541. lt_cv_prog_compiler_pic_works_CXX=no
  11542. ac_outfile=conftest.$ac_objext
  11543. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11544. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11545. # Insert the option either (1) after the last *FLAGS variable, or
  11546. # (2) before a word containing "conftest.", or (3) at the end.
  11547. # Note that $ac_compile itself does not contain backslashes and begins
  11548. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11549. # The option is referenced via a variable to avoid confusing sed.
  11550. lt_compile=`echo "$ac_compile" | $SED \
  11551. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11552. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11553. -e 's:$: $lt_compiler_flag:'`
  11554. (eval echo "\"\$as_me:13342: $lt_compile\"" >&5)
  11555. (eval "$lt_compile" 2>conftest.err)
  11556. ac_status=$?
  11557. cat conftest.err >&5
  11558. echo "$as_me:13346: \$? = $ac_status" >&5
  11559. if (exit $ac_status) && test -s "$ac_outfile"; then
  11560. # The compiler can only warn and ignore the option if not recognized
  11561. # So say no if there are warnings other than the usual output.
  11562. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11563. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11564. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11565. lt_cv_prog_compiler_pic_works_CXX=yes
  11566. fi
  11567. fi
  11568. $RM conftest*
  11569. fi
  11570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11571. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11572. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11573. case $lt_prog_compiler_pic_CXX in
  11574. "" | " "*) ;;
  11575. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11576. esac
  11577. else
  11578. lt_prog_compiler_pic_CXX=
  11579. lt_prog_compiler_can_build_shared_CXX=no
  11580. fi
  11581. fi
  11582. #
  11583. # Check to make sure the static flag actually works.
  11584. #
  11585. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11587. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11588. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11589. $as_echo_n "(cached) " >&6
  11590. else
  11591. lt_cv_prog_compiler_static_works_CXX=no
  11592. save_LDFLAGS="$LDFLAGS"
  11593. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11594. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11595. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11596. # The linker can only warn and ignore the option if not recognized
  11597. # So say no if there are warnings
  11598. if test -s conftest.err; then
  11599. # Append any errors to the config.log.
  11600. cat conftest.err 1>&5
  11601. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11602. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11603. if diff conftest.exp conftest.er2 >/dev/null; then
  11604. lt_cv_prog_compiler_static_works_CXX=yes
  11605. fi
  11606. else
  11607. lt_cv_prog_compiler_static_works_CXX=yes
  11608. fi
  11609. fi
  11610. $RM -r conftest*
  11611. LDFLAGS="$save_LDFLAGS"
  11612. fi
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11614. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11615. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11616. :
  11617. else
  11618. lt_prog_compiler_static_CXX=
  11619. fi
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11621. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11622. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11623. $as_echo_n "(cached) " >&6
  11624. else
  11625. lt_cv_prog_compiler_c_o_CXX=no
  11626. $RM -r conftest 2>/dev/null
  11627. mkdir conftest
  11628. cd conftest
  11629. mkdir out
  11630. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11631. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11632. # Insert the option either (1) after the last *FLAGS variable, or
  11633. # (2) before a word containing "conftest.", or (3) at the end.
  11634. # Note that $ac_compile itself does not contain backslashes and begins
  11635. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11636. lt_compile=`echo "$ac_compile" | $SED \
  11637. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11638. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11639. -e 's:$: $lt_compiler_flag:'`
  11640. (eval echo "\"\$as_me:13441: $lt_compile\"" >&5)
  11641. (eval "$lt_compile" 2>out/conftest.err)
  11642. ac_status=$?
  11643. cat out/conftest.err >&5
  11644. echo "$as_me:13445: \$? = $ac_status" >&5
  11645. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11646. then
  11647. # The compiler can only warn and ignore the option if not recognized
  11648. # So say no if there are warnings
  11649. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11650. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11651. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11652. lt_cv_prog_compiler_c_o_CXX=yes
  11653. fi
  11654. fi
  11655. chmod u+w . 2>&5
  11656. $RM conftest*
  11657. # SGI C++ compiler will create directory out/ii_files/ for
  11658. # template instantiation
  11659. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11660. $RM out/* && rmdir out
  11661. cd ..
  11662. $RM -r conftest
  11663. $RM conftest*
  11664. fi
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11666. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11668. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11669. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11670. $as_echo_n "(cached) " >&6
  11671. else
  11672. lt_cv_prog_compiler_c_o_CXX=no
  11673. $RM -r conftest 2>/dev/null
  11674. mkdir conftest
  11675. cd conftest
  11676. mkdir out
  11677. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11678. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11679. # Insert the option either (1) after the last *FLAGS variable, or
  11680. # (2) before a word containing "conftest.", or (3) at the end.
  11681. # Note that $ac_compile itself does not contain backslashes and begins
  11682. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11683. lt_compile=`echo "$ac_compile" | $SED \
  11684. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11685. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11686. -e 's:$: $lt_compiler_flag:'`
  11687. (eval echo "\"\$as_me:13493: $lt_compile\"" >&5)
  11688. (eval "$lt_compile" 2>out/conftest.err)
  11689. ac_status=$?
  11690. cat out/conftest.err >&5
  11691. echo "$as_me:13497: \$? = $ac_status" >&5
  11692. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11693. then
  11694. # The compiler can only warn and ignore the option if not recognized
  11695. # So say no if there are warnings
  11696. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11697. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11698. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11699. lt_cv_prog_compiler_c_o_CXX=yes
  11700. fi
  11701. fi
  11702. chmod u+w . 2>&5
  11703. $RM conftest*
  11704. # SGI C++ compiler will create directory out/ii_files/ for
  11705. # template instantiation
  11706. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11707. $RM out/* && rmdir out
  11708. cd ..
  11709. $RM -r conftest
  11710. $RM conftest*
  11711. fi
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11713. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11714. hard_links="nottested"
  11715. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11716. # do not overwrite the value of need_locks provided by the user
  11717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11718. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11719. hard_links=yes
  11720. $RM conftest*
  11721. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11722. touch conftest.a
  11723. ln conftest.a conftest.b 2>&5 || hard_links=no
  11724. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11726. $as_echo "$hard_links" >&6; }
  11727. if test "$hard_links" = no; then
  11728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11729. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11730. need_locks=warn
  11731. fi
  11732. else
  11733. need_locks=no
  11734. fi
  11735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11736. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11737. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11738. case $host_os in
  11739. aix[4-9]*)
  11740. # If we're using GNU nm, then we don't want the "-C" option.
  11741. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11742. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11743. 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'
  11744. else
  11745. 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'
  11746. fi
  11747. ;;
  11748. pw32*)
  11749. export_symbols_cmds_CXX="$ltdll_cmds"
  11750. ;;
  11751. cygwin* | mingw* | cegcc*)
  11752. 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'
  11753. ;;
  11754. linux* | k*bsd*-gnu)
  11755. link_all_deplibs_CXX=no
  11756. ;;
  11757. *)
  11758. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11759. ;;
  11760. esac
  11761. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11763. $as_echo "$ld_shlibs_CXX" >&6; }
  11764. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11765. with_gnu_ld_CXX=$with_gnu_ld
  11766. #
  11767. # Do we need to explicitly link libc?
  11768. #
  11769. case "x$archive_cmds_need_lc_CXX" in
  11770. x|xyes)
  11771. # Assume -lc should be added
  11772. archive_cmds_need_lc_CXX=yes
  11773. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11774. case $archive_cmds_CXX in
  11775. *'~'*)
  11776. # FIXME: we may have to deal with multi-command sequences.
  11777. ;;
  11778. '$CC '*)
  11779. # Test whether the compiler implicitly links with -lc since on some
  11780. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11781. # to ld, don't add -lc before -lgcc.
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11783. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11784. $RM conftest*
  11785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11786. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11787. (eval $ac_compile) 2>&5
  11788. ac_status=$?
  11789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11790. test $ac_status = 0; } 2>conftest.err; then
  11791. soname=conftest
  11792. lib=conftest
  11793. libobjs=conftest.$ac_objext
  11794. deplibs=
  11795. wl=$lt_prog_compiler_wl_CXX
  11796. pic_flag=$lt_prog_compiler_pic_CXX
  11797. compiler_flags=-v
  11798. linker_flags=-v
  11799. verstring=
  11800. output_objdir=.
  11801. libname=conftest
  11802. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11803. allow_undefined_flag_CXX=
  11804. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11805. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11806. ac_status=$?
  11807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11808. test $ac_status = 0; }
  11809. then
  11810. archive_cmds_need_lc_CXX=no
  11811. else
  11812. archive_cmds_need_lc_CXX=yes
  11813. fi
  11814. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11815. else
  11816. cat conftest.err 1>&5
  11817. fi
  11818. $RM conftest*
  11819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11820. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11821. ;;
  11822. esac
  11823. fi
  11824. ;;
  11825. esac
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11827. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11828. library_names_spec=
  11829. libname_spec='lib$name'
  11830. soname_spec=
  11831. shrext_cmds=".so"
  11832. postinstall_cmds=
  11833. postuninstall_cmds=
  11834. finish_cmds=
  11835. finish_eval=
  11836. shlibpath_var=
  11837. shlibpath_overrides_runpath=unknown
  11838. version_type=none
  11839. dynamic_linker="$host_os ld.so"
  11840. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11841. need_lib_prefix=unknown
  11842. hardcode_into_libs=no
  11843. # when you set need_version to no, make sure it does not cause -set_version
  11844. # flags to be left without arguments
  11845. need_version=unknown
  11846. case $host_os in
  11847. aix3*)
  11848. version_type=linux
  11849. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11850. shlibpath_var=LIBPATH
  11851. # AIX 3 has no versioning support, so we append a major version to the name.
  11852. soname_spec='${libname}${release}${shared_ext}$major'
  11853. ;;
  11854. aix[4-9]*)
  11855. version_type=linux
  11856. need_lib_prefix=no
  11857. need_version=no
  11858. hardcode_into_libs=yes
  11859. if test "$host_cpu" = ia64; then
  11860. # AIX 5 supports IA64
  11861. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11862. shlibpath_var=LD_LIBRARY_PATH
  11863. else
  11864. # With GCC up to 2.95.x, collect2 would create an import file
  11865. # for dependence libraries. The import file would start with
  11866. # the line `#! .'. This would cause the generated library to
  11867. # depend on `.', always an invalid library. This was fixed in
  11868. # development snapshots of GCC prior to 3.0.
  11869. case $host_os in
  11870. aix4 | aix4.[01] | aix4.[01].*)
  11871. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11872. echo ' yes '
  11873. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11874. :
  11875. else
  11876. can_build_shared=no
  11877. fi
  11878. ;;
  11879. esac
  11880. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11881. # soname into executable. Probably we can add versioning support to
  11882. # collect2, so additional links can be useful in future.
  11883. if test "$aix_use_runtimelinking" = yes; then
  11884. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11885. # instead of lib<name>.a to let people know that these are not
  11886. # typical AIX shared libraries.
  11887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11888. else
  11889. # We preserve .a as extension for shared libraries through AIX4.2
  11890. # and later when we are not doing run time linking.
  11891. library_names_spec='${libname}${release}.a $libname.a'
  11892. soname_spec='${libname}${release}${shared_ext}$major'
  11893. fi
  11894. shlibpath_var=LIBPATH
  11895. fi
  11896. ;;
  11897. amigaos*)
  11898. case $host_cpu in
  11899. powerpc)
  11900. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11901. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11903. ;;
  11904. m68k)
  11905. library_names_spec='$libname.ixlibrary $libname.a'
  11906. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11907. 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'
  11908. ;;
  11909. esac
  11910. ;;
  11911. beos*)
  11912. library_names_spec='${libname}${shared_ext}'
  11913. dynamic_linker="$host_os ld.so"
  11914. shlibpath_var=LIBRARY_PATH
  11915. ;;
  11916. bsdi[45]*)
  11917. version_type=linux
  11918. need_version=no
  11919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11920. soname_spec='${libname}${release}${shared_ext}$major'
  11921. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11922. shlibpath_var=LD_LIBRARY_PATH
  11923. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11924. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11925. # the default ld.so.conf also contains /usr/contrib/lib and
  11926. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11927. # libtool to hard-code these into programs
  11928. ;;
  11929. cygwin* | mingw* | pw32* | cegcc*)
  11930. version_type=windows
  11931. shrext_cmds=".dll"
  11932. need_version=no
  11933. need_lib_prefix=no
  11934. case $GCC,$host_os in
  11935. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11936. library_names_spec='$libname.dll.a'
  11937. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11938. postinstall_cmds='base_file=`basename \${file}`~
  11939. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11940. dldir=$destdir/`dirname \$dlpath`~
  11941. test -d \$dldir || mkdir -p \$dldir~
  11942. $install_prog $dir/$dlname \$dldir/$dlname~
  11943. chmod a+x \$dldir/$dlname~
  11944. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11945. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11946. fi'
  11947. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11948. dlpath=$dir/\$dldll~
  11949. $RM \$dlpath'
  11950. shlibpath_overrides_runpath=yes
  11951. case $host_os in
  11952. cygwin*)
  11953. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11954. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11955. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11956. ;;
  11957. mingw* | cegcc*)
  11958. # MinGW DLLs use traditional 'lib' prefix
  11959. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11960. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11961. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11962. # It is most probably a Windows format PATH printed by
  11963. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11964. # path with ; separators, and with drive letters. We can handle the
  11965. # drive letters (cygwin fileutils understands them), so leave them,
  11966. # especially as we might pass files found there to a mingw objdump,
  11967. # which wouldn't understand a cygwinified path. Ahh.
  11968. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11969. else
  11970. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11971. fi
  11972. ;;
  11973. pw32*)
  11974. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11975. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11976. ;;
  11977. esac
  11978. ;;
  11979. *)
  11980. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11981. ;;
  11982. esac
  11983. dynamic_linker='Win32 ld.exe'
  11984. # FIXME: first we should search . and the directory the executable is in
  11985. shlibpath_var=PATH
  11986. ;;
  11987. darwin* | rhapsody*)
  11988. dynamic_linker="$host_os dyld"
  11989. version_type=darwin
  11990. need_lib_prefix=no
  11991. need_version=no
  11992. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11993. soname_spec='${libname}${release}${major}$shared_ext'
  11994. shlibpath_overrides_runpath=yes
  11995. shlibpath_var=DYLD_LIBRARY_PATH
  11996. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11997. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11998. ;;
  11999. dgux*)
  12000. version_type=linux
  12001. need_lib_prefix=no
  12002. need_version=no
  12003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12004. soname_spec='${libname}${release}${shared_ext}$major'
  12005. shlibpath_var=LD_LIBRARY_PATH
  12006. ;;
  12007. freebsd1*)
  12008. dynamic_linker=no
  12009. ;;
  12010. freebsd* | dragonfly*)
  12011. # DragonFly does not have aout. When/if they implement a new
  12012. # versioning mechanism, adjust this.
  12013. if test -x /usr/bin/objformat; then
  12014. objformat=`/usr/bin/objformat`
  12015. else
  12016. case $host_os in
  12017. freebsd[123]*) objformat=aout ;;
  12018. *) objformat=elf ;;
  12019. esac
  12020. fi
  12021. version_type=freebsd-$objformat
  12022. case $version_type in
  12023. freebsd-elf*)
  12024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12025. need_version=no
  12026. need_lib_prefix=no
  12027. ;;
  12028. freebsd-*)
  12029. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12030. need_version=yes
  12031. ;;
  12032. esac
  12033. shlibpath_var=LD_LIBRARY_PATH
  12034. case $host_os in
  12035. freebsd2*)
  12036. shlibpath_overrides_runpath=yes
  12037. ;;
  12038. freebsd3.[01]* | freebsdelf3.[01]*)
  12039. shlibpath_overrides_runpath=yes
  12040. hardcode_into_libs=yes
  12041. ;;
  12042. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12043. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12044. shlibpath_overrides_runpath=no
  12045. hardcode_into_libs=yes
  12046. ;;
  12047. *) # from 4.6 on, and DragonFly
  12048. shlibpath_overrides_runpath=yes
  12049. hardcode_into_libs=yes
  12050. ;;
  12051. esac
  12052. ;;
  12053. gnu*)
  12054. version_type=linux
  12055. need_lib_prefix=no
  12056. need_version=no
  12057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12058. soname_spec='${libname}${release}${shared_ext}$major'
  12059. shlibpath_var=LD_LIBRARY_PATH
  12060. hardcode_into_libs=yes
  12061. ;;
  12062. hpux9* | hpux10* | hpux11*)
  12063. # Give a soname corresponding to the major version so that dld.sl refuses to
  12064. # link against other versions.
  12065. version_type=sunos
  12066. need_lib_prefix=no
  12067. need_version=no
  12068. case $host_cpu in
  12069. ia64*)
  12070. shrext_cmds='.so'
  12071. hardcode_into_libs=yes
  12072. dynamic_linker="$host_os dld.so"
  12073. shlibpath_var=LD_LIBRARY_PATH
  12074. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12076. soname_spec='${libname}${release}${shared_ext}$major'
  12077. if test "X$HPUX_IA64_MODE" = X32; then
  12078. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12079. else
  12080. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12081. fi
  12082. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12083. ;;
  12084. hppa*64*)
  12085. shrext_cmds='.sl'
  12086. hardcode_into_libs=yes
  12087. dynamic_linker="$host_os dld.sl"
  12088. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12089. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12091. soname_spec='${libname}${release}${shared_ext}$major'
  12092. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12093. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12094. ;;
  12095. *)
  12096. shrext_cmds='.sl'
  12097. dynamic_linker="$host_os dld.sl"
  12098. shlibpath_var=SHLIB_PATH
  12099. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12101. soname_spec='${libname}${release}${shared_ext}$major'
  12102. ;;
  12103. esac
  12104. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12105. postinstall_cmds='chmod 555 $lib'
  12106. ;;
  12107. interix[3-9]*)
  12108. version_type=linux
  12109. need_lib_prefix=no
  12110. need_version=no
  12111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12112. soname_spec='${libname}${release}${shared_ext}$major'
  12113. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12114. shlibpath_var=LD_LIBRARY_PATH
  12115. shlibpath_overrides_runpath=no
  12116. hardcode_into_libs=yes
  12117. ;;
  12118. irix5* | irix6* | nonstopux*)
  12119. case $host_os in
  12120. nonstopux*) version_type=nonstopux ;;
  12121. *)
  12122. if test "$lt_cv_prog_gnu_ld" = yes; then
  12123. version_type=linux
  12124. else
  12125. version_type=irix
  12126. fi ;;
  12127. esac
  12128. need_lib_prefix=no
  12129. need_version=no
  12130. soname_spec='${libname}${release}${shared_ext}$major'
  12131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12132. case $host_os in
  12133. irix5* | nonstopux*)
  12134. libsuff= shlibsuff=
  12135. ;;
  12136. *)
  12137. case $LD in # libtool.m4 will add one of these switches to LD
  12138. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12139. libsuff= shlibsuff= libmagic=32-bit;;
  12140. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12141. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12142. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12143. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12144. *) libsuff= shlibsuff= libmagic=never-match;;
  12145. esac
  12146. ;;
  12147. esac
  12148. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12149. shlibpath_overrides_runpath=no
  12150. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12151. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12152. hardcode_into_libs=yes
  12153. ;;
  12154. # No shared lib support for Linux oldld, aout, or coff.
  12155. linux*oldld* | linux*aout* | linux*coff*)
  12156. dynamic_linker=no
  12157. ;;
  12158. # This must be Linux ELF.
  12159. linux* | k*bsd*-gnu)
  12160. version_type=linux
  12161. need_lib_prefix=no
  12162. need_version=no
  12163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12164. soname_spec='${libname}${release}${shared_ext}$major'
  12165. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12166. shlibpath_var=LD_LIBRARY_PATH
  12167. shlibpath_overrides_runpath=no
  12168. # Some binutils ld are patched to set DT_RUNPATH
  12169. save_LDFLAGS=$LDFLAGS
  12170. save_libdir=$libdir
  12171. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12172. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12174. /* end confdefs.h. */
  12175. int
  12176. main ()
  12177. {
  12178. ;
  12179. return 0;
  12180. }
  12181. _ACEOF
  12182. if ac_fn_cxx_try_link "$LINENO"; then :
  12183. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12184. shlibpath_overrides_runpath=yes
  12185. fi
  12186. fi
  12187. rm -f core conftest.err conftest.$ac_objext \
  12188. conftest$ac_exeext conftest.$ac_ext
  12189. LDFLAGS=$save_LDFLAGS
  12190. libdir=$save_libdir
  12191. # This implies no fast_install, which is unacceptable.
  12192. # Some rework will be needed to allow for fast_install
  12193. # before this can be enabled.
  12194. hardcode_into_libs=yes
  12195. # Append ld.so.conf contents to the search path
  12196. if test -f /etc/ld.so.conf; then
  12197. 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' ' '`
  12198. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12199. fi
  12200. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12201. # powerpc, because MkLinux only supported shared libraries with the
  12202. # GNU dynamic linker. Since this was broken with cross compilers,
  12203. # most powerpc-linux boxes support dynamic linking these days and
  12204. # people can always --disable-shared, the test was removed, and we
  12205. # assume the GNU/Linux dynamic linker is in use.
  12206. dynamic_linker='GNU/Linux ld.so'
  12207. ;;
  12208. netbsdelf*-gnu)
  12209. version_type=linux
  12210. need_lib_prefix=no
  12211. need_version=no
  12212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12213. soname_spec='${libname}${release}${shared_ext}$major'
  12214. shlibpath_var=LD_LIBRARY_PATH
  12215. shlibpath_overrides_runpath=no
  12216. hardcode_into_libs=yes
  12217. dynamic_linker='NetBSD ld.elf_so'
  12218. ;;
  12219. netbsd*)
  12220. version_type=sunos
  12221. need_lib_prefix=no
  12222. need_version=no
  12223. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12226. dynamic_linker='NetBSD (a.out) ld.so'
  12227. else
  12228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12229. soname_spec='${libname}${release}${shared_ext}$major'
  12230. dynamic_linker='NetBSD ld.elf_so'
  12231. fi
  12232. shlibpath_var=LD_LIBRARY_PATH
  12233. shlibpath_overrides_runpath=yes
  12234. hardcode_into_libs=yes
  12235. ;;
  12236. newsos6)
  12237. version_type=linux
  12238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12239. shlibpath_var=LD_LIBRARY_PATH
  12240. shlibpath_overrides_runpath=yes
  12241. ;;
  12242. *nto* | *qnx*)
  12243. version_type=qnx
  12244. need_lib_prefix=no
  12245. need_version=no
  12246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12247. soname_spec='${libname}${release}${shared_ext}$major'
  12248. shlibpath_var=LD_LIBRARY_PATH
  12249. shlibpath_overrides_runpath=no
  12250. hardcode_into_libs=yes
  12251. dynamic_linker='ldqnx.so'
  12252. ;;
  12253. openbsd*)
  12254. version_type=sunos
  12255. sys_lib_dlsearch_path_spec="/usr/lib"
  12256. need_lib_prefix=no
  12257. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12258. case $host_os in
  12259. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12260. *) need_version=no ;;
  12261. esac
  12262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12263. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12264. shlibpath_var=LD_LIBRARY_PATH
  12265. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12266. case $host_os in
  12267. openbsd2.[89] | openbsd2.[89].*)
  12268. shlibpath_overrides_runpath=no
  12269. ;;
  12270. *)
  12271. shlibpath_overrides_runpath=yes
  12272. ;;
  12273. esac
  12274. else
  12275. shlibpath_overrides_runpath=yes
  12276. fi
  12277. ;;
  12278. os2*)
  12279. libname_spec='$name'
  12280. shrext_cmds=".dll"
  12281. need_lib_prefix=no
  12282. library_names_spec='$libname${shared_ext} $libname.a'
  12283. dynamic_linker='OS/2 ld.exe'
  12284. shlibpath_var=LIBPATH
  12285. ;;
  12286. osf3* | osf4* | osf5*)
  12287. version_type=osf
  12288. need_lib_prefix=no
  12289. need_version=no
  12290. soname_spec='${libname}${release}${shared_ext}$major'
  12291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12292. shlibpath_var=LD_LIBRARY_PATH
  12293. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12294. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12295. ;;
  12296. rdos*)
  12297. dynamic_linker=no
  12298. ;;
  12299. solaris*)
  12300. version_type=linux
  12301. need_lib_prefix=no
  12302. need_version=no
  12303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12304. soname_spec='${libname}${release}${shared_ext}$major'
  12305. shlibpath_var=LD_LIBRARY_PATH
  12306. shlibpath_overrides_runpath=yes
  12307. hardcode_into_libs=yes
  12308. # ldd complains unless libraries are executable
  12309. postinstall_cmds='chmod +x $lib'
  12310. ;;
  12311. sunos4*)
  12312. version_type=sunos
  12313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12314. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12315. shlibpath_var=LD_LIBRARY_PATH
  12316. shlibpath_overrides_runpath=yes
  12317. if test "$with_gnu_ld" = yes; then
  12318. need_lib_prefix=no
  12319. fi
  12320. need_version=yes
  12321. ;;
  12322. sysv4 | sysv4.3*)
  12323. version_type=linux
  12324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12325. soname_spec='${libname}${release}${shared_ext}$major'
  12326. shlibpath_var=LD_LIBRARY_PATH
  12327. case $host_vendor in
  12328. sni)
  12329. shlibpath_overrides_runpath=no
  12330. need_lib_prefix=no
  12331. runpath_var=LD_RUN_PATH
  12332. ;;
  12333. siemens)
  12334. need_lib_prefix=no
  12335. ;;
  12336. motorola)
  12337. need_lib_prefix=no
  12338. need_version=no
  12339. shlibpath_overrides_runpath=no
  12340. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12341. ;;
  12342. esac
  12343. ;;
  12344. sysv4*MP*)
  12345. if test -d /usr/nec ;then
  12346. version_type=linux
  12347. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12348. soname_spec='$libname${shared_ext}.$major'
  12349. shlibpath_var=LD_LIBRARY_PATH
  12350. fi
  12351. ;;
  12352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12353. version_type=freebsd-elf
  12354. need_lib_prefix=no
  12355. need_version=no
  12356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12357. soname_spec='${libname}${release}${shared_ext}$major'
  12358. shlibpath_var=LD_LIBRARY_PATH
  12359. shlibpath_overrides_runpath=yes
  12360. hardcode_into_libs=yes
  12361. if test "$with_gnu_ld" = yes; then
  12362. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12363. else
  12364. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12365. case $host_os in
  12366. sco3.2v5*)
  12367. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12368. ;;
  12369. esac
  12370. fi
  12371. sys_lib_dlsearch_path_spec='/usr/lib'
  12372. ;;
  12373. tpf*)
  12374. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12375. version_type=linux
  12376. need_lib_prefix=no
  12377. need_version=no
  12378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12379. shlibpath_var=LD_LIBRARY_PATH
  12380. shlibpath_overrides_runpath=no
  12381. hardcode_into_libs=yes
  12382. ;;
  12383. uts4*)
  12384. version_type=linux
  12385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12386. soname_spec='${libname}${release}${shared_ext}$major'
  12387. shlibpath_var=LD_LIBRARY_PATH
  12388. ;;
  12389. *)
  12390. dynamic_linker=no
  12391. ;;
  12392. esac
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12394. $as_echo "$dynamic_linker" >&6; }
  12395. test "$dynamic_linker" = no && can_build_shared=no
  12396. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12397. if test "$GCC" = yes; then
  12398. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12399. fi
  12400. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12401. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12402. fi
  12403. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12404. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12405. fi
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12407. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12408. hardcode_action_CXX=
  12409. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12410. test -n "$runpath_var_CXX" ||
  12411. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12412. # We can hardcode non-existent directories.
  12413. if test "$hardcode_direct_CXX" != no &&
  12414. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12415. # have to relink, otherwise we might link with an installed library
  12416. # when we should be linking with a yet-to-be-installed one
  12417. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12418. test "$hardcode_minus_L_CXX" != no; then
  12419. # Linking always hardcodes the temporary library directory.
  12420. hardcode_action_CXX=relink
  12421. else
  12422. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12423. hardcode_action_CXX=immediate
  12424. fi
  12425. else
  12426. # We cannot hardcode anything, or else we can only hardcode existing
  12427. # directories.
  12428. hardcode_action_CXX=unsupported
  12429. fi
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12431. $as_echo "$hardcode_action_CXX" >&6; }
  12432. if test "$hardcode_action_CXX" = relink ||
  12433. test "$inherit_rpath_CXX" = yes; then
  12434. # Fast installation is not supported
  12435. enable_fast_install=no
  12436. elif test "$shlibpath_overrides_runpath" = yes ||
  12437. test "$enable_shared" = no; then
  12438. # Fast installation is not necessary
  12439. enable_fast_install=needless
  12440. fi
  12441. fi # test -n "$compiler"
  12442. CC=$lt_save_CC
  12443. LDCXX=$LD
  12444. LD=$lt_save_LD
  12445. GCC=$lt_save_GCC
  12446. with_gnu_ld=$lt_save_with_gnu_ld
  12447. lt_cv_path_LDCXX=$lt_cv_path_LD
  12448. lt_cv_path_LD=$lt_save_path_LD
  12449. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12450. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12451. fi # test "$_lt_caught_CXX_error" != yes
  12452. ac_ext=cpp
  12453. ac_cpp='$CXXCPP $CPPFLAGS'
  12454. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12455. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12456. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12457. ac_config_commands="$ac_config_commands libtool"
  12458. # Only expand once:
  12459. # Use silent rules if supported.
  12460. # Check whether --enable-silent-rules was given.
  12461. if test "${enable_silent_rules+set}" = set; then :
  12462. enableval=$enable_silent_rules;
  12463. fi
  12464. case $enable_silent_rules in
  12465. yes) AM_DEFAULT_VERBOSITY=0;;
  12466. no) AM_DEFAULT_VERBOSITY=1;;
  12467. *) AM_DEFAULT_VERBOSITY=0;;
  12468. esac
  12469. AM_BACKSLASH='\'
  12470. # Check whether --enable-debug was given.
  12471. if test "${enable_debug+set}" = set; then :
  12472. enableval=$enable_debug; if test x$enableval = xyes ; then
  12473. enable_debug="yes"
  12474. else
  12475. enable_debug="no"
  12476. fi
  12477. else
  12478. enable_debug="yes"
  12479. fi
  12480. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12481. CXXFLAGS="-O0 -ggdb"
  12482. fi
  12483. if test "x$GXX" = "xyes" ; then
  12484. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch-enum -Wno-sign-compare -Wcast-align -Wpointer-arith"
  12485. fi
  12486. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  12487. # Check for Boost libraries
  12488. # Check whether --with-boost was given.
  12489. if test "${with_boost+set}" = set; then :
  12490. withval=$with_boost;
  12491. if test "$withval" = "no"; then
  12492. want_boost="no"
  12493. elif test "$withval" = "yes"; then
  12494. want_boost="yes"
  12495. ac_boost_path=""
  12496. else
  12497. want_boost="yes"
  12498. ac_boost_path="$withval"
  12499. fi
  12500. else
  12501. want_boost="yes"
  12502. fi
  12503. # Check whether --with-boost-libdir was given.
  12504. if test "${with_boost_libdir+set}" = set; then :
  12505. withval=$with_boost_libdir;
  12506. if test -d $withval
  12507. then
  12508. ac_boost_lib_path="$withval"
  12509. else
  12510. as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
  12511. fi
  12512. else
  12513. ac_boost_lib_path=""
  12514. fi
  12515. if test "x$want_boost" = "xyes"; then
  12516. boost_lib_version_req=1.36
  12517. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12518. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12519. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12520. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12521. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12522. boost_lib_version_req_sub_minor="0"
  12523. fi
  12524. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12526. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12527. succeeded=no
  12528. if test "$ac_boost_path" != ""; then
  12529. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  12530. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12531. else
  12532. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12533. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12534. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  12535. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12536. break;
  12537. fi
  12538. done
  12539. fi
  12540. if test "$ac_boost_lib_path" != ""; then
  12541. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12542. fi
  12543. CPPFLAGS_SAVED="$CPPFLAGS"
  12544. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12545. export CPPFLAGS
  12546. LDFLAGS_SAVED="$LDFLAGS"
  12547. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12548. export LDFLAGS
  12549. ac_ext=cpp
  12550. ac_cpp='$CXXCPP $CPPFLAGS'
  12551. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12552. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12553. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12555. /* end confdefs.h. */
  12556. #include <boost/version.hpp>
  12557. int
  12558. main ()
  12559. {
  12560. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12561. // Everything is okay
  12562. #else
  12563. # error Boost version is too old
  12564. #endif
  12565. ;
  12566. return 0;
  12567. }
  12568. _ACEOF
  12569. if ac_fn_cxx_try_compile "$LINENO"; then :
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12571. $as_echo "yes" >&6; }
  12572. succeeded=yes
  12573. found_system=yes
  12574. fi
  12575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12576. ac_ext=cpp
  12577. ac_cpp='$CXXCPP $CPPFLAGS'
  12578. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12579. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12580. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12581. if test "x$succeeded" != "xyes"; then
  12582. _version=0
  12583. if test "$ac_boost_path" != ""; then
  12584. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12585. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12586. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12587. V_CHECK=`expr $_version_tmp \> $_version`
  12588. if test "$V_CHECK" = "1" ; then
  12589. _version=$_version_tmp
  12590. fi
  12591. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12592. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12593. done
  12594. fi
  12595. else
  12596. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12597. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12598. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12599. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12600. V_CHECK=`expr $_version_tmp \> $_version`
  12601. if test "$V_CHECK" = "1" ; then
  12602. _version=$_version_tmp
  12603. best_path=$ac_boost_path
  12604. fi
  12605. done
  12606. fi
  12607. done
  12608. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12609. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12610. if test "$ac_boost_lib_path" = ""
  12611. then
  12612. BOOST_LDFLAGS="-L$best_path/lib"
  12613. fi
  12614. if test "x$BOOST_ROOT" != "x"; then
  12615. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  12616. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12617. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12618. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12619. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12620. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12622. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12623. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12624. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  12625. fi
  12626. fi
  12627. fi
  12628. fi
  12629. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12630. export CPPFLAGS
  12631. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12632. export LDFLAGS
  12633. ac_ext=cpp
  12634. ac_cpp='$CXXCPP $CPPFLAGS'
  12635. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12636. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12637. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12639. /* end confdefs.h. */
  12640. #include <boost/version.hpp>
  12641. int
  12642. main ()
  12643. {
  12644. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12645. // Everything is okay
  12646. #else
  12647. # error Boost version is too old
  12648. #endif
  12649. ;
  12650. return 0;
  12651. }
  12652. _ACEOF
  12653. if ac_fn_cxx_try_compile "$LINENO"; then :
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12655. $as_echo "yes" >&6; }
  12656. succeeded=yes
  12657. found_system=yes
  12658. fi
  12659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12660. ac_ext=cpp
  12661. ac_cpp='$CXXCPP $CPPFLAGS'
  12662. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12663. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12664. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12665. fi
  12666. if test "$succeeded" != "yes" ; then
  12667. if test "$_version" = "0" ; then
  12668. 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
  12669. else
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12671. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12672. fi
  12673. else
  12674. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12675. fi
  12676. CPPFLAGS="$CPPFLAGS_SAVED"
  12677. LDFLAGS="$LDFLAGS_SAVED"
  12678. fi
  12679. # Check whether --with-boost-system was given.
  12680. if test "${with_boost_system+set}" = set; then :
  12681. withval=$with_boost_system;
  12682. if test "$withval" = "no"; then
  12683. want_boost="no"
  12684. elif test "$withval" = "yes"; then
  12685. want_boost="yes"
  12686. ax_boost_user_system_lib=""
  12687. else
  12688. want_boost="yes"
  12689. ax_boost_user_system_lib="$withval"
  12690. fi
  12691. else
  12692. want_boost="yes"
  12693. fi
  12694. if test "x$want_boost" = "xyes"; then
  12695. CPPFLAGS_SAVED="$CPPFLAGS"
  12696. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12697. export CPPFLAGS
  12698. LDFLAGS_SAVED="$LDFLAGS"
  12699. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12700. export LDFLAGS
  12701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12702. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12703. if test "${ax_cv_boost_system+set}" = set; then :
  12704. $as_echo_n "(cached) " >&6
  12705. else
  12706. ac_ext=cpp
  12707. ac_cpp='$CXXCPP $CPPFLAGS'
  12708. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12709. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12710. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12711. CXXFLAGS_SAVE=$CXXFLAGS
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. #include <boost/system/error_code.hpp>
  12715. int
  12716. main ()
  12717. {
  12718. boost::system::system_category
  12719. ;
  12720. return 0;
  12721. }
  12722. _ACEOF
  12723. if ac_fn_cxx_try_compile "$LINENO"; then :
  12724. ax_cv_boost_system=yes
  12725. else
  12726. ax_cv_boost_system=no
  12727. fi
  12728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12729. CXXFLAGS=$CXXFLAGS_SAVE
  12730. ac_ext=cpp
  12731. ac_cpp='$CXXCPP $CPPFLAGS'
  12732. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12733. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12734. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12735. fi
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12737. $as_echo "$ax_cv_boost_system" >&6; }
  12738. if test "x$ax_cv_boost_system" = "xyes"; then
  12739. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12740. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12741. LDFLAGS_SAVE=$LDFLAGS
  12742. if test "x$ax_boost_user_system_lib" = "x"; then
  12743. 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
  12744. ax_lib=${libextension}
  12745. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12747. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12748. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12749. $as_echo_n "(cached) " >&6
  12750. else
  12751. ac_check_lib_save_LIBS=$LIBS
  12752. LIBS="-l$ax_lib $LIBS"
  12753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12754. /* end confdefs.h. */
  12755. /* Override any GCC internal prototype to avoid an error.
  12756. Use char because int might match the return type of a GCC
  12757. builtin and then its argument prototype would still apply. */
  12758. #ifdef __cplusplus
  12759. extern "C"
  12760. #endif
  12761. char exit ();
  12762. int
  12763. main ()
  12764. {
  12765. return exit ();
  12766. ;
  12767. return 0;
  12768. }
  12769. _ACEOF
  12770. if ac_fn_cxx_try_link "$LINENO"; then :
  12771. eval "$as_ac_Lib=yes"
  12772. else
  12773. eval "$as_ac_Lib=no"
  12774. fi
  12775. rm -f core conftest.err conftest.$ac_objext \
  12776. conftest$ac_exeext conftest.$ac_ext
  12777. LIBS=$ac_check_lib_save_LIBS
  12778. fi
  12779. eval ac_res=\$$as_ac_Lib
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12781. $as_echo "$ac_res" >&6; }
  12782. eval as_val=\$$as_ac_Lib
  12783. if test "x$as_val" = x""yes; then :
  12784. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12785. else
  12786. link_system="no"
  12787. fi
  12788. done
  12789. if test "x$link_system" != "xyes"; then
  12790. 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
  12791. ax_lib=${libextension}
  12792. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12794. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12795. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12796. $as_echo_n "(cached) " >&6
  12797. else
  12798. ac_check_lib_save_LIBS=$LIBS
  12799. LIBS="-l$ax_lib $LIBS"
  12800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12801. /* end confdefs.h. */
  12802. /* Override any GCC internal prototype to avoid an error.
  12803. Use char because int might match the return type of a GCC
  12804. builtin and then its argument prototype would still apply. */
  12805. #ifdef __cplusplus
  12806. extern "C"
  12807. #endif
  12808. char exit ();
  12809. int
  12810. main ()
  12811. {
  12812. return exit ();
  12813. ;
  12814. return 0;
  12815. }
  12816. _ACEOF
  12817. if ac_fn_cxx_try_link "$LINENO"; then :
  12818. eval "$as_ac_Lib=yes"
  12819. else
  12820. eval "$as_ac_Lib=no"
  12821. fi
  12822. rm -f core conftest.err conftest.$ac_objext \
  12823. conftest$ac_exeext conftest.$ac_ext
  12824. LIBS=$ac_check_lib_save_LIBS
  12825. fi
  12826. eval ac_res=\$$as_ac_Lib
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12828. $as_echo "$ac_res" >&6; }
  12829. eval as_val=\$$as_ac_Lib
  12830. if test "x$as_val" = x""yes; then :
  12831. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12832. else
  12833. link_system="no"
  12834. fi
  12835. done
  12836. fi
  12837. else
  12838. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12839. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12841. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12842. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12843. $as_echo_n "(cached) " >&6
  12844. else
  12845. ac_check_lib_save_LIBS=$LIBS
  12846. LIBS="-l$ax_lib $LIBS"
  12847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12848. /* end confdefs.h. */
  12849. /* Override any GCC internal prototype to avoid an error.
  12850. Use char because int might match the return type of a GCC
  12851. builtin and then its argument prototype would still apply. */
  12852. #ifdef __cplusplus
  12853. extern "C"
  12854. #endif
  12855. char exit ();
  12856. int
  12857. main ()
  12858. {
  12859. return exit ();
  12860. ;
  12861. return 0;
  12862. }
  12863. _ACEOF
  12864. if ac_fn_cxx_try_link "$LINENO"; then :
  12865. eval "$as_ac_Lib=yes"
  12866. else
  12867. eval "$as_ac_Lib=no"
  12868. fi
  12869. rm -f core conftest.err conftest.$ac_objext \
  12870. conftest$ac_exeext conftest.$ac_ext
  12871. LIBS=$ac_check_lib_save_LIBS
  12872. fi
  12873. eval ac_res=\$$as_ac_Lib
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12875. $as_echo "$ac_res" >&6; }
  12876. eval as_val=\$$as_ac_Lib
  12877. if test "x$as_val" = x""yes; then :
  12878. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12879. else
  12880. link_system="no"
  12881. fi
  12882. done
  12883. fi
  12884. if test "x$link_system" = "xno"; then
  12885. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  12886. fi
  12887. fi
  12888. CPPFLAGS="$CPPFLAGS_SAVED"
  12889. LDFLAGS="$LDFLAGS_SAVED"
  12890. fi
  12891. # Check whether --with-boost-filesystem was given.
  12892. if test "${with_boost_filesystem+set}" = set; then :
  12893. withval=$with_boost_filesystem;
  12894. if test "$withval" = "no"; then
  12895. want_boost="no"
  12896. elif test "$withval" = "yes"; then
  12897. want_boost="yes"
  12898. ax_boost_user_filesystem_lib=""
  12899. else
  12900. want_boost="yes"
  12901. ax_boost_user_filesystem_lib="$withval"
  12902. fi
  12903. else
  12904. want_boost="yes"
  12905. fi
  12906. if test "x$want_boost" = "xyes"; then
  12907. CPPFLAGS_SAVED="$CPPFLAGS"
  12908. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12909. export CPPFLAGS
  12910. LDFLAGS_SAVED="$LDFLAGS"
  12911. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12912. export LDFLAGS
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12914. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12915. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12916. $as_echo_n "(cached) " >&6
  12917. else
  12918. ac_ext=cpp
  12919. ac_cpp='$CXXCPP $CPPFLAGS'
  12920. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12921. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12922. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12924. /* end confdefs.h. */
  12925. #include <boost/filesystem/path.hpp>
  12926. int
  12927. main ()
  12928. {
  12929. using namespace boost::filesystem;
  12930. path my_path( "foo/bar/data.txt" );
  12931. return 0;
  12932. ;
  12933. return 0;
  12934. }
  12935. _ACEOF
  12936. if ac_fn_cxx_try_compile "$LINENO"; then :
  12937. ax_cv_boost_filesystem=yes
  12938. else
  12939. ax_cv_boost_filesystem=no
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12942. ac_ext=cpp
  12943. ac_cpp='$CXXCPP $CPPFLAGS'
  12944. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12945. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12946. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12947. fi
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  12949. $as_echo "$ax_cv_boost_filesystem" >&6; }
  12950. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  12951. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  12952. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12953. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  12954. 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
  12955. ax_lib=${libextension}
  12956. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12958. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12959. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12960. $as_echo_n "(cached) " >&6
  12961. else
  12962. ac_check_lib_save_LIBS=$LIBS
  12963. LIBS="-l$ax_lib $LIBS"
  12964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12965. /* end confdefs.h. */
  12966. /* Override any GCC internal prototype to avoid an error.
  12967. Use char because int might match the return type of a GCC
  12968. builtin and then its argument prototype would still apply. */
  12969. #ifdef __cplusplus
  12970. extern "C"
  12971. #endif
  12972. char exit ();
  12973. int
  12974. main ()
  12975. {
  12976. return exit ();
  12977. ;
  12978. return 0;
  12979. }
  12980. _ACEOF
  12981. if ac_fn_cxx_try_link "$LINENO"; then :
  12982. eval "$as_ac_Lib=yes"
  12983. else
  12984. eval "$as_ac_Lib=no"
  12985. fi
  12986. rm -f core conftest.err conftest.$ac_objext \
  12987. conftest$ac_exeext conftest.$ac_ext
  12988. LIBS=$ac_check_lib_save_LIBS
  12989. fi
  12990. eval ac_res=\$$as_ac_Lib
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12992. $as_echo "$ac_res" >&6; }
  12993. eval as_val=\$$as_ac_Lib
  12994. if test "x$as_val" = x""yes; then :
  12995. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12996. else
  12997. link_filesystem="no"
  12998. fi
  12999. done
  13000. if test "x$link_program_options" != "xyes"; then
  13001. 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
  13002. ax_lib=${libextension}
  13003. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13005. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13006. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13007. $as_echo_n "(cached) " >&6
  13008. else
  13009. ac_check_lib_save_LIBS=$LIBS
  13010. LIBS="-l$ax_lib $LIBS"
  13011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13012. /* end confdefs.h. */
  13013. /* Override any GCC internal prototype to avoid an error.
  13014. Use char because int might match the return type of a GCC
  13015. builtin and then its argument prototype would still apply. */
  13016. #ifdef __cplusplus
  13017. extern "C"
  13018. #endif
  13019. char exit ();
  13020. int
  13021. main ()
  13022. {
  13023. return exit ();
  13024. ;
  13025. return 0;
  13026. }
  13027. _ACEOF
  13028. if ac_fn_cxx_try_link "$LINENO"; then :
  13029. eval "$as_ac_Lib=yes"
  13030. else
  13031. eval "$as_ac_Lib=no"
  13032. fi
  13033. rm -f core conftest.err conftest.$ac_objext \
  13034. conftest$ac_exeext conftest.$ac_ext
  13035. LIBS=$ac_check_lib_save_LIBS
  13036. fi
  13037. eval ac_res=\$$as_ac_Lib
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13039. $as_echo "$ac_res" >&6; }
  13040. eval as_val=\$$as_ac_Lib
  13041. if test "x$as_val" = x""yes; then :
  13042. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13043. else
  13044. link_filesystem="no"
  13045. fi
  13046. done
  13047. fi
  13048. else
  13049. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13050. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13052. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13053. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13054. $as_echo_n "(cached) " >&6
  13055. else
  13056. ac_check_lib_save_LIBS=$LIBS
  13057. LIBS="-l$ax_lib $LIBS"
  13058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13059. /* end confdefs.h. */
  13060. /* Override any GCC internal prototype to avoid an error.
  13061. Use char because int might match the return type of a GCC
  13062. builtin and then its argument prototype would still apply. */
  13063. #ifdef __cplusplus
  13064. extern "C"
  13065. #endif
  13066. char exit ();
  13067. int
  13068. main ()
  13069. {
  13070. return exit ();
  13071. ;
  13072. return 0;
  13073. }
  13074. _ACEOF
  13075. if ac_fn_cxx_try_link "$LINENO"; then :
  13076. eval "$as_ac_Lib=yes"
  13077. else
  13078. eval "$as_ac_Lib=no"
  13079. fi
  13080. rm -f core conftest.err conftest.$ac_objext \
  13081. conftest$ac_exeext conftest.$ac_ext
  13082. LIBS=$ac_check_lib_save_LIBS
  13083. fi
  13084. eval ac_res=\$$as_ac_Lib
  13085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13086. $as_echo "$ac_res" >&6; }
  13087. eval as_val=\$$as_ac_Lib
  13088. if test "x$as_val" = x""yes; then :
  13089. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13090. else
  13091. link_filesystem="no"
  13092. fi
  13093. done
  13094. fi
  13095. if test "x$link_filesystem" != "xyes"; then
  13096. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13097. fi
  13098. fi
  13099. CPPFLAGS="$CPPFLAGS_SAVED"
  13100. LDFLAGS="$LDFLAGS_SAVED"
  13101. fi
  13102. # Check whether --with-boost-thread was given.
  13103. if test "${with_boost_thread+set}" = set; then :
  13104. withval=$with_boost_thread;
  13105. if test "$withval" = "no"; then
  13106. want_boost="no"
  13107. elif test "$withval" = "yes"; then
  13108. want_boost="yes"
  13109. ax_boost_user_thread_lib=""
  13110. else
  13111. want_boost="yes"
  13112. ax_boost_user_thread_lib="$withval"
  13113. fi
  13114. else
  13115. want_boost="yes"
  13116. fi
  13117. if test "x$want_boost" = "xyes"; then
  13118. CPPFLAGS_SAVED="$CPPFLAGS"
  13119. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13120. export CPPFLAGS
  13121. LDFLAGS_SAVED="$LDFLAGS"
  13122. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13123. export LDFLAGS
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13125. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13126. if test "${ax_cv_boost_thread+set}" = set; then :
  13127. $as_echo_n "(cached) " >&6
  13128. else
  13129. ac_ext=cpp
  13130. ac_cpp='$CXXCPP $CPPFLAGS'
  13131. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13132. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13133. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13134. CXXFLAGS_SAVE=$CXXFLAGS
  13135. if test "x$build_os" = "xsolaris" ; then
  13136. CXXFLAGS="-pthreads $CXXFLAGS"
  13137. elif test "x$build_os" = "xming32" ; then
  13138. CXXFLAGS="-mthreads $CXXFLAGS"
  13139. else
  13140. CXXFLAGS="-pthread $CXXFLAGS"
  13141. fi
  13142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13143. /* end confdefs.h. */
  13144. #include <boost/thread/thread.hpp>
  13145. int
  13146. main ()
  13147. {
  13148. boost::thread_group thrds;
  13149. return 0;
  13150. ;
  13151. return 0;
  13152. }
  13153. _ACEOF
  13154. if ac_fn_cxx_try_compile "$LINENO"; then :
  13155. ax_cv_boost_thread=yes
  13156. else
  13157. ax_cv_boost_thread=no
  13158. fi
  13159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13160. CXXFLAGS=$CXXFLAGS_SAVE
  13161. ac_ext=cpp
  13162. ac_cpp='$CXXCPP $CPPFLAGS'
  13163. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13164. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13165. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13166. fi
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13168. $as_echo "$ax_cv_boost_thread" >&6; }
  13169. if test "x$ax_cv_boost_thread" = "xyes"; then
  13170. if test "x$build_os" = "xsolaris" ; then
  13171. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13172. elif test "x$build_os" = "xming32" ; then
  13173. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13174. else
  13175. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13176. fi
  13177. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13178. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13179. LDFLAGS_SAVE=$LDFLAGS
  13180. case "x$build_os" in
  13181. *bsd* )
  13182. LDFLAGS="-pthread $LDFLAGS"
  13183. break;
  13184. ;;
  13185. esac
  13186. if test "x$ax_boost_user_thread_lib" = "x"; then
  13187. 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
  13188. ax_lib=${libextension}
  13189. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13191. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13192. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13193. $as_echo_n "(cached) " >&6
  13194. else
  13195. ac_check_lib_save_LIBS=$LIBS
  13196. LIBS="-l$ax_lib $LIBS"
  13197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13198. /* end confdefs.h. */
  13199. /* Override any GCC internal prototype to avoid an error.
  13200. Use char because int might match the return type of a GCC
  13201. builtin and then its argument prototype would still apply. */
  13202. #ifdef __cplusplus
  13203. extern "C"
  13204. #endif
  13205. char exit ();
  13206. int
  13207. main ()
  13208. {
  13209. return exit ();
  13210. ;
  13211. return 0;
  13212. }
  13213. _ACEOF
  13214. if ac_fn_cxx_try_link "$LINENO"; then :
  13215. eval "$as_ac_Lib=yes"
  13216. else
  13217. eval "$as_ac_Lib=no"
  13218. fi
  13219. rm -f core conftest.err conftest.$ac_objext \
  13220. conftest$ac_exeext conftest.$ac_ext
  13221. LIBS=$ac_check_lib_save_LIBS
  13222. fi
  13223. eval ac_res=\$$as_ac_Lib
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13225. $as_echo "$ac_res" >&6; }
  13226. eval as_val=\$$as_ac_Lib
  13227. if test "x$as_val" = x""yes; then :
  13228. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13229. else
  13230. link_thread="no"
  13231. fi
  13232. done
  13233. if test "x$link_thread" != "xyes"; then
  13234. 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
  13235. ax_lib=${libextension}
  13236. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13238. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13239. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13240. $as_echo_n "(cached) " >&6
  13241. else
  13242. ac_check_lib_save_LIBS=$LIBS
  13243. LIBS="-l$ax_lib $LIBS"
  13244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13245. /* end confdefs.h. */
  13246. /* Override any GCC internal prototype to avoid an error.
  13247. Use char because int might match the return type of a GCC
  13248. builtin and then its argument prototype would still apply. */
  13249. #ifdef __cplusplus
  13250. extern "C"
  13251. #endif
  13252. char exit ();
  13253. int
  13254. main ()
  13255. {
  13256. return exit ();
  13257. ;
  13258. return 0;
  13259. }
  13260. _ACEOF
  13261. if ac_fn_cxx_try_link "$LINENO"; then :
  13262. eval "$as_ac_Lib=yes"
  13263. else
  13264. eval "$as_ac_Lib=no"
  13265. fi
  13266. rm -f core conftest.err conftest.$ac_objext \
  13267. conftest$ac_exeext conftest.$ac_ext
  13268. LIBS=$ac_check_lib_save_LIBS
  13269. fi
  13270. eval ac_res=\$$as_ac_Lib
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13272. $as_echo "$ac_res" >&6; }
  13273. eval as_val=\$$as_ac_Lib
  13274. if test "x$as_val" = x""yes; then :
  13275. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13276. else
  13277. link_thread="no"
  13278. fi
  13279. done
  13280. fi
  13281. else
  13282. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13283. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13285. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13286. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. ac_check_lib_save_LIBS=$LIBS
  13290. LIBS="-l$ax_lib $LIBS"
  13291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13292. /* end confdefs.h. */
  13293. /* Override any GCC internal prototype to avoid an error.
  13294. Use char because int might match the return type of a GCC
  13295. builtin and then its argument prototype would still apply. */
  13296. #ifdef __cplusplus
  13297. extern "C"
  13298. #endif
  13299. char exit ();
  13300. int
  13301. main ()
  13302. {
  13303. return exit ();
  13304. ;
  13305. return 0;
  13306. }
  13307. _ACEOF
  13308. if ac_fn_cxx_try_link "$LINENO"; then :
  13309. eval "$as_ac_Lib=yes"
  13310. else
  13311. eval "$as_ac_Lib=no"
  13312. fi
  13313. rm -f core conftest.err conftest.$ac_objext \
  13314. conftest$ac_exeext conftest.$ac_ext
  13315. LIBS=$ac_check_lib_save_LIBS
  13316. fi
  13317. eval ac_res=\$$as_ac_Lib
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13319. $as_echo "$ac_res" >&6; }
  13320. eval as_val=\$$as_ac_Lib
  13321. if test "x$as_val" = x""yes; then :
  13322. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13323. else
  13324. link_thread="no"
  13325. fi
  13326. done
  13327. fi
  13328. if test "x$link_thread" = "xno"; then
  13329. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13330. else
  13331. case "x$build_os" in
  13332. *bsd* )
  13333. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13334. break;
  13335. ;;
  13336. esac
  13337. fi
  13338. fi
  13339. CPPFLAGS="$CPPFLAGS_SAVED"
  13340. LDFLAGS="$LDFLAGS_SAVED"
  13341. fi
  13342. # Check whether --with-boost-iostreams was given.
  13343. if test "${with_boost_iostreams+set}" = set; then :
  13344. withval=$with_boost_iostreams;
  13345. if test "$withval" = "no"; then
  13346. want_boost="no"
  13347. elif test "$withval" = "yes"; then
  13348. want_boost="yes"
  13349. ax_boost_user_iostreams_lib=""
  13350. else
  13351. want_boost="yes"
  13352. ax_boost_user_iostreams_lib="$withval"
  13353. fi
  13354. else
  13355. want_boost="yes"
  13356. fi
  13357. if test "x$want_boost" = "xyes"; then
  13358. CPPFLAGS_SAVED="$CPPFLAGS"
  13359. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13360. export CPPFLAGS
  13361. LDFLAGS_SAVED="$LDFLAGS"
  13362. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13363. export LDFLAGS
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13365. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13366. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13367. $as_echo_n "(cached) " >&6
  13368. else
  13369. ac_ext=cpp
  13370. ac_cpp='$CXXCPP $CPPFLAGS'
  13371. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13372. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13373. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13375. /* end confdefs.h. */
  13376. #include <boost/iostreams/filtering_stream.hpp>
  13377. #include <boost/range/iterator_range.hpp>
  13378. int
  13379. main ()
  13380. {
  13381. std::string input = "Hello World!";
  13382. namespace io = boost::iostreams;
  13383. io::filtering_istream in(boost::make_iterator_range(input));
  13384. return 0;
  13385. ;
  13386. return 0;
  13387. }
  13388. _ACEOF
  13389. if ac_fn_cxx_try_compile "$LINENO"; then :
  13390. ax_cv_boost_iostreams=yes
  13391. else
  13392. ax_cv_boost_iostreams=no
  13393. fi
  13394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13395. ac_ext=cpp
  13396. ac_cpp='$CXXCPP $CPPFLAGS'
  13397. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13398. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13399. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13400. fi
  13401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13402. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13403. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13404. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13405. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13406. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13407. 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
  13408. ax_lib=${libextension}
  13409. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13411. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13412. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13413. $as_echo_n "(cached) " >&6
  13414. else
  13415. ac_check_lib_save_LIBS=$LIBS
  13416. LIBS="-l$ax_lib $LIBS"
  13417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13418. /* end confdefs.h. */
  13419. /* Override any GCC internal prototype to avoid an error.
  13420. Use char because int might match the return type of a GCC
  13421. builtin and then its argument prototype would still apply. */
  13422. #ifdef __cplusplus
  13423. extern "C"
  13424. #endif
  13425. char exit ();
  13426. int
  13427. main ()
  13428. {
  13429. return exit ();
  13430. ;
  13431. return 0;
  13432. }
  13433. _ACEOF
  13434. if ac_fn_cxx_try_link "$LINENO"; then :
  13435. eval "$as_ac_Lib=yes"
  13436. else
  13437. eval "$as_ac_Lib=no"
  13438. fi
  13439. rm -f core conftest.err conftest.$ac_objext \
  13440. conftest$ac_exeext conftest.$ac_ext
  13441. LIBS=$ac_check_lib_save_LIBS
  13442. fi
  13443. eval ac_res=\$$as_ac_Lib
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13445. $as_echo "$ac_res" >&6; }
  13446. eval as_val=\$$as_ac_Lib
  13447. if test "x$as_val" = x""yes; then :
  13448. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13449. else
  13450. link_iostreams="no"
  13451. fi
  13452. done
  13453. if test "x$link_iostreams" != "xyes"; then
  13454. 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
  13455. ax_lib=${libextension}
  13456. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13458. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13459. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13460. $as_echo_n "(cached) " >&6
  13461. else
  13462. ac_check_lib_save_LIBS=$LIBS
  13463. LIBS="-l$ax_lib $LIBS"
  13464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13465. /* end confdefs.h. */
  13466. /* Override any GCC internal prototype to avoid an error.
  13467. Use char because int might match the return type of a GCC
  13468. builtin and then its argument prototype would still apply. */
  13469. #ifdef __cplusplus
  13470. extern "C"
  13471. #endif
  13472. char exit ();
  13473. int
  13474. main ()
  13475. {
  13476. return exit ();
  13477. ;
  13478. return 0;
  13479. }
  13480. _ACEOF
  13481. if ac_fn_cxx_try_link "$LINENO"; then :
  13482. eval "$as_ac_Lib=yes"
  13483. else
  13484. eval "$as_ac_Lib=no"
  13485. fi
  13486. rm -f core conftest.err conftest.$ac_objext \
  13487. conftest$ac_exeext conftest.$ac_ext
  13488. LIBS=$ac_check_lib_save_LIBS
  13489. fi
  13490. eval ac_res=\$$as_ac_Lib
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13492. $as_echo "$ac_res" >&6; }
  13493. eval as_val=\$$as_ac_Lib
  13494. if test "x$as_val" = x""yes; then :
  13495. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13496. else
  13497. link_iostreams="no"
  13498. fi
  13499. done
  13500. fi
  13501. else
  13502. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13503. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13505. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13506. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13507. $as_echo_n "(cached) " >&6
  13508. else
  13509. ac_check_lib_save_LIBS=$LIBS
  13510. LIBS="-l$ax_lib $LIBS"
  13511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13512. /* end confdefs.h. */
  13513. int
  13514. main ()
  13515. {
  13516. return main ();
  13517. ;
  13518. return 0;
  13519. }
  13520. _ACEOF
  13521. if ac_fn_cxx_try_link "$LINENO"; then :
  13522. eval "$as_ac_Lib=yes"
  13523. else
  13524. eval "$as_ac_Lib=no"
  13525. fi
  13526. rm -f core conftest.err conftest.$ac_objext \
  13527. conftest$ac_exeext conftest.$ac_ext
  13528. LIBS=$ac_check_lib_save_LIBS
  13529. fi
  13530. eval ac_res=\$$as_ac_Lib
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13532. $as_echo "$ac_res" >&6; }
  13533. eval as_val=\$$as_ac_Lib
  13534. if test "x$as_val" = x""yes; then :
  13535. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13536. else
  13537. link_iostreams="no"
  13538. fi
  13539. done
  13540. fi
  13541. if test "x$link_iostreams" != "xyes"; then
  13542. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13543. fi
  13544. fi
  13545. CPPFLAGS="$CPPFLAGS_SAVED"
  13546. LDFLAGS="$LDFLAGS_SAVED"
  13547. fi
  13548. # Check for SDL libraries
  13549. saved_LIBS=$LIBS
  13550. # Extract the first word of "sdl-config", so it can be a program name with args.
  13551. set dummy sdl-config; ac_word=$2
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13553. $as_echo_n "checking for $ac_word... " >&6; }
  13554. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13555. $as_echo_n "(cached) " >&6
  13556. else
  13557. if test -n "$HAVE_SDL_CONFIG"; then
  13558. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13559. else
  13560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13561. for as_dir in $PATH
  13562. do
  13563. IFS=$as_save_IFS
  13564. test -z "$as_dir" && as_dir=.
  13565. for ac_exec_ext in '' $ac_executable_extensions; do
  13566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13567. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13569. break 2
  13570. fi
  13571. done
  13572. done
  13573. IFS=$as_save_IFS
  13574. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13575. fi
  13576. fi
  13577. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13578. if test -n "$HAVE_SDL_CONFIG"; then
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13580. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13581. else
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13583. $as_echo "no" >&6; }
  13584. fi
  13585. if test "$HAVE_SDL_CONFIG" = no; then
  13586. as_fn_error "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13587. fi
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13589. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13590. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13591. $as_echo_n "(cached) " >&6
  13592. else
  13593. ac_check_lib_save_LIBS=$LIBS
  13594. LIBS="-lSDL $LIBS"
  13595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13596. /* end confdefs.h. */
  13597. /* Override any GCC internal prototype to avoid an error.
  13598. Use char because int might match the return type of a GCC
  13599. builtin and then its argument prototype would still apply. */
  13600. #ifdef __cplusplus
  13601. extern "C"
  13602. #endif
  13603. char SDL_Init ();
  13604. int
  13605. main ()
  13606. {
  13607. return SDL_Init ();
  13608. ;
  13609. return 0;
  13610. }
  13611. _ACEOF
  13612. if ac_fn_cxx_try_link "$LINENO"; then :
  13613. ac_cv_lib_SDL_SDL_Init=yes
  13614. else
  13615. ac_cv_lib_SDL_SDL_Init=no
  13616. fi
  13617. rm -f core conftest.err conftest.$ac_objext \
  13618. conftest$ac_exeext conftest.$ac_ext
  13619. LIBS=$ac_check_lib_save_LIBS
  13620. fi
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13622. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13623. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13624. cat >>confdefs.h <<_ACEOF
  13625. #define HAVE_LIBSDL 1
  13626. _ACEOF
  13627. LIBS="-lSDL $LIBS"
  13628. else
  13629. as_fn_error "SDL library not found. Please install it." "$LINENO" 5
  13630. fi
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13632. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13633. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13634. $as_echo_n "(cached) " >&6
  13635. else
  13636. ac_check_lib_save_LIBS=$LIBS
  13637. LIBS="-lSDL_mixer $LIBS"
  13638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13639. /* end confdefs.h. */
  13640. int
  13641. main ()
  13642. {
  13643. return main ();
  13644. ;
  13645. return 0;
  13646. }
  13647. _ACEOF
  13648. if ac_fn_cxx_try_link "$LINENO"; then :
  13649. ac_cv_lib_SDL_mixer_main=yes
  13650. else
  13651. ac_cv_lib_SDL_mixer_main=no
  13652. fi
  13653. rm -f core conftest.err conftest.$ac_objext \
  13654. conftest$ac_exeext conftest.$ac_ext
  13655. LIBS=$ac_check_lib_save_LIBS
  13656. fi
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13658. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13659. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13660. cat >>confdefs.h <<_ACEOF
  13661. #define HAVE_LIBSDL_MIXER 1
  13662. _ACEOF
  13663. LIBS="-lSDL_mixer $LIBS"
  13664. else
  13665. as_fn_error "SDL_mixer library not found. Please install it." "$LINENO" 5
  13666. fi
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13668. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13669. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13670. $as_echo_n "(cached) " >&6
  13671. else
  13672. ac_check_lib_save_LIBS=$LIBS
  13673. LIBS="-lSDL_image $LIBS"
  13674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13675. /* end confdefs.h. */
  13676. /* Override any GCC internal prototype to avoid an error.
  13677. Use char because int might match the return type of a GCC
  13678. builtin and then its argument prototype would still apply. */
  13679. #ifdef __cplusplus
  13680. extern "C"
  13681. #endif
  13682. char IMG_Load ();
  13683. int
  13684. main ()
  13685. {
  13686. return IMG_Load ();
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. if ac_fn_cxx_try_link "$LINENO"; then :
  13692. ac_cv_lib_SDL_image_IMG_Load=yes
  13693. else
  13694. ac_cv_lib_SDL_image_IMG_Load=no
  13695. fi
  13696. rm -f core conftest.err conftest.$ac_objext \
  13697. conftest$ac_exeext conftest.$ac_ext
  13698. LIBS=$ac_check_lib_save_LIBS
  13699. fi
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13701. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13702. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13703. cat >>confdefs.h <<_ACEOF
  13704. #define HAVE_LIBSDL_IMAGE 1
  13705. _ACEOF
  13706. LIBS="-lSDL_image $LIBS"
  13707. else
  13708. as_fn_error "SDL_image library not found. Please install it." "$LINENO" 5
  13709. fi
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13711. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13712. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. ac_check_lib_save_LIBS=$LIBS
  13716. LIBS="-lSDL_ttf $LIBS"
  13717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13718. /* end confdefs.h. */
  13719. int
  13720. main ()
  13721. {
  13722. return main ();
  13723. ;
  13724. return 0;
  13725. }
  13726. _ACEOF
  13727. if ac_fn_cxx_try_link "$LINENO"; then :
  13728. ac_cv_lib_SDL_ttf_main=yes
  13729. else
  13730. ac_cv_lib_SDL_ttf_main=no
  13731. fi
  13732. rm -f core conftest.err conftest.$ac_objext \
  13733. conftest$ac_exeext conftest.$ac_ext
  13734. LIBS=$ac_check_lib_save_LIBS
  13735. fi
  13736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  13737. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  13738. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  13739. cat >>confdefs.h <<_ACEOF
  13740. #define HAVE_LIBSDL_TTF 1
  13741. _ACEOF
  13742. LIBS="-lSDL_ttf $LIBS"
  13743. else
  13744. as_fn_error "SDL_ttf library not found. Please install it." "$LINENO" 5
  13745. fi
  13746. SDL_CXXFLAGS=`sdl-config --cflags`
  13747. SDL_LIBS="`sdl-config --libs` $LIBS"
  13748. LIBS=$saved_LIBS
  13749. # Check for ffmpeg libraries
  13750. saved_LIBS=$LIBS
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
  13752. $as_echo_n "checking for main in -lavformat... " >&6; }
  13753. if test "${ac_cv_lib_avformat_main+set}" = set; then :
  13754. $as_echo_n "(cached) " >&6
  13755. else
  13756. ac_check_lib_save_LIBS=$LIBS
  13757. LIBS="-lavformat $LIBS"
  13758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13759. /* end confdefs.h. */
  13760. int
  13761. main ()
  13762. {
  13763. return main ();
  13764. ;
  13765. return 0;
  13766. }
  13767. _ACEOF
  13768. if ac_fn_cxx_try_link "$LINENO"; then :
  13769. ac_cv_lib_avformat_main=yes
  13770. else
  13771. ac_cv_lib_avformat_main=no
  13772. fi
  13773. rm -f core conftest.err conftest.$ac_objext \
  13774. conftest$ac_exeext conftest.$ac_ext
  13775. LIBS=$ac_check_lib_save_LIBS
  13776. fi
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
  13778. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  13779. if test "x$ac_cv_lib_avformat_main" = x""yes; then :
  13780. cat >>confdefs.h <<_ACEOF
  13781. #define HAVE_LIBAVFORMAT 1
  13782. _ACEOF
  13783. LIBS="-lavformat $LIBS"
  13784. else
  13785. as_fn_error "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  13786. fi
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
  13788. $as_echo_n "checking for main in -lswscale... " >&6; }
  13789. if test "${ac_cv_lib_swscale_main+set}" = set; then :
  13790. $as_echo_n "(cached) " >&6
  13791. else
  13792. ac_check_lib_save_LIBS=$LIBS
  13793. LIBS="-lswscale $LIBS"
  13794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13795. /* end confdefs.h. */
  13796. int
  13797. main ()
  13798. {
  13799. return main ();
  13800. ;
  13801. return 0;
  13802. }
  13803. _ACEOF
  13804. if ac_fn_cxx_try_link "$LINENO"; then :
  13805. ac_cv_lib_swscale_main=yes
  13806. else
  13807. ac_cv_lib_swscale_main=no
  13808. fi
  13809. rm -f core conftest.err conftest.$ac_objext \
  13810. conftest$ac_exeext conftest.$ac_ext
  13811. LIBS=$ac_check_lib_save_LIBS
  13812. fi
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
  13814. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  13815. if test "x$ac_cv_lib_swscale_main" = x""yes; then :
  13816. cat >>confdefs.h <<_ACEOF
  13817. #define HAVE_LIBSWSCALE 1
  13818. _ACEOF
  13819. LIBS="-lswscale $LIBS"
  13820. else
  13821. as_fn_error "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  13822. fi
  13823. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  13824. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  13825. LIBS=$saved_LIBS
  13826. # Checks for header files.
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13828. $as_echo_n "checking for ANSI C header files... " >&6; }
  13829. if test "${ac_cv_header_stdc+set}" = set; then :
  13830. $as_echo_n "(cached) " >&6
  13831. else
  13832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13833. /* end confdefs.h. */
  13834. #include <stdlib.h>
  13835. #include <stdarg.h>
  13836. #include <string.h>
  13837. #include <float.h>
  13838. int
  13839. main ()
  13840. {
  13841. ;
  13842. return 0;
  13843. }
  13844. _ACEOF
  13845. if ac_fn_cxx_try_compile "$LINENO"; then :
  13846. ac_cv_header_stdc=yes
  13847. else
  13848. ac_cv_header_stdc=no
  13849. fi
  13850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13851. if test $ac_cv_header_stdc = yes; then
  13852. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. #include <string.h>
  13856. _ACEOF
  13857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13858. $EGREP "memchr" >/dev/null 2>&1; then :
  13859. else
  13860. ac_cv_header_stdc=no
  13861. fi
  13862. rm -f conftest*
  13863. fi
  13864. if test $ac_cv_header_stdc = yes; then
  13865. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13867. /* end confdefs.h. */
  13868. #include <stdlib.h>
  13869. _ACEOF
  13870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13871. $EGREP "free" >/dev/null 2>&1; then :
  13872. else
  13873. ac_cv_header_stdc=no
  13874. fi
  13875. rm -f conftest*
  13876. fi
  13877. if test $ac_cv_header_stdc = yes; then
  13878. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13879. if test "$cross_compiling" = yes; then :
  13880. :
  13881. else
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. #include <ctype.h>
  13885. #include <stdlib.h>
  13886. #if ((' ' & 0x0FF) == 0x020)
  13887. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13888. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13889. #else
  13890. # define ISLOWER(c) \
  13891. (('a' <= (c) && (c) <= 'i') \
  13892. || ('j' <= (c) && (c) <= 'r') \
  13893. || ('s' <= (c) && (c) <= 'z'))
  13894. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13895. #endif
  13896. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13897. int
  13898. main ()
  13899. {
  13900. int i;
  13901. for (i = 0; i < 256; i++)
  13902. if (XOR (islower (i), ISLOWER (i))
  13903. || toupper (i) != TOUPPER (i))
  13904. return 2;
  13905. return 0;
  13906. }
  13907. _ACEOF
  13908. if ac_fn_cxx_try_run "$LINENO"; then :
  13909. else
  13910. ac_cv_header_stdc=no
  13911. fi
  13912. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13913. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13914. fi
  13915. fi
  13916. fi
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13918. $as_echo "$ac_cv_header_stdc" >&6; }
  13919. if test $ac_cv_header_stdc = yes; then
  13920. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13921. fi
  13922. for ac_header in fcntl.h stdlib.h string.h
  13923. do :
  13924. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13925. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13926. eval as_val=\$$as_ac_Header
  13927. if test "x$as_val" = x""yes; then :
  13928. cat >>confdefs.h <<_ACEOF
  13929. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13930. _ACEOF
  13931. fi
  13932. done
  13933. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13934. 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
  13935. do :
  13936. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13937. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13938. eval as_val=\$$as_ac_Header
  13939. if test "x$as_val" = x""yes; then :
  13940. cat >>confdefs.h <<_ACEOF
  13941. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13942. _ACEOF
  13943. else
  13944. as_fn_error "Required boost headers not found. Please install it." "$LINENO" 5
  13945. fi
  13946. done
  13947. # Checks for library functions.
  13948. for ac_func in atexit memset pow select sqrt
  13949. do :
  13950. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13951. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13952. eval as_val=\$$as_ac_var
  13953. if test "x$as_val" = x""yes; then :
  13954. cat >>confdefs.h <<_ACEOF
  13955. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13956. _ACEOF
  13957. fi
  13958. done
  13959. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  13960. cat >confcache <<\_ACEOF
  13961. # This file is a shell script that caches the results of configure
  13962. # tests run on this system so they can be shared between configure
  13963. # scripts and configure runs, see configure's option --config-cache.
  13964. # It is not useful on other systems. If it contains results you don't
  13965. # want to keep, you may remove or edit it.
  13966. #
  13967. # config.status only pays attention to the cache file if you give it
  13968. # the --recheck option to rerun configure.
  13969. #
  13970. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13971. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13972. # following values.
  13973. _ACEOF
  13974. # The following way of writing the cache mishandles newlines in values,
  13975. # but we know of no workaround that is simple, portable, and efficient.
  13976. # So, we kill variables containing newlines.
  13977. # Ultrix sh set writes to stderr and can't be redirected directly,
  13978. # and sets the high bit in the cache file unless we assign to the vars.
  13979. (
  13980. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13981. eval ac_val=\$$ac_var
  13982. case $ac_val in #(
  13983. *${as_nl}*)
  13984. case $ac_var in #(
  13985. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13986. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13987. esac
  13988. case $ac_var in #(
  13989. _ | IFS | as_nl) ;; #(
  13990. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13991. *) { eval $ac_var=; unset $ac_var;} ;;
  13992. esac ;;
  13993. esac
  13994. done
  13995. (set) 2>&1 |
  13996. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13997. *${as_nl}ac_space=\ *)
  13998. # `set' does not quote correctly, so add quotes: double-quote
  13999. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14000. sed -n \
  14001. "s/'/'\\\\''/g;
  14002. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14003. ;; #(
  14004. *)
  14005. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14006. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14007. ;;
  14008. esac |
  14009. sort
  14010. ) |
  14011. sed '
  14012. /^ac_cv_env_/b end
  14013. t clear
  14014. :clear
  14015. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14016. t end
  14017. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14018. :end' >>confcache
  14019. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14020. if test -w "$cache_file"; then
  14021. test "x$cache_file" != "x/dev/null" &&
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14023. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14024. cat confcache >$cache_file
  14025. else
  14026. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14027. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14028. fi
  14029. fi
  14030. rm -f confcache
  14031. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14032. # Let make expand exec_prefix.
  14033. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14034. # Transform confdefs.h into DEFS.
  14035. # Protect against shell expansion while executing Makefile rules.
  14036. # Protect against Makefile macro expansion.
  14037. #
  14038. # If the first sed substitution is executed (which looks for macros that
  14039. # take arguments), then branch to the quote section. Otherwise,
  14040. # look for a macro that doesn't take arguments.
  14041. ac_script='
  14042. :mline
  14043. /\\$/{
  14044. N
  14045. s,\\\n,,
  14046. b mline
  14047. }
  14048. t clear
  14049. :clear
  14050. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14051. t quote
  14052. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14053. t quote
  14054. b any
  14055. :quote
  14056. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14057. s/\[/\\&/g
  14058. s/\]/\\&/g
  14059. s/\$/$$/g
  14060. H
  14061. :any
  14062. ${
  14063. g
  14064. s/^\n//
  14065. s/\n/ /g
  14066. p
  14067. }
  14068. '
  14069. DEFS=`sed -n "$ac_script" confdefs.h`
  14070. ac_libobjs=
  14071. ac_ltlibobjs=
  14072. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14073. # 1. Remove the extension, and $U if already installed.
  14074. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14075. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14076. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14077. # will be set to the directory where LIBOBJS objects are built.
  14078. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14079. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14080. done
  14081. LIBOBJS=$ac_libobjs
  14082. LTLIBOBJS=$ac_ltlibobjs
  14083. if test -n "$EXEEXT"; then
  14084. am__EXEEXT_TRUE=
  14085. am__EXEEXT_FALSE='#'
  14086. else
  14087. am__EXEEXT_TRUE='#'
  14088. am__EXEEXT_FALSE=
  14089. fi
  14090. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14091. as_fn_error "conditional \"AMDEP\" was never defined.
  14092. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14093. fi
  14094. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14095. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14096. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14097. fi
  14098. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14099. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14100. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14101. fi
  14102. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14103. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14104. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14105. fi
  14106. : ${CONFIG_STATUS=./config.status}
  14107. ac_write_fail=0
  14108. ac_clean_files_save=$ac_clean_files
  14109. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14110. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14111. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14112. as_write_fail=0
  14113. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14114. #! $SHELL
  14115. # Generated by $as_me.
  14116. # Run this file to recreate the current configuration.
  14117. # Compiler output produced by configure, useful for debugging
  14118. # configure, is in config.log if it exists.
  14119. debug=false
  14120. ac_cs_recheck=false
  14121. ac_cs_silent=false
  14122. SHELL=\${CONFIG_SHELL-$SHELL}
  14123. export SHELL
  14124. _ASEOF
  14125. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14126. ## -------------------- ##
  14127. ## M4sh Initialization. ##
  14128. ## -------------------- ##
  14129. # Be more Bourne compatible
  14130. DUALCASE=1; export DUALCASE # for MKS sh
  14131. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14132. emulate sh
  14133. NULLCMD=:
  14134. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14135. # is contrary to our usage. Disable this feature.
  14136. alias -g '${1+"$@"}'='"$@"'
  14137. setopt NO_GLOB_SUBST
  14138. else
  14139. case `(set -o) 2>/dev/null` in #(
  14140. *posix*) :
  14141. set -o posix ;; #(
  14142. *) :
  14143. ;;
  14144. esac
  14145. fi
  14146. as_nl='
  14147. '
  14148. export as_nl
  14149. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14150. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14151. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14152. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14153. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14154. # but without wasting forks for bash or zsh.
  14155. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14156. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14157. as_echo='print -r --'
  14158. as_echo_n='print -rn --'
  14159. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14160. as_echo='printf %s\n'
  14161. as_echo_n='printf %s'
  14162. else
  14163. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14164. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14165. as_echo_n='/usr/ucb/echo -n'
  14166. else
  14167. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14168. as_echo_n_body='eval
  14169. arg=$1;
  14170. case $arg in #(
  14171. *"$as_nl"*)
  14172. expr "X$arg" : "X\\(.*\\)$as_nl";
  14173. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14174. esac;
  14175. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14176. '
  14177. export as_echo_n_body
  14178. as_echo_n='sh -c $as_echo_n_body as_echo'
  14179. fi
  14180. export as_echo_body
  14181. as_echo='sh -c $as_echo_body as_echo'
  14182. fi
  14183. # The user is always right.
  14184. if test "${PATH_SEPARATOR+set}" != set; then
  14185. PATH_SEPARATOR=:
  14186. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14187. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14188. PATH_SEPARATOR=';'
  14189. }
  14190. fi
  14191. # IFS
  14192. # We need space, tab and new line, in precisely that order. Quoting is
  14193. # there to prevent editors from complaining about space-tab.
  14194. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14195. # splitting by setting IFS to empty value.)
  14196. IFS=" "" $as_nl"
  14197. # Find who we are. Look in the path if we contain no directory separator.
  14198. case $0 in #((
  14199. *[\\/]* ) as_myself=$0 ;;
  14200. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14201. for as_dir in $PATH
  14202. do
  14203. IFS=$as_save_IFS
  14204. test -z "$as_dir" && as_dir=.
  14205. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14206. done
  14207. IFS=$as_save_IFS
  14208. ;;
  14209. esac
  14210. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14211. # in which case we are not to be found in the path.
  14212. if test "x$as_myself" = x; then
  14213. as_myself=$0
  14214. fi
  14215. if test ! -f "$as_myself"; then
  14216. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14217. exit 1
  14218. fi
  14219. # Unset variables that we do not need and which cause bugs (e.g. in
  14220. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14221. # suppresses any "Segmentation fault" message there. '((' could
  14222. # trigger a bug in pdksh 5.2.14.
  14223. for as_var in BASH_ENV ENV MAIL MAILPATH
  14224. do eval test x\${$as_var+set} = xset \
  14225. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14226. done
  14227. PS1='$ '
  14228. PS2='> '
  14229. PS4='+ '
  14230. # NLS nuisances.
  14231. LC_ALL=C
  14232. export LC_ALL
  14233. LANGUAGE=C
  14234. export LANGUAGE
  14235. # CDPATH.
  14236. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14237. # as_fn_error ERROR [LINENO LOG_FD]
  14238. # ---------------------------------
  14239. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14240. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14241. # script with status $?, using 1 if that was 0.
  14242. as_fn_error ()
  14243. {
  14244. as_status=$?; test $as_status -eq 0 && as_status=1
  14245. if test "$3"; then
  14246. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14247. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14248. fi
  14249. $as_echo "$as_me: error: $1" >&2
  14250. as_fn_exit $as_status
  14251. } # as_fn_error
  14252. # as_fn_set_status STATUS
  14253. # -----------------------
  14254. # Set $? to STATUS, without forking.
  14255. as_fn_set_status ()
  14256. {
  14257. return $1
  14258. } # as_fn_set_status
  14259. # as_fn_exit STATUS
  14260. # -----------------
  14261. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14262. as_fn_exit ()
  14263. {
  14264. set +e
  14265. as_fn_set_status $1
  14266. exit $1
  14267. } # as_fn_exit
  14268. # as_fn_unset VAR
  14269. # ---------------
  14270. # Portably unset VAR.
  14271. as_fn_unset ()
  14272. {
  14273. { eval $1=; unset $1;}
  14274. }
  14275. as_unset=as_fn_unset
  14276. # as_fn_append VAR VALUE
  14277. # ----------------------
  14278. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14279. # advantage of any shell optimizations that allow amortized linear growth over
  14280. # repeated appends, instead of the typical quadratic growth present in naive
  14281. # implementations.
  14282. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14283. eval 'as_fn_append ()
  14284. {
  14285. eval $1+=\$2
  14286. }'
  14287. else
  14288. as_fn_append ()
  14289. {
  14290. eval $1=\$$1\$2
  14291. }
  14292. fi # as_fn_append
  14293. # as_fn_arith ARG...
  14294. # ------------------
  14295. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14296. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14297. # must be portable across $(()) and expr.
  14298. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14299. eval 'as_fn_arith ()
  14300. {
  14301. as_val=$(( $* ))
  14302. }'
  14303. else
  14304. as_fn_arith ()
  14305. {
  14306. as_val=`expr "$@" || test $? -eq 1`
  14307. }
  14308. fi # as_fn_arith
  14309. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14310. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14311. as_expr=expr
  14312. else
  14313. as_expr=false
  14314. fi
  14315. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14316. as_basename=basename
  14317. else
  14318. as_basename=false
  14319. fi
  14320. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14321. as_dirname=dirname
  14322. else
  14323. as_dirname=false
  14324. fi
  14325. as_me=`$as_basename -- "$0" ||
  14326. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14327. X"$0" : 'X\(//\)$' \| \
  14328. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14329. $as_echo X/"$0" |
  14330. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14331. s//\1/
  14332. q
  14333. }
  14334. /^X\/\(\/\/\)$/{
  14335. s//\1/
  14336. q
  14337. }
  14338. /^X\/\(\/\).*/{
  14339. s//\1/
  14340. q
  14341. }
  14342. s/.*/./; q'`
  14343. # Avoid depending upon Character Ranges.
  14344. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14345. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14346. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14347. as_cr_digits='0123456789'
  14348. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14349. ECHO_C= ECHO_N= ECHO_T=
  14350. case `echo -n x` in #(((((
  14351. -n*)
  14352. case `echo 'xy\c'` in
  14353. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14354. xy) ECHO_C='\c';;
  14355. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14356. ECHO_T=' ';;
  14357. esac;;
  14358. *)
  14359. ECHO_N='-n';;
  14360. esac
  14361. rm -f conf$$ conf$$.exe conf$$.file
  14362. if test -d conf$$.dir; then
  14363. rm -f conf$$.dir/conf$$.file
  14364. else
  14365. rm -f conf$$.dir
  14366. mkdir conf$$.dir 2>/dev/null
  14367. fi
  14368. if (echo >conf$$.file) 2>/dev/null; then
  14369. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14370. as_ln_s='ln -s'
  14371. # ... but there are two gotchas:
  14372. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14373. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14374. # In both cases, we have to default to `cp -p'.
  14375. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14376. as_ln_s='cp -p'
  14377. elif ln conf$$.file conf$$ 2>/dev/null; then
  14378. as_ln_s=ln
  14379. else
  14380. as_ln_s='cp -p'
  14381. fi
  14382. else
  14383. as_ln_s='cp -p'
  14384. fi
  14385. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14386. rmdir conf$$.dir 2>/dev/null
  14387. # as_fn_mkdir_p
  14388. # -------------
  14389. # Create "$as_dir" as a directory, including parents if necessary.
  14390. as_fn_mkdir_p ()
  14391. {
  14392. case $as_dir in #(
  14393. -*) as_dir=./$as_dir;;
  14394. esac
  14395. test -d "$as_dir" || eval $as_mkdir_p || {
  14396. as_dirs=
  14397. while :; do
  14398. case $as_dir in #(
  14399. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14400. *) as_qdir=$as_dir;;
  14401. esac
  14402. as_dirs="'$as_qdir' $as_dirs"
  14403. as_dir=`$as_dirname -- "$as_dir" ||
  14404. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14405. X"$as_dir" : 'X\(//\)[^/]' \| \
  14406. X"$as_dir" : 'X\(//\)$' \| \
  14407. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14408. $as_echo X"$as_dir" |
  14409. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14410. s//\1/
  14411. q
  14412. }
  14413. /^X\(\/\/\)[^/].*/{
  14414. s//\1/
  14415. q
  14416. }
  14417. /^X\(\/\/\)$/{
  14418. s//\1/
  14419. q
  14420. }
  14421. /^X\(\/\).*/{
  14422. s//\1/
  14423. q
  14424. }
  14425. s/.*/./; q'`
  14426. test -d "$as_dir" && break
  14427. done
  14428. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14429. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14430. } # as_fn_mkdir_p
  14431. if mkdir -p . 2>/dev/null; then
  14432. as_mkdir_p='mkdir -p "$as_dir"'
  14433. else
  14434. test -d ./-p && rmdir ./-p
  14435. as_mkdir_p=false
  14436. fi
  14437. if test -x / >/dev/null 2>&1; then
  14438. as_test_x='test -x'
  14439. else
  14440. if ls -dL / >/dev/null 2>&1; then
  14441. as_ls_L_option=L
  14442. else
  14443. as_ls_L_option=
  14444. fi
  14445. as_test_x='
  14446. eval sh -c '\''
  14447. if test -d "$1"; then
  14448. test -d "$1/.";
  14449. else
  14450. case $1 in #(
  14451. -*)set "./$1";;
  14452. esac;
  14453. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14454. ???[sx]*):;;*)false;;esac;fi
  14455. '\'' sh
  14456. '
  14457. fi
  14458. as_executable_p=$as_test_x
  14459. # Sed expression to map a string onto a valid CPP name.
  14460. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14461. # Sed expression to map a string onto a valid variable name.
  14462. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14463. exec 6>&1
  14464. ## ----------------------------------- ##
  14465. ## Main body of $CONFIG_STATUS script. ##
  14466. ## ----------------------------------- ##
  14467. _ASEOF
  14468. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14470. # Save the log message, to keep $0 and so on meaningful, and to
  14471. # report actual input values of CONFIG_FILES etc. instead of their
  14472. # values after options handling.
  14473. ac_log="
  14474. This file was extended by vcmi $as_me 0.82, which was
  14475. generated by GNU Autoconf 2.65. Invocation command line was
  14476. CONFIG_FILES = $CONFIG_FILES
  14477. CONFIG_HEADERS = $CONFIG_HEADERS
  14478. CONFIG_LINKS = $CONFIG_LINKS
  14479. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14480. $ $0 $@
  14481. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14482. "
  14483. _ACEOF
  14484. case $ac_config_files in *"
  14485. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14486. esac
  14487. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14488. # Files that config.status was made for.
  14489. config_files="$ac_config_files"
  14490. config_commands="$ac_config_commands"
  14491. _ACEOF
  14492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14493. ac_cs_usage="\
  14494. \`$as_me' instantiates files and other configuration actions
  14495. from templates according to the current configuration. Unless the files
  14496. and actions are specified as TAGs, all are instantiated by default.
  14497. Usage: $0 [OPTION]... [TAG]...
  14498. -h, --help print this help, then exit
  14499. -V, --version print version number and configuration settings, then exit
  14500. --config print configuration, then exit
  14501. -q, --quiet, --silent
  14502. do not print progress messages
  14503. -d, --debug don't remove temporary files
  14504. --recheck update $as_me by reconfiguring in the same conditions
  14505. --file=FILE[:TEMPLATE]
  14506. instantiate the configuration file FILE
  14507. Configuration files:
  14508. $config_files
  14509. Configuration commands:
  14510. $config_commands
  14511. Report bugs to the package provider."
  14512. _ACEOF
  14513. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14514. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14515. ac_cs_version="\\
  14516. vcmi config.status 0.82
  14517. configured by $0, generated by GNU Autoconf 2.65,
  14518. with options \\"\$ac_cs_config\\"
  14519. Copyright (C) 2009 Free Software Foundation, Inc.
  14520. This config.status script is free software; the Free Software Foundation
  14521. gives unlimited permission to copy, distribute and modify it."
  14522. ac_pwd='$ac_pwd'
  14523. srcdir='$srcdir'
  14524. INSTALL='$INSTALL'
  14525. MKDIR_P='$MKDIR_P'
  14526. AWK='$AWK'
  14527. test -n "\$AWK" || AWK=awk
  14528. _ACEOF
  14529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14530. # The default lists apply if the user does not specify any file.
  14531. ac_need_defaults=:
  14532. while test $# != 0
  14533. do
  14534. case $1 in
  14535. --*=*)
  14536. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14537. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14538. ac_shift=:
  14539. ;;
  14540. *)
  14541. ac_option=$1
  14542. ac_optarg=$2
  14543. ac_shift=shift
  14544. ;;
  14545. esac
  14546. case $ac_option in
  14547. # Handling of the options.
  14548. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14549. ac_cs_recheck=: ;;
  14550. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14551. $as_echo "$ac_cs_version"; exit ;;
  14552. --config | --confi | --conf | --con | --co | --c )
  14553. $as_echo "$ac_cs_config"; exit ;;
  14554. --debug | --debu | --deb | --de | --d | -d )
  14555. debug=: ;;
  14556. --file | --fil | --fi | --f )
  14557. $ac_shift
  14558. case $ac_optarg in
  14559. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14560. esac
  14561. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14562. ac_need_defaults=false;;
  14563. --he | --h | --help | --hel | -h )
  14564. $as_echo "$ac_cs_usage"; exit ;;
  14565. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14566. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14567. ac_cs_silent=: ;;
  14568. # This is an error.
  14569. -*) as_fn_error "unrecognized option: \`$1'
  14570. Try \`$0 --help' for more information." ;;
  14571. *) as_fn_append ac_config_targets " $1"
  14572. ac_need_defaults=false ;;
  14573. esac
  14574. shift
  14575. done
  14576. ac_configure_extra_args=
  14577. if $ac_cs_silent; then
  14578. exec 6>/dev/null
  14579. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14580. fi
  14581. _ACEOF
  14582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14583. if \$ac_cs_recheck; then
  14584. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14585. shift
  14586. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14587. CONFIG_SHELL='$SHELL'
  14588. export CONFIG_SHELL
  14589. exec "\$@"
  14590. fi
  14591. _ACEOF
  14592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14593. exec 5>>config.log
  14594. {
  14595. echo
  14596. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14597. ## Running $as_me. ##
  14598. _ASBOX
  14599. $as_echo "$ac_log"
  14600. } >&5
  14601. _ACEOF
  14602. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14603. #
  14604. # INIT-COMMANDS
  14605. #
  14606. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14607. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14608. # if CDPATH is set.
  14609. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14610. sed_quote_subst='$sed_quote_subst'
  14611. double_quote_subst='$double_quote_subst'
  14612. delay_variable_subst='$delay_variable_subst'
  14613. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14614. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14615. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14616. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14617. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14618. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14619. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14620. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14621. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14622. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14623. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14624. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14625. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14626. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14627. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14628. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14629. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14630. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14631. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14632. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14633. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14634. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14635. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14636. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14637. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14638. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14639. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14640. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14641. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14642. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14643. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14644. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14645. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14646. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14647. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14648. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14649. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14650. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14651. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14652. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14653. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14654. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14655. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14656. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14657. 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"`'
  14658. 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"`'
  14659. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14660. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14661. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14662. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14663. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14664. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14665. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14666. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14667. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14668. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14669. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14670. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14671. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14672. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14673. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14674. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14675. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14676. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14677. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14678. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14679. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14680. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14681. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14682. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14683. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14684. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14685. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14686. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14687. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14688. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14689. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14690. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14691. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14692. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14693. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14694. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14695. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14696. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14697. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14698. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14699. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14700. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14701. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14702. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14703. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14704. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14705. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14706. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14707. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14708. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14709. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14710. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14711. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14712. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14713. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14714. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14715. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14716. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14717. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14718. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14719. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14720. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14721. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14722. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14723. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14724. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14725. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14726. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14727. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14728. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14729. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14730. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14731. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  14732. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14733. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14734. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14735. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14736. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14737. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14738. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14739. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14740. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14741. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14742. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14743. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14744. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14745. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14746. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14747. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14748. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14749. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14750. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14751. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14752. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14753. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14754. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14755. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14756. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14757. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14758. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14759. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14760. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14761. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14762. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14763. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14764. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14765. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14766. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14767. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14768. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14769. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14770. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14771. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14772. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14773. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14774. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14775. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14776. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14777. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14778. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14779. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14780. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14781. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14782. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14783. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14784. LTCC='$LTCC'
  14785. LTCFLAGS='$LTCFLAGS'
  14786. compiler='$compiler_DEFAULT'
  14787. # Quote evaled strings.
  14788. for var in SED \
  14789. GREP \
  14790. EGREP \
  14791. FGREP \
  14792. LD \
  14793. NM \
  14794. LN_S \
  14795. lt_SP2NL \
  14796. lt_NL2SP \
  14797. reload_flag \
  14798. OBJDUMP \
  14799. deplibs_check_method \
  14800. file_magic_cmd \
  14801. AR \
  14802. AR_FLAGS \
  14803. STRIP \
  14804. RANLIB \
  14805. CC \
  14806. CFLAGS \
  14807. compiler \
  14808. lt_cv_sys_global_symbol_pipe \
  14809. lt_cv_sys_global_symbol_to_cdecl \
  14810. lt_cv_sys_global_symbol_to_c_name_address \
  14811. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14812. SHELL \
  14813. ECHO \
  14814. lt_prog_compiler_no_builtin_flag \
  14815. lt_prog_compiler_wl \
  14816. lt_prog_compiler_pic \
  14817. lt_prog_compiler_static \
  14818. lt_cv_prog_compiler_c_o \
  14819. need_locks \
  14820. DSYMUTIL \
  14821. NMEDIT \
  14822. LIPO \
  14823. OTOOL \
  14824. OTOOL64 \
  14825. shrext_cmds \
  14826. export_dynamic_flag_spec \
  14827. whole_archive_flag_spec \
  14828. compiler_needs_object \
  14829. with_gnu_ld \
  14830. allow_undefined_flag \
  14831. no_undefined_flag \
  14832. hardcode_libdir_flag_spec \
  14833. hardcode_libdir_flag_spec_ld \
  14834. hardcode_libdir_separator \
  14835. fix_srcfile_path \
  14836. exclude_expsyms \
  14837. include_expsyms \
  14838. file_list_spec \
  14839. variables_saved_for_relink \
  14840. libname_spec \
  14841. library_names_spec \
  14842. soname_spec \
  14843. finish_eval \
  14844. old_striplib \
  14845. striplib \
  14846. compiler_lib_search_dirs \
  14847. predep_objects \
  14848. postdep_objects \
  14849. predeps \
  14850. postdeps \
  14851. compiler_lib_search_path \
  14852. LD_CXX \
  14853. compiler_CXX \
  14854. lt_prog_compiler_no_builtin_flag_CXX \
  14855. lt_prog_compiler_wl_CXX \
  14856. lt_prog_compiler_pic_CXX \
  14857. lt_prog_compiler_static_CXX \
  14858. lt_cv_prog_compiler_c_o_CXX \
  14859. export_dynamic_flag_spec_CXX \
  14860. whole_archive_flag_spec_CXX \
  14861. compiler_needs_object_CXX \
  14862. with_gnu_ld_CXX \
  14863. allow_undefined_flag_CXX \
  14864. no_undefined_flag_CXX \
  14865. hardcode_libdir_flag_spec_CXX \
  14866. hardcode_libdir_flag_spec_ld_CXX \
  14867. hardcode_libdir_separator_CXX \
  14868. fix_srcfile_path_CXX \
  14869. exclude_expsyms_CXX \
  14870. include_expsyms_CXX \
  14871. file_list_spec_CXX \
  14872. compiler_lib_search_dirs_CXX \
  14873. predep_objects_CXX \
  14874. postdep_objects_CXX \
  14875. predeps_CXX \
  14876. postdeps_CXX \
  14877. compiler_lib_search_path_CXX; do
  14878. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14879. *[\\\\\\\`\\"\\\$]*)
  14880. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14881. ;;
  14882. *)
  14883. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14884. ;;
  14885. esac
  14886. done
  14887. # Double-quote double-evaled strings.
  14888. for var in reload_cmds \
  14889. old_postinstall_cmds \
  14890. old_postuninstall_cmds \
  14891. old_archive_cmds \
  14892. extract_expsyms_cmds \
  14893. old_archive_from_new_cmds \
  14894. old_archive_from_expsyms_cmds \
  14895. archive_cmds \
  14896. archive_expsym_cmds \
  14897. module_cmds \
  14898. module_expsym_cmds \
  14899. export_symbols_cmds \
  14900. prelink_cmds \
  14901. postinstall_cmds \
  14902. postuninstall_cmds \
  14903. finish_cmds \
  14904. sys_lib_search_path_spec \
  14905. sys_lib_dlsearch_path_spec \
  14906. old_archive_cmds_CXX \
  14907. old_archive_from_new_cmds_CXX \
  14908. old_archive_from_expsyms_cmds_CXX \
  14909. archive_cmds_CXX \
  14910. archive_expsym_cmds_CXX \
  14911. module_cmds_CXX \
  14912. module_expsym_cmds_CXX \
  14913. export_symbols_cmds_CXX \
  14914. prelink_cmds_CXX; do
  14915. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14916. *[\\\\\\\`\\"\\\$]*)
  14917. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14918. ;;
  14919. *)
  14920. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14921. ;;
  14922. esac
  14923. done
  14924. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14925. case \$lt_ECHO in
  14926. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14927. ;;
  14928. esac
  14929. ac_aux_dir='$ac_aux_dir'
  14930. xsi_shell='$xsi_shell'
  14931. lt_shell_append='$lt_shell_append'
  14932. # See if we are running on zsh, and set the options which allow our
  14933. # commands through without removal of \ escapes INIT.
  14934. if test -n "\${ZSH_VERSION+set}" ; then
  14935. setopt NO_GLOB_SUBST
  14936. fi
  14937. PACKAGE='$PACKAGE'
  14938. VERSION='$VERSION'
  14939. TIMESTAMP='$TIMESTAMP'
  14940. RM='$RM'
  14941. ofile='$ofile'
  14942. _ACEOF
  14943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14944. # Handling of arguments.
  14945. for ac_config_target in $ac_config_targets
  14946. do
  14947. case $ac_config_target in
  14948. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14949. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14950. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14951. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14952. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  14953. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  14954. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  14955. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  14956. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  14957. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14958. esac
  14959. done
  14960. # If the user did not use the arguments to specify the items to instantiate,
  14961. # then the envvar interface is used. Set only those that are not.
  14962. # We use the long form for the default assignment because of an extremely
  14963. # bizarre bug on SunOS 4.1.3.
  14964. if $ac_need_defaults; then
  14965. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14966. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14967. fi
  14968. # Have a temporary directory for convenience. Make it in the build tree
  14969. # simply because there is no reason against having it here, and in addition,
  14970. # creating and moving files from /tmp can sometimes cause problems.
  14971. # Hook for its removal unless debugging.
  14972. # Note that there is a small window in which the directory will not be cleaned:
  14973. # after its creation but before its name has been assigned to `$tmp'.
  14974. $debug ||
  14975. {
  14976. tmp=
  14977. trap 'exit_status=$?
  14978. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14979. ' 0
  14980. trap 'as_fn_exit 1' 1 2 13 15
  14981. }
  14982. # Create a (secure) tmp directory for tmp files.
  14983. {
  14984. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14985. test -n "$tmp" && test -d "$tmp"
  14986. } ||
  14987. {
  14988. tmp=./conf$$-$RANDOM
  14989. (umask 077 && mkdir "$tmp")
  14990. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14991. # Set up the scripts for CONFIG_FILES section.
  14992. # No need to generate them if there are no CONFIG_FILES.
  14993. # This happens for instance with `./config.status config.h'.
  14994. if test -n "$CONFIG_FILES"; then
  14995. ac_cr=`echo X | tr X '\015'`
  14996. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14997. # But we know of no other shell where ac_cr would be empty at this
  14998. # point, so we can use a bashism as a fallback.
  14999. if test "x$ac_cr" = x; then
  15000. eval ac_cr=\$\'\\r\'
  15001. fi
  15002. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15003. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15004. ac_cs_awk_cr='\r'
  15005. else
  15006. ac_cs_awk_cr=$ac_cr
  15007. fi
  15008. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15009. _ACEOF
  15010. {
  15011. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15012. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15013. echo "_ACEOF"
  15014. } >conf$$subs.sh ||
  15015. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15016. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15017. ac_delim='%!_!# '
  15018. for ac_last_try in false false false false false :; do
  15019. . ./conf$$subs.sh ||
  15020. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15021. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15022. if test $ac_delim_n = $ac_delim_num; then
  15023. break
  15024. elif $ac_last_try; then
  15025. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15026. else
  15027. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15028. fi
  15029. done
  15030. rm -f conf$$subs.sh
  15031. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15032. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15033. _ACEOF
  15034. sed -n '
  15035. h
  15036. s/^/S["/; s/!.*/"]=/
  15037. p
  15038. g
  15039. s/^[^!]*!//
  15040. :repl
  15041. t repl
  15042. s/'"$ac_delim"'$//
  15043. t delim
  15044. :nl
  15045. h
  15046. s/\(.\{148\}\)..*/\1/
  15047. t more1
  15048. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15049. p
  15050. n
  15051. b repl
  15052. :more1
  15053. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15054. p
  15055. g
  15056. s/.\{148\}//
  15057. t nl
  15058. :delim
  15059. h
  15060. s/\(.\{148\}\)..*/\1/
  15061. t more2
  15062. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15063. p
  15064. b
  15065. :more2
  15066. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15067. p
  15068. g
  15069. s/.\{148\}//
  15070. t delim
  15071. ' <conf$$subs.awk | sed '
  15072. /^[^""]/{
  15073. N
  15074. s/\n//
  15075. }
  15076. ' >>$CONFIG_STATUS || ac_write_fail=1
  15077. rm -f conf$$subs.awk
  15078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15079. _ACAWK
  15080. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15081. for (key in S) S_is_set[key] = 1
  15082. FS = ""
  15083. }
  15084. {
  15085. line = $ 0
  15086. nfields = split(line, field, "@")
  15087. substed = 0
  15088. len = length(field[1])
  15089. for (i = 2; i < nfields; i++) {
  15090. key = field[i]
  15091. keylen = length(key)
  15092. if (S_is_set[key]) {
  15093. value = S[key]
  15094. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15095. len += length(value) + length(field[++i])
  15096. substed = 1
  15097. } else
  15098. len += 1 + keylen
  15099. }
  15100. print line
  15101. }
  15102. _ACAWK
  15103. _ACEOF
  15104. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15105. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15106. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15107. else
  15108. cat
  15109. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15110. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15111. _ACEOF
  15112. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15113. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15114. # trailing colons and then remove the whole line if VPATH becomes empty
  15115. # (actually we leave an empty line to preserve line numbers).
  15116. if test "x$srcdir" = x.; then
  15117. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15118. s/:*\$(srcdir):*/:/
  15119. s/:*\${srcdir}:*/:/
  15120. s/:*@srcdir@:*/:/
  15121. s/^\([^=]*=[ ]*\):*/\1/
  15122. s/:*$//
  15123. s/^[^=]*=[ ]*$//
  15124. }'
  15125. fi
  15126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15127. fi # test -n "$CONFIG_FILES"
  15128. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15129. shift
  15130. for ac_tag
  15131. do
  15132. case $ac_tag in
  15133. :[FHLC]) ac_mode=$ac_tag; continue;;
  15134. esac
  15135. case $ac_mode$ac_tag in
  15136. :[FHL]*:*);;
  15137. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15138. :[FH]-) ac_tag=-:-;;
  15139. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15140. esac
  15141. ac_save_IFS=$IFS
  15142. IFS=:
  15143. set x $ac_tag
  15144. IFS=$ac_save_IFS
  15145. shift
  15146. ac_file=$1
  15147. shift
  15148. case $ac_mode in
  15149. :L) ac_source=$1;;
  15150. :[FH])
  15151. ac_file_inputs=
  15152. for ac_f
  15153. do
  15154. case $ac_f in
  15155. -) ac_f="$tmp/stdin";;
  15156. *) # Look for the file first in the build tree, then in the source tree
  15157. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15158. # because $ac_f cannot contain `:'.
  15159. test -f "$ac_f" ||
  15160. case $ac_f in
  15161. [\\/$]*) false;;
  15162. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15163. esac ||
  15164. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15165. esac
  15166. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15167. as_fn_append ac_file_inputs " '$ac_f'"
  15168. done
  15169. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15170. # use $as_me), people would be surprised to read:
  15171. # /* config.h. Generated by config.status. */
  15172. configure_input='Generated from '`
  15173. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15174. `' by configure.'
  15175. if test x"$ac_file" != x-; then
  15176. configure_input="$ac_file. $configure_input"
  15177. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15178. $as_echo "$as_me: creating $ac_file" >&6;}
  15179. fi
  15180. # Neutralize special characters interpreted by sed in replacement strings.
  15181. case $configure_input in #(
  15182. *\&* | *\|* | *\\* )
  15183. ac_sed_conf_input=`$as_echo "$configure_input" |
  15184. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15185. *) ac_sed_conf_input=$configure_input;;
  15186. esac
  15187. case $ac_tag in
  15188. *:-:* | *:-) cat >"$tmp/stdin" \
  15189. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15190. esac
  15191. ;;
  15192. esac
  15193. ac_dir=`$as_dirname -- "$ac_file" ||
  15194. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15195. X"$ac_file" : 'X\(//\)[^/]' \| \
  15196. X"$ac_file" : 'X\(//\)$' \| \
  15197. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15198. $as_echo X"$ac_file" |
  15199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15200. s//\1/
  15201. q
  15202. }
  15203. /^X\(\/\/\)[^/].*/{
  15204. s//\1/
  15205. q
  15206. }
  15207. /^X\(\/\/\)$/{
  15208. s//\1/
  15209. q
  15210. }
  15211. /^X\(\/\).*/{
  15212. s//\1/
  15213. q
  15214. }
  15215. s/.*/./; q'`
  15216. as_dir="$ac_dir"; as_fn_mkdir_p
  15217. ac_builddir=.
  15218. case "$ac_dir" in
  15219. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15220. *)
  15221. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15222. # A ".." for each directory in $ac_dir_suffix.
  15223. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15224. case $ac_top_builddir_sub in
  15225. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15226. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15227. esac ;;
  15228. esac
  15229. ac_abs_top_builddir=$ac_pwd
  15230. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15231. # for backward compatibility:
  15232. ac_top_builddir=$ac_top_build_prefix
  15233. case $srcdir in
  15234. .) # We are building in place.
  15235. ac_srcdir=.
  15236. ac_top_srcdir=$ac_top_builddir_sub
  15237. ac_abs_top_srcdir=$ac_pwd ;;
  15238. [\\/]* | ?:[\\/]* ) # Absolute name.
  15239. ac_srcdir=$srcdir$ac_dir_suffix;
  15240. ac_top_srcdir=$srcdir
  15241. ac_abs_top_srcdir=$srcdir ;;
  15242. *) # Relative name.
  15243. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15244. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15245. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15246. esac
  15247. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15248. case $ac_mode in
  15249. :F)
  15250. #
  15251. # CONFIG_FILE
  15252. #
  15253. case $INSTALL in
  15254. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15255. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15256. esac
  15257. ac_MKDIR_P=$MKDIR_P
  15258. case $MKDIR_P in
  15259. [\\/$]* | ?:[\\/]* ) ;;
  15260. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15261. esac
  15262. _ACEOF
  15263. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15264. # If the template does not know about datarootdir, expand it.
  15265. # FIXME: This hack should be removed a few years after 2.60.
  15266. ac_datarootdir_hack=; ac_datarootdir_seen=
  15267. ac_sed_dataroot='
  15268. /datarootdir/ {
  15269. p
  15270. q
  15271. }
  15272. /@datadir@/p
  15273. /@docdir@/p
  15274. /@infodir@/p
  15275. /@localedir@/p
  15276. /@mandir@/p'
  15277. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15278. *datarootdir*) ac_datarootdir_seen=yes;;
  15279. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15281. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15282. _ACEOF
  15283. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15284. ac_datarootdir_hack='
  15285. s&@datadir@&$datadir&g
  15286. s&@docdir@&$docdir&g
  15287. s&@infodir@&$infodir&g
  15288. s&@localedir@&$localedir&g
  15289. s&@mandir@&$mandir&g
  15290. s&\\\${datarootdir}&$datarootdir&g' ;;
  15291. esac
  15292. _ACEOF
  15293. # Neutralize VPATH when `$srcdir' = `.'.
  15294. # Shell code in configure.ac might set extrasub.
  15295. # FIXME: do we really want to maintain this feature?
  15296. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15297. ac_sed_extra="$ac_vpsub
  15298. $extrasub
  15299. _ACEOF
  15300. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15301. :t
  15302. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15303. s|@configure_input@|$ac_sed_conf_input|;t t
  15304. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15305. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15306. s&@srcdir@&$ac_srcdir&;t t
  15307. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15308. s&@top_srcdir@&$ac_top_srcdir&;t t
  15309. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15310. s&@builddir@&$ac_builddir&;t t
  15311. s&@abs_builddir@&$ac_abs_builddir&;t t
  15312. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15313. s&@INSTALL@&$ac_INSTALL&;t t
  15314. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15315. $ac_datarootdir_hack
  15316. "
  15317. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15318. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15319. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15320. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15321. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15323. which seems to be undefined. Please make sure it is defined." >&5
  15324. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15325. which seems to be undefined. Please make sure it is defined." >&2;}
  15326. rm -f "$tmp/stdin"
  15327. case $ac_file in
  15328. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15329. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15330. esac \
  15331. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15332. ;;
  15333. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15334. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15335. ;;
  15336. esac
  15337. case $ac_file$ac_mode in
  15338. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15339. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15340. # are listed without --file. Let's play safe and only enable the eval
  15341. # if we detect the quoting.
  15342. case $CONFIG_FILES in
  15343. *\'*) eval set x "$CONFIG_FILES" ;;
  15344. *) set x $CONFIG_FILES ;;
  15345. esac
  15346. shift
  15347. for mf
  15348. do
  15349. # Strip MF so we end up with the name of the file.
  15350. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15351. # Check whether this is an Automake generated Makefile or not.
  15352. # We used to match only the files named `Makefile.in', but
  15353. # some people rename them; so instead we look at the file content.
  15354. # Grep'ing the first line is not enough: some people post-process
  15355. # each Makefile.in and add a new line on top of each file to say so.
  15356. # Grep'ing the whole file is not good either: AIX grep has a line
  15357. # limit of 2048, but all sed's we know have understand at least 4000.
  15358. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15359. dirpart=`$as_dirname -- "$mf" ||
  15360. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15361. X"$mf" : 'X\(//\)[^/]' \| \
  15362. X"$mf" : 'X\(//\)$' \| \
  15363. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15364. $as_echo X"$mf" |
  15365. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15366. s//\1/
  15367. q
  15368. }
  15369. /^X\(\/\/\)[^/].*/{
  15370. s//\1/
  15371. q
  15372. }
  15373. /^X\(\/\/\)$/{
  15374. s//\1/
  15375. q
  15376. }
  15377. /^X\(\/\).*/{
  15378. s//\1/
  15379. q
  15380. }
  15381. s/.*/./; q'`
  15382. else
  15383. continue
  15384. fi
  15385. # Extract the definition of DEPDIR, am__include, and am__quote
  15386. # from the Makefile without running `make'.
  15387. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15388. test -z "$DEPDIR" && continue
  15389. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15390. test -z "am__include" && continue
  15391. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15392. # When using ansi2knr, U may be empty or an underscore; expand it
  15393. U=`sed -n 's/^U = //p' < "$mf"`
  15394. # Find all dependency output files, they are included files with
  15395. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15396. # simplest approach to changing $(DEPDIR) to its actual value in the
  15397. # expansion.
  15398. for file in `sed -n "
  15399. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15400. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15401. # Make sure the directory exists.
  15402. test -f "$dirpart/$file" && continue
  15403. fdir=`$as_dirname -- "$file" ||
  15404. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15405. X"$file" : 'X\(//\)[^/]' \| \
  15406. X"$file" : 'X\(//\)$' \| \
  15407. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15408. $as_echo X"$file" |
  15409. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15410. s//\1/
  15411. q
  15412. }
  15413. /^X\(\/\/\)[^/].*/{
  15414. s//\1/
  15415. q
  15416. }
  15417. /^X\(\/\/\)$/{
  15418. s//\1/
  15419. q
  15420. }
  15421. /^X\(\/\).*/{
  15422. s//\1/
  15423. q
  15424. }
  15425. s/.*/./; q'`
  15426. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15427. # echo "creating $dirpart/$file"
  15428. echo '# dummy' > "$dirpart/$file"
  15429. done
  15430. done
  15431. }
  15432. ;;
  15433. "libtool":C)
  15434. # See if we are running on zsh, and set the options which allow our
  15435. # commands through without removal of \ escapes.
  15436. if test -n "${ZSH_VERSION+set}" ; then
  15437. setopt NO_GLOB_SUBST
  15438. fi
  15439. cfgfile="${ofile}T"
  15440. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15441. $RM "$cfgfile"
  15442. cat <<_LT_EOF >> "$cfgfile"
  15443. #! $SHELL
  15444. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15445. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15446. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15447. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15448. #
  15449. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15450. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15451. # Written by Gordon Matzigkeit, 1996
  15452. #
  15453. # This file is part of GNU Libtool.
  15454. #
  15455. # GNU Libtool is free software; you can redistribute it and/or
  15456. # modify it under the terms of the GNU General Public License as
  15457. # published by the Free Software Foundation; either version 2 of
  15458. # the License, or (at your option) any later version.
  15459. #
  15460. # As a special exception to the GNU General Public License,
  15461. # if you distribute this file as part of a program or library that
  15462. # is built using GNU Libtool, you may include this file under the
  15463. # same distribution terms that you use for the rest of that program.
  15464. #
  15465. # GNU Libtool is distributed in the hope that it will be useful,
  15466. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15467. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15468. # GNU General Public License for more details.
  15469. #
  15470. # You should have received a copy of the GNU General Public License
  15471. # along with GNU Libtool; see the file COPYING. If not, a copy
  15472. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15473. # obtained by writing to the Free Software Foundation, Inc.,
  15474. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15475. # The names of the tagged configurations supported by this script.
  15476. available_tags="CXX "
  15477. # ### BEGIN LIBTOOL CONFIG
  15478. # Whether or not to build shared libraries.
  15479. build_libtool_libs=$enable_shared
  15480. # Whether or not to build static libraries.
  15481. build_old_libs=$enable_static
  15482. # Which release of libtool.m4 was used?
  15483. macro_version=$macro_version
  15484. macro_revision=$macro_revision
  15485. # What type of objects to build.
  15486. pic_mode=$pic_mode
  15487. # Whether or not to optimize for fast installation.
  15488. fast_install=$enable_fast_install
  15489. # The host system.
  15490. host_alias=$host_alias
  15491. host=$host
  15492. host_os=$host_os
  15493. # The build system.
  15494. build_alias=$build_alias
  15495. build=$build
  15496. build_os=$build_os
  15497. # A sed program that does not truncate output.
  15498. SED=$lt_SED
  15499. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15500. Xsed="\$SED -e 1s/^X//"
  15501. # A grep program that handles long lines.
  15502. GREP=$lt_GREP
  15503. # An ERE matcher.
  15504. EGREP=$lt_EGREP
  15505. # A literal string matcher.
  15506. FGREP=$lt_FGREP
  15507. # A BSD- or MS-compatible name lister.
  15508. NM=$lt_NM
  15509. # Whether we need soft or hard links.
  15510. LN_S=$lt_LN_S
  15511. # What is the maximum length of a command?
  15512. max_cmd_len=$max_cmd_len
  15513. # Object file suffix (normally "o").
  15514. objext=$ac_objext
  15515. # Executable file suffix (normally "").
  15516. exeext=$exeext
  15517. # whether the shell understands "unset".
  15518. lt_unset=$lt_unset
  15519. # turn spaces into newlines.
  15520. SP2NL=$lt_lt_SP2NL
  15521. # turn newlines into spaces.
  15522. NL2SP=$lt_lt_NL2SP
  15523. # How to create reloadable object files.
  15524. reload_flag=$lt_reload_flag
  15525. reload_cmds=$lt_reload_cmds
  15526. # An object symbol dumper.
  15527. OBJDUMP=$lt_OBJDUMP
  15528. # Method to check whether dependent libraries are shared objects.
  15529. deplibs_check_method=$lt_deplibs_check_method
  15530. # Command to use when deplibs_check_method == "file_magic".
  15531. file_magic_cmd=$lt_file_magic_cmd
  15532. # The archiver.
  15533. AR=$lt_AR
  15534. AR_FLAGS=$lt_AR_FLAGS
  15535. # A symbol stripping program.
  15536. STRIP=$lt_STRIP
  15537. # Commands used to install an old-style archive.
  15538. RANLIB=$lt_RANLIB
  15539. old_postinstall_cmds=$lt_old_postinstall_cmds
  15540. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15541. # A C compiler.
  15542. LTCC=$lt_CC
  15543. # LTCC compiler flags.
  15544. LTCFLAGS=$lt_CFLAGS
  15545. # Take the output of nm and produce a listing of raw symbols and C names.
  15546. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15547. # Transform the output of nm in a proper C declaration.
  15548. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15549. # Transform the output of nm in a C name address pair.
  15550. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15551. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15552. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15553. # The name of the directory that contains temporary libtool files.
  15554. objdir=$objdir
  15555. # Shell to use when invoking shell scripts.
  15556. SHELL=$lt_SHELL
  15557. # An echo program that does not interpret backslashes.
  15558. ECHO=$lt_ECHO
  15559. # Used to examine libraries when file_magic_cmd begins with "file".
  15560. MAGIC_CMD=$MAGIC_CMD
  15561. # Must we lock files when doing compilation?
  15562. need_locks=$lt_need_locks
  15563. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15564. DSYMUTIL=$lt_DSYMUTIL
  15565. # Tool to change global to local symbols on Mac OS X.
  15566. NMEDIT=$lt_NMEDIT
  15567. # Tool to manipulate fat objects and archives on Mac OS X.
  15568. LIPO=$lt_LIPO
  15569. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15570. OTOOL=$lt_OTOOL
  15571. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15572. OTOOL64=$lt_OTOOL64
  15573. # Old archive suffix (normally "a").
  15574. libext=$libext
  15575. # Shared library suffix (normally ".so").
  15576. shrext_cmds=$lt_shrext_cmds
  15577. # The commands to extract the exported symbol list from a shared archive.
  15578. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15579. # Variables whose values should be saved in libtool wrapper scripts and
  15580. # restored at link time.
  15581. variables_saved_for_relink=$lt_variables_saved_for_relink
  15582. # Do we need the "lib" prefix for modules?
  15583. need_lib_prefix=$need_lib_prefix
  15584. # Do we need a version for libraries?
  15585. need_version=$need_version
  15586. # Library versioning type.
  15587. version_type=$version_type
  15588. # Shared library runtime path variable.
  15589. runpath_var=$runpath_var
  15590. # Shared library path variable.
  15591. shlibpath_var=$shlibpath_var
  15592. # Is shlibpath searched before the hard-coded library search path?
  15593. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15594. # Format of library name prefix.
  15595. libname_spec=$lt_libname_spec
  15596. # List of archive names. First name is the real one, the rest are links.
  15597. # The last name is the one that the linker finds with -lNAME
  15598. library_names_spec=$lt_library_names_spec
  15599. # The coded name of the library, if different from the real name.
  15600. soname_spec=$lt_soname_spec
  15601. # Command to use after installation of a shared archive.
  15602. postinstall_cmds=$lt_postinstall_cmds
  15603. # Command to use after uninstallation of a shared archive.
  15604. postuninstall_cmds=$lt_postuninstall_cmds
  15605. # Commands used to finish a libtool library installation in a directory.
  15606. finish_cmds=$lt_finish_cmds
  15607. # As "finish_cmds", except a single script fragment to be evaled but
  15608. # not shown.
  15609. finish_eval=$lt_finish_eval
  15610. # Whether we should hardcode library paths into libraries.
  15611. hardcode_into_libs=$hardcode_into_libs
  15612. # Compile-time system search path for libraries.
  15613. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15614. # Run-time system search path for libraries.
  15615. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15616. # Whether dlopen is supported.
  15617. dlopen_support=$enable_dlopen
  15618. # Whether dlopen of programs is supported.
  15619. dlopen_self=$enable_dlopen_self
  15620. # Whether dlopen of statically linked programs is supported.
  15621. dlopen_self_static=$enable_dlopen_self_static
  15622. # Commands to strip libraries.
  15623. old_striplib=$lt_old_striplib
  15624. striplib=$lt_striplib
  15625. # The linker used to build libraries.
  15626. LD=$lt_LD
  15627. # Commands used to build an old-style archive.
  15628. old_archive_cmds=$lt_old_archive_cmds
  15629. # A language specific compiler.
  15630. CC=$lt_compiler
  15631. # Is the compiler the GNU compiler?
  15632. with_gcc=$GCC
  15633. # Compiler flag to turn off builtin functions.
  15634. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15635. # How to pass a linker flag through the compiler.
  15636. wl=$lt_lt_prog_compiler_wl
  15637. # Additional compiler flags for building library objects.
  15638. pic_flag=$lt_lt_prog_compiler_pic
  15639. # Compiler flag to prevent dynamic linking.
  15640. link_static_flag=$lt_lt_prog_compiler_static
  15641. # Does compiler simultaneously support -c and -o options?
  15642. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15643. # Whether or not to add -lc for building shared libraries.
  15644. build_libtool_need_lc=$archive_cmds_need_lc
  15645. # Whether or not to disallow shared libs when runtime libs are static.
  15646. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15647. # Compiler flag to allow reflexive dlopens.
  15648. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15649. # Compiler flag to generate shared objects directly from archives.
  15650. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15651. # Whether the compiler copes with passing no objects directly.
  15652. compiler_needs_object=$lt_compiler_needs_object
  15653. # Create an old-style archive from a shared archive.
  15654. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15655. # Create a temporary old-style archive to link instead of a shared archive.
  15656. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15657. # Commands used to build a shared archive.
  15658. archive_cmds=$lt_archive_cmds
  15659. archive_expsym_cmds=$lt_archive_expsym_cmds
  15660. # Commands used to build a loadable module if different from building
  15661. # a shared archive.
  15662. module_cmds=$lt_module_cmds
  15663. module_expsym_cmds=$lt_module_expsym_cmds
  15664. # Whether we are building with GNU ld or not.
  15665. with_gnu_ld=$lt_with_gnu_ld
  15666. # Flag that allows shared libraries with undefined symbols to be built.
  15667. allow_undefined_flag=$lt_allow_undefined_flag
  15668. # Flag that enforces no undefined symbols.
  15669. no_undefined_flag=$lt_no_undefined_flag
  15670. # Flag to hardcode \$libdir into a binary during linking.
  15671. # This must work even if \$libdir does not exist
  15672. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15673. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15674. # during linking. This must work even if \$libdir does not exist.
  15675. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15676. # Whether we need a single "-rpath" flag with a separated argument.
  15677. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15678. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15679. # DIR into the resulting binary.
  15680. hardcode_direct=$hardcode_direct
  15681. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15682. # DIR into the resulting binary and the resulting library dependency is
  15683. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15684. # library is relocated.
  15685. hardcode_direct_absolute=$hardcode_direct_absolute
  15686. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15687. # into the resulting binary.
  15688. hardcode_minus_L=$hardcode_minus_L
  15689. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15690. # into the resulting binary.
  15691. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15692. # Set to "yes" if building a shared library automatically hardcodes DIR
  15693. # into the library and all subsequent libraries and executables linked
  15694. # against it.
  15695. hardcode_automatic=$hardcode_automatic
  15696. # Set to yes if linker adds runtime paths of dependent libraries
  15697. # to runtime path list.
  15698. inherit_rpath=$inherit_rpath
  15699. # Whether libtool must link a program against all its dependency libraries.
  15700. link_all_deplibs=$link_all_deplibs
  15701. # Fix the shell variable \$srcfile for the compiler.
  15702. fix_srcfile_path=$lt_fix_srcfile_path
  15703. # Set to "yes" if exported symbols are required.
  15704. always_export_symbols=$always_export_symbols
  15705. # The commands to list exported symbols.
  15706. export_symbols_cmds=$lt_export_symbols_cmds
  15707. # Symbols that should not be listed in the preloaded symbols.
  15708. exclude_expsyms=$lt_exclude_expsyms
  15709. # Symbols that must always be exported.
  15710. include_expsyms=$lt_include_expsyms
  15711. # Commands necessary for linking programs (against libraries) with templates.
  15712. prelink_cmds=$lt_prelink_cmds
  15713. # Specify filename containing input files.
  15714. file_list_spec=$lt_file_list_spec
  15715. # How to hardcode a shared library path into an executable.
  15716. hardcode_action=$hardcode_action
  15717. # The directories searched by this compiler when creating a shared library.
  15718. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15719. # Dependencies to place before and after the objects being linked to
  15720. # create a shared library.
  15721. predep_objects=$lt_predep_objects
  15722. postdep_objects=$lt_postdep_objects
  15723. predeps=$lt_predeps
  15724. postdeps=$lt_postdeps
  15725. # The library search path used internally by the compiler when linking
  15726. # a shared library.
  15727. compiler_lib_search_path=$lt_compiler_lib_search_path
  15728. # ### END LIBTOOL CONFIG
  15729. _LT_EOF
  15730. case $host_os in
  15731. aix3*)
  15732. cat <<\_LT_EOF >> "$cfgfile"
  15733. # AIX sometimes has problems with the GCC collect2 program. For some
  15734. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15735. # vanish in a puff of smoke.
  15736. if test "X${COLLECT_NAMES+set}" != Xset; then
  15737. COLLECT_NAMES=
  15738. export COLLECT_NAMES
  15739. fi
  15740. _LT_EOF
  15741. ;;
  15742. esac
  15743. ltmain="$ac_aux_dir/ltmain.sh"
  15744. # We use sed instead of cat because bash on DJGPP gets confused if
  15745. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15746. # text mode, it properly converts lines to CR/LF. This bash problem
  15747. # is reportedly fixed, but why not run on old versions too?
  15748. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15749. || (rm -f "$cfgfile"; exit 1)
  15750. case $xsi_shell in
  15751. yes)
  15752. cat << \_LT_EOF >> "$cfgfile"
  15753. # func_dirname file append nondir_replacement
  15754. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15755. # otherwise set result to NONDIR_REPLACEMENT.
  15756. func_dirname ()
  15757. {
  15758. case ${1} in
  15759. */*) func_dirname_result="${1%/*}${2}" ;;
  15760. * ) func_dirname_result="${3}" ;;
  15761. esac
  15762. }
  15763. # func_basename file
  15764. func_basename ()
  15765. {
  15766. func_basename_result="${1##*/}"
  15767. }
  15768. # func_dirname_and_basename file append nondir_replacement
  15769. # perform func_basename and func_dirname in a single function
  15770. # call:
  15771. # dirname: Compute the dirname of FILE. If nonempty,
  15772. # add APPEND to the result, otherwise set result
  15773. # to NONDIR_REPLACEMENT.
  15774. # value returned in "$func_dirname_result"
  15775. # basename: Compute filename of FILE.
  15776. # value retuned in "$func_basename_result"
  15777. # Implementation must be kept synchronized with func_dirname
  15778. # and func_basename. For efficiency, we do not delegate to
  15779. # those functions but instead duplicate the functionality here.
  15780. func_dirname_and_basename ()
  15781. {
  15782. case ${1} in
  15783. */*) func_dirname_result="${1%/*}${2}" ;;
  15784. * ) func_dirname_result="${3}" ;;
  15785. esac
  15786. func_basename_result="${1##*/}"
  15787. }
  15788. # func_stripname prefix suffix name
  15789. # strip PREFIX and SUFFIX off of NAME.
  15790. # PREFIX and SUFFIX must not contain globbing or regex special
  15791. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15792. # dot (in which case that matches only a dot).
  15793. func_stripname ()
  15794. {
  15795. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15796. # positional parameters, so assign one to ordinary parameter first.
  15797. func_stripname_result=${3}
  15798. func_stripname_result=${func_stripname_result#"${1}"}
  15799. func_stripname_result=${func_stripname_result%"${2}"}
  15800. }
  15801. # func_opt_split
  15802. func_opt_split ()
  15803. {
  15804. func_opt_split_opt=${1%%=*}
  15805. func_opt_split_arg=${1#*=}
  15806. }
  15807. # func_lo2o object
  15808. func_lo2o ()
  15809. {
  15810. case ${1} in
  15811. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15812. *) func_lo2o_result=${1} ;;
  15813. esac
  15814. }
  15815. # func_xform libobj-or-source
  15816. func_xform ()
  15817. {
  15818. func_xform_result=${1%.*}.lo
  15819. }
  15820. # func_arith arithmetic-term...
  15821. func_arith ()
  15822. {
  15823. func_arith_result=$(( $* ))
  15824. }
  15825. # func_len string
  15826. # STRING may not start with a hyphen.
  15827. func_len ()
  15828. {
  15829. func_len_result=${#1}
  15830. }
  15831. _LT_EOF
  15832. ;;
  15833. *) # Bourne compatible functions.
  15834. cat << \_LT_EOF >> "$cfgfile"
  15835. # func_dirname file append nondir_replacement
  15836. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15837. # otherwise set result to NONDIR_REPLACEMENT.
  15838. func_dirname ()
  15839. {
  15840. # Extract subdirectory from the argument.
  15841. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15842. if test "X$func_dirname_result" = "X${1}"; then
  15843. func_dirname_result="${3}"
  15844. else
  15845. func_dirname_result="$func_dirname_result${2}"
  15846. fi
  15847. }
  15848. # func_basename file
  15849. func_basename ()
  15850. {
  15851. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15852. }
  15853. # func_stripname prefix suffix name
  15854. # strip PREFIX and SUFFIX off of NAME.
  15855. # PREFIX and SUFFIX must not contain globbing or regex special
  15856. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15857. # dot (in which case that matches only a dot).
  15858. # func_strip_suffix prefix name
  15859. func_stripname ()
  15860. {
  15861. case ${2} in
  15862. .*) func_stripname_result=`$ECHO "X${3}" \
  15863. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15864. *) func_stripname_result=`$ECHO "X${3}" \
  15865. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15866. esac
  15867. }
  15868. # sed scripts:
  15869. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15870. my_sed_long_arg='1s/^-[^=]*=//'
  15871. # func_opt_split
  15872. func_opt_split ()
  15873. {
  15874. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15875. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15876. }
  15877. # func_lo2o object
  15878. func_lo2o ()
  15879. {
  15880. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15881. }
  15882. # func_xform libobj-or-source
  15883. func_xform ()
  15884. {
  15885. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15886. }
  15887. # func_arith arithmetic-term...
  15888. func_arith ()
  15889. {
  15890. func_arith_result=`expr "$@"`
  15891. }
  15892. # func_len string
  15893. # STRING may not start with a hyphen.
  15894. func_len ()
  15895. {
  15896. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15897. }
  15898. _LT_EOF
  15899. esac
  15900. case $lt_shell_append in
  15901. yes)
  15902. cat << \_LT_EOF >> "$cfgfile"
  15903. # func_append var value
  15904. # Append VALUE to the end of shell variable VAR.
  15905. func_append ()
  15906. {
  15907. eval "$1+=\$2"
  15908. }
  15909. _LT_EOF
  15910. ;;
  15911. *)
  15912. cat << \_LT_EOF >> "$cfgfile"
  15913. # func_append var value
  15914. # Append VALUE to the end of shell variable VAR.
  15915. func_append ()
  15916. {
  15917. eval "$1=\$$1\$2"
  15918. }
  15919. _LT_EOF
  15920. ;;
  15921. esac
  15922. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15923. || (rm -f "$cfgfile"; exit 1)
  15924. mv -f "$cfgfile" "$ofile" ||
  15925. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15926. chmod +x "$ofile"
  15927. cat <<_LT_EOF >> "$ofile"
  15928. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15929. # The linker used to build libraries.
  15930. LD=$lt_LD_CXX
  15931. # Commands used to build an old-style archive.
  15932. old_archive_cmds=$lt_old_archive_cmds_CXX
  15933. # A language specific compiler.
  15934. CC=$lt_compiler_CXX
  15935. # Is the compiler the GNU compiler?
  15936. with_gcc=$GCC_CXX
  15937. # Compiler flag to turn off builtin functions.
  15938. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15939. # How to pass a linker flag through the compiler.
  15940. wl=$lt_lt_prog_compiler_wl_CXX
  15941. # Additional compiler flags for building library objects.
  15942. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15943. # Compiler flag to prevent dynamic linking.
  15944. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15945. # Does compiler simultaneously support -c and -o options?
  15946. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15947. # Whether or not to add -lc for building shared libraries.
  15948. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15949. # Whether or not to disallow shared libs when runtime libs are static.
  15950. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15951. # Compiler flag to allow reflexive dlopens.
  15952. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15953. # Compiler flag to generate shared objects directly from archives.
  15954. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15955. # Whether the compiler copes with passing no objects directly.
  15956. compiler_needs_object=$lt_compiler_needs_object_CXX
  15957. # Create an old-style archive from a shared archive.
  15958. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15959. # Create a temporary old-style archive to link instead of a shared archive.
  15960. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15961. # Commands used to build a shared archive.
  15962. archive_cmds=$lt_archive_cmds_CXX
  15963. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15964. # Commands used to build a loadable module if different from building
  15965. # a shared archive.
  15966. module_cmds=$lt_module_cmds_CXX
  15967. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15968. # Whether we are building with GNU ld or not.
  15969. with_gnu_ld=$lt_with_gnu_ld_CXX
  15970. # Flag that allows shared libraries with undefined symbols to be built.
  15971. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15972. # Flag that enforces no undefined symbols.
  15973. no_undefined_flag=$lt_no_undefined_flag_CXX
  15974. # Flag to hardcode \$libdir into a binary during linking.
  15975. # This must work even if \$libdir does not exist
  15976. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15977. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15978. # during linking. This must work even if \$libdir does not exist.
  15979. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15980. # Whether we need a single "-rpath" flag with a separated argument.
  15981. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15982. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15983. # DIR into the resulting binary.
  15984. hardcode_direct=$hardcode_direct_CXX
  15985. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15986. # DIR into the resulting binary and the resulting library dependency is
  15987. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15988. # library is relocated.
  15989. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15990. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15991. # into the resulting binary.
  15992. hardcode_minus_L=$hardcode_minus_L_CXX
  15993. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15994. # into the resulting binary.
  15995. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15996. # Set to "yes" if building a shared library automatically hardcodes DIR
  15997. # into the library and all subsequent libraries and executables linked
  15998. # against it.
  15999. hardcode_automatic=$hardcode_automatic_CXX
  16000. # Set to yes if linker adds runtime paths of dependent libraries
  16001. # to runtime path list.
  16002. inherit_rpath=$inherit_rpath_CXX
  16003. # Whether libtool must link a program against all its dependency libraries.
  16004. link_all_deplibs=$link_all_deplibs_CXX
  16005. # Fix the shell variable \$srcfile for the compiler.
  16006. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16007. # Set to "yes" if exported symbols are required.
  16008. always_export_symbols=$always_export_symbols_CXX
  16009. # The commands to list exported symbols.
  16010. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16011. # Symbols that should not be listed in the preloaded symbols.
  16012. exclude_expsyms=$lt_exclude_expsyms_CXX
  16013. # Symbols that must always be exported.
  16014. include_expsyms=$lt_include_expsyms_CXX
  16015. # Commands necessary for linking programs (against libraries) with templates.
  16016. prelink_cmds=$lt_prelink_cmds_CXX
  16017. # Specify filename containing input files.
  16018. file_list_spec=$lt_file_list_spec_CXX
  16019. # How to hardcode a shared library path into an executable.
  16020. hardcode_action=$hardcode_action_CXX
  16021. # The directories searched by this compiler when creating a shared library.
  16022. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16023. # Dependencies to place before and after the objects being linked to
  16024. # create a shared library.
  16025. predep_objects=$lt_predep_objects_CXX
  16026. postdep_objects=$lt_postdep_objects_CXX
  16027. predeps=$lt_predeps_CXX
  16028. postdeps=$lt_postdeps_CXX
  16029. # The library search path used internally by the compiler when linking
  16030. # a shared library.
  16031. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16032. # ### END LIBTOOL TAG CONFIG: CXX
  16033. _LT_EOF
  16034. ;;
  16035. esac
  16036. done # for ac_tag
  16037. as_fn_exit 0
  16038. _ACEOF
  16039. ac_clean_files=$ac_clean_files_save
  16040. test $ac_write_fail = 0 ||
  16041. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16042. # configure is writing to config.log, and then calls config.status.
  16043. # config.status does its own redirection, appending to config.log.
  16044. # Unfortunately, on DOS this fails, as config.log is still kept open
  16045. # by configure, so config.status won't be able to write to it; its
  16046. # output is simply discarded. So we exec the FD to /dev/null,
  16047. # effectively closing config.log, so it can be properly (re)opened and
  16048. # appended to by config.status. When coming back to configure, we
  16049. # need to make the FD available again.
  16050. if test "$no_create" != yes; then
  16051. ac_cs_success=:
  16052. ac_config_status_args=
  16053. test "$silent" = yes &&
  16054. ac_config_status_args="$ac_config_status_args --quiet"
  16055. exec 5>/dev/null
  16056. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16057. exec 5>>config.log
  16058. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16059. # would make configure fail if this is the last instruction.
  16060. $ac_cs_success || as_fn_exit $?
  16061. fi
  16062. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16064. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16065. fi