configure 574 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for vcmi 0.84b.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
  339. if test "$4"; then
  340. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  342. fi
  343. $as_echo "$as_me: error: $2" >&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, old GNU/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.84b'
  639. PACKAGE_STRING='vcmi 0.84b'
  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. VCMI_SCRIPTING_LIBS_DIR
  682. VCMI_AI_LIBS_DIR
  683. FFMPEG_CXXFLAGS
  684. FFMPEG_LIBS
  685. SDL_CXXFLAGS
  686. SDL_LIBS
  687. HAVE_SDL_CONFIG
  688. BOOST_PROGRAM_OPTIONS_LIB
  689. BOOST_IOSTREAMS_LIB
  690. BOOST_THREAD_LIB
  691. BOOST_FILESYSTEM_LIB
  692. BOOST_SYSTEM_LIB
  693. BOOST_LDFLAGS
  694. BOOST_CPPFLAGS
  695. AM_BACKSLASH
  696. AM_DEFAULT_VERBOSITY
  697. CXXCPP
  698. CPP
  699. OTOOL64
  700. OTOOL
  701. LIPO
  702. NMEDIT
  703. DSYMUTIL
  704. lt_ECHO
  705. RANLIB
  706. AR
  707. OBJDUMP
  708. LN_S
  709. NM
  710. ac_ct_DUMPBIN
  711. DUMPBIN
  712. LD
  713. FGREP
  714. EGREP
  715. GREP
  716. SED
  717. am__fastdepCC_FALSE
  718. am__fastdepCC_TRUE
  719. CCDEPMODE
  720. ac_ct_CC
  721. CFLAGS
  722. CC
  723. host_os
  724. host_vendor
  725. host_cpu
  726. host
  727. build_os
  728. build_vendor
  729. build_cpu
  730. build
  731. LIBTOOL
  732. am__fastdepCXX_FALSE
  733. am__fastdepCXX_TRUE
  734. CXXDEPMODE
  735. AMDEPBACKSLASH
  736. AMDEP_FALSE
  737. AMDEP_TRUE
  738. am__quote
  739. am__include
  740. DEPDIR
  741. OBJEXT
  742. EXEEXT
  743. ac_ct_CXX
  744. CPPFLAGS
  745. LDFLAGS
  746. CXXFLAGS
  747. CXX
  748. am__untar
  749. am__tar
  750. AMTAR
  751. am__leading_dot
  752. SET_MAKE
  753. AWK
  754. mkdir_p
  755. MKDIR_P
  756. INSTALL_STRIP_PROGRAM
  757. STRIP
  758. install_sh
  759. MAKEINFO
  760. AUTOHEADER
  761. AUTOMAKE
  762. AUTOCONF
  763. ACLOCAL
  764. VERSION
  765. PACKAGE
  766. CYGPATH_W
  767. am__isrc
  768. INSTALL_DATA
  769. INSTALL_SCRIPT
  770. INSTALL_PROGRAM
  771. target_alias
  772. host_alias
  773. build_alias
  774. LIBS
  775. ECHO_T
  776. ECHO_N
  777. ECHO_C
  778. DEFS
  779. mandir
  780. localedir
  781. libdir
  782. psdir
  783. pdfdir
  784. dvidir
  785. htmldir
  786. infodir
  787. docdir
  788. oldincludedir
  789. includedir
  790. localstatedir
  791. sharedstatedir
  792. sysconfdir
  793. datadir
  794. datarootdir
  795. libexecdir
  796. sbindir
  797. bindir
  798. program_transform_name
  799. prefix
  800. exec_prefix
  801. PACKAGE_URL
  802. PACKAGE_BUGREPORT
  803. PACKAGE_STRING
  804. PACKAGE_VERSION
  805. PACKAGE_TARNAME
  806. PACKAGE_NAME
  807. PATH_SEPARATOR
  808. SHELL'
  809. ac_subst_files=''
  810. ac_user_opts='
  811. enable_option_checking
  812. enable_dependency_tracking
  813. enable_shared
  814. enable_static
  815. with_pic
  816. enable_fast_install
  817. with_gnu_ld
  818. enable_libtool_lock
  819. enable_silent_rules
  820. enable_debug
  821. with_boost
  822. with_boost_libdir
  823. with_boost_system
  824. with_boost_filesystem
  825. with_boost_thread
  826. with_boost_iostreams
  827. with_boost_program_options
  828. '
  829. ac_precious_vars='build_alias
  830. host_alias
  831. target_alias
  832. CXX
  833. CXXFLAGS
  834. LDFLAGS
  835. LIBS
  836. CPPFLAGS
  837. CCC
  838. CC
  839. CFLAGS
  840. CPP
  841. CXXCPP'
  842. # Initialize some variables set by options.
  843. ac_init_help=
  844. ac_init_version=false
  845. ac_unrecognized_opts=
  846. ac_unrecognized_sep=
  847. # The variables have the same names as the options, with
  848. # dashes changed to underlines.
  849. cache_file=/dev/null
  850. exec_prefix=NONE
  851. no_create=
  852. no_recursion=
  853. prefix=NONE
  854. program_prefix=NONE
  855. program_suffix=NONE
  856. program_transform_name=s,x,x,
  857. silent=
  858. site=
  859. srcdir=
  860. verbose=
  861. x_includes=NONE
  862. x_libraries=NONE
  863. # Installation directory options.
  864. # These are left unexpanded so users can "make install exec_prefix=/foo"
  865. # and all the variables that are supposed to be based on exec_prefix
  866. # by default will actually change.
  867. # Use braces instead of parens because sh, perl, etc. also accept them.
  868. # (The list follows the same order as the GNU Coding Standards.)
  869. bindir='${exec_prefix}/bin'
  870. sbindir='${exec_prefix}/sbin'
  871. libexecdir='${exec_prefix}/libexec'
  872. datarootdir='${prefix}/share'
  873. datadir='${datarootdir}'
  874. sysconfdir='${prefix}/etc'
  875. sharedstatedir='${prefix}/com'
  876. localstatedir='${prefix}/var'
  877. includedir='${prefix}/include'
  878. oldincludedir='/usr/include'
  879. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  880. infodir='${datarootdir}/info'
  881. htmldir='${docdir}'
  882. dvidir='${docdir}'
  883. pdfdir='${docdir}'
  884. psdir='${docdir}'
  885. libdir='${exec_prefix}/lib'
  886. localedir='${datarootdir}/locale'
  887. mandir='${datarootdir}/man'
  888. ac_prev=
  889. ac_dashdash=
  890. for ac_option
  891. do
  892. # If the previous option needs an argument, assign it.
  893. if test -n "$ac_prev"; then
  894. eval $ac_prev=\$ac_option
  895. ac_prev=
  896. continue
  897. fi
  898. case $ac_option in
  899. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  900. *=) ac_optarg= ;;
  901. *) ac_optarg=yes ;;
  902. esac
  903. # Accept the important Cygnus configure options, so we can diagnose typos.
  904. case $ac_dashdash$ac_option in
  905. --)
  906. ac_dashdash=yes ;;
  907. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  908. ac_prev=bindir ;;
  909. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  910. bindir=$ac_optarg ;;
  911. -build | --build | --buil | --bui | --bu)
  912. ac_prev=build_alias ;;
  913. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  914. build_alias=$ac_optarg ;;
  915. -cache-file | --cache-file | --cache-fil | --cache-fi \
  916. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  917. ac_prev=cache_file ;;
  918. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  919. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  920. cache_file=$ac_optarg ;;
  921. --config-cache | -C)
  922. cache_file=config.cache ;;
  923. -datadir | --datadir | --datadi | --datad)
  924. ac_prev=datadir ;;
  925. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  926. datadir=$ac_optarg ;;
  927. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  928. | --dataroo | --dataro | --datar)
  929. ac_prev=datarootdir ;;
  930. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  931. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  932. datarootdir=$ac_optarg ;;
  933. -disable-* | --disable-*)
  934. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  937. as_fn_error $? "invalid feature name: $ac_useropt"
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "enable_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval enable_$ac_useropt=no ;;
  948. -docdir | --docdir | --docdi | --doc | --do)
  949. ac_prev=docdir ;;
  950. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  951. docdir=$ac_optarg ;;
  952. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  953. ac_prev=dvidir ;;
  954. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  955. dvidir=$ac_optarg ;;
  956. -enable-* | --enable-*)
  957. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  958. # Reject names that are not valid shell variable names.
  959. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  960. as_fn_error $? "invalid feature name: $ac_useropt"
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "enable_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval enable_$ac_useropt=\$ac_optarg ;;
  971. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  972. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  973. | --exec | --exe | --ex)
  974. ac_prev=exec_prefix ;;
  975. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  976. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  977. | --exec=* | --exe=* | --ex=*)
  978. exec_prefix=$ac_optarg ;;
  979. -gas | --gas | --ga | --g)
  980. # Obsolete; use --with-gas.
  981. with_gas=yes ;;
  982. -help | --help | --hel | --he | -h)
  983. ac_init_help=long ;;
  984. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  985. ac_init_help=recursive ;;
  986. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  987. ac_init_help=short ;;
  988. -host | --host | --hos | --ho)
  989. ac_prev=host_alias ;;
  990. -host=* | --host=* | --hos=* | --ho=*)
  991. host_alias=$ac_optarg ;;
  992. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  993. ac_prev=htmldir ;;
  994. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  995. | --ht=*)
  996. htmldir=$ac_optarg ;;
  997. -includedir | --includedir | --includedi | --included | --include \
  998. | --includ | --inclu | --incl | --inc)
  999. ac_prev=includedir ;;
  1000. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1001. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1002. includedir=$ac_optarg ;;
  1003. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1004. ac_prev=infodir ;;
  1005. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1006. infodir=$ac_optarg ;;
  1007. -libdir | --libdir | --libdi | --libd)
  1008. ac_prev=libdir ;;
  1009. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1010. libdir=$ac_optarg ;;
  1011. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1012. | --libexe | --libex | --libe)
  1013. ac_prev=libexecdir ;;
  1014. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1015. | --libexe=* | --libex=* | --libe=*)
  1016. libexecdir=$ac_optarg ;;
  1017. -localedir | --localedir | --localedi | --localed | --locale)
  1018. ac_prev=localedir ;;
  1019. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. localedir=$ac_optarg ;;
  1021. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1022. | --localstate | --localstat | --localsta | --localst | --locals)
  1023. ac_prev=localstatedir ;;
  1024. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1025. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1026. localstatedir=$ac_optarg ;;
  1027. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1028. ac_prev=mandir ;;
  1029. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1030. mandir=$ac_optarg ;;
  1031. -nfp | --nfp | --nf)
  1032. # Obsolete; use --without-fp.
  1033. with_fp=no ;;
  1034. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1035. | --no-cr | --no-c | -n)
  1036. no_create=yes ;;
  1037. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1038. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1039. no_recursion=yes ;;
  1040. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1041. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1042. | --oldin | --oldi | --old | --ol | --o)
  1043. ac_prev=oldincludedir ;;
  1044. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1045. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1046. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1047. oldincludedir=$ac_optarg ;;
  1048. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1049. ac_prev=prefix ;;
  1050. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1051. prefix=$ac_optarg ;;
  1052. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1053. | --program-pre | --program-pr | --program-p)
  1054. ac_prev=program_prefix ;;
  1055. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1056. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1057. program_prefix=$ac_optarg ;;
  1058. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1059. | --program-suf | --program-su | --program-s)
  1060. ac_prev=program_suffix ;;
  1061. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1062. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1063. program_suffix=$ac_optarg ;;
  1064. -program-transform-name | --program-transform-name \
  1065. | --program-transform-nam | --program-transform-na \
  1066. | --program-transform-n | --program-transform- \
  1067. | --program-transform | --program-transfor \
  1068. | --program-transfo | --program-transf \
  1069. | --program-trans | --program-tran \
  1070. | --progr-tra | --program-tr | --program-t)
  1071. ac_prev=program_transform_name ;;
  1072. -program-transform-name=* | --program-transform-name=* \
  1073. | --program-transform-nam=* | --program-transform-na=* \
  1074. | --program-transform-n=* | --program-transform-=* \
  1075. | --program-transform=* | --program-transfor=* \
  1076. | --program-transfo=* | --program-transf=* \
  1077. | --program-trans=* | --program-tran=* \
  1078. | --progr-tra=* | --program-tr=* | --program-t=*)
  1079. program_transform_name=$ac_optarg ;;
  1080. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1081. ac_prev=pdfdir ;;
  1082. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1083. pdfdir=$ac_optarg ;;
  1084. -psdir | --psdir | --psdi | --psd | --ps)
  1085. ac_prev=psdir ;;
  1086. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1087. psdir=$ac_optarg ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. silent=yes ;;
  1091. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1092. ac_prev=sbindir ;;
  1093. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1094. | --sbi=* | --sb=*)
  1095. sbindir=$ac_optarg ;;
  1096. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1097. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1098. | --sharedst | --shareds | --shared | --share | --shar \
  1099. | --sha | --sh)
  1100. ac_prev=sharedstatedir ;;
  1101. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1102. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1103. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1104. | --sha=* | --sh=*)
  1105. sharedstatedir=$ac_optarg ;;
  1106. -site | --site | --sit)
  1107. ac_prev=site ;;
  1108. -site=* | --site=* | --sit=*)
  1109. site=$ac_optarg ;;
  1110. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1111. ac_prev=srcdir ;;
  1112. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1113. srcdir=$ac_optarg ;;
  1114. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1115. | --syscon | --sysco | --sysc | --sys | --sy)
  1116. ac_prev=sysconfdir ;;
  1117. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1118. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1119. sysconfdir=$ac_optarg ;;
  1120. -target | --target | --targe | --targ | --tar | --ta | --t)
  1121. ac_prev=target_alias ;;
  1122. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1123. target_alias=$ac_optarg ;;
  1124. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1125. verbose=yes ;;
  1126. -version | --version | --versio | --versi | --vers | -V)
  1127. ac_init_version=: ;;
  1128. -with-* | --with-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. as_fn_error $? "invalid package name: $ac_useropt"
  1133. ac_useropt_orig=$ac_useropt
  1134. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1135. case $ac_user_opts in
  1136. *"
  1137. "with_$ac_useropt"
  1138. "*) ;;
  1139. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1140. ac_unrecognized_sep=', ';;
  1141. esac
  1142. eval with_$ac_useropt=\$ac_optarg ;;
  1143. -without-* | --without-*)
  1144. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1145. # Reject names that are not valid shell variable names.
  1146. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1147. as_fn_error $? "invalid package name: $ac_useropt"
  1148. ac_useropt_orig=$ac_useropt
  1149. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150. case $ac_user_opts in
  1151. *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1155. ac_unrecognized_sep=', ';;
  1156. esac
  1157. eval with_$ac_useropt=no ;;
  1158. --x)
  1159. # Obsolete; use --with-x.
  1160. with_x=yes ;;
  1161. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1162. | --x-incl | --x-inc | --x-in | --x-i)
  1163. ac_prev=x_includes ;;
  1164. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1165. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1166. x_includes=$ac_optarg ;;
  1167. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1168. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1169. ac_prev=x_libraries ;;
  1170. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1171. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1172. x_libraries=$ac_optarg ;;
  1173. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1174. Try \`$0 --help' for more information"
  1175. ;;
  1176. *=*)
  1177. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1178. # Reject names that are not valid shell variable names.
  1179. case $ac_envvar in #(
  1180. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1181. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1182. esac
  1183. eval $ac_envvar=\$ac_optarg
  1184. export $ac_envvar ;;
  1185. *)
  1186. # FIXME: should be removed in autoconf 3.0.
  1187. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1188. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1189. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1190. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1191. ;;
  1192. esac
  1193. done
  1194. if test -n "$ac_prev"; then
  1195. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1196. as_fn_error $? "missing argument to $ac_option"
  1197. fi
  1198. if test -n "$ac_unrecognized_opts"; then
  1199. case $enable_option_checking in
  1200. no) ;;
  1201. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1202. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1203. esac
  1204. fi
  1205. # Check all directory arguments for consistency.
  1206. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1207. datadir sysconfdir sharedstatedir localstatedir includedir \
  1208. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1209. libdir localedir mandir
  1210. do
  1211. eval ac_val=\$$ac_var
  1212. # Remove trailing slashes.
  1213. case $ac_val in
  1214. */ )
  1215. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1216. eval $ac_var=\$ac_val;;
  1217. esac
  1218. # Be sure to have absolute directory names.
  1219. case $ac_val in
  1220. [\\/$]* | ?:[\\/]* ) continue;;
  1221. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1222. esac
  1223. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1224. done
  1225. # There might be people who depend on the old broken behavior: `$host'
  1226. # used to hold the argument of --host etc.
  1227. # FIXME: To remove some day.
  1228. build=$build_alias
  1229. host=$host_alias
  1230. target=$target_alias
  1231. # FIXME: To remove some day.
  1232. if test "x$host_alias" != x; then
  1233. if test "x$build_alias" = x; then
  1234. cross_compiling=maybe
  1235. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1236. If a cross compiler is detected then cross compile mode will be used" >&2
  1237. elif test "x$build_alias" != "x$host_alias"; then
  1238. cross_compiling=yes
  1239. fi
  1240. fi
  1241. ac_tool_prefix=
  1242. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1243. test "$silent" = yes && exec 6>/dev/null
  1244. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1245. ac_ls_di=`ls -di .` &&
  1246. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1247. as_fn_error $? "working directory cannot be determined"
  1248. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1249. as_fn_error $? "pwd does not report name of working directory"
  1250. # Find the source files, if location was not specified.
  1251. if test -z "$srcdir"; then
  1252. ac_srcdir_defaulted=yes
  1253. # Try the directory containing this script, then the parent directory.
  1254. ac_confdir=`$as_dirname -- "$as_myself" ||
  1255. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1256. X"$as_myself" : 'X\(//\)[^/]' \| \
  1257. X"$as_myself" : 'X\(//\)$' \| \
  1258. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1259. $as_echo X"$as_myself" |
  1260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)[^/].*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)$/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\).*/{
  1273. s//\1/
  1274. q
  1275. }
  1276. s/.*/./; q'`
  1277. srcdir=$ac_confdir
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. srcdir=..
  1280. fi
  1281. else
  1282. ac_srcdir_defaulted=no
  1283. fi
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1286. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1287. fi
  1288. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1289. ac_abs_confdir=`(
  1290. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1291. pwd)`
  1292. # When building in place, set srcdir=.
  1293. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1294. srcdir=.
  1295. fi
  1296. # Remove unnecessary trailing slashes from srcdir.
  1297. # Double slashes in file names in object file debugging info
  1298. # mess up M-x gdb in Emacs.
  1299. case $srcdir in
  1300. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1301. esac
  1302. for ac_var in $ac_precious_vars; do
  1303. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_env_${ac_var}_value=\$${ac_var}
  1305. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1307. done
  1308. #
  1309. # Report the --help message.
  1310. #
  1311. if test "$ac_init_help" = "long"; then
  1312. # Omit some internal or obsolete options to make the list less imposing.
  1313. # This message is too long to be a string in the A/UX 3.1 sh.
  1314. cat <<_ACEOF
  1315. \`configure' configures vcmi 0.84b to adapt to many kinds of systems.
  1316. Usage: $0 [OPTION]... [VAR=VALUE]...
  1317. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1318. VAR=VALUE. See below for descriptions of some of the useful variables.
  1319. Defaults for the options are specified in brackets.
  1320. Configuration:
  1321. -h, --help display this help and exit
  1322. --help=short display options specific to this package
  1323. --help=recursive display the short help of all the included packages
  1324. -V, --version display version information and exit
  1325. -q, --quiet, --silent do not print \`checking ...' messages
  1326. --cache-file=FILE cache test results in FILE [disabled]
  1327. -C, --config-cache alias for \`--cache-file=config.cache'
  1328. -n, --no-create do not create output files
  1329. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1330. Installation directories:
  1331. --prefix=PREFIX install architecture-independent files in PREFIX
  1332. [$ac_default_prefix]
  1333. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1334. [PREFIX]
  1335. By default, \`make install' will install all the files in
  1336. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1337. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1338. for instance \`--prefix=\$HOME'.
  1339. For better control, use the options below.
  1340. Fine tuning of the installation directories:
  1341. --bindir=DIR user executables [EPREFIX/bin]
  1342. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1343. --libexecdir=DIR program executables [EPREFIX/libexec]
  1344. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1345. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1346. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1347. --libdir=DIR object code libraries [EPREFIX/lib]
  1348. --includedir=DIR C header files [PREFIX/include]
  1349. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1350. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1351. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1352. --infodir=DIR info documentation [DATAROOTDIR/info]
  1353. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1354. --mandir=DIR man documentation [DATAROOTDIR/man]
  1355. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1356. --htmldir=DIR html documentation [DOCDIR]
  1357. --dvidir=DIR dvi documentation [DOCDIR]
  1358. --pdfdir=DIR pdf documentation [DOCDIR]
  1359. --psdir=DIR ps documentation [DOCDIR]
  1360. _ACEOF
  1361. cat <<\_ACEOF
  1362. Program names:
  1363. --program-prefix=PREFIX prepend PREFIX to installed program names
  1364. --program-suffix=SUFFIX append SUFFIX to installed program names
  1365. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1366. System types:
  1367. --build=BUILD configure for building on BUILD [guessed]
  1368. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1369. _ACEOF
  1370. fi
  1371. if test -n "$ac_init_help"; then
  1372. case $ac_init_help in
  1373. short | recursive ) echo "Configuration of vcmi 0.84b:";;
  1374. esac
  1375. cat <<\_ACEOF
  1376. Optional Features:
  1377. --disable-option-checking ignore unrecognized --enable/--with options
  1378. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1379. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1380. --disable-dependency-tracking speeds up one-time build
  1381. --enable-dependency-tracking do not reject slow dependency extractors
  1382. --enable-shared[=PKGS] build shared libraries [default=yes]
  1383. --enable-static[=PKGS] build static libraries [default=no]
  1384. --enable-fast-install[=PKGS]
  1385. optimize for fast installation [default=yes]
  1386. --disable-libtool-lock avoid locking (might break parallel builds)
  1387. --enable-silent-rules less verbose build output (undo: `make V=1')
  1388. --disable-silent-rules verbose build output (undo: `make V=0')
  1389. --disable-debug turn off debugging (default=enable)
  1390. Optional Packages:
  1391. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1392. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1393. --with-pic try to use only PIC/non-PIC objects [default=use
  1394. both]
  1395. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1396. --with-boost[=ARG] use Boost library from a standard location
  1397. (ARG=yes), from the specified location (ARG=<path>),
  1398. or disable it (ARG=no) [ARG=yes]
  1399. --with-boost-libdir=LIB_DIR
  1400. Force given directory for boost libraries. Note that
  1401. this will override library path detection, so use
  1402. this parameter only if default library detection
  1403. fails and you know exactly where your boost
  1404. libraries are located.
  1405. --with-boost-system[=special-lib]
  1406. use the System library from boost - it is possible
  1407. to specify a certain library for the linker e.g.
  1408. --with-boost-system=boost_system-gcc-mt
  1409. --with-boost-filesystem[=special-lib]
  1410. use the Filesystem library from boost - it is
  1411. possible to specify a certain library for the linker
  1412. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1413. --with-boost-thread[=special-lib]
  1414. use the Thread library from boost - it is possible
  1415. to specify a certain library for the linker e.g.
  1416. --with-boost-thread=boost_thread-gcc-mt
  1417. --with-boost-iostreams[=special-lib]
  1418. use the IOStreams library from boost - it is
  1419. possible to specify a certain library for the linker
  1420. e.g.
  1421. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1422. --with-boost-program-options[=special-lib]
  1423. use the program options library from boost - it is
  1424. possible to specify a certain library for the linker
  1425. e.g.
  1426. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1427. Some influential environment variables:
  1428. CXX C++ compiler command
  1429. CXXFLAGS C++ compiler flags
  1430. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1431. nonstandard directory <lib dir>
  1432. LIBS libraries to pass to the linker, e.g. -l<library>
  1433. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1434. you have headers in a nonstandard directory <include dir>
  1435. CC C compiler command
  1436. CFLAGS C compiler flags
  1437. CPP C preprocessor
  1438. CXXCPP C++ preprocessor
  1439. Use these variables to override the choices made by `configure' or to help
  1440. it to find libraries and programs with nonstandard names/locations.
  1441. Report bugs to the package provider.
  1442. _ACEOF
  1443. ac_status=$?
  1444. fi
  1445. if test "$ac_init_help" = "recursive"; then
  1446. # If there are subdirs, report their specific --help.
  1447. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1448. test -d "$ac_dir" ||
  1449. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1450. continue
  1451. ac_builddir=.
  1452. case "$ac_dir" in
  1453. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1454. *)
  1455. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1456. # A ".." for each directory in $ac_dir_suffix.
  1457. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1458. case $ac_top_builddir_sub in
  1459. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1460. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1461. esac ;;
  1462. esac
  1463. ac_abs_top_builddir=$ac_pwd
  1464. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1465. # for backward compatibility:
  1466. ac_top_builddir=$ac_top_build_prefix
  1467. case $srcdir in
  1468. .) # We are building in place.
  1469. ac_srcdir=.
  1470. ac_top_srcdir=$ac_top_builddir_sub
  1471. ac_abs_top_srcdir=$ac_pwd ;;
  1472. [\\/]* | ?:[\\/]* ) # Absolute name.
  1473. ac_srcdir=$srcdir$ac_dir_suffix;
  1474. ac_top_srcdir=$srcdir
  1475. ac_abs_top_srcdir=$srcdir ;;
  1476. *) # Relative name.
  1477. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1478. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1479. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1480. esac
  1481. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1482. cd "$ac_dir" || { ac_status=$?; continue; }
  1483. # Check for guested configure.
  1484. if test -f "$ac_srcdir/configure.gnu"; then
  1485. echo &&
  1486. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1487. elif test -f "$ac_srcdir/configure"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure" --help=recursive
  1490. else
  1491. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1492. fi || ac_status=$?
  1493. cd "$ac_pwd" || { ac_status=$?; break; }
  1494. done
  1495. fi
  1496. test -n "$ac_init_help" && exit $ac_status
  1497. if $ac_init_version; then
  1498. cat <<\_ACEOF
  1499. vcmi configure 0.84b
  1500. generated by GNU Autoconf 2.67
  1501. Copyright (C) 2010 Free Software Foundation, Inc.
  1502. This configure script is free software; the Free Software Foundation
  1503. gives unlimited permission to copy, distribute and modify it.
  1504. _ACEOF
  1505. exit
  1506. fi
  1507. ## ------------------------ ##
  1508. ## Autoconf initialization. ##
  1509. ## ------------------------ ##
  1510. # ac_fn_cxx_try_compile LINENO
  1511. # ----------------------------
  1512. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1513. ac_fn_cxx_try_compile ()
  1514. {
  1515. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1516. rm -f conftest.$ac_objext
  1517. if { { ac_try="$ac_compile"
  1518. case "(($ac_try" in
  1519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1520. *) ac_try_echo=$ac_try;;
  1521. esac
  1522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1523. $as_echo "$ac_try_echo"; } >&5
  1524. (eval "$ac_compile") 2>conftest.err
  1525. ac_status=$?
  1526. if test -s conftest.err; then
  1527. grep -v '^ *+' conftest.err >conftest.er1
  1528. cat conftest.er1 >&5
  1529. mv -f conftest.er1 conftest.err
  1530. fi
  1531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1532. test $ac_status = 0; } && {
  1533. test -z "$ac_cxx_werror_flag" ||
  1534. test ! -s conftest.err
  1535. } && test -s conftest.$ac_objext; then :
  1536. ac_retval=0
  1537. else
  1538. $as_echo "$as_me: failed program was:" >&5
  1539. sed 's/^/| /' conftest.$ac_ext >&5
  1540. ac_retval=1
  1541. fi
  1542. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1543. as_fn_set_status $ac_retval
  1544. } # ac_fn_cxx_try_compile
  1545. # ac_fn_c_try_compile LINENO
  1546. # --------------------------
  1547. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1548. ac_fn_c_try_compile ()
  1549. {
  1550. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. rm -f conftest.$ac_objext
  1552. if { { ac_try="$ac_compile"
  1553. case "(($ac_try" in
  1554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1555. *) ac_try_echo=$ac_try;;
  1556. esac
  1557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1558. $as_echo "$ac_try_echo"; } >&5
  1559. (eval "$ac_compile") 2>conftest.err
  1560. ac_status=$?
  1561. if test -s conftest.err; then
  1562. grep -v '^ *+' conftest.err >conftest.er1
  1563. cat conftest.er1 >&5
  1564. mv -f conftest.er1 conftest.err
  1565. fi
  1566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1567. test $ac_status = 0; } && {
  1568. test -z "$ac_c_werror_flag" ||
  1569. test ! -s conftest.err
  1570. } && test -s conftest.$ac_objext; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: failed program was:" >&5
  1574. sed 's/^/| /' conftest.$ac_ext >&5
  1575. ac_retval=1
  1576. fi
  1577. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1578. as_fn_set_status $ac_retval
  1579. } # ac_fn_c_try_compile
  1580. # ac_fn_c_try_link LINENO
  1581. # -----------------------
  1582. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_c_try_link ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. rm -f conftest.$ac_objext conftest$ac_exeext
  1587. if { { ac_try="$ac_link"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_link") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && {
  1603. test -z "$ac_c_werror_flag" ||
  1604. test ! -s conftest.err
  1605. } && test -s conftest$ac_exeext && {
  1606. test "$cross_compiling" = yes ||
  1607. $as_test_x conftest$ac_exeext
  1608. }; then :
  1609. ac_retval=0
  1610. else
  1611. $as_echo "$as_me: failed program was:" >&5
  1612. sed 's/^/| /' conftest.$ac_ext >&5
  1613. ac_retval=1
  1614. fi
  1615. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1616. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1617. # interfere with the next link command; also delete a directory that is
  1618. # left behind by Apple's compiler. We do this before executing the actions.
  1619. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1620. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_link
  1623. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1624. # -------------------------------------------------------
  1625. # Tests whether HEADER exists and can be compiled using the include files in
  1626. # INCLUDES, setting the cache variable VAR accordingly.
  1627. ac_fn_c_check_header_compile ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval "test \"\${$3+set}\"" = set; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. $4
  1638. #include <$2>
  1639. _ACEOF
  1640. if ac_fn_c_try_compile "$LINENO"; then :
  1641. eval "$3=yes"
  1642. else
  1643. eval "$3=no"
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1651. } # ac_fn_c_check_header_compile
  1652. # ac_fn_c_try_cpp LINENO
  1653. # ----------------------
  1654. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1655. ac_fn_c_try_cpp ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1666. ac_status=$?
  1667. if test -s conftest.err; then
  1668. grep -v '^ *+' conftest.err >conftest.er1
  1669. cat conftest.er1 >&5
  1670. mv -f conftest.er1 conftest.err
  1671. fi
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; } > conftest.i && {
  1674. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1675. test ! -s conftest.err
  1676. }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: failed program was:" >&5
  1680. sed 's/^/| /' conftest.$ac_ext >&5
  1681. ac_retval=1
  1682. fi
  1683. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1684. as_fn_set_status $ac_retval
  1685. } # ac_fn_c_try_cpp
  1686. # ac_fn_c_try_run LINENO
  1687. # ----------------------
  1688. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1689. # that executables *can* be run.
  1690. ac_fn_c_try_run ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. if { { ac_try="$ac_link"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_link") 2>&5
  1701. ac_status=$?
  1702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1704. { { case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_try") 2>&5
  1711. ac_status=$?
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; }; }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: program exited with status $ac_status" >&5
  1717. $as_echo "$as_me: failed program was:" >&5
  1718. sed 's/^/| /' conftest.$ac_ext >&5
  1719. ac_retval=$ac_status
  1720. fi
  1721. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1722. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1723. as_fn_set_status $ac_retval
  1724. } # ac_fn_c_try_run
  1725. # ac_fn_c_check_func LINENO FUNC VAR
  1726. # ----------------------------------
  1727. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1728. ac_fn_c_check_func ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1732. $as_echo_n "checking for $2... " >&6; }
  1733. if eval "test \"\${$3+set}\"" = set; then :
  1734. $as_echo_n "(cached) " >&6
  1735. else
  1736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end confdefs.h. */
  1738. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1739. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1740. #define $2 innocuous_$2
  1741. /* System header to define __stub macros and hopefully few prototypes,
  1742. which can conflict with char $2 (); below.
  1743. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1744. <limits.h> exists even on freestanding compilers. */
  1745. #ifdef __STDC__
  1746. # include <limits.h>
  1747. #else
  1748. # include <assert.h>
  1749. #endif
  1750. #undef $2
  1751. /* Override any GCC internal prototype to avoid an error.
  1752. Use char because int might match the return type of a GCC
  1753. builtin and then its argument prototype would still apply. */
  1754. #ifdef __cplusplus
  1755. extern "C"
  1756. #endif
  1757. char $2 ();
  1758. /* The GNU C library defines this for functions which it implements
  1759. to always fail with ENOSYS. Some functions are actually named
  1760. something starting with __ and the normal name is an alias. */
  1761. #if defined __stub_$2 || defined __stub___$2
  1762. choke me
  1763. #endif
  1764. int
  1765. main ()
  1766. {
  1767. return $2 ();
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_link "$LINENO"; then :
  1773. eval "$3=yes"
  1774. else
  1775. eval "$3=no"
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext \
  1778. conftest$ac_exeext conftest.$ac_ext
  1779. fi
  1780. eval ac_res=\$$3
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1782. $as_echo "$ac_res" >&6; }
  1783. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1784. } # ac_fn_c_check_func
  1785. # ac_fn_cxx_try_cpp LINENO
  1786. # ------------------------
  1787. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1788. ac_fn_cxx_try_cpp ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1792. case "(($ac_try" in
  1793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794. *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. $as_echo "$ac_try_echo"; } >&5
  1798. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1799. ac_status=$?
  1800. if test -s conftest.err; then
  1801. grep -v '^ *+' conftest.err >conftest.er1
  1802. cat conftest.er1 >&5
  1803. mv -f conftest.er1 conftest.err
  1804. fi
  1805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; } > conftest.i && {
  1807. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1808. test ! -s conftest.err
  1809. }; then :
  1810. ac_retval=0
  1811. else
  1812. $as_echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. ac_retval=1
  1815. fi
  1816. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_cxx_try_cpp
  1819. # ac_fn_cxx_try_link LINENO
  1820. # -------------------------
  1821. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1822. ac_fn_cxx_try_link ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. rm -f conftest.$ac_objext conftest$ac_exeext
  1826. if { { ac_try="$ac_link"
  1827. case "(($ac_try" in
  1828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1829. *) ac_try_echo=$ac_try;;
  1830. esac
  1831. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1832. $as_echo "$ac_try_echo"; } >&5
  1833. (eval "$ac_link") 2>conftest.err
  1834. ac_status=$?
  1835. if test -s conftest.err; then
  1836. grep -v '^ *+' conftest.err >conftest.er1
  1837. cat conftest.er1 >&5
  1838. mv -f conftest.er1 conftest.err
  1839. fi
  1840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1841. test $ac_status = 0; } && {
  1842. test -z "$ac_cxx_werror_flag" ||
  1843. test ! -s conftest.err
  1844. } && test -s conftest$ac_exeext && {
  1845. test "$cross_compiling" = yes ||
  1846. $as_test_x conftest$ac_exeext
  1847. }; then :
  1848. ac_retval=0
  1849. else
  1850. $as_echo "$as_me: failed program was:" >&5
  1851. sed 's/^/| /' conftest.$ac_ext >&5
  1852. ac_retval=1
  1853. fi
  1854. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1855. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1856. # interfere with the next link command; also delete a directory that is
  1857. # left behind by Apple's compiler. We do this before executing the actions.
  1858. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1859. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1860. as_fn_set_status $ac_retval
  1861. } # ac_fn_cxx_try_link
  1862. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1863. # ---------------------------------------------------------
  1864. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1865. # the include files in INCLUDES and setting the cache variable VAR
  1866. # accordingly.
  1867. ac_fn_cxx_check_header_mongrel ()
  1868. {
  1869. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1870. if eval "test \"\${$3+set}\"" = set; then :
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1872. $as_echo_n "checking for $2... " >&6; }
  1873. if eval "test \"\${$3+set}\"" = set; then :
  1874. $as_echo_n "(cached) " >&6
  1875. fi
  1876. eval ac_res=\$$3
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1878. $as_echo "$ac_res" >&6; }
  1879. else
  1880. # Is the header compilable?
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1882. $as_echo_n "checking $2 usability... " >&6; }
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. $4
  1886. #include <$2>
  1887. _ACEOF
  1888. if ac_fn_cxx_try_compile "$LINENO"; then :
  1889. ac_header_compiler=yes
  1890. else
  1891. ac_header_compiler=no
  1892. fi
  1893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1895. $as_echo "$ac_header_compiler" >&6; }
  1896. # Is the header present?
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1898. $as_echo_n "checking $2 presence... " >&6; }
  1899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1900. /* end confdefs.h. */
  1901. #include <$2>
  1902. _ACEOF
  1903. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1904. ac_header_preproc=yes
  1905. else
  1906. ac_header_preproc=no
  1907. fi
  1908. rm -f conftest.err conftest.i conftest.$ac_ext
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1910. $as_echo "$ac_header_preproc" >&6; }
  1911. # So? What about this header?
  1912. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1913. yes:no: )
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1915. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1917. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1918. ;;
  1919. no:yes:* )
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1921. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1923. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1925. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1927. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1929. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1930. ;;
  1931. esac
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1933. $as_echo_n "checking for $2... " >&6; }
  1934. if eval "test \"\${$3+set}\"" = set; then :
  1935. $as_echo_n "(cached) " >&6
  1936. else
  1937. eval "$3=\$ac_header_compiler"
  1938. fi
  1939. eval ac_res=\$$3
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1941. $as_echo "$ac_res" >&6; }
  1942. fi
  1943. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1944. } # ac_fn_cxx_check_header_mongrel
  1945. # ac_fn_cxx_try_run LINENO
  1946. # ------------------------
  1947. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1948. # that executables *can* be run.
  1949. ac_fn_cxx_try_run ()
  1950. {
  1951. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1952. if { { ac_try="$ac_link"
  1953. case "(($ac_try" in
  1954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1955. *) ac_try_echo=$ac_try;;
  1956. esac
  1957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1958. $as_echo "$ac_try_echo"; } >&5
  1959. (eval "$ac_link") 2>&5
  1960. ac_status=$?
  1961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1962. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1963. { { case "(($ac_try" in
  1964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1965. *) ac_try_echo=$ac_try;;
  1966. esac
  1967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1968. $as_echo "$ac_try_echo"; } >&5
  1969. (eval "$ac_try") 2>&5
  1970. ac_status=$?
  1971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1972. test $ac_status = 0; }; }; then :
  1973. ac_retval=0
  1974. else
  1975. $as_echo "$as_me: program exited with status $ac_status" >&5
  1976. $as_echo "$as_me: failed program was:" >&5
  1977. sed 's/^/| /' conftest.$ac_ext >&5
  1978. ac_retval=$ac_status
  1979. fi
  1980. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1981. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1982. as_fn_set_status $ac_retval
  1983. } # ac_fn_cxx_try_run
  1984. # ac_fn_cxx_check_func LINENO FUNC VAR
  1985. # ------------------------------------
  1986. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1987. ac_fn_cxx_check_func ()
  1988. {
  1989. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1991. $as_echo_n "checking for $2... " >&6; }
  1992. if eval "test \"\${$3+set}\"" = set; then :
  1993. $as_echo_n "(cached) " >&6
  1994. else
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1998. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1999. #define $2 innocuous_$2
  2000. /* System header to define __stub macros and hopefully few prototypes,
  2001. which can conflict with char $2 (); below.
  2002. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2003. <limits.h> exists even on freestanding compilers. */
  2004. #ifdef __STDC__
  2005. # include <limits.h>
  2006. #else
  2007. # include <assert.h>
  2008. #endif
  2009. #undef $2
  2010. /* Override any GCC internal prototype to avoid an error.
  2011. Use char because int might match the return type of a GCC
  2012. builtin and then its argument prototype would still apply. */
  2013. #ifdef __cplusplus
  2014. extern "C"
  2015. #endif
  2016. char $2 ();
  2017. /* The GNU C library defines this for functions which it implements
  2018. to always fail with ENOSYS. Some functions are actually named
  2019. something starting with __ and the normal name is an alias. */
  2020. #if defined __stub_$2 || defined __stub___$2
  2021. choke me
  2022. #endif
  2023. int
  2024. main ()
  2025. {
  2026. return $2 ();
  2027. ;
  2028. return 0;
  2029. }
  2030. _ACEOF
  2031. if ac_fn_cxx_try_link "$LINENO"; then :
  2032. eval "$3=yes"
  2033. else
  2034. eval "$3=no"
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext \
  2037. conftest$ac_exeext conftest.$ac_ext
  2038. fi
  2039. eval ac_res=\$$3
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2041. $as_echo "$ac_res" >&6; }
  2042. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2043. } # ac_fn_cxx_check_func
  2044. cat >config.log <<_ACEOF
  2045. This file contains any messages produced by compilers while
  2046. running configure, to aid debugging if configure makes a mistake.
  2047. It was created by vcmi $as_me 0.84b, which was
  2048. generated by GNU Autoconf 2.67. Invocation command line was
  2049. $ $0 $@
  2050. _ACEOF
  2051. exec 5>>config.log
  2052. {
  2053. cat <<_ASUNAME
  2054. ## --------- ##
  2055. ## Platform. ##
  2056. ## --------- ##
  2057. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2058. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2059. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2060. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2061. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2062. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2063. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2064. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2065. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2066. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2067. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2068. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2069. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2070. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2071. _ASUNAME
  2072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2073. for as_dir in $PATH
  2074. do
  2075. IFS=$as_save_IFS
  2076. test -z "$as_dir" && as_dir=.
  2077. $as_echo "PATH: $as_dir"
  2078. done
  2079. IFS=$as_save_IFS
  2080. } >&5
  2081. cat >&5 <<_ACEOF
  2082. ## ----------- ##
  2083. ## Core tests. ##
  2084. ## ----------- ##
  2085. _ACEOF
  2086. # Keep a trace of the command line.
  2087. # Strip out --no-create and --no-recursion so they do not pile up.
  2088. # Strip out --silent because we don't want to record it for future runs.
  2089. # Also quote any args containing shell meta-characters.
  2090. # Make two passes to allow for proper duplicate-argument suppression.
  2091. ac_configure_args=
  2092. ac_configure_args0=
  2093. ac_configure_args1=
  2094. ac_must_keep_next=false
  2095. for ac_pass in 1 2
  2096. do
  2097. for ac_arg
  2098. do
  2099. case $ac_arg in
  2100. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2101. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2102. | -silent | --silent | --silen | --sile | --sil)
  2103. continue ;;
  2104. *\'*)
  2105. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2106. esac
  2107. case $ac_pass in
  2108. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2109. 2)
  2110. as_fn_append ac_configure_args1 " '$ac_arg'"
  2111. if test $ac_must_keep_next = true; then
  2112. ac_must_keep_next=false # Got value, back to normal.
  2113. else
  2114. case $ac_arg in
  2115. *=* | --config-cache | -C | -disable-* | --disable-* \
  2116. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2117. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2118. | -with-* | --with-* | -without-* | --without-* | --x)
  2119. case "$ac_configure_args0 " in
  2120. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2121. esac
  2122. ;;
  2123. -* ) ac_must_keep_next=true ;;
  2124. esac
  2125. fi
  2126. as_fn_append ac_configure_args " '$ac_arg'"
  2127. ;;
  2128. esac
  2129. done
  2130. done
  2131. { ac_configure_args0=; unset ac_configure_args0;}
  2132. { ac_configure_args1=; unset ac_configure_args1;}
  2133. # When interrupted or exit'd, cleanup temporary files, and complete
  2134. # config.log. We remove comments because anyway the quotes in there
  2135. # would cause problems or look ugly.
  2136. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2137. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2138. trap 'exit_status=$?
  2139. # Save into config.log some information that might help in debugging.
  2140. {
  2141. echo
  2142. $as_echo "## ---------------- ##
  2143. ## Cache variables. ##
  2144. ## ---------------- ##"
  2145. echo
  2146. # The following way of writing the cache mishandles newlines in values,
  2147. (
  2148. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2149. eval ac_val=\$$ac_var
  2150. case $ac_val in #(
  2151. *${as_nl}*)
  2152. case $ac_var in #(
  2153. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2154. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2155. esac
  2156. case $ac_var in #(
  2157. _ | IFS | as_nl) ;; #(
  2158. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2159. *) { eval $ac_var=; unset $ac_var;} ;;
  2160. esac ;;
  2161. esac
  2162. done
  2163. (set) 2>&1 |
  2164. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2165. *${as_nl}ac_space=\ *)
  2166. sed -n \
  2167. "s/'\''/'\''\\\\'\'''\''/g;
  2168. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2169. ;; #(
  2170. *)
  2171. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2172. ;;
  2173. esac |
  2174. sort
  2175. )
  2176. echo
  2177. $as_echo "## ----------------- ##
  2178. ## Output variables. ##
  2179. ## ----------------- ##"
  2180. echo
  2181. for ac_var in $ac_subst_vars
  2182. do
  2183. eval ac_val=\$$ac_var
  2184. case $ac_val in
  2185. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2186. esac
  2187. $as_echo "$ac_var='\''$ac_val'\''"
  2188. done | sort
  2189. echo
  2190. if test -n "$ac_subst_files"; then
  2191. $as_echo "## ------------------- ##
  2192. ## File substitutions. ##
  2193. ## ------------------- ##"
  2194. echo
  2195. for ac_var in $ac_subst_files
  2196. do
  2197. eval ac_val=\$$ac_var
  2198. case $ac_val in
  2199. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2200. esac
  2201. $as_echo "$ac_var='\''$ac_val'\''"
  2202. done | sort
  2203. echo
  2204. fi
  2205. if test -s confdefs.h; then
  2206. $as_echo "## ----------- ##
  2207. ## confdefs.h. ##
  2208. ## ----------- ##"
  2209. echo
  2210. cat confdefs.h
  2211. echo
  2212. fi
  2213. test "$ac_signal" != 0 &&
  2214. $as_echo "$as_me: caught signal $ac_signal"
  2215. $as_echo "$as_me: exit $exit_status"
  2216. } >&5
  2217. rm -f core *.core core.conftest.* &&
  2218. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2219. exit $exit_status
  2220. ' 0
  2221. for ac_signal in 1 2 13 15; do
  2222. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2223. done
  2224. ac_signal=0
  2225. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2226. rm -f -r conftest* confdefs.h
  2227. $as_echo "/* confdefs.h */" > confdefs.h
  2228. # Predefined preprocessor variables.
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_NAME "$PACKAGE_NAME"
  2231. _ACEOF
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2237. _ACEOF
  2238. cat >>confdefs.h <<_ACEOF
  2239. #define PACKAGE_STRING "$PACKAGE_STRING"
  2240. _ACEOF
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2243. _ACEOF
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_URL "$PACKAGE_URL"
  2246. _ACEOF
  2247. # Let the site file select an alternate cache file if it wants to.
  2248. # Prefer an explicitly selected file to automatically selected ones.
  2249. ac_site_file1=NONE
  2250. ac_site_file2=NONE
  2251. if test -n "$CONFIG_SITE"; then
  2252. # We do not want a PATH search for config.site.
  2253. case $CONFIG_SITE in #((
  2254. -*) ac_site_file1=./$CONFIG_SITE;;
  2255. */*) ac_site_file1=$CONFIG_SITE;;
  2256. *) ac_site_file1=./$CONFIG_SITE;;
  2257. esac
  2258. elif test "x$prefix" != xNONE; then
  2259. ac_site_file1=$prefix/share/config.site
  2260. ac_site_file2=$prefix/etc/config.site
  2261. else
  2262. ac_site_file1=$ac_default_prefix/share/config.site
  2263. ac_site_file2=$ac_default_prefix/etc/config.site
  2264. fi
  2265. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2266. do
  2267. test "x$ac_site_file" = xNONE && continue
  2268. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2270. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2271. sed 's/^/| /' "$ac_site_file" >&5
  2272. . "$ac_site_file" \
  2273. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2274. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2275. as_fn_error $? "failed to load site script $ac_site_file
  2276. See \`config.log' for more details" "$LINENO" 5 ; }
  2277. fi
  2278. done
  2279. if test -r "$cache_file"; then
  2280. # Some versions of bash will fail to source /dev/null (special files
  2281. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2282. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2284. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2285. case $cache_file in
  2286. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2287. *) . "./$cache_file";;
  2288. esac
  2289. fi
  2290. else
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2292. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2293. >$cache_file
  2294. fi
  2295. # Check that the precious variables saved in the cache have kept the same
  2296. # value.
  2297. ac_cache_corrupted=false
  2298. for ac_var in $ac_precious_vars; do
  2299. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2300. eval ac_new_set=\$ac_env_${ac_var}_set
  2301. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2302. eval ac_new_val=\$ac_env_${ac_var}_value
  2303. case $ac_old_set,$ac_new_set in
  2304. set,)
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2306. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2307. ac_cache_corrupted=: ;;
  2308. ,set)
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2310. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2311. ac_cache_corrupted=: ;;
  2312. ,);;
  2313. *)
  2314. if test "x$ac_old_val" != "x$ac_new_val"; then
  2315. # differences in whitespace do not lead to failure.
  2316. ac_old_val_w=`echo x $ac_old_val`
  2317. ac_new_val_w=`echo x $ac_new_val`
  2318. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2320. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2321. ac_cache_corrupted=:
  2322. else
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2324. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2325. eval $ac_var=\$ac_old_val
  2326. fi
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2328. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2330. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2331. fi;;
  2332. esac
  2333. # Pass precious variables to config.status.
  2334. if test "$ac_new_set" = set; then
  2335. case $ac_new_val in
  2336. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2337. *) ac_arg=$ac_var=$ac_new_val ;;
  2338. esac
  2339. case " $ac_configure_args " in
  2340. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2341. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2342. esac
  2343. fi
  2344. done
  2345. if $ac_cache_corrupted; then
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2347. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2349. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2350. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2351. fi
  2352. ## -------------------- ##
  2353. ## Main body of script. ##
  2354. ## -------------------- ##
  2355. ac_ext=c
  2356. ac_cpp='$CPP $CPPFLAGS'
  2357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2360. # Follow NAME_VER in global.h
  2361. am__api_version='1.11'
  2362. ac_aux_dir=
  2363. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2364. if test -f "$ac_dir/install-sh"; then
  2365. ac_aux_dir=$ac_dir
  2366. ac_install_sh="$ac_aux_dir/install-sh -c"
  2367. break
  2368. elif test -f "$ac_dir/install.sh"; then
  2369. ac_aux_dir=$ac_dir
  2370. ac_install_sh="$ac_aux_dir/install.sh -c"
  2371. break
  2372. elif test -f "$ac_dir/shtool"; then
  2373. ac_aux_dir=$ac_dir
  2374. ac_install_sh="$ac_aux_dir/shtool install -c"
  2375. break
  2376. fi
  2377. done
  2378. if test -z "$ac_aux_dir"; then
  2379. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2380. fi
  2381. # These three variables are undocumented and unsupported,
  2382. # and are intended to be withdrawn in a future Autoconf release.
  2383. # They can cause serious problems if a builder's source tree is in a directory
  2384. # whose full name contains unusual characters.
  2385. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2386. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2387. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2388. # Find a good install program. We prefer a C program (faster),
  2389. # so one script is as good as another. But avoid the broken or
  2390. # incompatible versions:
  2391. # SysV /etc/install, /usr/sbin/install
  2392. # SunOS /usr/etc/install
  2393. # IRIX /sbin/install
  2394. # AIX /bin/install
  2395. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2396. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2397. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2398. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2399. # OS/2's system install, which has a completely different semantic
  2400. # ./install, which can be erroneously created by make from ./install.sh.
  2401. # Reject install programs that cannot install multiple files.
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2403. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2404. if test -z "$INSTALL"; then
  2405. if test "${ac_cv_path_install+set}" = set; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409. for as_dir in $PATH
  2410. do
  2411. IFS=$as_save_IFS
  2412. test -z "$as_dir" && as_dir=.
  2413. # Account for people who put trailing slashes in PATH elements.
  2414. case $as_dir/ in #((
  2415. ./ | .// | /[cC]/* | \
  2416. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2417. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2418. /usr/ucb/* ) ;;
  2419. *)
  2420. # OSF1 and SCO ODT 3.0 have their own names for install.
  2421. # Don't use installbsd from OSF since it installs stuff as root
  2422. # by default.
  2423. for ac_prog in ginstall scoinst install; do
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2426. if test $ac_prog = install &&
  2427. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2428. # AIX install. It has an incompatible calling convention.
  2429. :
  2430. elif test $ac_prog = install &&
  2431. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2432. # program-specific install script used by HP pwplus--don't use.
  2433. :
  2434. else
  2435. rm -rf conftest.one conftest.two conftest.dir
  2436. echo one > conftest.one
  2437. echo two > conftest.two
  2438. mkdir conftest.dir
  2439. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2440. test -s conftest.one && test -s conftest.two &&
  2441. test -s conftest.dir/conftest.one &&
  2442. test -s conftest.dir/conftest.two
  2443. then
  2444. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2445. break 3
  2446. fi
  2447. fi
  2448. fi
  2449. done
  2450. done
  2451. ;;
  2452. esac
  2453. done
  2454. IFS=$as_save_IFS
  2455. rm -rf conftest.one conftest.two conftest.dir
  2456. fi
  2457. if test "${ac_cv_path_install+set}" = set; then
  2458. INSTALL=$ac_cv_path_install
  2459. else
  2460. # As a last resort, use the slow shell script. Don't cache a
  2461. # value for INSTALL within a source directory, because that will
  2462. # break other packages using the cache if that directory is
  2463. # removed, or if the value is a relative name.
  2464. INSTALL=$ac_install_sh
  2465. fi
  2466. fi
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2468. $as_echo "$INSTALL" >&6; }
  2469. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2470. # It thinks the first close brace ends the variable substitution.
  2471. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2472. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2473. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2475. $as_echo_n "checking whether build environment is sane... " >&6; }
  2476. # Just in case
  2477. sleep 1
  2478. echo timestamp > conftest.file
  2479. # Reject unsafe characters in $srcdir or the absolute working directory
  2480. # name. Accept space and tab only in the latter.
  2481. am_lf='
  2482. '
  2483. case `pwd` in
  2484. *[\\\"\#\$\&\'\`$am_lf]*)
  2485. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2486. esac
  2487. case $srcdir in
  2488. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2489. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2490. esac
  2491. # Do `set' in a subshell so we don't clobber the current shell's
  2492. # arguments. Must try -L first in case configure is actually a
  2493. # symlink; some systems play weird games with the mod time of symlinks
  2494. # (eg FreeBSD returns the mod time of the symlink's containing
  2495. # directory).
  2496. if (
  2497. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2498. if test "$*" = "X"; then
  2499. # -L didn't work.
  2500. set X `ls -t "$srcdir/configure" conftest.file`
  2501. fi
  2502. rm -f conftest.file
  2503. if test "$*" != "X $srcdir/configure conftest.file" \
  2504. && test "$*" != "X conftest.file $srcdir/configure"; then
  2505. # If neither matched, then we have a broken ls. This can happen
  2506. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2507. # broken ls alias from the environment. This has actually
  2508. # happened. Such a system could not be considered "sane".
  2509. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2510. alias in your environment" "$LINENO" 5
  2511. fi
  2512. test "$2" = conftest.file
  2513. )
  2514. then
  2515. # Ok.
  2516. :
  2517. else
  2518. as_fn_error $? "newly created file is older than distributed files!
  2519. Check your system clock" "$LINENO" 5
  2520. fi
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2522. $as_echo "yes" >&6; }
  2523. test "$program_prefix" != NONE &&
  2524. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2525. # Use a double $ so make ignores it.
  2526. test "$program_suffix" != NONE &&
  2527. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2528. # Double any \ or $.
  2529. # By default was `s,x,x', remove it if useless.
  2530. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2531. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2532. # expand $ac_aux_dir to an absolute path
  2533. am_aux_dir=`cd $ac_aux_dir && pwd`
  2534. if test x"${MISSING+set}" != xset; then
  2535. case $am_aux_dir in
  2536. *\ * | *\ *)
  2537. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2538. *)
  2539. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2540. esac
  2541. fi
  2542. # Use eval to expand $SHELL
  2543. if eval "$MISSING --run true"; then
  2544. am_missing_run="$MISSING --run "
  2545. else
  2546. am_missing_run=
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2548. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2549. fi
  2550. if test x"${install_sh}" != xset; then
  2551. case $am_aux_dir in
  2552. *\ * | *\ *)
  2553. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2554. *)
  2555. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2556. esac
  2557. fi
  2558. # Installed binaries are usually stripped using `strip' when the user
  2559. # run `make install-strip'. However `strip' might not be the right
  2560. # tool to use in cross-compilation environments, therefore Automake
  2561. # will honor the `STRIP' environment variable to overrule this program.
  2562. if test "$cross_compiling" != no; then
  2563. if test -n "$ac_tool_prefix"; then
  2564. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2565. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2567. $as_echo_n "checking for $ac_word... " >&6; }
  2568. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test -n "$STRIP"; then
  2572. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2573. else
  2574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2575. for as_dir in $PATH
  2576. do
  2577. IFS=$as_save_IFS
  2578. test -z "$as_dir" && as_dir=.
  2579. for ac_exec_ext in '' $ac_executable_extensions; do
  2580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2581. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2583. break 2
  2584. fi
  2585. done
  2586. done
  2587. IFS=$as_save_IFS
  2588. fi
  2589. fi
  2590. STRIP=$ac_cv_prog_STRIP
  2591. if test -n "$STRIP"; then
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2593. $as_echo "$STRIP" >&6; }
  2594. else
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2596. $as_echo "no" >&6; }
  2597. fi
  2598. fi
  2599. if test -z "$ac_cv_prog_STRIP"; then
  2600. ac_ct_STRIP=$STRIP
  2601. # Extract the first word of "strip", so it can be a program name with args.
  2602. set dummy strip; ac_word=$2
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2604. $as_echo_n "checking for $ac_word... " >&6; }
  2605. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. if test -n "$ac_ct_STRIP"; then
  2609. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2618. ac_cv_prog_ac_ct_STRIP="strip"
  2619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. IFS=$as_save_IFS
  2625. fi
  2626. fi
  2627. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2628. if test -n "$ac_ct_STRIP"; then
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2630. $as_echo "$ac_ct_STRIP" >&6; }
  2631. else
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2633. $as_echo "no" >&6; }
  2634. fi
  2635. if test "x$ac_ct_STRIP" = x; then
  2636. STRIP=":"
  2637. else
  2638. case $cross_compiling:$ac_tool_warned in
  2639. yes:)
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2642. ac_tool_warned=yes ;;
  2643. esac
  2644. STRIP=$ac_ct_STRIP
  2645. fi
  2646. else
  2647. STRIP="$ac_cv_prog_STRIP"
  2648. fi
  2649. fi
  2650. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2652. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2653. if test -z "$MKDIR_P"; then
  2654. if test "${ac_cv_path_mkdir+set}" = set; then :
  2655. $as_echo_n "(cached) " >&6
  2656. else
  2657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2658. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2659. do
  2660. IFS=$as_save_IFS
  2661. test -z "$as_dir" && as_dir=.
  2662. for ac_prog in mkdir gmkdir; do
  2663. for ac_exec_ext in '' $ac_executable_extensions; do
  2664. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2665. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2666. 'mkdir (GNU coreutils) '* | \
  2667. 'mkdir (coreutils) '* | \
  2668. 'mkdir (fileutils) '4.1*)
  2669. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2670. break 3;;
  2671. esac
  2672. done
  2673. done
  2674. done
  2675. IFS=$as_save_IFS
  2676. fi
  2677. test -d ./--version && rmdir ./--version
  2678. if test "${ac_cv_path_mkdir+set}" = set; then
  2679. MKDIR_P="$ac_cv_path_mkdir -p"
  2680. else
  2681. # As a last resort, use the slow shell script. Don't cache a
  2682. # value for MKDIR_P within a source directory, because that will
  2683. # break other packages using the cache if that directory is
  2684. # removed, or if the value is a relative name.
  2685. MKDIR_P="$ac_install_sh -d"
  2686. fi
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2689. $as_echo "$MKDIR_P" >&6; }
  2690. mkdir_p="$MKDIR_P"
  2691. case $mkdir_p in
  2692. [\\/$]* | ?:[\\/]*) ;;
  2693. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2694. esac
  2695. for ac_prog in gawk mawk nawk awk
  2696. do
  2697. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2698. set dummy $ac_prog; ac_word=$2
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2700. $as_echo_n "checking for $ac_word... " >&6; }
  2701. if test "${ac_cv_prog_AWK+set}" = set; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. if test -n "$AWK"; then
  2705. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2706. else
  2707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2708. for as_dir in $PATH
  2709. do
  2710. IFS=$as_save_IFS
  2711. test -z "$as_dir" && as_dir=.
  2712. for ac_exec_ext in '' $ac_executable_extensions; do
  2713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2714. ac_cv_prog_AWK="$ac_prog"
  2715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2716. break 2
  2717. fi
  2718. done
  2719. done
  2720. IFS=$as_save_IFS
  2721. fi
  2722. fi
  2723. AWK=$ac_cv_prog_AWK
  2724. if test -n "$AWK"; then
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2726. $as_echo "$AWK" >&6; }
  2727. else
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2729. $as_echo "no" >&6; }
  2730. fi
  2731. test -n "$AWK" && break
  2732. done
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2734. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2735. set x ${MAKE-make}
  2736. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2737. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. cat >conftest.make <<\_ACEOF
  2741. SHELL = /bin/sh
  2742. all:
  2743. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2744. _ACEOF
  2745. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2746. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2747. *@@@%%%=?*=@@@%%%*)
  2748. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2749. *)
  2750. eval ac_cv_prog_make_${ac_make}_set=no;;
  2751. esac
  2752. rm -f conftest.make
  2753. fi
  2754. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2756. $as_echo "yes" >&6; }
  2757. SET_MAKE=
  2758. else
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2760. $as_echo "no" >&6; }
  2761. SET_MAKE="MAKE=${MAKE-make}"
  2762. fi
  2763. rm -rf .tst 2>/dev/null
  2764. mkdir .tst 2>/dev/null
  2765. if test -d .tst; then
  2766. am__leading_dot=.
  2767. else
  2768. am__leading_dot=_
  2769. fi
  2770. rmdir .tst 2>/dev/null
  2771. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2772. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2773. # is not polluted with repeated "-I."
  2774. am__isrc=' -I$(srcdir)'
  2775. # test to see if srcdir already configured
  2776. if test -f $srcdir/config.status; then
  2777. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2778. fi
  2779. fi
  2780. # test whether we have cygpath
  2781. if test -z "$CYGPATH_W"; then
  2782. if (cygpath --version) >/dev/null 2>/dev/null; then
  2783. CYGPATH_W='cygpath -w'
  2784. else
  2785. CYGPATH_W=echo
  2786. fi
  2787. fi
  2788. # Define the identity of the package.
  2789. PACKAGE='vcmi'
  2790. VERSION='0.84b'
  2791. cat >>confdefs.h <<_ACEOF
  2792. #define PACKAGE "$PACKAGE"
  2793. _ACEOF
  2794. cat >>confdefs.h <<_ACEOF
  2795. #define VERSION "$VERSION"
  2796. _ACEOF
  2797. # Some tools Automake needs.
  2798. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2799. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2800. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2801. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2802. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2803. # We need awk for the "check" target. The system "awk" is bad on
  2804. # some platforms.
  2805. # Always define AMTAR for backward compatibility.
  2806. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2807. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2808. # Checks for build toolchain
  2809. ac_ext=cpp
  2810. ac_cpp='$CXXCPP $CPPFLAGS'
  2811. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2812. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2813. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2814. ac_ext=cpp
  2815. ac_cpp='$CXXCPP $CPPFLAGS'
  2816. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2817. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2818. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2819. if test -z "$CXX"; then
  2820. if test -n "$CCC"; then
  2821. CXX=$CCC
  2822. else
  2823. if test -n "$ac_tool_prefix"; then
  2824. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2825. do
  2826. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2827. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2829. $as_echo_n "checking for $ac_word... " >&6; }
  2830. if test "${ac_cv_prog_CXX+set}" = set; then :
  2831. $as_echo_n "(cached) " >&6
  2832. else
  2833. if test -n "$CXX"; then
  2834. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2835. else
  2836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. for ac_exec_ext in '' $ac_executable_extensions; do
  2842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2843. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2845. break 2
  2846. fi
  2847. done
  2848. done
  2849. IFS=$as_save_IFS
  2850. fi
  2851. fi
  2852. CXX=$ac_cv_prog_CXX
  2853. if test -n "$CXX"; then
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2855. $as_echo "$CXX" >&6; }
  2856. else
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2858. $as_echo "no" >&6; }
  2859. fi
  2860. test -n "$CXX" && break
  2861. done
  2862. fi
  2863. if test -z "$CXX"; then
  2864. ac_ct_CXX=$CXX
  2865. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2866. do
  2867. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2868. set dummy $ac_prog; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$ac_ct_CXX"; then
  2875. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2884. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2886. break 2
  2887. fi
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. fi
  2892. fi
  2893. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2894. if test -n "$ac_ct_CXX"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2896. $as_echo "$ac_ct_CXX" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. test -n "$ac_ct_CXX" && break
  2902. done
  2903. if test "x$ac_ct_CXX" = x; then
  2904. CXX="g++"
  2905. else
  2906. case $cross_compiling:$ac_tool_warned in
  2907. yes:)
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2910. ac_tool_warned=yes ;;
  2911. esac
  2912. CXX=$ac_ct_CXX
  2913. fi
  2914. fi
  2915. fi
  2916. fi
  2917. # Provide some information about the compiler.
  2918. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2919. set X $ac_compile
  2920. ac_compiler=$2
  2921. for ac_option in --version -v -V -qversion; do
  2922. { { ac_try="$ac_compiler $ac_option >&5"
  2923. case "(($ac_try" in
  2924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2925. *) ac_try_echo=$ac_try;;
  2926. esac
  2927. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2928. $as_echo "$ac_try_echo"; } >&5
  2929. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2930. ac_status=$?
  2931. if test -s conftest.err; then
  2932. sed '10a\
  2933. ... rest of stderr output deleted ...
  2934. 10q' conftest.err >conftest.er1
  2935. cat conftest.er1 >&5
  2936. fi
  2937. rm -f conftest.er1 conftest.err
  2938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2939. test $ac_status = 0; }
  2940. done
  2941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2942. /* end confdefs.h. */
  2943. int
  2944. main ()
  2945. {
  2946. ;
  2947. return 0;
  2948. }
  2949. _ACEOF
  2950. ac_clean_files_save=$ac_clean_files
  2951. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2952. # Try to create an executable without -o first, disregard a.out.
  2953. # It will help us diagnose broken compilers, and finding out an intuition
  2954. # of exeext.
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2956. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2957. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2958. # The possible output files:
  2959. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2960. ac_rmfiles=
  2961. for ac_file in $ac_files
  2962. do
  2963. case $ac_file in
  2964. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2965. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2966. esac
  2967. done
  2968. rm -f $ac_rmfiles
  2969. if { { ac_try="$ac_link_default"
  2970. case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2975. $as_echo "$ac_try_echo"; } >&5
  2976. (eval "$ac_link_default") 2>&5
  2977. ac_status=$?
  2978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2979. test $ac_status = 0; }; then :
  2980. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2981. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2982. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2983. # so that the user can short-circuit this test for compilers unknown to
  2984. # Autoconf.
  2985. for ac_file in $ac_files ''
  2986. do
  2987. test -f "$ac_file" || continue
  2988. case $ac_file in
  2989. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2990. ;;
  2991. [ab].out )
  2992. # We found the default executable, but exeext='' is most
  2993. # certainly right.
  2994. break;;
  2995. *.* )
  2996. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2997. then :; else
  2998. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2999. fi
  3000. # We set ac_cv_exeext here because the later test for it is not
  3001. # safe: cross compilers may not add the suffix if given an `-o'
  3002. # argument, so we may need to know it at that point already.
  3003. # Even if this section looks crufty: it has the advantage of
  3004. # actually working.
  3005. break;;
  3006. * )
  3007. break;;
  3008. esac
  3009. done
  3010. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3011. else
  3012. ac_file=''
  3013. fi
  3014. if test -z "$ac_file"; then :
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3016. $as_echo "no" >&6; }
  3017. $as_echo "$as_me: failed program was:" >&5
  3018. sed 's/^/| /' conftest.$ac_ext >&5
  3019. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3020. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3021. as_fn_error 77 "C++ compiler cannot create executables
  3022. See \`config.log' for more details" "$LINENO" 5 ; }
  3023. else
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3025. $as_echo "yes" >&6; }
  3026. fi
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3028. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3030. $as_echo "$ac_file" >&6; }
  3031. ac_exeext=$ac_cv_exeext
  3032. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3033. ac_clean_files=$ac_clean_files_save
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3035. $as_echo_n "checking for suffix of executables... " >&6; }
  3036. if { { ac_try="$ac_link"
  3037. case "(($ac_try" in
  3038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3039. *) ac_try_echo=$ac_try;;
  3040. esac
  3041. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3042. $as_echo "$ac_try_echo"; } >&5
  3043. (eval "$ac_link") 2>&5
  3044. ac_status=$?
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3046. test $ac_status = 0; }; then :
  3047. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3048. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3049. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3050. # `rm'.
  3051. for ac_file in conftest.exe conftest conftest.*; do
  3052. test -f "$ac_file" || continue
  3053. case $ac_file in
  3054. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3055. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3056. break;;
  3057. * ) break;;
  3058. esac
  3059. done
  3060. else
  3061. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3063. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3064. See \`config.log' for more details" "$LINENO" 5 ; }
  3065. fi
  3066. rm -f conftest conftest$ac_cv_exeext
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3068. $as_echo "$ac_cv_exeext" >&6; }
  3069. rm -f conftest.$ac_ext
  3070. EXEEXT=$ac_cv_exeext
  3071. ac_exeext=$EXEEXT
  3072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3073. /* end confdefs.h. */
  3074. #include <stdio.h>
  3075. int
  3076. main ()
  3077. {
  3078. FILE *f = fopen ("conftest.out", "w");
  3079. return ferror (f) || fclose (f) != 0;
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. ac_clean_files="$ac_clean_files conftest.out"
  3085. # Check that the compiler produces executables we can run. If not, either
  3086. # the compiler is broken, or we cross compile.
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3088. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3089. if test "$cross_compiling" != yes; then
  3090. { { ac_try="$ac_link"
  3091. case "(($ac_try" in
  3092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3093. *) ac_try_echo=$ac_try;;
  3094. esac
  3095. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3096. $as_echo "$ac_try_echo"; } >&5
  3097. (eval "$ac_link") 2>&5
  3098. ac_status=$?
  3099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3100. test $ac_status = 0; }
  3101. if { ac_try='./conftest$ac_cv_exeext'
  3102. { { case "(($ac_try" in
  3103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3104. *) ac_try_echo=$ac_try;;
  3105. esac
  3106. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3107. $as_echo "$ac_try_echo"; } >&5
  3108. (eval "$ac_try") 2>&5
  3109. ac_status=$?
  3110. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3111. test $ac_status = 0; }; }; then
  3112. cross_compiling=no
  3113. else
  3114. if test "$cross_compiling" = maybe; then
  3115. cross_compiling=yes
  3116. else
  3117. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3118. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3119. as_fn_error $? "cannot run C++ compiled programs.
  3120. If you meant to cross compile, use \`--host'.
  3121. See \`config.log' for more details" "$LINENO" 5 ; }
  3122. fi
  3123. fi
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3126. $as_echo "$cross_compiling" >&6; }
  3127. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3128. ac_clean_files=$ac_clean_files_save
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3130. $as_echo_n "checking for suffix of object files... " >&6; }
  3131. if test "${ac_cv_objext+set}" = set; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136. int
  3137. main ()
  3138. {
  3139. ;
  3140. return 0;
  3141. }
  3142. _ACEOF
  3143. rm -f conftest.o conftest.obj
  3144. if { { ac_try="$ac_compile"
  3145. case "(($ac_try" in
  3146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3147. *) ac_try_echo=$ac_try;;
  3148. esac
  3149. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3150. $as_echo "$ac_try_echo"; } >&5
  3151. (eval "$ac_compile") 2>&5
  3152. ac_status=$?
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3154. test $ac_status = 0; }; then :
  3155. for ac_file in conftest.o conftest.obj conftest.*; do
  3156. test -f "$ac_file" || continue;
  3157. case $ac_file in
  3158. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3159. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3160. break;;
  3161. esac
  3162. done
  3163. else
  3164. $as_echo "$as_me: failed program was:" >&5
  3165. sed 's/^/| /' conftest.$ac_ext >&5
  3166. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3168. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3169. See \`config.log' for more details" "$LINENO" 5 ; }
  3170. fi
  3171. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3172. fi
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3174. $as_echo "$ac_cv_objext" >&6; }
  3175. OBJEXT=$ac_cv_objext
  3176. ac_objext=$OBJEXT
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3178. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3179. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3180. $as_echo_n "(cached) " >&6
  3181. else
  3182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3183. /* end confdefs.h. */
  3184. int
  3185. main ()
  3186. {
  3187. #ifndef __GNUC__
  3188. choke me
  3189. #endif
  3190. ;
  3191. return 0;
  3192. }
  3193. _ACEOF
  3194. if ac_fn_cxx_try_compile "$LINENO"; then :
  3195. ac_compiler_gnu=yes
  3196. else
  3197. ac_compiler_gnu=no
  3198. fi
  3199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3200. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3201. fi
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3203. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3204. if test $ac_compiler_gnu = yes; then
  3205. GXX=yes
  3206. else
  3207. GXX=
  3208. fi
  3209. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3210. ac_save_CXXFLAGS=$CXXFLAGS
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3212. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3213. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3217. ac_cxx_werror_flag=yes
  3218. ac_cv_prog_cxx_g=no
  3219. CXXFLAGS="-g"
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. if ac_fn_cxx_try_compile "$LINENO"; then :
  3230. ac_cv_prog_cxx_g=yes
  3231. else
  3232. CXXFLAGS=""
  3233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3234. /* end confdefs.h. */
  3235. int
  3236. main ()
  3237. {
  3238. ;
  3239. return 0;
  3240. }
  3241. _ACEOF
  3242. if ac_fn_cxx_try_compile "$LINENO"; then :
  3243. else
  3244. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3245. CXXFLAGS="-g"
  3246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3247. /* end confdefs.h. */
  3248. int
  3249. main ()
  3250. {
  3251. ;
  3252. return 0;
  3253. }
  3254. _ACEOF
  3255. if ac_fn_cxx_try_compile "$LINENO"; then :
  3256. ac_cv_prog_cxx_g=yes
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259. fi
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. fi
  3262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3263. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3266. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3267. if test "$ac_test_CXXFLAGS" = set; then
  3268. CXXFLAGS=$ac_save_CXXFLAGS
  3269. elif test $ac_cv_prog_cxx_g = yes; then
  3270. if test "$GXX" = yes; then
  3271. CXXFLAGS="-g -O2"
  3272. else
  3273. CXXFLAGS="-g"
  3274. fi
  3275. else
  3276. if test "$GXX" = yes; then
  3277. CXXFLAGS="-O2"
  3278. else
  3279. CXXFLAGS=
  3280. fi
  3281. fi
  3282. ac_ext=cpp
  3283. ac_cpp='$CXXCPP $CPPFLAGS'
  3284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3287. DEPDIR="${am__leading_dot}deps"
  3288. ac_config_commands="$ac_config_commands depfiles"
  3289. am_make=${MAKE-make}
  3290. cat > confinc << 'END'
  3291. am__doit:
  3292. @echo this is the am__doit target
  3293. .PHONY: am__doit
  3294. END
  3295. # If we don't find an include directive, just comment out the code.
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3297. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3298. am__include="#"
  3299. am__quote=
  3300. _am_result=none
  3301. # First try GNU make style include.
  3302. echo "include confinc" > confmf
  3303. # Ignore all kinds of additional output from `make'.
  3304. case `$am_make -s -f confmf 2> /dev/null` in #(
  3305. *the\ am__doit\ target*)
  3306. am__include=include
  3307. am__quote=
  3308. _am_result=GNU
  3309. ;;
  3310. esac
  3311. # Now try BSD make style include.
  3312. if test "$am__include" = "#"; then
  3313. echo '.include "confinc"' > confmf
  3314. case `$am_make -s -f confmf 2> /dev/null` in #(
  3315. *the\ am__doit\ target*)
  3316. am__include=.include
  3317. am__quote="\""
  3318. _am_result=BSD
  3319. ;;
  3320. esac
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3323. $as_echo "$_am_result" >&6; }
  3324. rm -f confinc confmf
  3325. # Check whether --enable-dependency-tracking was given.
  3326. if test "${enable_dependency_tracking+set}" = set; then :
  3327. enableval=$enable_dependency_tracking;
  3328. fi
  3329. if test "x$enable_dependency_tracking" != xno; then
  3330. am_depcomp="$ac_aux_dir/depcomp"
  3331. AMDEPBACKSLASH='\'
  3332. fi
  3333. if test "x$enable_dependency_tracking" != xno; then
  3334. AMDEP_TRUE=
  3335. AMDEP_FALSE='#'
  3336. else
  3337. AMDEP_TRUE='#'
  3338. AMDEP_FALSE=
  3339. fi
  3340. depcc="$CXX" am_compiler_list=
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3342. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3343. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3347. # We make a subdir and do the tests there. Otherwise we can end up
  3348. # making bogus files that we don't know about and never remove. For
  3349. # instance it was reported that on HP-UX the gcc test will end up
  3350. # making a dummy file named `D' -- because `-MD' means `put the output
  3351. # in D'.
  3352. mkdir conftest.dir
  3353. # Copy depcomp to subdir because otherwise we won't find it if we're
  3354. # using a relative directory.
  3355. cp "$am_depcomp" conftest.dir
  3356. cd conftest.dir
  3357. # We will build objects and dependencies in a subdirectory because
  3358. # it helps to detect inapplicable dependency modes. For instance
  3359. # both Tru64's cc and ICC support -MD to output dependencies as a
  3360. # side effect of compilation, but ICC will put the dependencies in
  3361. # the current directory while Tru64 will put them in the object
  3362. # directory.
  3363. mkdir sub
  3364. am_cv_CXX_dependencies_compiler_type=none
  3365. if test "$am_compiler_list" = ""; then
  3366. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3367. fi
  3368. am__universal=false
  3369. case " $depcc " in #(
  3370. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3371. esac
  3372. for depmode in $am_compiler_list; do
  3373. # Setup a source with many dependencies, because some compilers
  3374. # like to wrap large dependency lists on column 80 (with \), and
  3375. # we should not choose a depcomp mode which is confused by this.
  3376. #
  3377. # We need to recreate these files for each test, as the compiler may
  3378. # overwrite some of them when testing with obscure command lines.
  3379. # This happens at least with the AIX C compiler.
  3380. : > sub/conftest.c
  3381. for i in 1 2 3 4 5 6; do
  3382. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3383. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3384. # Solaris 8's {/usr,}/bin/sh.
  3385. touch sub/conftst$i.h
  3386. done
  3387. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3388. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3389. # mode. It turns out that the SunPro C++ compiler does not properly
  3390. # handle `-M -o', and we need to detect this. Also, some Intel
  3391. # versions had trouble with output in subdirs
  3392. am__obj=sub/conftest.${OBJEXT-o}
  3393. am__minus_obj="-o $am__obj"
  3394. case $depmode in
  3395. gcc)
  3396. # This depmode causes a compiler race in universal mode.
  3397. test "$am__universal" = false || continue
  3398. ;;
  3399. nosideeffect)
  3400. # after this tag, mechanisms are not by side-effect, so they'll
  3401. # only be used when explicitly requested
  3402. if test "x$enable_dependency_tracking" = xyes; then
  3403. continue
  3404. else
  3405. break
  3406. fi
  3407. ;;
  3408. msvisualcpp | msvcmsys)
  3409. # This compiler won't grok `-c -o', but also, the minuso test has
  3410. # not run yet. These depmodes are late enough in the game, and
  3411. # so weak that their functioning should not be impacted.
  3412. am__obj=conftest.${OBJEXT-o}
  3413. am__minus_obj=
  3414. ;;
  3415. none) break ;;
  3416. esac
  3417. if depmode=$depmode \
  3418. source=sub/conftest.c object=$am__obj \
  3419. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3420. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3421. >/dev/null 2>conftest.err &&
  3422. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3423. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3424. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3425. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3426. # icc doesn't choke on unknown options, it will just issue warnings
  3427. # or remarks (even with -Werror). So we grep stderr for any message
  3428. # that says an option was ignored or not supported.
  3429. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3430. # icc: Command line warning: ignoring option '-M'; no argument required
  3431. # The diagnosis changed in icc 8.0:
  3432. # icc: Command line remark: option '-MP' not supported
  3433. if (grep 'ignoring option' conftest.err ||
  3434. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3435. am_cv_CXX_dependencies_compiler_type=$depmode
  3436. break
  3437. fi
  3438. fi
  3439. done
  3440. cd ..
  3441. rm -rf conftest.dir
  3442. else
  3443. am_cv_CXX_dependencies_compiler_type=none
  3444. fi
  3445. fi
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3447. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3448. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3449. if
  3450. test "x$enable_dependency_tracking" != xno \
  3451. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3452. am__fastdepCXX_TRUE=
  3453. am__fastdepCXX_FALSE='#'
  3454. else
  3455. am__fastdepCXX_TRUE='#'
  3456. am__fastdepCXX_FALSE=
  3457. fi
  3458. # Check whether --enable-shared was given.
  3459. if test "${enable_shared+set}" = set; then :
  3460. enableval=$enable_shared; p=${PACKAGE-default}
  3461. case $enableval in
  3462. yes) enable_shared=yes ;;
  3463. no) enable_shared=no ;;
  3464. *)
  3465. enable_shared=no
  3466. # Look at the argument we got. We use all the common list separators.
  3467. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3468. for pkg in $enableval; do
  3469. IFS="$lt_save_ifs"
  3470. if test "X$pkg" = "X$p"; then
  3471. enable_shared=yes
  3472. fi
  3473. done
  3474. IFS="$lt_save_ifs"
  3475. ;;
  3476. esac
  3477. else
  3478. enable_shared=yes
  3479. fi
  3480. # Check whether --enable-static was given.
  3481. if test "${enable_static+set}" = set; then :
  3482. enableval=$enable_static; p=${PACKAGE-default}
  3483. case $enableval in
  3484. yes) enable_static=yes ;;
  3485. no) enable_static=no ;;
  3486. *)
  3487. enable_static=no
  3488. # Look at the argument we got. We use all the common list separators.
  3489. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3490. for pkg in $enableval; do
  3491. IFS="$lt_save_ifs"
  3492. if test "X$pkg" = "X$p"; then
  3493. enable_static=yes
  3494. fi
  3495. done
  3496. IFS="$lt_save_ifs"
  3497. ;;
  3498. esac
  3499. else
  3500. enable_static=no
  3501. fi
  3502. case `pwd` in
  3503. *\ * | *\ *)
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3505. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3506. esac
  3507. macro_version='2.2.6b'
  3508. macro_revision='1.3017'
  3509. ltmain="$ac_aux_dir/ltmain.sh"
  3510. # Make sure we can run config.sub.
  3511. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3512. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3514. $as_echo_n "checking build system type... " >&6; }
  3515. if test "${ac_cv_build+set}" = set; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. ac_build_alias=$build_alias
  3519. test "x$ac_build_alias" = x &&
  3520. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3521. test "x$ac_build_alias" = x &&
  3522. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3523. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3524. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3525. fi
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3527. $as_echo "$ac_cv_build" >&6; }
  3528. case $ac_cv_build in
  3529. *-*-*) ;;
  3530. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3531. esac
  3532. build=$ac_cv_build
  3533. ac_save_IFS=$IFS; IFS='-'
  3534. set x $ac_cv_build
  3535. shift
  3536. build_cpu=$1
  3537. build_vendor=$2
  3538. shift; shift
  3539. # Remember, the first character of IFS is used to create $*,
  3540. # except with old shells:
  3541. build_os=$*
  3542. IFS=$ac_save_IFS
  3543. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3545. $as_echo_n "checking host system type... " >&6; }
  3546. if test "${ac_cv_host+set}" = set; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. if test "x$host_alias" = x; then
  3550. ac_cv_host=$ac_cv_build
  3551. else
  3552. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3553. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3554. fi
  3555. fi
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3557. $as_echo "$ac_cv_host" >&6; }
  3558. case $ac_cv_host in
  3559. *-*-*) ;;
  3560. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3561. esac
  3562. host=$ac_cv_host
  3563. ac_save_IFS=$IFS; IFS='-'
  3564. set x $ac_cv_host
  3565. shift
  3566. host_cpu=$1
  3567. host_vendor=$2
  3568. shift; shift
  3569. # Remember, the first character of IFS is used to create $*,
  3570. # except with old shells:
  3571. host_os=$*
  3572. IFS=$ac_save_IFS
  3573. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3574. ac_ext=c
  3575. ac_cpp='$CPP $CPPFLAGS'
  3576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3579. if test -n "$ac_tool_prefix"; then
  3580. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3581. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3583. $as_echo_n "checking for $ac_word... " >&6; }
  3584. if test "${ac_cv_prog_CC+set}" = set; then :
  3585. $as_echo_n "(cached) " >&6
  3586. else
  3587. if test -n "$CC"; then
  3588. ac_cv_prog_CC="$CC" # Let the user override the test.
  3589. else
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH
  3592. do
  3593. IFS=$as_save_IFS
  3594. test -z "$as_dir" && as_dir=.
  3595. for ac_exec_ext in '' $ac_executable_extensions; do
  3596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3597. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3599. break 2
  3600. fi
  3601. done
  3602. done
  3603. IFS=$as_save_IFS
  3604. fi
  3605. fi
  3606. CC=$ac_cv_prog_CC
  3607. if test -n "$CC"; then
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3609. $as_echo "$CC" >&6; }
  3610. else
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3612. $as_echo "no" >&6; }
  3613. fi
  3614. fi
  3615. if test -z "$ac_cv_prog_CC"; then
  3616. ac_ct_CC=$CC
  3617. # Extract the first word of "gcc", so it can be a program name with args.
  3618. set dummy gcc; ac_word=$2
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3620. $as_echo_n "checking for $ac_word... " >&6; }
  3621. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. if test -n "$ac_ct_CC"; then
  3625. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3626. else
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3634. ac_cv_prog_ac_ct_CC="gcc"
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3636. break 2
  3637. fi
  3638. done
  3639. done
  3640. IFS=$as_save_IFS
  3641. fi
  3642. fi
  3643. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3644. if test -n "$ac_ct_CC"; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3646. $as_echo "$ac_ct_CC" >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. if test "x$ac_ct_CC" = x; then
  3652. CC=""
  3653. else
  3654. case $cross_compiling:$ac_tool_warned in
  3655. yes:)
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3658. ac_tool_warned=yes ;;
  3659. esac
  3660. CC=$ac_ct_CC
  3661. fi
  3662. else
  3663. CC="$ac_cv_prog_CC"
  3664. fi
  3665. if test -z "$CC"; then
  3666. if test -n "$ac_tool_prefix"; then
  3667. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3668. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if test "${ac_cv_prog_CC+set}" = set; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$CC"; then
  3675. ac_cv_prog_CC="$CC" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3684. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. fi
  3692. fi
  3693. CC=$ac_cv_prog_CC
  3694. if test -n "$CC"; then
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3696. $as_echo "$CC" >&6; }
  3697. else
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3699. $as_echo "no" >&6; }
  3700. fi
  3701. fi
  3702. fi
  3703. if test -z "$CC"; then
  3704. # Extract the first word of "cc", so it can be a program name with args.
  3705. set dummy cc; ac_word=$2
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3707. $as_echo_n "checking for $ac_word... " >&6; }
  3708. if test "${ac_cv_prog_CC+set}" = set; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if test -n "$CC"; then
  3712. ac_cv_prog_CC="$CC" # Let the user override the test.
  3713. else
  3714. ac_prog_rejected=no
  3715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3716. for as_dir in $PATH
  3717. do
  3718. IFS=$as_save_IFS
  3719. test -z "$as_dir" && as_dir=.
  3720. for ac_exec_ext in '' $ac_executable_extensions; do
  3721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3722. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3723. ac_prog_rejected=yes
  3724. continue
  3725. fi
  3726. ac_cv_prog_CC="cc"
  3727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3728. break 2
  3729. fi
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. if test $ac_prog_rejected = yes; then
  3734. # We found a bogon in the path, so make sure we never use it.
  3735. set dummy $ac_cv_prog_CC
  3736. shift
  3737. if test $# != 0; then
  3738. # We chose a different compiler from the bogus one.
  3739. # However, it has the same basename, so the bogon will be chosen
  3740. # first if we set CC to just the basename; use the full file name.
  3741. shift
  3742. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3743. fi
  3744. fi
  3745. fi
  3746. fi
  3747. CC=$ac_cv_prog_CC
  3748. if test -n "$CC"; then
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3750. $as_echo "$CC" >&6; }
  3751. else
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3753. $as_echo "no" >&6; }
  3754. fi
  3755. fi
  3756. if test -z "$CC"; then
  3757. if test -n "$ac_tool_prefix"; then
  3758. for ac_prog in cl.exe
  3759. do
  3760. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3761. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3763. $as_echo_n "checking for $ac_word... " >&6; }
  3764. if test "${ac_cv_prog_CC+set}" = set; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -n "$CC"; then
  3768. ac_cv_prog_CC="$CC" # Let the user override the test.
  3769. else
  3770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3771. for as_dir in $PATH
  3772. do
  3773. IFS=$as_save_IFS
  3774. test -z "$as_dir" && as_dir=.
  3775. for ac_exec_ext in '' $ac_executable_extensions; do
  3776. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3777. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3779. break 2
  3780. fi
  3781. done
  3782. done
  3783. IFS=$as_save_IFS
  3784. fi
  3785. fi
  3786. CC=$ac_cv_prog_CC
  3787. if test -n "$CC"; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3789. $as_echo "$CC" >&6; }
  3790. else
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. $as_echo "no" >&6; }
  3793. fi
  3794. test -n "$CC" && break
  3795. done
  3796. fi
  3797. if test -z "$CC"; then
  3798. ac_ct_CC=$CC
  3799. for ac_prog in cl.exe
  3800. do
  3801. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3802. set dummy $ac_prog; ac_word=$2
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3804. $as_echo_n "checking for $ac_word... " >&6; }
  3805. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$ac_ct_CC"; then
  3809. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3810. else
  3811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812. for as_dir in $PATH
  3813. do
  3814. IFS=$as_save_IFS
  3815. test -z "$as_dir" && as_dir=.
  3816. for ac_exec_ext in '' $ac_executable_extensions; do
  3817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3818. ac_cv_prog_ac_ct_CC="$ac_prog"
  3819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3820. break 2
  3821. fi
  3822. done
  3823. done
  3824. IFS=$as_save_IFS
  3825. fi
  3826. fi
  3827. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3828. if test -n "$ac_ct_CC"; then
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3830. $as_echo "$ac_ct_CC" >&6; }
  3831. else
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3833. $as_echo "no" >&6; }
  3834. fi
  3835. test -n "$ac_ct_CC" && break
  3836. done
  3837. if test "x$ac_ct_CC" = x; then
  3838. CC=""
  3839. else
  3840. case $cross_compiling:$ac_tool_warned in
  3841. yes:)
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3844. ac_tool_warned=yes ;;
  3845. esac
  3846. CC=$ac_ct_CC
  3847. fi
  3848. fi
  3849. fi
  3850. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3852. as_fn_error $? "no acceptable C compiler found in \$PATH
  3853. See \`config.log' for more details" "$LINENO" 5 ; }
  3854. # Provide some information about the compiler.
  3855. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3856. set X $ac_compile
  3857. ac_compiler=$2
  3858. for ac_option in --version -v -V -qversion; do
  3859. { { ac_try="$ac_compiler $ac_option >&5"
  3860. case "(($ac_try" in
  3861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3862. *) ac_try_echo=$ac_try;;
  3863. esac
  3864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3865. $as_echo "$ac_try_echo"; } >&5
  3866. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3867. ac_status=$?
  3868. if test -s conftest.err; then
  3869. sed '10a\
  3870. ... rest of stderr output deleted ...
  3871. 10q' conftest.err >conftest.er1
  3872. cat conftest.er1 >&5
  3873. fi
  3874. rm -f conftest.er1 conftest.err
  3875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3876. test $ac_status = 0; }
  3877. done
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3879. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3880. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3884. /* end confdefs.h. */
  3885. int
  3886. main ()
  3887. {
  3888. #ifndef __GNUC__
  3889. choke me
  3890. #endif
  3891. ;
  3892. return 0;
  3893. }
  3894. _ACEOF
  3895. if ac_fn_c_try_compile "$LINENO"; then :
  3896. ac_compiler_gnu=yes
  3897. else
  3898. ac_compiler_gnu=no
  3899. fi
  3900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3901. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3902. fi
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3904. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3905. if test $ac_compiler_gnu = yes; then
  3906. GCC=yes
  3907. else
  3908. GCC=
  3909. fi
  3910. ac_test_CFLAGS=${CFLAGS+set}
  3911. ac_save_CFLAGS=$CFLAGS
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3913. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3914. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. ac_save_c_werror_flag=$ac_c_werror_flag
  3918. ac_c_werror_flag=yes
  3919. ac_cv_prog_cc_g=no
  3920. CFLAGS="-g"
  3921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3922. /* end confdefs.h. */
  3923. int
  3924. main ()
  3925. {
  3926. ;
  3927. return 0;
  3928. }
  3929. _ACEOF
  3930. if ac_fn_c_try_compile "$LINENO"; then :
  3931. ac_cv_prog_cc_g=yes
  3932. else
  3933. CFLAGS=""
  3934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3935. /* end confdefs.h. */
  3936. int
  3937. main ()
  3938. {
  3939. ;
  3940. return 0;
  3941. }
  3942. _ACEOF
  3943. if ac_fn_c_try_compile "$LINENO"; then :
  3944. else
  3945. ac_c_werror_flag=$ac_save_c_werror_flag
  3946. CFLAGS="-g"
  3947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3948. /* end confdefs.h. */
  3949. int
  3950. main ()
  3951. {
  3952. ;
  3953. return 0;
  3954. }
  3955. _ACEOF
  3956. if ac_fn_c_try_compile "$LINENO"; then :
  3957. ac_cv_prog_cc_g=yes
  3958. fi
  3959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3960. fi
  3961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3962. fi
  3963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3964. ac_c_werror_flag=$ac_save_c_werror_flag
  3965. fi
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3967. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3968. if test "$ac_test_CFLAGS" = set; then
  3969. CFLAGS=$ac_save_CFLAGS
  3970. elif test $ac_cv_prog_cc_g = yes; then
  3971. if test "$GCC" = yes; then
  3972. CFLAGS="-g -O2"
  3973. else
  3974. CFLAGS="-g"
  3975. fi
  3976. else
  3977. if test "$GCC" = yes; then
  3978. CFLAGS="-O2"
  3979. else
  3980. CFLAGS=
  3981. fi
  3982. fi
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3984. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3985. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. ac_cv_prog_cc_c89=no
  3989. ac_save_CC=$CC
  3990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3991. /* end confdefs.h. */
  3992. #include <stdarg.h>
  3993. #include <stdio.h>
  3994. #include <sys/types.h>
  3995. #include <sys/stat.h>
  3996. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3997. struct buf { int x; };
  3998. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3999. static char *e (p, i)
  4000. char **p;
  4001. int i;
  4002. {
  4003. return p[i];
  4004. }
  4005. static char *f (char * (*g) (char **, int), char **p, ...)
  4006. {
  4007. char *s;
  4008. va_list v;
  4009. va_start (v,p);
  4010. s = g (p, va_arg (v,int));
  4011. va_end (v);
  4012. return s;
  4013. }
  4014. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4015. function prototypes and stuff, but not '\xHH' hex character constants.
  4016. These don't provoke an error unfortunately, instead are silently treated
  4017. as 'x'. The following induces an error, until -std is added to get
  4018. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4019. array size at least. It's necessary to write '\x00'==0 to get something
  4020. that's true only with -std. */
  4021. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4022. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4023. inside strings and character constants. */
  4024. #define FOO(x) 'x'
  4025. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4026. int test (int i, double x);
  4027. struct s1 {int (*f) (int a);};
  4028. struct s2 {int (*f) (double a);};
  4029. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4030. int argc;
  4031. char **argv;
  4032. int
  4033. main ()
  4034. {
  4035. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4036. ;
  4037. return 0;
  4038. }
  4039. _ACEOF
  4040. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4041. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4042. do
  4043. CC="$ac_save_CC $ac_arg"
  4044. if ac_fn_c_try_compile "$LINENO"; then :
  4045. ac_cv_prog_cc_c89=$ac_arg
  4046. fi
  4047. rm -f core conftest.err conftest.$ac_objext
  4048. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4049. done
  4050. rm -f conftest.$ac_ext
  4051. CC=$ac_save_CC
  4052. fi
  4053. # AC_CACHE_VAL
  4054. case "x$ac_cv_prog_cc_c89" in
  4055. x)
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4057. $as_echo "none needed" >&6; } ;;
  4058. xno)
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4060. $as_echo "unsupported" >&6; } ;;
  4061. *)
  4062. CC="$CC $ac_cv_prog_cc_c89"
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4064. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4065. esac
  4066. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4067. fi
  4068. ac_ext=cpp
  4069. ac_cpp='$CXXCPP $CPPFLAGS'
  4070. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4071. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4072. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4073. depcc="$CC" am_compiler_list=
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4075. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4076. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4080. # We make a subdir and do the tests there. Otherwise we can end up
  4081. # making bogus files that we don't know about and never remove. For
  4082. # instance it was reported that on HP-UX the gcc test will end up
  4083. # making a dummy file named `D' -- because `-MD' means `put the output
  4084. # in D'.
  4085. mkdir conftest.dir
  4086. # Copy depcomp to subdir because otherwise we won't find it if we're
  4087. # using a relative directory.
  4088. cp "$am_depcomp" conftest.dir
  4089. cd conftest.dir
  4090. # We will build objects and dependencies in a subdirectory because
  4091. # it helps to detect inapplicable dependency modes. For instance
  4092. # both Tru64's cc and ICC support -MD to output dependencies as a
  4093. # side effect of compilation, but ICC will put the dependencies in
  4094. # the current directory while Tru64 will put them in the object
  4095. # directory.
  4096. mkdir sub
  4097. am_cv_CC_dependencies_compiler_type=none
  4098. if test "$am_compiler_list" = ""; then
  4099. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4100. fi
  4101. am__universal=false
  4102. case " $depcc " in #(
  4103. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4104. esac
  4105. for depmode in $am_compiler_list; do
  4106. # Setup a source with many dependencies, because some compilers
  4107. # like to wrap large dependency lists on column 80 (with \), and
  4108. # we should not choose a depcomp mode which is confused by this.
  4109. #
  4110. # We need to recreate these files for each test, as the compiler may
  4111. # overwrite some of them when testing with obscure command lines.
  4112. # This happens at least with the AIX C compiler.
  4113. : > sub/conftest.c
  4114. for i in 1 2 3 4 5 6; do
  4115. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4116. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4117. # Solaris 8's {/usr,}/bin/sh.
  4118. touch sub/conftst$i.h
  4119. done
  4120. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4121. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4122. # mode. It turns out that the SunPro C++ compiler does not properly
  4123. # handle `-M -o', and we need to detect this. Also, some Intel
  4124. # versions had trouble with output in subdirs
  4125. am__obj=sub/conftest.${OBJEXT-o}
  4126. am__minus_obj="-o $am__obj"
  4127. case $depmode in
  4128. gcc)
  4129. # This depmode causes a compiler race in universal mode.
  4130. test "$am__universal" = false || continue
  4131. ;;
  4132. nosideeffect)
  4133. # after this tag, mechanisms are not by side-effect, so they'll
  4134. # only be used when explicitly requested
  4135. if test "x$enable_dependency_tracking" = xyes; then
  4136. continue
  4137. else
  4138. break
  4139. fi
  4140. ;;
  4141. msvisualcpp | msvcmsys)
  4142. # This compiler won't grok `-c -o', but also, the minuso test has
  4143. # not run yet. These depmodes are late enough in the game, and
  4144. # so weak that their functioning should not be impacted.
  4145. am__obj=conftest.${OBJEXT-o}
  4146. am__minus_obj=
  4147. ;;
  4148. none) break ;;
  4149. esac
  4150. if depmode=$depmode \
  4151. source=sub/conftest.c object=$am__obj \
  4152. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4153. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4154. >/dev/null 2>conftest.err &&
  4155. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4156. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4157. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4158. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4159. # icc doesn't choke on unknown options, it will just issue warnings
  4160. # or remarks (even with -Werror). So we grep stderr for any message
  4161. # that says an option was ignored or not supported.
  4162. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4163. # icc: Command line warning: ignoring option '-M'; no argument required
  4164. # The diagnosis changed in icc 8.0:
  4165. # icc: Command line remark: option '-MP' not supported
  4166. if (grep 'ignoring option' conftest.err ||
  4167. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4168. am_cv_CC_dependencies_compiler_type=$depmode
  4169. break
  4170. fi
  4171. fi
  4172. done
  4173. cd ..
  4174. rm -rf conftest.dir
  4175. else
  4176. am_cv_CC_dependencies_compiler_type=none
  4177. fi
  4178. fi
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4180. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4181. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4182. if
  4183. test "x$enable_dependency_tracking" != xno \
  4184. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4185. am__fastdepCC_TRUE=
  4186. am__fastdepCC_FALSE='#'
  4187. else
  4188. am__fastdepCC_TRUE='#'
  4189. am__fastdepCC_FALSE=
  4190. fi
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4192. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4193. if test "${ac_cv_path_SED+set}" = set; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4197. for ac_i in 1 2 3 4 5 6 7; do
  4198. ac_script="$ac_script$as_nl$ac_script"
  4199. done
  4200. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4201. { ac_script=; unset ac_script;}
  4202. if test -z "$SED"; then
  4203. ac_path_SED_found=false
  4204. # Loop through the user's path and test for each of PROGNAME-LIST
  4205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4206. for as_dir in $PATH
  4207. do
  4208. IFS=$as_save_IFS
  4209. test -z "$as_dir" && as_dir=.
  4210. for ac_prog in sed gsed; do
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4213. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4214. # Check for GNU ac_path_SED and select it if it is found.
  4215. # Check for GNU $ac_path_SED
  4216. case `"$ac_path_SED" --version 2>&1` in
  4217. *GNU*)
  4218. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4219. *)
  4220. ac_count=0
  4221. $as_echo_n 0123456789 >"conftest.in"
  4222. while :
  4223. do
  4224. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4225. mv "conftest.tmp" "conftest.in"
  4226. cp "conftest.in" "conftest.nl"
  4227. $as_echo '' >> "conftest.nl"
  4228. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4229. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4230. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4231. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4232. # Best one so far, save it but keep looking for a better one
  4233. ac_cv_path_SED="$ac_path_SED"
  4234. ac_path_SED_max=$ac_count
  4235. fi
  4236. # 10*(2^10) chars as input seems more than enough
  4237. test $ac_count -gt 10 && break
  4238. done
  4239. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4240. esac
  4241. $ac_path_SED_found && break 3
  4242. done
  4243. done
  4244. done
  4245. IFS=$as_save_IFS
  4246. if test -z "$ac_cv_path_SED"; then
  4247. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4248. fi
  4249. else
  4250. ac_cv_path_SED=$SED
  4251. fi
  4252. fi
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4254. $as_echo "$ac_cv_path_SED" >&6; }
  4255. SED="$ac_cv_path_SED"
  4256. rm -f conftest.sed
  4257. test -z "$SED" && SED=sed
  4258. Xsed="$SED -e 1s/^X//"
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4260. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4261. if test "${ac_cv_path_GREP+set}" = set; then :
  4262. $as_echo_n "(cached) " >&6
  4263. else
  4264. if test -z "$GREP"; then
  4265. ac_path_GREP_found=false
  4266. # Loop through the user's path and test for each of PROGNAME-LIST
  4267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4268. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4269. do
  4270. IFS=$as_save_IFS
  4271. test -z "$as_dir" && as_dir=.
  4272. for ac_prog in grep ggrep; do
  4273. for ac_exec_ext in '' $ac_executable_extensions; do
  4274. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4275. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4276. # Check for GNU ac_path_GREP and select it if it is found.
  4277. # Check for GNU $ac_path_GREP
  4278. case `"$ac_path_GREP" --version 2>&1` in
  4279. *GNU*)
  4280. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4281. *)
  4282. ac_count=0
  4283. $as_echo_n 0123456789 >"conftest.in"
  4284. while :
  4285. do
  4286. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4287. mv "conftest.tmp" "conftest.in"
  4288. cp "conftest.in" "conftest.nl"
  4289. $as_echo 'GREP' >> "conftest.nl"
  4290. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4291. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4292. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4293. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4294. # Best one so far, save it but keep looking for a better one
  4295. ac_cv_path_GREP="$ac_path_GREP"
  4296. ac_path_GREP_max=$ac_count
  4297. fi
  4298. # 10*(2^10) chars as input seems more than enough
  4299. test $ac_count -gt 10 && break
  4300. done
  4301. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4302. esac
  4303. $ac_path_GREP_found && break 3
  4304. done
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. if test -z "$ac_cv_path_GREP"; then
  4309. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4310. fi
  4311. else
  4312. ac_cv_path_GREP=$GREP
  4313. fi
  4314. fi
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4316. $as_echo "$ac_cv_path_GREP" >&6; }
  4317. GREP="$ac_cv_path_GREP"
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4319. $as_echo_n "checking for egrep... " >&6; }
  4320. if test "${ac_cv_path_EGREP+set}" = set; then :
  4321. $as_echo_n "(cached) " >&6
  4322. else
  4323. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4324. then ac_cv_path_EGREP="$GREP -E"
  4325. else
  4326. if test -z "$EGREP"; then
  4327. ac_path_EGREP_found=false
  4328. # Loop through the user's path and test for each of PROGNAME-LIST
  4329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4330. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4331. do
  4332. IFS=$as_save_IFS
  4333. test -z "$as_dir" && as_dir=.
  4334. for ac_prog in egrep; do
  4335. for ac_exec_ext in '' $ac_executable_extensions; do
  4336. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4337. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4338. # Check for GNU ac_path_EGREP and select it if it is found.
  4339. # Check for GNU $ac_path_EGREP
  4340. case `"$ac_path_EGREP" --version 2>&1` in
  4341. *GNU*)
  4342. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4343. *)
  4344. ac_count=0
  4345. $as_echo_n 0123456789 >"conftest.in"
  4346. while :
  4347. do
  4348. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4349. mv "conftest.tmp" "conftest.in"
  4350. cp "conftest.in" "conftest.nl"
  4351. $as_echo 'EGREP' >> "conftest.nl"
  4352. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4353. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4354. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4355. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4356. # Best one so far, save it but keep looking for a better one
  4357. ac_cv_path_EGREP="$ac_path_EGREP"
  4358. ac_path_EGREP_max=$ac_count
  4359. fi
  4360. # 10*(2^10) chars as input seems more than enough
  4361. test $ac_count -gt 10 && break
  4362. done
  4363. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4364. esac
  4365. $ac_path_EGREP_found && break 3
  4366. done
  4367. done
  4368. done
  4369. IFS=$as_save_IFS
  4370. if test -z "$ac_cv_path_EGREP"; then
  4371. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4372. fi
  4373. else
  4374. ac_cv_path_EGREP=$EGREP
  4375. fi
  4376. fi
  4377. fi
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4379. $as_echo "$ac_cv_path_EGREP" >&6; }
  4380. EGREP="$ac_cv_path_EGREP"
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4382. $as_echo_n "checking for fgrep... " >&6; }
  4383. if test "${ac_cv_path_FGREP+set}" = set; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4387. then ac_cv_path_FGREP="$GREP -F"
  4388. else
  4389. if test -z "$FGREP"; then
  4390. ac_path_FGREP_found=false
  4391. # Loop through the user's path and test for each of PROGNAME-LIST
  4392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4393. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4394. do
  4395. IFS=$as_save_IFS
  4396. test -z "$as_dir" && as_dir=.
  4397. for ac_prog in fgrep; do
  4398. for ac_exec_ext in '' $ac_executable_extensions; do
  4399. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4400. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4401. # Check for GNU ac_path_FGREP and select it if it is found.
  4402. # Check for GNU $ac_path_FGREP
  4403. case `"$ac_path_FGREP" --version 2>&1` in
  4404. *GNU*)
  4405. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4406. *)
  4407. ac_count=0
  4408. $as_echo_n 0123456789 >"conftest.in"
  4409. while :
  4410. do
  4411. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4412. mv "conftest.tmp" "conftest.in"
  4413. cp "conftest.in" "conftest.nl"
  4414. $as_echo 'FGREP' >> "conftest.nl"
  4415. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4416. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4417. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4418. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4419. # Best one so far, save it but keep looking for a better one
  4420. ac_cv_path_FGREP="$ac_path_FGREP"
  4421. ac_path_FGREP_max=$ac_count
  4422. fi
  4423. # 10*(2^10) chars as input seems more than enough
  4424. test $ac_count -gt 10 && break
  4425. done
  4426. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4427. esac
  4428. $ac_path_FGREP_found && break 3
  4429. done
  4430. done
  4431. done
  4432. IFS=$as_save_IFS
  4433. if test -z "$ac_cv_path_FGREP"; then
  4434. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4435. fi
  4436. else
  4437. ac_cv_path_FGREP=$FGREP
  4438. fi
  4439. fi
  4440. fi
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4442. $as_echo "$ac_cv_path_FGREP" >&6; }
  4443. FGREP="$ac_cv_path_FGREP"
  4444. test -z "$GREP" && GREP=grep
  4445. # Check whether --with-gnu-ld was given.
  4446. if test "${with_gnu_ld+set}" = set; then :
  4447. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4448. else
  4449. with_gnu_ld=no
  4450. fi
  4451. ac_prog=ld
  4452. if test "$GCC" = yes; then
  4453. # Check if gcc -print-prog-name=ld gives a path.
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4455. $as_echo_n "checking for ld used by $CC... " >&6; }
  4456. case $host in
  4457. *-*-mingw*)
  4458. # gcc leaves a trailing carriage return which upsets mingw
  4459. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4460. *)
  4461. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4462. esac
  4463. case $ac_prog in
  4464. # Accept absolute paths.
  4465. [\\/]* | ?:[\\/]*)
  4466. re_direlt='/[^/][^/]*/\.\./'
  4467. # Canonicalize the pathname of ld
  4468. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4469. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4470. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4471. done
  4472. test -z "$LD" && LD="$ac_prog"
  4473. ;;
  4474. "")
  4475. # If it fails, then pretend we aren't using GCC.
  4476. ac_prog=ld
  4477. ;;
  4478. *)
  4479. # If it is relative, then search for the first ld in PATH.
  4480. with_gnu_ld=unknown
  4481. ;;
  4482. esac
  4483. elif test "$with_gnu_ld" = yes; then
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4485. $as_echo_n "checking for GNU ld... " >&6; }
  4486. else
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4488. $as_echo_n "checking for non-GNU ld... " >&6; }
  4489. fi
  4490. if test "${lt_cv_path_LD+set}" = set; then :
  4491. $as_echo_n "(cached) " >&6
  4492. else
  4493. if test -z "$LD"; then
  4494. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4495. for ac_dir in $PATH; do
  4496. IFS="$lt_save_ifs"
  4497. test -z "$ac_dir" && ac_dir=.
  4498. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4499. lt_cv_path_LD="$ac_dir/$ac_prog"
  4500. # Check to see if the program is GNU ld. I'd rather use --version,
  4501. # but apparently some variants of GNU ld only accept -v.
  4502. # Break only if it was the GNU/non-GNU ld that we prefer.
  4503. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4504. *GNU* | *'with BFD'*)
  4505. test "$with_gnu_ld" != no && break
  4506. ;;
  4507. *)
  4508. test "$with_gnu_ld" != yes && break
  4509. ;;
  4510. esac
  4511. fi
  4512. done
  4513. IFS="$lt_save_ifs"
  4514. else
  4515. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4516. fi
  4517. fi
  4518. LD="$lt_cv_path_LD"
  4519. if test -n "$LD"; then
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4521. $as_echo "$LD" >&6; }
  4522. else
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4524. $as_echo "no" >&6; }
  4525. fi
  4526. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4528. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4529. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4530. $as_echo_n "(cached) " >&6
  4531. else
  4532. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4533. case `$LD -v 2>&1 </dev/null` in
  4534. *GNU* | *'with BFD'*)
  4535. lt_cv_prog_gnu_ld=yes
  4536. ;;
  4537. *)
  4538. lt_cv_prog_gnu_ld=no
  4539. ;;
  4540. esac
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4543. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4544. with_gnu_ld=$lt_cv_prog_gnu_ld
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4546. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4547. if test "${lt_cv_path_NM+set}" = set; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. if test -n "$NM"; then
  4551. # Let the user override the test.
  4552. lt_cv_path_NM="$NM"
  4553. else
  4554. lt_nm_to_check="${ac_tool_prefix}nm"
  4555. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4556. lt_nm_to_check="$lt_nm_to_check nm"
  4557. fi
  4558. for lt_tmp_nm in $lt_nm_to_check; do
  4559. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4560. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4561. IFS="$lt_save_ifs"
  4562. test -z "$ac_dir" && ac_dir=.
  4563. tmp_nm="$ac_dir/$lt_tmp_nm"
  4564. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4565. # Check to see if the nm accepts a BSD-compat flag.
  4566. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4567. # nm: unknown option "B" ignored
  4568. # Tru64's nm complains that /dev/null is an invalid object file
  4569. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4570. */dev/null* | *'Invalid file or object type'*)
  4571. lt_cv_path_NM="$tmp_nm -B"
  4572. break
  4573. ;;
  4574. *)
  4575. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4576. */dev/null*)
  4577. lt_cv_path_NM="$tmp_nm -p"
  4578. break
  4579. ;;
  4580. *)
  4581. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4582. continue # so that we can try to find one that supports BSD flags
  4583. ;;
  4584. esac
  4585. ;;
  4586. esac
  4587. fi
  4588. done
  4589. IFS="$lt_save_ifs"
  4590. done
  4591. : ${lt_cv_path_NM=no}
  4592. fi
  4593. fi
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4595. $as_echo "$lt_cv_path_NM" >&6; }
  4596. if test "$lt_cv_path_NM" != "no"; then
  4597. NM="$lt_cv_path_NM"
  4598. else
  4599. # Didn't find any BSD compatible name lister, look for dumpbin.
  4600. if test -n "$ac_tool_prefix"; then
  4601. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4602. do
  4603. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4604. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4606. $as_echo_n "checking for $ac_word... " >&6; }
  4607. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. if test -n "$DUMPBIN"; then
  4611. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4612. else
  4613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4614. for as_dir in $PATH
  4615. do
  4616. IFS=$as_save_IFS
  4617. test -z "$as_dir" && as_dir=.
  4618. for ac_exec_ext in '' $ac_executable_extensions; do
  4619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4620. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4622. break 2
  4623. fi
  4624. done
  4625. done
  4626. IFS=$as_save_IFS
  4627. fi
  4628. fi
  4629. DUMPBIN=$ac_cv_prog_DUMPBIN
  4630. if test -n "$DUMPBIN"; then
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4632. $as_echo "$DUMPBIN" >&6; }
  4633. else
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4635. $as_echo "no" >&6; }
  4636. fi
  4637. test -n "$DUMPBIN" && break
  4638. done
  4639. fi
  4640. if test -z "$DUMPBIN"; then
  4641. ac_ct_DUMPBIN=$DUMPBIN
  4642. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4643. do
  4644. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4645. set dummy $ac_prog; ac_word=$2
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4647. $as_echo_n "checking for $ac_word... " >&6; }
  4648. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if test -n "$ac_ct_DUMPBIN"; then
  4652. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4653. else
  4654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4655. for as_dir in $PATH
  4656. do
  4657. IFS=$as_save_IFS
  4658. test -z "$as_dir" && as_dir=.
  4659. for ac_exec_ext in '' $ac_executable_extensions; do
  4660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4661. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4663. break 2
  4664. fi
  4665. done
  4666. done
  4667. IFS=$as_save_IFS
  4668. fi
  4669. fi
  4670. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4671. if test -n "$ac_ct_DUMPBIN"; then
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4673. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4674. else
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4676. $as_echo "no" >&6; }
  4677. fi
  4678. test -n "$ac_ct_DUMPBIN" && break
  4679. done
  4680. if test "x$ac_ct_DUMPBIN" = x; then
  4681. DUMPBIN=":"
  4682. else
  4683. case $cross_compiling:$ac_tool_warned in
  4684. yes:)
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4687. ac_tool_warned=yes ;;
  4688. esac
  4689. DUMPBIN=$ac_ct_DUMPBIN
  4690. fi
  4691. fi
  4692. if test "$DUMPBIN" != ":"; then
  4693. NM="$DUMPBIN"
  4694. fi
  4695. fi
  4696. test -z "$NM" && NM=nm
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4698. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4699. if test "${lt_cv_nm_interface+set}" = set; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. lt_cv_nm_interface="BSD nm"
  4703. echo "int some_variable = 0;" > conftest.$ac_ext
  4704. (eval echo "\"\$as_me:5219: $ac_compile\"" >&5)
  4705. (eval "$ac_compile" 2>conftest.err)
  4706. cat conftest.err >&5
  4707. (eval echo "\"\$as_me:5222: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4708. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4709. cat conftest.err >&5
  4710. (eval echo "\"\$as_me:5225: output\"" >&5)
  4711. cat conftest.out >&5
  4712. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4713. lt_cv_nm_interface="MS dumpbin"
  4714. fi
  4715. rm -f conftest*
  4716. fi
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4718. $as_echo "$lt_cv_nm_interface" >&6; }
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4720. $as_echo_n "checking whether ln -s works... " >&6; }
  4721. LN_S=$as_ln_s
  4722. if test "$LN_S" = "ln -s"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4724. $as_echo "yes" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4727. $as_echo "no, using $LN_S" >&6; }
  4728. fi
  4729. # find the maximum length of command line arguments
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4731. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4732. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. i=0
  4736. teststring="ABCD"
  4737. case $build_os in
  4738. msdosdjgpp*)
  4739. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4740. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4741. # during glob expansion). Even if it were fixed, the result of this
  4742. # check would be larger than it should be.
  4743. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4744. ;;
  4745. gnu*)
  4746. # Under GNU Hurd, this test is not required because there is
  4747. # no limit to the length of command line arguments.
  4748. # Libtool will interpret -1 as no limit whatsoever
  4749. lt_cv_sys_max_cmd_len=-1;
  4750. ;;
  4751. cygwin* | mingw* | cegcc*)
  4752. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4753. # about 5 minutes as the teststring grows exponentially.
  4754. # Worse, since 9x/ME are not pre-emptively multitasking,
  4755. # you end up with a "frozen" computer, even though with patience
  4756. # the test eventually succeeds (with a max line length of 256k).
  4757. # Instead, let's just punt: use the minimum linelength reported by
  4758. # all of the supported platforms: 8192 (on NT/2K/XP).
  4759. lt_cv_sys_max_cmd_len=8192;
  4760. ;;
  4761. amigaos*)
  4762. # On AmigaOS with pdksh, this test takes hours, literally.
  4763. # So we just punt and use a minimum line length of 8192.
  4764. lt_cv_sys_max_cmd_len=8192;
  4765. ;;
  4766. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4767. # This has been around since 386BSD, at least. Likely further.
  4768. if test -x /sbin/sysctl; then
  4769. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4770. elif test -x /usr/sbin/sysctl; then
  4771. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4772. else
  4773. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4774. fi
  4775. # And add a safety zone
  4776. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4777. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4778. ;;
  4779. interix*)
  4780. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4781. lt_cv_sys_max_cmd_len=196608
  4782. ;;
  4783. osf*)
  4784. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4785. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4786. # nice to cause kernel panics so lets avoid the loop below.
  4787. # First set a reasonable default.
  4788. lt_cv_sys_max_cmd_len=16384
  4789. #
  4790. if test -x /sbin/sysconfig; then
  4791. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4792. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4793. esac
  4794. fi
  4795. ;;
  4796. sco3.2v5*)
  4797. lt_cv_sys_max_cmd_len=102400
  4798. ;;
  4799. sysv5* | sco5v6* | sysv4.2uw2*)
  4800. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4801. if test -n "$kargmax"; then
  4802. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4803. else
  4804. lt_cv_sys_max_cmd_len=32768
  4805. fi
  4806. ;;
  4807. *)
  4808. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4809. if test -n "$lt_cv_sys_max_cmd_len"; then
  4810. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4811. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4812. else
  4813. # Make teststring a little bigger before we do anything with it.
  4814. # a 1K string should be a reasonable start.
  4815. for i in 1 2 3 4 5 6 7 8 ; do
  4816. teststring=$teststring$teststring
  4817. done
  4818. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4819. # If test is not a shell built-in, we'll probably end up computing a
  4820. # maximum length that is only half of the actual maximum length, but
  4821. # we can't tell.
  4822. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4823. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4824. test $i != 17 # 1/2 MB should be enough
  4825. do
  4826. i=`expr $i + 1`
  4827. teststring=$teststring$teststring
  4828. done
  4829. # Only check the string length outside the loop.
  4830. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4831. teststring=
  4832. # Add a significant safety factor because C++ compilers can tack on
  4833. # massive amounts of additional arguments before passing them to the
  4834. # linker. It appears as though 1/2 is a usable value.
  4835. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4836. fi
  4837. ;;
  4838. esac
  4839. fi
  4840. if test -n $lt_cv_sys_max_cmd_len ; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4842. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4845. $as_echo "none" >&6; }
  4846. fi
  4847. max_cmd_len=$lt_cv_sys_max_cmd_len
  4848. : ${CP="cp -f"}
  4849. : ${MV="mv -f"}
  4850. : ${RM="rm -f"}
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4852. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4853. # Try some XSI features
  4854. xsi_shell=no
  4855. ( _lt_dummy="a/b/c"
  4856. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4857. = c,a/b,, \
  4858. && eval 'test $(( 1 + 1 )) -eq 2 \
  4859. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4860. && xsi_shell=yes
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4862. $as_echo "$xsi_shell" >&6; }
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4864. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4865. lt_shell_append=no
  4866. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4867. >/dev/null 2>&1 \
  4868. && lt_shell_append=yes
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4870. $as_echo "$lt_shell_append" >&6; }
  4871. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4872. lt_unset=unset
  4873. else
  4874. lt_unset=false
  4875. fi
  4876. # test EBCDIC or ASCII
  4877. case `echo X|tr X '\101'` in
  4878. A) # ASCII based system
  4879. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4880. lt_SP2NL='tr \040 \012'
  4881. lt_NL2SP='tr \015\012 \040\040'
  4882. ;;
  4883. *) # EBCDIC based system
  4884. lt_SP2NL='tr \100 \n'
  4885. lt_NL2SP='tr \r\n \100\100'
  4886. ;;
  4887. esac
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4889. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4890. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. lt_cv_ld_reload_flag='-r'
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4896. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4897. reload_flag=$lt_cv_ld_reload_flag
  4898. case $reload_flag in
  4899. "" | " "*) ;;
  4900. *) reload_flag=" $reload_flag" ;;
  4901. esac
  4902. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4903. case $host_os in
  4904. darwin*)
  4905. if test "$GCC" = yes; then
  4906. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4907. else
  4908. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4909. fi
  4910. ;;
  4911. esac
  4912. if test -n "$ac_tool_prefix"; then
  4913. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4914. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4916. $as_echo_n "checking for $ac_word... " >&6; }
  4917. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4918. $as_echo_n "(cached) " >&6
  4919. else
  4920. if test -n "$OBJDUMP"; then
  4921. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4922. else
  4923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4924. for as_dir in $PATH
  4925. do
  4926. IFS=$as_save_IFS
  4927. test -z "$as_dir" && as_dir=.
  4928. for ac_exec_ext in '' $ac_executable_extensions; do
  4929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4930. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4932. break 2
  4933. fi
  4934. done
  4935. done
  4936. IFS=$as_save_IFS
  4937. fi
  4938. fi
  4939. OBJDUMP=$ac_cv_prog_OBJDUMP
  4940. if test -n "$OBJDUMP"; then
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4942. $as_echo "$OBJDUMP" >&6; }
  4943. else
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4945. $as_echo "no" >&6; }
  4946. fi
  4947. fi
  4948. if test -z "$ac_cv_prog_OBJDUMP"; then
  4949. ac_ct_OBJDUMP=$OBJDUMP
  4950. # Extract the first word of "objdump", so it can be a program name with args.
  4951. set dummy objdump; ac_word=$2
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4953. $as_echo_n "checking for $ac_word... " >&6; }
  4954. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4955. $as_echo_n "(cached) " >&6
  4956. else
  4957. if test -n "$ac_ct_OBJDUMP"; then
  4958. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4959. else
  4960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4961. for as_dir in $PATH
  4962. do
  4963. IFS=$as_save_IFS
  4964. test -z "$as_dir" && as_dir=.
  4965. for ac_exec_ext in '' $ac_executable_extensions; do
  4966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4967. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4969. break 2
  4970. fi
  4971. done
  4972. done
  4973. IFS=$as_save_IFS
  4974. fi
  4975. fi
  4976. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4977. if test -n "$ac_ct_OBJDUMP"; then
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4979. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4980. else
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4982. $as_echo "no" >&6; }
  4983. fi
  4984. if test "x$ac_ct_OBJDUMP" = x; then
  4985. OBJDUMP="false"
  4986. else
  4987. case $cross_compiling:$ac_tool_warned in
  4988. yes:)
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4991. ac_tool_warned=yes ;;
  4992. esac
  4993. OBJDUMP=$ac_ct_OBJDUMP
  4994. fi
  4995. else
  4996. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4997. fi
  4998. test -z "$OBJDUMP" && OBJDUMP=objdump
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5000. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5001. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5002. $as_echo_n "(cached) " >&6
  5003. else
  5004. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5005. lt_cv_file_magic_test_file=
  5006. lt_cv_deplibs_check_method='unknown'
  5007. # Need to set the preceding variable on all platforms that support
  5008. # interlibrary dependencies.
  5009. # 'none' -- dependencies not supported.
  5010. # `unknown' -- same as none, but documents that we really don't know.
  5011. # 'pass_all' -- all dependencies passed with no checks.
  5012. # 'test_compile' -- check by making test program.
  5013. # 'file_magic [[regex]]' -- check by looking for files in library path
  5014. # which responds to the $file_magic_cmd with a given extended regex.
  5015. # If you have `file' or equivalent on your system and you're not sure
  5016. # whether `pass_all' will *always* work, you probably want this one.
  5017. case $host_os in
  5018. aix[4-9]*)
  5019. lt_cv_deplibs_check_method=pass_all
  5020. ;;
  5021. beos*)
  5022. lt_cv_deplibs_check_method=pass_all
  5023. ;;
  5024. bsdi[45]*)
  5025. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5026. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5027. lt_cv_file_magic_test_file=/shlib/libc.so
  5028. ;;
  5029. cygwin*)
  5030. # func_win32_libid is a shell function defined in ltmain.sh
  5031. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5032. lt_cv_file_magic_cmd='func_win32_libid'
  5033. ;;
  5034. mingw* | pw32*)
  5035. # Base MSYS/MinGW do not provide the 'file' command needed by
  5036. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5037. # unless we find 'file', for example because we are cross-compiling.
  5038. if ( file / ) >/dev/null 2>&1; then
  5039. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5040. lt_cv_file_magic_cmd='func_win32_libid'
  5041. else
  5042. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5043. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5044. fi
  5045. ;;
  5046. cegcc)
  5047. # use the weaker test based on 'objdump'. See mingw*.
  5048. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5049. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5050. ;;
  5051. darwin* | rhapsody*)
  5052. lt_cv_deplibs_check_method=pass_all
  5053. ;;
  5054. freebsd* | dragonfly*)
  5055. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5056. case $host_cpu in
  5057. i*86 )
  5058. # Not sure whether the presence of OpenBSD here was a mistake.
  5059. # Let's accept both of them until this is cleared up.
  5060. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5061. lt_cv_file_magic_cmd=/usr/bin/file
  5062. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5063. ;;
  5064. esac
  5065. else
  5066. lt_cv_deplibs_check_method=pass_all
  5067. fi
  5068. ;;
  5069. gnu*)
  5070. lt_cv_deplibs_check_method=pass_all
  5071. ;;
  5072. hpux10.20* | hpux11*)
  5073. lt_cv_file_magic_cmd=/usr/bin/file
  5074. case $host_cpu in
  5075. ia64*)
  5076. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5077. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5078. ;;
  5079. hppa*64*)
  5080. 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]'
  5081. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5082. ;;
  5083. *)
  5084. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5085. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5086. ;;
  5087. esac
  5088. ;;
  5089. interix[3-9]*)
  5090. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5091. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5092. ;;
  5093. irix5* | irix6* | nonstopux*)
  5094. case $LD in
  5095. *-32|*"-32 ") libmagic=32-bit;;
  5096. *-n32|*"-n32 ") libmagic=N32;;
  5097. *-64|*"-64 ") libmagic=64-bit;;
  5098. *) libmagic=never-match;;
  5099. esac
  5100. lt_cv_deplibs_check_method=pass_all
  5101. ;;
  5102. # This must be Linux ELF.
  5103. linux* | k*bsd*-gnu)
  5104. lt_cv_deplibs_check_method=pass_all
  5105. ;;
  5106. netbsd* | netbsdelf*-gnu)
  5107. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5108. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5109. else
  5110. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5111. fi
  5112. ;;
  5113. newos6*)
  5114. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5115. lt_cv_file_magic_cmd=/usr/bin/file
  5116. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5117. ;;
  5118. *nto* | *qnx*)
  5119. lt_cv_deplibs_check_method=pass_all
  5120. ;;
  5121. openbsd*)
  5122. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5123. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5124. else
  5125. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5126. fi
  5127. ;;
  5128. osf3* | osf4* | osf5*)
  5129. lt_cv_deplibs_check_method=pass_all
  5130. ;;
  5131. rdos*)
  5132. lt_cv_deplibs_check_method=pass_all
  5133. ;;
  5134. solaris*)
  5135. lt_cv_deplibs_check_method=pass_all
  5136. ;;
  5137. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5138. lt_cv_deplibs_check_method=pass_all
  5139. ;;
  5140. sysv4 | sysv4.3*)
  5141. case $host_vendor in
  5142. motorola)
  5143. 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]'
  5144. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5145. ;;
  5146. ncr)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. sequent)
  5150. lt_cv_file_magic_cmd='/bin/file'
  5151. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5152. ;;
  5153. sni)
  5154. lt_cv_file_magic_cmd='/bin/file'
  5155. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5156. lt_cv_file_magic_test_file=/lib/libc.so
  5157. ;;
  5158. siemens)
  5159. lt_cv_deplibs_check_method=pass_all
  5160. ;;
  5161. pc)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. esac
  5165. ;;
  5166. tpf*)
  5167. lt_cv_deplibs_check_method=pass_all
  5168. ;;
  5169. esac
  5170. fi
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5172. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5173. file_magic_cmd=$lt_cv_file_magic_cmd
  5174. deplibs_check_method=$lt_cv_deplibs_check_method
  5175. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5176. if test -n "$ac_tool_prefix"; then
  5177. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5178. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5180. $as_echo_n "checking for $ac_word... " >&6; }
  5181. if test "${ac_cv_prog_AR+set}" = set; then :
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. if test -n "$AR"; then
  5185. ac_cv_prog_AR="$AR" # Let the user override the test.
  5186. else
  5187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5188. for as_dir in $PATH
  5189. do
  5190. IFS=$as_save_IFS
  5191. test -z "$as_dir" && as_dir=.
  5192. for ac_exec_ext in '' $ac_executable_extensions; do
  5193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5194. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5196. break 2
  5197. fi
  5198. done
  5199. done
  5200. IFS=$as_save_IFS
  5201. fi
  5202. fi
  5203. AR=$ac_cv_prog_AR
  5204. if test -n "$AR"; then
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5206. $as_echo "$AR" >&6; }
  5207. else
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5209. $as_echo "no" >&6; }
  5210. fi
  5211. fi
  5212. if test -z "$ac_cv_prog_AR"; then
  5213. ac_ct_AR=$AR
  5214. # Extract the first word of "ar", so it can be a program name with args.
  5215. set dummy ar; ac_word=$2
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5217. $as_echo_n "checking for $ac_word... " >&6; }
  5218. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5219. $as_echo_n "(cached) " >&6
  5220. else
  5221. if test -n "$ac_ct_AR"; then
  5222. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5223. else
  5224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5225. for as_dir in $PATH
  5226. do
  5227. IFS=$as_save_IFS
  5228. test -z "$as_dir" && as_dir=.
  5229. for ac_exec_ext in '' $ac_executable_extensions; do
  5230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5231. ac_cv_prog_ac_ct_AR="ar"
  5232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5233. break 2
  5234. fi
  5235. done
  5236. done
  5237. IFS=$as_save_IFS
  5238. fi
  5239. fi
  5240. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5241. if test -n "$ac_ct_AR"; then
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5243. $as_echo "$ac_ct_AR" >&6; }
  5244. else
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5246. $as_echo "no" >&6; }
  5247. fi
  5248. if test "x$ac_ct_AR" = x; then
  5249. AR="false"
  5250. else
  5251. case $cross_compiling:$ac_tool_warned in
  5252. yes:)
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5255. ac_tool_warned=yes ;;
  5256. esac
  5257. AR=$ac_ct_AR
  5258. fi
  5259. else
  5260. AR="$ac_cv_prog_AR"
  5261. fi
  5262. test -z "$AR" && AR=ar
  5263. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5264. if test -n "$ac_tool_prefix"; then
  5265. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5266. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5268. $as_echo_n "checking for $ac_word... " >&6; }
  5269. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. if test -n "$STRIP"; then
  5273. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5274. else
  5275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. for as_dir in $PATH
  5277. do
  5278. IFS=$as_save_IFS
  5279. test -z "$as_dir" && as_dir=.
  5280. for ac_exec_ext in '' $ac_executable_extensions; do
  5281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5282. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5284. break 2
  5285. fi
  5286. done
  5287. done
  5288. IFS=$as_save_IFS
  5289. fi
  5290. fi
  5291. STRIP=$ac_cv_prog_STRIP
  5292. if test -n "$STRIP"; then
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5294. $as_echo "$STRIP" >&6; }
  5295. else
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5297. $as_echo "no" >&6; }
  5298. fi
  5299. fi
  5300. if test -z "$ac_cv_prog_STRIP"; then
  5301. ac_ct_STRIP=$STRIP
  5302. # Extract the first word of "strip", so it can be a program name with args.
  5303. set dummy strip; ac_word=$2
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5305. $as_echo_n "checking for $ac_word... " >&6; }
  5306. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. if test -n "$ac_ct_STRIP"; then
  5310. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5311. else
  5312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5313. for as_dir in $PATH
  5314. do
  5315. IFS=$as_save_IFS
  5316. test -z "$as_dir" && as_dir=.
  5317. for ac_exec_ext in '' $ac_executable_extensions; do
  5318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5319. ac_cv_prog_ac_ct_STRIP="strip"
  5320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5321. break 2
  5322. fi
  5323. done
  5324. done
  5325. IFS=$as_save_IFS
  5326. fi
  5327. fi
  5328. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5329. if test -n "$ac_ct_STRIP"; then
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5331. $as_echo "$ac_ct_STRIP" >&6; }
  5332. else
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5334. $as_echo "no" >&6; }
  5335. fi
  5336. if test "x$ac_ct_STRIP" = x; then
  5337. STRIP=":"
  5338. else
  5339. case $cross_compiling:$ac_tool_warned in
  5340. yes:)
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5342. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5343. ac_tool_warned=yes ;;
  5344. esac
  5345. STRIP=$ac_ct_STRIP
  5346. fi
  5347. else
  5348. STRIP="$ac_cv_prog_STRIP"
  5349. fi
  5350. test -z "$STRIP" && STRIP=:
  5351. if test -n "$ac_tool_prefix"; then
  5352. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5353. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5355. $as_echo_n "checking for $ac_word... " >&6; }
  5356. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. if test -n "$RANLIB"; then
  5360. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5361. else
  5362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5363. for as_dir in $PATH
  5364. do
  5365. IFS=$as_save_IFS
  5366. test -z "$as_dir" && as_dir=.
  5367. for ac_exec_ext in '' $ac_executable_extensions; do
  5368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5369. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5371. break 2
  5372. fi
  5373. done
  5374. done
  5375. IFS=$as_save_IFS
  5376. fi
  5377. fi
  5378. RANLIB=$ac_cv_prog_RANLIB
  5379. if test -n "$RANLIB"; then
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5381. $as_echo "$RANLIB" >&6; }
  5382. else
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5384. $as_echo "no" >&6; }
  5385. fi
  5386. fi
  5387. if test -z "$ac_cv_prog_RANLIB"; then
  5388. ac_ct_RANLIB=$RANLIB
  5389. # Extract the first word of "ranlib", so it can be a program name with args.
  5390. set dummy ranlib; ac_word=$2
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5392. $as_echo_n "checking for $ac_word... " >&6; }
  5393. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if test -n "$ac_ct_RANLIB"; then
  5397. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5406. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. fi
  5414. fi
  5415. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5416. if test -n "$ac_ct_RANLIB"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5418. $as_echo "$ac_ct_RANLIB" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. if test "x$ac_ct_RANLIB" = x; then
  5424. RANLIB=":"
  5425. else
  5426. case $cross_compiling:$ac_tool_warned in
  5427. yes:)
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5430. ac_tool_warned=yes ;;
  5431. esac
  5432. RANLIB=$ac_ct_RANLIB
  5433. fi
  5434. else
  5435. RANLIB="$ac_cv_prog_RANLIB"
  5436. fi
  5437. test -z "$RANLIB" && RANLIB=:
  5438. # Determine commands to create old-style static archives.
  5439. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5440. old_postinstall_cmds='chmod 644 $oldlib'
  5441. old_postuninstall_cmds=
  5442. if test -n "$RANLIB"; then
  5443. case $host_os in
  5444. openbsd*)
  5445. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5446. ;;
  5447. *)
  5448. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5449. ;;
  5450. esac
  5451. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5452. fi
  5453. # If no C compiler was specified, use CC.
  5454. LTCC=${LTCC-"$CC"}
  5455. # If no C compiler flags were specified, use CFLAGS.
  5456. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5457. # Allow CC to be a program name with arguments.
  5458. compiler=$CC
  5459. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5461. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5462. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. # These are sane defaults that work on at least a few old systems.
  5466. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5467. # Character class describing NM global symbol codes.
  5468. symcode='[BCDEGRST]'
  5469. # Regexp to match symbols that can be accessed directly from C.
  5470. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5471. # Define system-specific variables.
  5472. case $host_os in
  5473. aix*)
  5474. symcode='[BCDT]'
  5475. ;;
  5476. cygwin* | mingw* | pw32* | cegcc*)
  5477. symcode='[ABCDGISTW]'
  5478. ;;
  5479. hpux*)
  5480. if test "$host_cpu" = ia64; then
  5481. symcode='[ABCDEGRST]'
  5482. fi
  5483. ;;
  5484. irix* | nonstopux*)
  5485. symcode='[BCDEGRST]'
  5486. ;;
  5487. osf*)
  5488. symcode='[BCDEGQRST]'
  5489. ;;
  5490. solaris*)
  5491. symcode='[BDRT]'
  5492. ;;
  5493. sco3.2v5*)
  5494. symcode='[DT]'
  5495. ;;
  5496. sysv4.2uw2*)
  5497. symcode='[DT]'
  5498. ;;
  5499. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5500. symcode='[ABDT]'
  5501. ;;
  5502. sysv4)
  5503. symcode='[DFNSTU]'
  5504. ;;
  5505. esac
  5506. # If we're using GNU nm, then use its standard symbol codes.
  5507. case `$NM -V 2>&1` in
  5508. *GNU* | *'with BFD'*)
  5509. symcode='[ABCDGIRSTW]' ;;
  5510. esac
  5511. # Transform an extracted symbol line into a proper C declaration.
  5512. # Some systems (esp. on ia64) link data and code symbols differently,
  5513. # so use this general approach.
  5514. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5515. # Transform an extracted symbol line into symbol name and symbol address
  5516. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5517. 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'"
  5518. # Handle CRLF in mingw tool chain
  5519. opt_cr=
  5520. case $build_os in
  5521. mingw*)
  5522. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5523. ;;
  5524. esac
  5525. # Try without a prefix underscore, then with it.
  5526. for ac_symprfx in "" "_"; do
  5527. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5528. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5529. # Write the raw and C identifiers.
  5530. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5531. # Fake it for dumpbin and say T for any non-static function
  5532. # and D for any global variable.
  5533. # Also find C++ and __fastcall symbols from MSVC++,
  5534. # which start with @ or ?.
  5535. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5536. " {last_section=section; section=\$ 3};"\
  5537. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5538. " \$ 0!~/External *\|/{next};"\
  5539. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5540. " {if(hide[section]) next};"\
  5541. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5542. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5543. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5544. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5545. " ' prfx=^$ac_symprfx"
  5546. else
  5547. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5548. fi
  5549. # Check to see that the pipe works correctly.
  5550. pipe_works=no
  5551. rm -f conftest*
  5552. cat > conftest.$ac_ext <<_LT_EOF
  5553. #ifdef __cplusplus
  5554. extern "C" {
  5555. #endif
  5556. char nm_test_var;
  5557. void nm_test_func(void);
  5558. void nm_test_func(void){}
  5559. #ifdef __cplusplus
  5560. }
  5561. #endif
  5562. int main(){nm_test_var='a';nm_test_func();return(0);}
  5563. _LT_EOF
  5564. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5565. (eval $ac_compile) 2>&5
  5566. ac_status=$?
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5568. test $ac_status = 0; }; then
  5569. # Now try to grab the symbols.
  5570. nlist=conftest.nm
  5571. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5572. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5573. ac_status=$?
  5574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5575. test $ac_status = 0; } && test -s "$nlist"; then
  5576. # Try sorting and uniquifying the output.
  5577. if sort "$nlist" | uniq > "$nlist"T; then
  5578. mv -f "$nlist"T "$nlist"
  5579. else
  5580. rm -f "$nlist"T
  5581. fi
  5582. # Make sure that we snagged all the symbols we need.
  5583. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5584. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5585. cat <<_LT_EOF > conftest.$ac_ext
  5586. #ifdef __cplusplus
  5587. extern "C" {
  5588. #endif
  5589. _LT_EOF
  5590. # Now generate the symbol file.
  5591. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5592. cat <<_LT_EOF >> conftest.$ac_ext
  5593. /* The mapping between symbol names and symbols. */
  5594. const struct {
  5595. const char *name;
  5596. void *address;
  5597. }
  5598. lt__PROGRAM__LTX_preloaded_symbols[] =
  5599. {
  5600. { "@PROGRAM@", (void *) 0 },
  5601. _LT_EOF
  5602. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5603. cat <<\_LT_EOF >> conftest.$ac_ext
  5604. {0, (void *) 0}
  5605. };
  5606. /* This works around a problem in FreeBSD linker */
  5607. #ifdef FREEBSD_WORKAROUND
  5608. static const void *lt_preloaded_setup() {
  5609. return lt__PROGRAM__LTX_preloaded_symbols;
  5610. }
  5611. #endif
  5612. #ifdef __cplusplus
  5613. }
  5614. #endif
  5615. _LT_EOF
  5616. # Now try linking the two files.
  5617. mv conftest.$ac_objext conftstm.$ac_objext
  5618. lt_save_LIBS="$LIBS"
  5619. lt_save_CFLAGS="$CFLAGS"
  5620. LIBS="conftstm.$ac_objext"
  5621. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5623. (eval $ac_link) 2>&5
  5624. ac_status=$?
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5626. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5627. pipe_works=yes
  5628. fi
  5629. LIBS="$lt_save_LIBS"
  5630. CFLAGS="$lt_save_CFLAGS"
  5631. else
  5632. echo "cannot find nm_test_func in $nlist" >&5
  5633. fi
  5634. else
  5635. echo "cannot find nm_test_var in $nlist" >&5
  5636. fi
  5637. else
  5638. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5639. fi
  5640. else
  5641. echo "$progname: failed program was:" >&5
  5642. cat conftest.$ac_ext >&5
  5643. fi
  5644. rm -rf conftest* conftst*
  5645. # Do not use the global_symbol_pipe unless it works.
  5646. if test "$pipe_works" = yes; then
  5647. break
  5648. else
  5649. lt_cv_sys_global_symbol_pipe=
  5650. fi
  5651. done
  5652. fi
  5653. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5654. lt_cv_sys_global_symbol_to_cdecl=
  5655. fi
  5656. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5658. $as_echo "failed" >&6; }
  5659. else
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5661. $as_echo "ok" >&6; }
  5662. fi
  5663. # Check whether --enable-libtool-lock was given.
  5664. if test "${enable_libtool_lock+set}" = set; then :
  5665. enableval=$enable_libtool_lock;
  5666. fi
  5667. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5668. # Some flags need to be propagated to the compiler or linker for good
  5669. # libtool support.
  5670. case $host in
  5671. ia64-*-hpux*)
  5672. # Find out which ABI we are using.
  5673. echo 'int i;' > conftest.$ac_ext
  5674. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5675. (eval $ac_compile) 2>&5
  5676. ac_status=$?
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5678. test $ac_status = 0; }; then
  5679. case `/usr/bin/file conftest.$ac_objext` in
  5680. *ELF-32*)
  5681. HPUX_IA64_MODE="32"
  5682. ;;
  5683. *ELF-64*)
  5684. HPUX_IA64_MODE="64"
  5685. ;;
  5686. esac
  5687. fi
  5688. rm -rf conftest*
  5689. ;;
  5690. *-*-irix6*)
  5691. # Find out which ABI we are using.
  5692. echo '#line 6431 "configure"' > conftest.$ac_ext
  5693. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5694. (eval $ac_compile) 2>&5
  5695. ac_status=$?
  5696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5697. test $ac_status = 0; }; then
  5698. if test "$lt_cv_prog_gnu_ld" = yes; then
  5699. case `/usr/bin/file conftest.$ac_objext` in
  5700. *32-bit*)
  5701. LD="${LD-ld} -melf32bsmip"
  5702. ;;
  5703. *N32*)
  5704. LD="${LD-ld} -melf32bmipn32"
  5705. ;;
  5706. *64-bit*)
  5707. LD="${LD-ld} -melf64bmip"
  5708. ;;
  5709. esac
  5710. else
  5711. case `/usr/bin/file conftest.$ac_objext` in
  5712. *32-bit*)
  5713. LD="${LD-ld} -32"
  5714. ;;
  5715. *N32*)
  5716. LD="${LD-ld} -n32"
  5717. ;;
  5718. *64-bit*)
  5719. LD="${LD-ld} -64"
  5720. ;;
  5721. esac
  5722. fi
  5723. fi
  5724. rm -rf conftest*
  5725. ;;
  5726. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5727. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5728. # Find out which ABI we are using.
  5729. echo 'int i;' > conftest.$ac_ext
  5730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5731. (eval $ac_compile) 2>&5
  5732. ac_status=$?
  5733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5734. test $ac_status = 0; }; then
  5735. case `/usr/bin/file conftest.o` in
  5736. *32-bit*)
  5737. case $host in
  5738. x86_64-*kfreebsd*-gnu)
  5739. LD="${LD-ld} -m elf_i386_fbsd"
  5740. ;;
  5741. x86_64-*linux*)
  5742. LD="${LD-ld} -m elf_i386"
  5743. ;;
  5744. ppc64-*linux*|powerpc64-*linux*)
  5745. LD="${LD-ld} -m elf32ppclinux"
  5746. ;;
  5747. s390x-*linux*)
  5748. LD="${LD-ld} -m elf_s390"
  5749. ;;
  5750. sparc64-*linux*)
  5751. LD="${LD-ld} -m elf32_sparc"
  5752. ;;
  5753. esac
  5754. ;;
  5755. *64-bit*)
  5756. case $host in
  5757. x86_64-*kfreebsd*-gnu)
  5758. LD="${LD-ld} -m elf_x86_64_fbsd"
  5759. ;;
  5760. x86_64-*linux*)
  5761. LD="${LD-ld} -m elf_x86_64"
  5762. ;;
  5763. ppc*-*linux*|powerpc*-*linux*)
  5764. LD="${LD-ld} -m elf64ppc"
  5765. ;;
  5766. s390*-*linux*|s390*-*tpf*)
  5767. LD="${LD-ld} -m elf64_s390"
  5768. ;;
  5769. sparc*-*linux*)
  5770. LD="${LD-ld} -m elf64_sparc"
  5771. ;;
  5772. esac
  5773. ;;
  5774. esac
  5775. fi
  5776. rm -rf conftest*
  5777. ;;
  5778. *-*-sco3.2v5*)
  5779. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5780. SAVE_CFLAGS="$CFLAGS"
  5781. CFLAGS="$CFLAGS -belf"
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5783. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5784. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. ac_ext=c
  5788. ac_cpp='$CPP $CPPFLAGS'
  5789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5793. /* end confdefs.h. */
  5794. int
  5795. main ()
  5796. {
  5797. ;
  5798. return 0;
  5799. }
  5800. _ACEOF
  5801. if ac_fn_c_try_link "$LINENO"; then :
  5802. lt_cv_cc_needs_belf=yes
  5803. else
  5804. lt_cv_cc_needs_belf=no
  5805. fi
  5806. rm -f core conftest.err conftest.$ac_objext \
  5807. conftest$ac_exeext conftest.$ac_ext
  5808. ac_ext=c
  5809. ac_cpp='$CPP $CPPFLAGS'
  5810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5813. fi
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5815. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5816. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5817. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5818. CFLAGS="$SAVE_CFLAGS"
  5819. fi
  5820. ;;
  5821. sparc*-*solaris*)
  5822. # Find out which ABI we are using.
  5823. echo 'int i;' > conftest.$ac_ext
  5824. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5825. (eval $ac_compile) 2>&5
  5826. ac_status=$?
  5827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5828. test $ac_status = 0; }; then
  5829. case `/usr/bin/file conftest.o` in
  5830. *64-bit*)
  5831. case $lt_cv_prog_gnu_ld in
  5832. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5833. *)
  5834. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5835. LD="${LD-ld} -64"
  5836. fi
  5837. ;;
  5838. esac
  5839. ;;
  5840. esac
  5841. fi
  5842. rm -rf conftest*
  5843. ;;
  5844. esac
  5845. need_locks="$enable_libtool_lock"
  5846. case $host_os in
  5847. rhapsody* | darwin*)
  5848. if test -n "$ac_tool_prefix"; then
  5849. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5850. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5852. $as_echo_n "checking for $ac_word... " >&6; }
  5853. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5854. $as_echo_n "(cached) " >&6
  5855. else
  5856. if test -n "$DSYMUTIL"; then
  5857. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5858. else
  5859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5860. for as_dir in $PATH
  5861. do
  5862. IFS=$as_save_IFS
  5863. test -z "$as_dir" && as_dir=.
  5864. for ac_exec_ext in '' $ac_executable_extensions; do
  5865. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5866. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5868. break 2
  5869. fi
  5870. done
  5871. done
  5872. IFS=$as_save_IFS
  5873. fi
  5874. fi
  5875. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5876. if test -n "$DSYMUTIL"; then
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5878. $as_echo "$DSYMUTIL" >&6; }
  5879. else
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5881. $as_echo "no" >&6; }
  5882. fi
  5883. fi
  5884. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5885. ac_ct_DSYMUTIL=$DSYMUTIL
  5886. # Extract the first word of "dsymutil", so it can be a program name with args.
  5887. set dummy dsymutil; ac_word=$2
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5889. $as_echo_n "checking for $ac_word... " >&6; }
  5890. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5891. $as_echo_n "(cached) " >&6
  5892. else
  5893. if test -n "$ac_ct_DSYMUTIL"; then
  5894. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. test -z "$as_dir" && as_dir=.
  5901. for ac_exec_ext in '' $ac_executable_extensions; do
  5902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5903. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5905. break 2
  5906. fi
  5907. done
  5908. done
  5909. IFS=$as_save_IFS
  5910. fi
  5911. fi
  5912. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5913. if test -n "$ac_ct_DSYMUTIL"; then
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5915. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5916. else
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5918. $as_echo "no" >&6; }
  5919. fi
  5920. if test "x$ac_ct_DSYMUTIL" = x; then
  5921. DSYMUTIL=":"
  5922. else
  5923. case $cross_compiling:$ac_tool_warned in
  5924. yes:)
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5927. ac_tool_warned=yes ;;
  5928. esac
  5929. DSYMUTIL=$ac_ct_DSYMUTIL
  5930. fi
  5931. else
  5932. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5933. fi
  5934. if test -n "$ac_tool_prefix"; then
  5935. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5936. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5938. $as_echo_n "checking for $ac_word... " >&6; }
  5939. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. if test -n "$NMEDIT"; then
  5943. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5944. else
  5945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5946. for as_dir in $PATH
  5947. do
  5948. IFS=$as_save_IFS
  5949. test -z "$as_dir" && as_dir=.
  5950. for ac_exec_ext in '' $ac_executable_extensions; do
  5951. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5952. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5954. break 2
  5955. fi
  5956. done
  5957. done
  5958. IFS=$as_save_IFS
  5959. fi
  5960. fi
  5961. NMEDIT=$ac_cv_prog_NMEDIT
  5962. if test -n "$NMEDIT"; then
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5964. $as_echo "$NMEDIT" >&6; }
  5965. else
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5967. $as_echo "no" >&6; }
  5968. fi
  5969. fi
  5970. if test -z "$ac_cv_prog_NMEDIT"; then
  5971. ac_ct_NMEDIT=$NMEDIT
  5972. # Extract the first word of "nmedit", so it can be a program name with args.
  5973. set dummy nmedit; ac_word=$2
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5975. $as_echo_n "checking for $ac_word... " >&6; }
  5976. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5977. $as_echo_n "(cached) " >&6
  5978. else
  5979. if test -n "$ac_ct_NMEDIT"; then
  5980. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5981. else
  5982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5983. for as_dir in $PATH
  5984. do
  5985. IFS=$as_save_IFS
  5986. test -z "$as_dir" && as_dir=.
  5987. for ac_exec_ext in '' $ac_executable_extensions; do
  5988. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5989. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5991. break 2
  5992. fi
  5993. done
  5994. done
  5995. IFS=$as_save_IFS
  5996. fi
  5997. fi
  5998. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5999. if test -n "$ac_ct_NMEDIT"; then
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6001. $as_echo "$ac_ct_NMEDIT" >&6; }
  6002. else
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6004. $as_echo "no" >&6; }
  6005. fi
  6006. if test "x$ac_ct_NMEDIT" = x; then
  6007. NMEDIT=":"
  6008. else
  6009. case $cross_compiling:$ac_tool_warned in
  6010. yes:)
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6012. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6013. ac_tool_warned=yes ;;
  6014. esac
  6015. NMEDIT=$ac_ct_NMEDIT
  6016. fi
  6017. else
  6018. NMEDIT="$ac_cv_prog_NMEDIT"
  6019. fi
  6020. if test -n "$ac_tool_prefix"; then
  6021. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6022. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6024. $as_echo_n "checking for $ac_word... " >&6; }
  6025. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. if test -n "$LIPO"; then
  6029. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6030. else
  6031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6032. for as_dir in $PATH
  6033. do
  6034. IFS=$as_save_IFS
  6035. test -z "$as_dir" && as_dir=.
  6036. for ac_exec_ext in '' $ac_executable_extensions; do
  6037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6038. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6040. break 2
  6041. fi
  6042. done
  6043. done
  6044. IFS=$as_save_IFS
  6045. fi
  6046. fi
  6047. LIPO=$ac_cv_prog_LIPO
  6048. if test -n "$LIPO"; then
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6050. $as_echo "$LIPO" >&6; }
  6051. else
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6053. $as_echo "no" >&6; }
  6054. fi
  6055. fi
  6056. if test -z "$ac_cv_prog_LIPO"; then
  6057. ac_ct_LIPO=$LIPO
  6058. # Extract the first word of "lipo", so it can be a program name with args.
  6059. set dummy lipo; ac_word=$2
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6061. $as_echo_n "checking for $ac_word... " >&6; }
  6062. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. if test -n "$ac_ct_LIPO"; then
  6066. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6067. else
  6068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6069. for as_dir in $PATH
  6070. do
  6071. IFS=$as_save_IFS
  6072. test -z "$as_dir" && as_dir=.
  6073. for ac_exec_ext in '' $ac_executable_extensions; do
  6074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6075. ac_cv_prog_ac_ct_LIPO="lipo"
  6076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6077. break 2
  6078. fi
  6079. done
  6080. done
  6081. IFS=$as_save_IFS
  6082. fi
  6083. fi
  6084. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6085. if test -n "$ac_ct_LIPO"; then
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6087. $as_echo "$ac_ct_LIPO" >&6; }
  6088. else
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6090. $as_echo "no" >&6; }
  6091. fi
  6092. if test "x$ac_ct_LIPO" = x; then
  6093. LIPO=":"
  6094. else
  6095. case $cross_compiling:$ac_tool_warned in
  6096. yes:)
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6098. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6099. ac_tool_warned=yes ;;
  6100. esac
  6101. LIPO=$ac_ct_LIPO
  6102. fi
  6103. else
  6104. LIPO="$ac_cv_prog_LIPO"
  6105. fi
  6106. if test -n "$ac_tool_prefix"; then
  6107. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6108. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6110. $as_echo_n "checking for $ac_word... " >&6; }
  6111. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. if test -n "$OTOOL"; then
  6115. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6116. else
  6117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6118. for as_dir in $PATH
  6119. do
  6120. IFS=$as_save_IFS
  6121. test -z "$as_dir" && as_dir=.
  6122. for ac_exec_ext in '' $ac_executable_extensions; do
  6123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6124. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6126. break 2
  6127. fi
  6128. done
  6129. done
  6130. IFS=$as_save_IFS
  6131. fi
  6132. fi
  6133. OTOOL=$ac_cv_prog_OTOOL
  6134. if test -n "$OTOOL"; then
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6136. $as_echo "$OTOOL" >&6; }
  6137. else
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6139. $as_echo "no" >&6; }
  6140. fi
  6141. fi
  6142. if test -z "$ac_cv_prog_OTOOL"; then
  6143. ac_ct_OTOOL=$OTOOL
  6144. # Extract the first word of "otool", so it can be a program name with args.
  6145. set dummy otool; ac_word=$2
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6147. $as_echo_n "checking for $ac_word... " >&6; }
  6148. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6149. $as_echo_n "(cached) " >&6
  6150. else
  6151. if test -n "$ac_ct_OTOOL"; then
  6152. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6153. else
  6154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6155. for as_dir in $PATH
  6156. do
  6157. IFS=$as_save_IFS
  6158. test -z "$as_dir" && as_dir=.
  6159. for ac_exec_ext in '' $ac_executable_extensions; do
  6160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6161. ac_cv_prog_ac_ct_OTOOL="otool"
  6162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6163. break 2
  6164. fi
  6165. done
  6166. done
  6167. IFS=$as_save_IFS
  6168. fi
  6169. fi
  6170. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6171. if test -n "$ac_ct_OTOOL"; then
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6173. $as_echo "$ac_ct_OTOOL" >&6; }
  6174. else
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6176. $as_echo "no" >&6; }
  6177. fi
  6178. if test "x$ac_ct_OTOOL" = x; then
  6179. OTOOL=":"
  6180. else
  6181. case $cross_compiling:$ac_tool_warned in
  6182. yes:)
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6184. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6185. ac_tool_warned=yes ;;
  6186. esac
  6187. OTOOL=$ac_ct_OTOOL
  6188. fi
  6189. else
  6190. OTOOL="$ac_cv_prog_OTOOL"
  6191. fi
  6192. if test -n "$ac_tool_prefix"; then
  6193. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6194. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6196. $as_echo_n "checking for $ac_word... " >&6; }
  6197. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test -n "$OTOOL64"; then
  6201. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6202. else
  6203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6204. for as_dir in $PATH
  6205. do
  6206. IFS=$as_save_IFS
  6207. test -z "$as_dir" && as_dir=.
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6210. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. OTOOL64=$ac_cv_prog_OTOOL64
  6220. if test -n "$OTOOL64"; then
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6222. $as_echo "$OTOOL64" >&6; }
  6223. else
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226. fi
  6227. fi
  6228. if test -z "$ac_cv_prog_OTOOL64"; then
  6229. ac_ct_OTOOL64=$OTOOL64
  6230. # Extract the first word of "otool64", so it can be a program name with args.
  6231. set dummy otool64; ac_word=$2
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6233. $as_echo_n "checking for $ac_word... " >&6; }
  6234. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6235. $as_echo_n "(cached) " >&6
  6236. else
  6237. if test -n "$ac_ct_OTOOL64"; then
  6238. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6239. else
  6240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6241. for as_dir in $PATH
  6242. do
  6243. IFS=$as_save_IFS
  6244. test -z "$as_dir" && as_dir=.
  6245. for ac_exec_ext in '' $ac_executable_extensions; do
  6246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6247. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6249. break 2
  6250. fi
  6251. done
  6252. done
  6253. IFS=$as_save_IFS
  6254. fi
  6255. fi
  6256. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6257. if test -n "$ac_ct_OTOOL64"; then
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6259. $as_echo "$ac_ct_OTOOL64" >&6; }
  6260. else
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6262. $as_echo "no" >&6; }
  6263. fi
  6264. if test "x$ac_ct_OTOOL64" = x; then
  6265. OTOOL64=":"
  6266. else
  6267. case $cross_compiling:$ac_tool_warned in
  6268. yes:)
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6270. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6271. ac_tool_warned=yes ;;
  6272. esac
  6273. OTOOL64=$ac_ct_OTOOL64
  6274. fi
  6275. else
  6276. OTOOL64="$ac_cv_prog_OTOOL64"
  6277. fi
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6279. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6280. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6281. $as_echo_n "(cached) " >&6
  6282. else
  6283. lt_cv_apple_cc_single_mod=no
  6284. if test -z "${LT_MULTI_MODULE}"; then
  6285. # By default we will add the -single_module flag. You can override
  6286. # by either setting the environment variable LT_MULTI_MODULE
  6287. # non-empty at configure time, or by adding -multi_module to the
  6288. # link flags.
  6289. rm -rf libconftest.dylib*
  6290. echo "int foo(void){return 1;}" > conftest.c
  6291. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6292. -dynamiclib -Wl,-single_module conftest.c" >&5
  6293. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6294. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6295. _lt_result=$?
  6296. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6297. lt_cv_apple_cc_single_mod=yes
  6298. else
  6299. cat conftest.err >&5
  6300. fi
  6301. rm -rf libconftest.dylib*
  6302. rm -f conftest.*
  6303. fi
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6306. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6308. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6309. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. lt_cv_ld_exported_symbols_list=no
  6313. save_LDFLAGS=$LDFLAGS
  6314. echo "_main" > conftest.sym
  6315. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. int
  6319. main ()
  6320. {
  6321. ;
  6322. return 0;
  6323. }
  6324. _ACEOF
  6325. if ac_fn_c_try_link "$LINENO"; then :
  6326. lt_cv_ld_exported_symbols_list=yes
  6327. else
  6328. lt_cv_ld_exported_symbols_list=no
  6329. fi
  6330. rm -f core conftest.err conftest.$ac_objext \
  6331. conftest$ac_exeext conftest.$ac_ext
  6332. LDFLAGS="$save_LDFLAGS"
  6333. fi
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6335. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6336. case $host_os in
  6337. rhapsody* | darwin1.[012])
  6338. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6339. darwin1.*)
  6340. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6341. darwin*) # darwin 5.x on
  6342. # if running on 10.5 or later, the deployment target defaults
  6343. # to the OS version, if on x86, and 10.4, the deployment
  6344. # target defaults to 10.4. Don't you love it?
  6345. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6346. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6347. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6348. 10.[012]*)
  6349. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6350. 10.*)
  6351. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6352. esac
  6353. ;;
  6354. esac
  6355. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6356. _lt_dar_single_mod='$single_module'
  6357. fi
  6358. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6359. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6360. else
  6361. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6362. fi
  6363. if test "$DSYMUTIL" != ":"; then
  6364. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6365. else
  6366. _lt_dsymutil=
  6367. fi
  6368. ;;
  6369. esac
  6370. ac_ext=c
  6371. ac_cpp='$CPP $CPPFLAGS'
  6372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6376. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6377. # On Suns, sometimes $CPP names a directory.
  6378. if test -n "$CPP" && test -d "$CPP"; then
  6379. CPP=
  6380. fi
  6381. if test -z "$CPP"; then
  6382. if test "${ac_cv_prog_CPP+set}" = set; then :
  6383. $as_echo_n "(cached) " >&6
  6384. else
  6385. # Double quotes because CPP needs to be expanded
  6386. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6387. do
  6388. ac_preproc_ok=false
  6389. for ac_c_preproc_warn_flag in '' yes
  6390. do
  6391. # Use a header file that comes with gcc, so configuring glibc
  6392. # with a fresh cross-compiler works.
  6393. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6394. # <limits.h> exists even on freestanding compilers.
  6395. # On the NeXT, cc -E runs the code through the compiler's parser,
  6396. # not just through cpp. "Syntax error" is here to catch this case.
  6397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6398. /* end confdefs.h. */
  6399. #ifdef __STDC__
  6400. # include <limits.h>
  6401. #else
  6402. # include <assert.h>
  6403. #endif
  6404. Syntax error
  6405. _ACEOF
  6406. if ac_fn_c_try_cpp "$LINENO"; then :
  6407. else
  6408. # Broken: fails on valid input.
  6409. continue
  6410. fi
  6411. rm -f conftest.err conftest.i conftest.$ac_ext
  6412. # OK, works on sane cases. Now check whether nonexistent headers
  6413. # can be detected and how.
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. #include <ac_nonexistent.h>
  6417. _ACEOF
  6418. if ac_fn_c_try_cpp "$LINENO"; then :
  6419. # Broken: success on invalid input.
  6420. continue
  6421. else
  6422. # Passes both tests.
  6423. ac_preproc_ok=:
  6424. break
  6425. fi
  6426. rm -f conftest.err conftest.i conftest.$ac_ext
  6427. done
  6428. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6429. rm -f conftest.i conftest.err conftest.$ac_ext
  6430. if $ac_preproc_ok; then :
  6431. break
  6432. fi
  6433. done
  6434. ac_cv_prog_CPP=$CPP
  6435. fi
  6436. CPP=$ac_cv_prog_CPP
  6437. else
  6438. ac_cv_prog_CPP=$CPP
  6439. fi
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6441. $as_echo "$CPP" >&6; }
  6442. ac_preproc_ok=false
  6443. for ac_c_preproc_warn_flag in '' yes
  6444. do
  6445. # Use a header file that comes with gcc, so configuring glibc
  6446. # with a fresh cross-compiler works.
  6447. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6448. # <limits.h> exists even on freestanding compilers.
  6449. # On the NeXT, cc -E runs the code through the compiler's parser,
  6450. # not just through cpp. "Syntax error" is here to catch this case.
  6451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6452. /* end confdefs.h. */
  6453. #ifdef __STDC__
  6454. # include <limits.h>
  6455. #else
  6456. # include <assert.h>
  6457. #endif
  6458. Syntax error
  6459. _ACEOF
  6460. if ac_fn_c_try_cpp "$LINENO"; then :
  6461. else
  6462. # Broken: fails on valid input.
  6463. continue
  6464. fi
  6465. rm -f conftest.err conftest.i conftest.$ac_ext
  6466. # OK, works on sane cases. Now check whether nonexistent headers
  6467. # can be detected and how.
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. #include <ac_nonexistent.h>
  6471. _ACEOF
  6472. if ac_fn_c_try_cpp "$LINENO"; then :
  6473. # Broken: success on invalid input.
  6474. continue
  6475. else
  6476. # Passes both tests.
  6477. ac_preproc_ok=:
  6478. break
  6479. fi
  6480. rm -f conftest.err conftest.i conftest.$ac_ext
  6481. done
  6482. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6483. rm -f conftest.i conftest.err conftest.$ac_ext
  6484. if $ac_preproc_ok; then :
  6485. else
  6486. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6488. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6489. See \`config.log' for more details" "$LINENO" 5 ; }
  6490. fi
  6491. ac_ext=c
  6492. ac_cpp='$CPP $CPPFLAGS'
  6493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6497. $as_echo_n "checking for ANSI C header files... " >&6; }
  6498. if test "${ac_cv_header_stdc+set}" = set; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6502. /* end confdefs.h. */
  6503. #include <stdlib.h>
  6504. #include <stdarg.h>
  6505. #include <string.h>
  6506. #include <float.h>
  6507. int
  6508. main ()
  6509. {
  6510. ;
  6511. return 0;
  6512. }
  6513. _ACEOF
  6514. if ac_fn_c_try_compile "$LINENO"; then :
  6515. ac_cv_header_stdc=yes
  6516. else
  6517. ac_cv_header_stdc=no
  6518. fi
  6519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6520. if test $ac_cv_header_stdc = yes; then
  6521. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6523. /* end confdefs.h. */
  6524. #include <string.h>
  6525. _ACEOF
  6526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6527. $EGREP "memchr" >/dev/null 2>&1; then :
  6528. else
  6529. ac_cv_header_stdc=no
  6530. fi
  6531. rm -f conftest*
  6532. fi
  6533. if test $ac_cv_header_stdc = yes; then
  6534. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. #include <stdlib.h>
  6538. _ACEOF
  6539. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6540. $EGREP "free" >/dev/null 2>&1; then :
  6541. else
  6542. ac_cv_header_stdc=no
  6543. fi
  6544. rm -f conftest*
  6545. fi
  6546. if test $ac_cv_header_stdc = yes; then
  6547. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6548. if test "$cross_compiling" = yes; then :
  6549. :
  6550. else
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. #include <ctype.h>
  6554. #include <stdlib.h>
  6555. #if ((' ' & 0x0FF) == 0x020)
  6556. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6557. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6558. #else
  6559. # define ISLOWER(c) \
  6560. (('a' <= (c) && (c) <= 'i') \
  6561. || ('j' <= (c) && (c) <= 'r') \
  6562. || ('s' <= (c) && (c) <= 'z'))
  6563. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6564. #endif
  6565. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6566. int
  6567. main ()
  6568. {
  6569. int i;
  6570. for (i = 0; i < 256; i++)
  6571. if (XOR (islower (i), ISLOWER (i))
  6572. || toupper (i) != TOUPPER (i))
  6573. return 2;
  6574. return 0;
  6575. }
  6576. _ACEOF
  6577. if ac_fn_c_try_run "$LINENO"; then :
  6578. else
  6579. ac_cv_header_stdc=no
  6580. fi
  6581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6582. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6583. fi
  6584. fi
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6587. $as_echo "$ac_cv_header_stdc" >&6; }
  6588. if test $ac_cv_header_stdc = yes; then
  6589. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6590. fi
  6591. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6592. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6593. inttypes.h stdint.h unistd.h
  6594. do :
  6595. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6596. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6597. "
  6598. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6601. _ACEOF
  6602. fi
  6603. done
  6604. for ac_header in dlfcn.h
  6605. do :
  6606. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6607. "
  6608. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6609. cat >>confdefs.h <<_ACEOF
  6610. #define HAVE_DLFCN_H 1
  6611. _ACEOF
  6612. fi
  6613. done
  6614. ac_ext=cpp
  6615. ac_cpp='$CXXCPP $CPPFLAGS'
  6616. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6617. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6618. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6619. if test -z "$CXX"; then
  6620. if test -n "$CCC"; then
  6621. CXX=$CCC
  6622. else
  6623. if test -n "$ac_tool_prefix"; then
  6624. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6625. do
  6626. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6627. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6629. $as_echo_n "checking for $ac_word... " >&6; }
  6630. if test "${ac_cv_prog_CXX+set}" = set; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. if test -n "$CXX"; then
  6634. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6635. else
  6636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637. for as_dir in $PATH
  6638. do
  6639. IFS=$as_save_IFS
  6640. test -z "$as_dir" && as_dir=.
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6643. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. fi
  6651. fi
  6652. CXX=$ac_cv_prog_CXX
  6653. if test -n "$CXX"; then
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6655. $as_echo "$CXX" >&6; }
  6656. else
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6658. $as_echo "no" >&6; }
  6659. fi
  6660. test -n "$CXX" && break
  6661. done
  6662. fi
  6663. if test -z "$CXX"; then
  6664. ac_ct_CXX=$CXX
  6665. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6666. do
  6667. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6668. set dummy $ac_prog; ac_word=$2
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. $as_echo_n "checking for $ac_word... " >&6; }
  6671. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. if test -n "$ac_ct_CXX"; then
  6675. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6676. else
  6677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6678. for as_dir in $PATH
  6679. do
  6680. IFS=$as_save_IFS
  6681. test -z "$as_dir" && as_dir=.
  6682. for ac_exec_ext in '' $ac_executable_extensions; do
  6683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6684. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6686. break 2
  6687. fi
  6688. done
  6689. done
  6690. IFS=$as_save_IFS
  6691. fi
  6692. fi
  6693. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6694. if test -n "$ac_ct_CXX"; then
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6696. $as_echo "$ac_ct_CXX" >&6; }
  6697. else
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6699. $as_echo "no" >&6; }
  6700. fi
  6701. test -n "$ac_ct_CXX" && break
  6702. done
  6703. if test "x$ac_ct_CXX" = x; then
  6704. CXX="g++"
  6705. else
  6706. case $cross_compiling:$ac_tool_warned in
  6707. yes:)
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6710. ac_tool_warned=yes ;;
  6711. esac
  6712. CXX=$ac_ct_CXX
  6713. fi
  6714. fi
  6715. fi
  6716. fi
  6717. # Provide some information about the compiler.
  6718. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6719. set X $ac_compile
  6720. ac_compiler=$2
  6721. for ac_option in --version -v -V -qversion; do
  6722. { { ac_try="$ac_compiler $ac_option >&5"
  6723. case "(($ac_try" in
  6724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6725. *) ac_try_echo=$ac_try;;
  6726. esac
  6727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6728. $as_echo "$ac_try_echo"; } >&5
  6729. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6730. ac_status=$?
  6731. if test -s conftest.err; then
  6732. sed '10a\
  6733. ... rest of stderr output deleted ...
  6734. 10q' conftest.err >conftest.er1
  6735. cat conftest.er1 >&5
  6736. fi
  6737. rm -f conftest.er1 conftest.err
  6738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6739. test $ac_status = 0; }
  6740. done
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6742. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6743. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. int
  6749. main ()
  6750. {
  6751. #ifndef __GNUC__
  6752. choke me
  6753. #endif
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. if ac_fn_cxx_try_compile "$LINENO"; then :
  6759. ac_compiler_gnu=yes
  6760. else
  6761. ac_compiler_gnu=no
  6762. fi
  6763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6764. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6765. fi
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6767. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6768. if test $ac_compiler_gnu = yes; then
  6769. GXX=yes
  6770. else
  6771. GXX=
  6772. fi
  6773. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6774. ac_save_CXXFLAGS=$CXXFLAGS
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6776. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6777. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6778. $as_echo_n "(cached) " >&6
  6779. else
  6780. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6781. ac_cxx_werror_flag=yes
  6782. ac_cv_prog_cxx_g=no
  6783. CXXFLAGS="-g"
  6784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6785. /* end confdefs.h. */
  6786. int
  6787. main ()
  6788. {
  6789. ;
  6790. return 0;
  6791. }
  6792. _ACEOF
  6793. if ac_fn_cxx_try_compile "$LINENO"; then :
  6794. ac_cv_prog_cxx_g=yes
  6795. else
  6796. CXXFLAGS=""
  6797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6798. /* end confdefs.h. */
  6799. int
  6800. main ()
  6801. {
  6802. ;
  6803. return 0;
  6804. }
  6805. _ACEOF
  6806. if ac_fn_cxx_try_compile "$LINENO"; then :
  6807. else
  6808. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6809. CXXFLAGS="-g"
  6810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6811. /* end confdefs.h. */
  6812. int
  6813. main ()
  6814. {
  6815. ;
  6816. return 0;
  6817. }
  6818. _ACEOF
  6819. if ac_fn_cxx_try_compile "$LINENO"; then :
  6820. ac_cv_prog_cxx_g=yes
  6821. fi
  6822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6825. fi
  6826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6827. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6828. fi
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6830. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6831. if test "$ac_test_CXXFLAGS" = set; then
  6832. CXXFLAGS=$ac_save_CXXFLAGS
  6833. elif test $ac_cv_prog_cxx_g = yes; then
  6834. if test "$GXX" = yes; then
  6835. CXXFLAGS="-g -O2"
  6836. else
  6837. CXXFLAGS="-g"
  6838. fi
  6839. else
  6840. if test "$GXX" = yes; then
  6841. CXXFLAGS="-O2"
  6842. else
  6843. CXXFLAGS=
  6844. fi
  6845. fi
  6846. ac_ext=cpp
  6847. ac_cpp='$CXXCPP $CPPFLAGS'
  6848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6851. depcc="$CXX" am_compiler_list=
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6853. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6854. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6858. # We make a subdir and do the tests there. Otherwise we can end up
  6859. # making bogus files that we don't know about and never remove. For
  6860. # instance it was reported that on HP-UX the gcc test will end up
  6861. # making a dummy file named `D' -- because `-MD' means `put the output
  6862. # in D'.
  6863. mkdir conftest.dir
  6864. # Copy depcomp to subdir because otherwise we won't find it if we're
  6865. # using a relative directory.
  6866. cp "$am_depcomp" conftest.dir
  6867. cd conftest.dir
  6868. # We will build objects and dependencies in a subdirectory because
  6869. # it helps to detect inapplicable dependency modes. For instance
  6870. # both Tru64's cc and ICC support -MD to output dependencies as a
  6871. # side effect of compilation, but ICC will put the dependencies in
  6872. # the current directory while Tru64 will put them in the object
  6873. # directory.
  6874. mkdir sub
  6875. am_cv_CXX_dependencies_compiler_type=none
  6876. if test "$am_compiler_list" = ""; then
  6877. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6878. fi
  6879. am__universal=false
  6880. case " $depcc " in #(
  6881. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6882. esac
  6883. for depmode in $am_compiler_list; do
  6884. # Setup a source with many dependencies, because some compilers
  6885. # like to wrap large dependency lists on column 80 (with \), and
  6886. # we should not choose a depcomp mode which is confused by this.
  6887. #
  6888. # We need to recreate these files for each test, as the compiler may
  6889. # overwrite some of them when testing with obscure command lines.
  6890. # This happens at least with the AIX C compiler.
  6891. : > sub/conftest.c
  6892. for i in 1 2 3 4 5 6; do
  6893. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6894. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6895. # Solaris 8's {/usr,}/bin/sh.
  6896. touch sub/conftst$i.h
  6897. done
  6898. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6899. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6900. # mode. It turns out that the SunPro C++ compiler does not properly
  6901. # handle `-M -o', and we need to detect this. Also, some Intel
  6902. # versions had trouble with output in subdirs
  6903. am__obj=sub/conftest.${OBJEXT-o}
  6904. am__minus_obj="-o $am__obj"
  6905. case $depmode in
  6906. gcc)
  6907. # This depmode causes a compiler race in universal mode.
  6908. test "$am__universal" = false || continue
  6909. ;;
  6910. nosideeffect)
  6911. # after this tag, mechanisms are not by side-effect, so they'll
  6912. # only be used when explicitly requested
  6913. if test "x$enable_dependency_tracking" = xyes; then
  6914. continue
  6915. else
  6916. break
  6917. fi
  6918. ;;
  6919. msvisualcpp | msvcmsys)
  6920. # This compiler won't grok `-c -o', but also, the minuso test has
  6921. # not run yet. These depmodes are late enough in the game, and
  6922. # so weak that their functioning should not be impacted.
  6923. am__obj=conftest.${OBJEXT-o}
  6924. am__minus_obj=
  6925. ;;
  6926. none) break ;;
  6927. esac
  6928. if depmode=$depmode \
  6929. source=sub/conftest.c object=$am__obj \
  6930. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6931. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6932. >/dev/null 2>conftest.err &&
  6933. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6934. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6935. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6936. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6937. # icc doesn't choke on unknown options, it will just issue warnings
  6938. # or remarks (even with -Werror). So we grep stderr for any message
  6939. # that says an option was ignored or not supported.
  6940. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6941. # icc: Command line warning: ignoring option '-M'; no argument required
  6942. # The diagnosis changed in icc 8.0:
  6943. # icc: Command line remark: option '-MP' not supported
  6944. if (grep 'ignoring option' conftest.err ||
  6945. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6946. am_cv_CXX_dependencies_compiler_type=$depmode
  6947. break
  6948. fi
  6949. fi
  6950. done
  6951. cd ..
  6952. rm -rf conftest.dir
  6953. else
  6954. am_cv_CXX_dependencies_compiler_type=none
  6955. fi
  6956. fi
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6958. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6959. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6960. if
  6961. test "x$enable_dependency_tracking" != xno \
  6962. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6963. am__fastdepCXX_TRUE=
  6964. am__fastdepCXX_FALSE='#'
  6965. else
  6966. am__fastdepCXX_TRUE='#'
  6967. am__fastdepCXX_FALSE=
  6968. fi
  6969. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6970. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6971. (test "X$CXX" != "Xg++"))) ; then
  6972. ac_ext=cpp
  6973. ac_cpp='$CXXCPP $CPPFLAGS'
  6974. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6975. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6976. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6978. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6979. if test -z "$CXXCPP"; then
  6980. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6981. $as_echo_n "(cached) " >&6
  6982. else
  6983. # Double quotes because CXXCPP needs to be expanded
  6984. for CXXCPP in "$CXX -E" "/lib/cpp"
  6985. do
  6986. ac_preproc_ok=false
  6987. for ac_cxx_preproc_warn_flag in '' yes
  6988. do
  6989. # Use a header file that comes with gcc, so configuring glibc
  6990. # with a fresh cross-compiler works.
  6991. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6992. # <limits.h> exists even on freestanding compilers.
  6993. # On the NeXT, cc -E runs the code through the compiler's parser,
  6994. # not just through cpp. "Syntax error" is here to catch this case.
  6995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6996. /* end confdefs.h. */
  6997. #ifdef __STDC__
  6998. # include <limits.h>
  6999. #else
  7000. # include <assert.h>
  7001. #endif
  7002. Syntax error
  7003. _ACEOF
  7004. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7005. else
  7006. # Broken: fails on valid input.
  7007. continue
  7008. fi
  7009. rm -f conftest.err conftest.i conftest.$ac_ext
  7010. # OK, works on sane cases. Now check whether nonexistent headers
  7011. # can be detected and how.
  7012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7013. /* end confdefs.h. */
  7014. #include <ac_nonexistent.h>
  7015. _ACEOF
  7016. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7017. # Broken: success on invalid input.
  7018. continue
  7019. else
  7020. # Passes both tests.
  7021. ac_preproc_ok=:
  7022. break
  7023. fi
  7024. rm -f conftest.err conftest.i conftest.$ac_ext
  7025. done
  7026. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7027. rm -f conftest.i conftest.err conftest.$ac_ext
  7028. if $ac_preproc_ok; then :
  7029. break
  7030. fi
  7031. done
  7032. ac_cv_prog_CXXCPP=$CXXCPP
  7033. fi
  7034. CXXCPP=$ac_cv_prog_CXXCPP
  7035. else
  7036. ac_cv_prog_CXXCPP=$CXXCPP
  7037. fi
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7039. $as_echo "$CXXCPP" >&6; }
  7040. ac_preproc_ok=false
  7041. for ac_cxx_preproc_warn_flag in '' yes
  7042. do
  7043. # Use a header file that comes with gcc, so configuring glibc
  7044. # with a fresh cross-compiler works.
  7045. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7046. # <limits.h> exists even on freestanding compilers.
  7047. # On the NeXT, cc -E runs the code through the compiler's parser,
  7048. # not just through cpp. "Syntax error" is here to catch this case.
  7049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7050. /* end confdefs.h. */
  7051. #ifdef __STDC__
  7052. # include <limits.h>
  7053. #else
  7054. # include <assert.h>
  7055. #endif
  7056. Syntax error
  7057. _ACEOF
  7058. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7059. else
  7060. # Broken: fails on valid input.
  7061. continue
  7062. fi
  7063. rm -f conftest.err conftest.i conftest.$ac_ext
  7064. # OK, works on sane cases. Now check whether nonexistent headers
  7065. # can be detected and how.
  7066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7067. /* end confdefs.h. */
  7068. #include <ac_nonexistent.h>
  7069. _ACEOF
  7070. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7071. # Broken: success on invalid input.
  7072. continue
  7073. else
  7074. # Passes both tests.
  7075. ac_preproc_ok=:
  7076. break
  7077. fi
  7078. rm -f conftest.err conftest.i conftest.$ac_ext
  7079. done
  7080. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7081. rm -f conftest.i conftest.err conftest.$ac_ext
  7082. if $ac_preproc_ok; then :
  7083. else
  7084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7086. _lt_caught_CXX_error=yes; }
  7087. fi
  7088. ac_ext=cpp
  7089. ac_cpp='$CXXCPP $CPPFLAGS'
  7090. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7091. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7092. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7093. else
  7094. _lt_caught_CXX_error=yes
  7095. fi
  7096. # Set options
  7097. enable_dlopen=no
  7098. enable_win32_dll=no
  7099. # Check whether --with-pic was given.
  7100. if test "${with_pic+set}" = set; then :
  7101. withval=$with_pic; pic_mode="$withval"
  7102. else
  7103. pic_mode=default
  7104. fi
  7105. test -z "$pic_mode" && pic_mode=default
  7106. # Check whether --enable-fast-install was given.
  7107. if test "${enable_fast_install+set}" = set; then :
  7108. enableval=$enable_fast_install; p=${PACKAGE-default}
  7109. case $enableval in
  7110. yes) enable_fast_install=yes ;;
  7111. no) enable_fast_install=no ;;
  7112. *)
  7113. enable_fast_install=no
  7114. # Look at the argument we got. We use all the common list separators.
  7115. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7116. for pkg in $enableval; do
  7117. IFS="$lt_save_ifs"
  7118. if test "X$pkg" = "X$p"; then
  7119. enable_fast_install=yes
  7120. fi
  7121. done
  7122. IFS="$lt_save_ifs"
  7123. ;;
  7124. esac
  7125. else
  7126. enable_fast_install=yes
  7127. fi
  7128. # This can be used to rebuild libtool when needed
  7129. LIBTOOL_DEPS="$ltmain"
  7130. # Always use our own libtool.
  7131. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7132. test -z "$LN_S" && LN_S="ln -s"
  7133. if test -n "${ZSH_VERSION+set}" ; then
  7134. setopt NO_GLOB_SUBST
  7135. fi
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7137. $as_echo_n "checking for objdir... " >&6; }
  7138. if test "${lt_cv_objdir+set}" = set; then :
  7139. $as_echo_n "(cached) " >&6
  7140. else
  7141. rm -f .libs 2>/dev/null
  7142. mkdir .libs 2>/dev/null
  7143. if test -d .libs; then
  7144. lt_cv_objdir=.libs
  7145. else
  7146. # MS-DOS does not allow filenames that begin with a dot.
  7147. lt_cv_objdir=_libs
  7148. fi
  7149. rmdir .libs 2>/dev/null
  7150. fi
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7152. $as_echo "$lt_cv_objdir" >&6; }
  7153. objdir=$lt_cv_objdir
  7154. cat >>confdefs.h <<_ACEOF
  7155. #define LT_OBJDIR "$lt_cv_objdir/"
  7156. _ACEOF
  7157. case $host_os in
  7158. aix3*)
  7159. # AIX sometimes has problems with the GCC collect2 program. For some
  7160. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7161. # vanish in a puff of smoke.
  7162. if test "X${COLLECT_NAMES+set}" != Xset; then
  7163. COLLECT_NAMES=
  7164. export COLLECT_NAMES
  7165. fi
  7166. ;;
  7167. esac
  7168. # Sed substitution that helps us do robust quoting. It backslashifies
  7169. # metacharacters that are still active within double-quoted strings.
  7170. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7171. # Same as above, but do not quote variable references.
  7172. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7173. # Sed substitution to delay expansion of an escaped shell variable in a
  7174. # double_quote_subst'ed string.
  7175. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7176. # Sed substitution to delay expansion of an escaped single quote.
  7177. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7178. # Sed substitution to avoid accidental globbing in evaled expressions
  7179. no_glob_subst='s/\*/\\\*/g'
  7180. # Global variables:
  7181. ofile=libtool
  7182. can_build_shared=yes
  7183. # All known linkers require a `.a' archive for static linking (except MSVC,
  7184. # which needs '.lib').
  7185. libext=a
  7186. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7187. old_CC="$CC"
  7188. old_CFLAGS="$CFLAGS"
  7189. # Set sane defaults for various variables
  7190. test -z "$CC" && CC=cc
  7191. test -z "$LTCC" && LTCC=$CC
  7192. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7193. test -z "$LD" && LD=ld
  7194. test -z "$ac_objext" && ac_objext=o
  7195. for cc_temp in $compiler""; do
  7196. case $cc_temp in
  7197. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7198. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7199. \-*) ;;
  7200. *) break;;
  7201. esac
  7202. done
  7203. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7204. # Only perform the check for file, if the check method requires it
  7205. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7206. case $deplibs_check_method in
  7207. file_magic*)
  7208. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7210. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7211. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7212. $as_echo_n "(cached) " >&6
  7213. else
  7214. case $MAGIC_CMD in
  7215. [\\/*] | ?:[\\/]*)
  7216. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7217. ;;
  7218. *)
  7219. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7220. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7221. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7222. for ac_dir in $ac_dummy; do
  7223. IFS="$lt_save_ifs"
  7224. test -z "$ac_dir" && ac_dir=.
  7225. if test -f $ac_dir/${ac_tool_prefix}file; then
  7226. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7227. if test -n "$file_magic_test_file"; then
  7228. case $deplibs_check_method in
  7229. "file_magic "*)
  7230. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7231. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7232. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7233. $EGREP "$file_magic_regex" > /dev/null; then
  7234. :
  7235. else
  7236. cat <<_LT_EOF 1>&2
  7237. *** Warning: the command libtool uses to detect shared libraries,
  7238. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7239. *** The result is that libtool may fail to recognize shared libraries
  7240. *** as such. This will affect the creation of libtool libraries that
  7241. *** depend on shared libraries, but programs linked with such libtool
  7242. *** libraries will work regardless of this problem. Nevertheless, you
  7243. *** may want to report the problem to your system manager and/or to
  7244. *** [email protected]
  7245. _LT_EOF
  7246. fi ;;
  7247. esac
  7248. fi
  7249. break
  7250. fi
  7251. done
  7252. IFS="$lt_save_ifs"
  7253. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7254. ;;
  7255. esac
  7256. fi
  7257. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7258. if test -n "$MAGIC_CMD"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7260. $as_echo "$MAGIC_CMD" >&6; }
  7261. else
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7263. $as_echo "no" >&6; }
  7264. fi
  7265. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7266. if test -n "$ac_tool_prefix"; then
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7268. $as_echo_n "checking for file... " >&6; }
  7269. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7270. $as_echo_n "(cached) " >&6
  7271. else
  7272. case $MAGIC_CMD in
  7273. [\\/*] | ?:[\\/]*)
  7274. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7275. ;;
  7276. *)
  7277. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7278. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7279. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7280. for ac_dir in $ac_dummy; do
  7281. IFS="$lt_save_ifs"
  7282. test -z "$ac_dir" && ac_dir=.
  7283. if test -f $ac_dir/file; then
  7284. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7285. if test -n "$file_magic_test_file"; then
  7286. case $deplibs_check_method in
  7287. "file_magic "*)
  7288. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7289. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7290. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7291. $EGREP "$file_magic_regex" > /dev/null; then
  7292. :
  7293. else
  7294. cat <<_LT_EOF 1>&2
  7295. *** Warning: the command libtool uses to detect shared libraries,
  7296. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7297. *** The result is that libtool may fail to recognize shared libraries
  7298. *** as such. This will affect the creation of libtool libraries that
  7299. *** depend on shared libraries, but programs linked with such libtool
  7300. *** libraries will work regardless of this problem. Nevertheless, you
  7301. *** may want to report the problem to your system manager and/or to
  7302. *** [email protected]
  7303. _LT_EOF
  7304. fi ;;
  7305. esac
  7306. fi
  7307. break
  7308. fi
  7309. done
  7310. IFS="$lt_save_ifs"
  7311. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7312. ;;
  7313. esac
  7314. fi
  7315. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7316. if test -n "$MAGIC_CMD"; then
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7318. $as_echo "$MAGIC_CMD" >&6; }
  7319. else
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7321. $as_echo "no" >&6; }
  7322. fi
  7323. else
  7324. MAGIC_CMD=:
  7325. fi
  7326. fi
  7327. fi
  7328. ;;
  7329. esac
  7330. # Use C for the default configuration in the libtool script
  7331. lt_save_CC="$CC"
  7332. ac_ext=c
  7333. ac_cpp='$CPP $CPPFLAGS'
  7334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7337. # Source file extension for C test sources.
  7338. ac_ext=c
  7339. # Object file extension for compiled C test sources.
  7340. objext=o
  7341. objext=$objext
  7342. # Code to be used in simple compile tests
  7343. lt_simple_compile_test_code="int some_variable = 0;"
  7344. # Code to be used in simple link tests
  7345. lt_simple_link_test_code='int main(){return(0);}'
  7346. # If no C compiler was specified, use CC.
  7347. LTCC=${LTCC-"$CC"}
  7348. # If no C compiler flags were specified, use CFLAGS.
  7349. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7350. # Allow CC to be a program name with arguments.
  7351. compiler=$CC
  7352. # Save the default compiler, since it gets overwritten when the other
  7353. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7354. compiler_DEFAULT=$CC
  7355. # save warnings/boilerplate of simple test code
  7356. ac_outfile=conftest.$ac_objext
  7357. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7358. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7359. _lt_compiler_boilerplate=`cat conftest.err`
  7360. $RM conftest*
  7361. ac_outfile=conftest.$ac_objext
  7362. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7363. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7364. _lt_linker_boilerplate=`cat conftest.err`
  7365. $RM -r conftest*
  7366. ## CAVEAT EMPTOR:
  7367. ## There is no encapsulation within the following macros, do not change
  7368. ## the running order or otherwise move them around unless you know exactly
  7369. ## what you are doing...
  7370. if test -n "$compiler"; then
  7371. lt_prog_compiler_no_builtin_flag=
  7372. if test "$GCC" = yes; then
  7373. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7375. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7376. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7377. $as_echo_n "(cached) " >&6
  7378. else
  7379. lt_cv_prog_compiler_rtti_exceptions=no
  7380. ac_outfile=conftest.$ac_objext
  7381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7382. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7383. # Insert the option either (1) after the last *FLAGS variable, or
  7384. # (2) before a word containing "conftest.", or (3) at the end.
  7385. # Note that $ac_compile itself does not contain backslashes and begins
  7386. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7387. # The option is referenced via a variable to avoid confusing sed.
  7388. lt_compile=`echo "$ac_compile" | $SED \
  7389. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7390. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7391. -e 's:$: $lt_compiler_flag:'`
  7392. (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
  7393. (eval "$lt_compile" 2>conftest.err)
  7394. ac_status=$?
  7395. cat conftest.err >&5
  7396. echo "$as_me:8431: \$? = $ac_status" >&5
  7397. if (exit $ac_status) && test -s "$ac_outfile"; then
  7398. # The compiler can only warn and ignore the option if not recognized
  7399. # So say no if there are warnings other than the usual output.
  7400. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7402. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7403. lt_cv_prog_compiler_rtti_exceptions=yes
  7404. fi
  7405. fi
  7406. $RM conftest*
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7409. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7410. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7411. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7412. else
  7413. :
  7414. fi
  7415. fi
  7416. lt_prog_compiler_wl=
  7417. lt_prog_compiler_pic=
  7418. lt_prog_compiler_static=
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7420. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7421. if test "$GCC" = yes; then
  7422. lt_prog_compiler_wl='-Wl,'
  7423. lt_prog_compiler_static='-static'
  7424. case $host_os in
  7425. aix*)
  7426. # All AIX code is PIC.
  7427. if test "$host_cpu" = ia64; then
  7428. # AIX 5 now supports IA64 processor
  7429. lt_prog_compiler_static='-Bstatic'
  7430. fi
  7431. ;;
  7432. amigaos*)
  7433. case $host_cpu in
  7434. powerpc)
  7435. # see comment about AmigaOS4 .so support
  7436. lt_prog_compiler_pic='-fPIC'
  7437. ;;
  7438. m68k)
  7439. # FIXME: we need at least 68020 code to build shared libraries, but
  7440. # adding the `-m68020' flag to GCC prevents building anything better,
  7441. # like `-m68040'.
  7442. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7443. ;;
  7444. esac
  7445. ;;
  7446. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7447. # PIC is the default for these OSes.
  7448. ;;
  7449. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7450. # This hack is so that the source file can tell whether it is being
  7451. # built for inclusion in a dll (and should export symbols for example).
  7452. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7453. # (--disable-auto-import) libraries
  7454. lt_prog_compiler_pic='-DDLL_EXPORT'
  7455. ;;
  7456. darwin* | rhapsody*)
  7457. # PIC is the default on this platform
  7458. # Common symbols not allowed in MH_DYLIB files
  7459. lt_prog_compiler_pic='-fno-common'
  7460. ;;
  7461. hpux*)
  7462. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7463. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7464. # sets the default TLS model and affects inlining.
  7465. case $host_cpu in
  7466. hppa*64*)
  7467. # +Z the default
  7468. ;;
  7469. *)
  7470. lt_prog_compiler_pic='-fPIC'
  7471. ;;
  7472. esac
  7473. ;;
  7474. interix[3-9]*)
  7475. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7476. # Instead, we relocate shared libraries at runtime.
  7477. ;;
  7478. msdosdjgpp*)
  7479. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7480. # on systems that don't support them.
  7481. lt_prog_compiler_can_build_shared=no
  7482. enable_shared=no
  7483. ;;
  7484. *nto* | *qnx*)
  7485. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7486. # it will coredump.
  7487. lt_prog_compiler_pic='-fPIC -shared'
  7488. ;;
  7489. sysv4*MP*)
  7490. if test -d /usr/nec; then
  7491. lt_prog_compiler_pic=-Kconform_pic
  7492. fi
  7493. ;;
  7494. *)
  7495. lt_prog_compiler_pic='-fPIC'
  7496. ;;
  7497. esac
  7498. else
  7499. # PORTME Check for flag to pass linker flags through the system compiler.
  7500. case $host_os in
  7501. aix*)
  7502. lt_prog_compiler_wl='-Wl,'
  7503. if test "$host_cpu" = ia64; then
  7504. # AIX 5 now supports IA64 processor
  7505. lt_prog_compiler_static='-Bstatic'
  7506. else
  7507. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7508. fi
  7509. ;;
  7510. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7511. # This hack is so that the source file can tell whether it is being
  7512. # built for inclusion in a dll (and should export symbols for example).
  7513. lt_prog_compiler_pic='-DDLL_EXPORT'
  7514. ;;
  7515. hpux9* | hpux10* | hpux11*)
  7516. lt_prog_compiler_wl='-Wl,'
  7517. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7518. # not for PA HP-UX.
  7519. case $host_cpu in
  7520. hppa*64*|ia64*)
  7521. # +Z the default
  7522. ;;
  7523. *)
  7524. lt_prog_compiler_pic='+Z'
  7525. ;;
  7526. esac
  7527. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7528. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7529. ;;
  7530. irix5* | irix6* | nonstopux*)
  7531. lt_prog_compiler_wl='-Wl,'
  7532. # PIC (with -KPIC) is the default.
  7533. lt_prog_compiler_static='-non_shared'
  7534. ;;
  7535. linux* | k*bsd*-gnu)
  7536. case $cc_basename in
  7537. # old Intel for x86_64 which still supported -KPIC.
  7538. ecc*)
  7539. lt_prog_compiler_wl='-Wl,'
  7540. lt_prog_compiler_pic='-KPIC'
  7541. lt_prog_compiler_static='-static'
  7542. ;;
  7543. # icc used to be incompatible with GCC.
  7544. # ICC 10 doesn't accept -KPIC any more.
  7545. icc* | ifort*)
  7546. lt_prog_compiler_wl='-Wl,'
  7547. lt_prog_compiler_pic='-fPIC'
  7548. lt_prog_compiler_static='-static'
  7549. ;;
  7550. # Lahey Fortran 8.1.
  7551. lf95*)
  7552. lt_prog_compiler_wl='-Wl,'
  7553. lt_prog_compiler_pic='--shared'
  7554. lt_prog_compiler_static='--static'
  7555. ;;
  7556. pgcc* | pgf77* | pgf90* | pgf95*)
  7557. # Portland Group compilers (*not* the Pentium gcc compiler,
  7558. # which looks to be a dead project)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-fpic'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. ccc*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. # All Alpha code is PIC.
  7566. lt_prog_compiler_static='-non_shared'
  7567. ;;
  7568. xl*)
  7569. # IBM XL C 8.0/Fortran 10.1 on PPC
  7570. lt_prog_compiler_wl='-Wl,'
  7571. lt_prog_compiler_pic='-qpic'
  7572. lt_prog_compiler_static='-qstaticlink'
  7573. ;;
  7574. *)
  7575. case `$CC -V 2>&1 | sed 5q` in
  7576. *Sun\ C*)
  7577. # Sun C 5.9
  7578. lt_prog_compiler_pic='-KPIC'
  7579. lt_prog_compiler_static='-Bstatic'
  7580. lt_prog_compiler_wl='-Wl,'
  7581. ;;
  7582. *Sun\ F*)
  7583. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7584. lt_prog_compiler_pic='-KPIC'
  7585. lt_prog_compiler_static='-Bstatic'
  7586. lt_prog_compiler_wl=''
  7587. ;;
  7588. esac
  7589. ;;
  7590. esac
  7591. ;;
  7592. newsos6)
  7593. lt_prog_compiler_pic='-KPIC'
  7594. lt_prog_compiler_static='-Bstatic'
  7595. ;;
  7596. *nto* | *qnx*)
  7597. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7598. # it will coredump.
  7599. lt_prog_compiler_pic='-fPIC -shared'
  7600. ;;
  7601. osf3* | osf4* | osf5*)
  7602. lt_prog_compiler_wl='-Wl,'
  7603. # All OSF/1 code is PIC.
  7604. lt_prog_compiler_static='-non_shared'
  7605. ;;
  7606. rdos*)
  7607. lt_prog_compiler_static='-non_shared'
  7608. ;;
  7609. solaris*)
  7610. lt_prog_compiler_pic='-KPIC'
  7611. lt_prog_compiler_static='-Bstatic'
  7612. case $cc_basename in
  7613. f77* | f90* | f95*)
  7614. lt_prog_compiler_wl='-Qoption ld ';;
  7615. *)
  7616. lt_prog_compiler_wl='-Wl,';;
  7617. esac
  7618. ;;
  7619. sunos4*)
  7620. lt_prog_compiler_wl='-Qoption ld '
  7621. lt_prog_compiler_pic='-PIC'
  7622. lt_prog_compiler_static='-Bstatic'
  7623. ;;
  7624. sysv4 | sysv4.2uw2* | sysv4.3*)
  7625. lt_prog_compiler_wl='-Wl,'
  7626. lt_prog_compiler_pic='-KPIC'
  7627. lt_prog_compiler_static='-Bstatic'
  7628. ;;
  7629. sysv4*MP*)
  7630. if test -d /usr/nec ;then
  7631. lt_prog_compiler_pic='-Kconform_pic'
  7632. lt_prog_compiler_static='-Bstatic'
  7633. fi
  7634. ;;
  7635. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7636. lt_prog_compiler_wl='-Wl,'
  7637. lt_prog_compiler_pic='-KPIC'
  7638. lt_prog_compiler_static='-Bstatic'
  7639. ;;
  7640. unicos*)
  7641. lt_prog_compiler_wl='-Wl,'
  7642. lt_prog_compiler_can_build_shared=no
  7643. ;;
  7644. uts4*)
  7645. lt_prog_compiler_pic='-pic'
  7646. lt_prog_compiler_static='-Bstatic'
  7647. ;;
  7648. *)
  7649. lt_prog_compiler_can_build_shared=no
  7650. ;;
  7651. esac
  7652. fi
  7653. case $host_os in
  7654. # For platforms which do not support PIC, -DPIC is meaningless:
  7655. *djgpp*)
  7656. lt_prog_compiler_pic=
  7657. ;;
  7658. *)
  7659. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7660. ;;
  7661. esac
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7663. $as_echo "$lt_prog_compiler_pic" >&6; }
  7664. #
  7665. # Check to make sure the PIC flag actually works.
  7666. #
  7667. if test -n "$lt_prog_compiler_pic"; then
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7669. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7670. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7671. $as_echo_n "(cached) " >&6
  7672. else
  7673. lt_cv_prog_compiler_pic_works=no
  7674. ac_outfile=conftest.$ac_objext
  7675. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7676. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7677. # Insert the option either (1) after the last *FLAGS variable, or
  7678. # (2) before a word containing "conftest.", or (3) at the end.
  7679. # Note that $ac_compile itself does not contain backslashes and begins
  7680. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7681. # The option is referenced via a variable to avoid confusing sed.
  7682. lt_compile=`echo "$ac_compile" | $SED \
  7683. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7684. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7685. -e 's:$: $lt_compiler_flag:'`
  7686. (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
  7687. (eval "$lt_compile" 2>conftest.err)
  7688. ac_status=$?
  7689. cat conftest.err >&5
  7690. echo "$as_me:8770: \$? = $ac_status" >&5
  7691. if (exit $ac_status) && test -s "$ac_outfile"; then
  7692. # The compiler can only warn and ignore the option if not recognized
  7693. # So say no if there are warnings other than the usual output.
  7694. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7695. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7696. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7697. lt_cv_prog_compiler_pic_works=yes
  7698. fi
  7699. fi
  7700. $RM conftest*
  7701. fi
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7703. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7704. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7705. case $lt_prog_compiler_pic in
  7706. "" | " "*) ;;
  7707. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7708. esac
  7709. else
  7710. lt_prog_compiler_pic=
  7711. lt_prog_compiler_can_build_shared=no
  7712. fi
  7713. fi
  7714. #
  7715. # Check to make sure the static flag actually works.
  7716. #
  7717. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7719. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7720. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7721. $as_echo_n "(cached) " >&6
  7722. else
  7723. lt_cv_prog_compiler_static_works=no
  7724. save_LDFLAGS="$LDFLAGS"
  7725. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7726. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7727. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7728. # The linker can only warn and ignore the option if not recognized
  7729. # So say no if there are warnings
  7730. if test -s conftest.err; then
  7731. # Append any errors to the config.log.
  7732. cat conftest.err 1>&5
  7733. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7734. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7735. if diff conftest.exp conftest.er2 >/dev/null; then
  7736. lt_cv_prog_compiler_static_works=yes
  7737. fi
  7738. else
  7739. lt_cv_prog_compiler_static_works=yes
  7740. fi
  7741. fi
  7742. $RM -r conftest*
  7743. LDFLAGS="$save_LDFLAGS"
  7744. fi
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7746. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7747. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7748. :
  7749. else
  7750. lt_prog_compiler_static=
  7751. fi
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7753. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7754. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7755. $as_echo_n "(cached) " >&6
  7756. else
  7757. lt_cv_prog_compiler_c_o=no
  7758. $RM -r conftest 2>/dev/null
  7759. mkdir conftest
  7760. cd conftest
  7761. mkdir out
  7762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7763. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7764. # Insert the option either (1) after the last *FLAGS variable, or
  7765. # (2) before a word containing "conftest.", or (3) at the end.
  7766. # Note that $ac_compile itself does not contain backslashes and begins
  7767. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7768. lt_compile=`echo "$ac_compile" | $SED \
  7769. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7770. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7771. -e 's:$: $lt_compiler_flag:'`
  7772. (eval echo "\"\$as_me:8871: $lt_compile\"" >&5)
  7773. (eval "$lt_compile" 2>out/conftest.err)
  7774. ac_status=$?
  7775. cat out/conftest.err >&5
  7776. echo "$as_me:8875: \$? = $ac_status" >&5
  7777. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7778. then
  7779. # The compiler can only warn and ignore the option if not recognized
  7780. # So say no if there are warnings
  7781. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7782. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7783. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7784. lt_cv_prog_compiler_c_o=yes
  7785. fi
  7786. fi
  7787. chmod u+w . 2>&5
  7788. $RM conftest*
  7789. # SGI C++ compiler will create directory out/ii_files/ for
  7790. # template instantiation
  7791. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7792. $RM out/* && rmdir out
  7793. cd ..
  7794. $RM -r conftest
  7795. $RM conftest*
  7796. fi
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7798. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7800. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7801. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7802. $as_echo_n "(cached) " >&6
  7803. else
  7804. lt_cv_prog_compiler_c_o=no
  7805. $RM -r conftest 2>/dev/null
  7806. mkdir conftest
  7807. cd conftest
  7808. mkdir out
  7809. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7810. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7811. # Insert the option either (1) after the last *FLAGS variable, or
  7812. # (2) before a word containing "conftest.", or (3) at the end.
  7813. # Note that $ac_compile itself does not contain backslashes and begins
  7814. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7815. lt_compile=`echo "$ac_compile" | $SED \
  7816. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7817. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7818. -e 's:$: $lt_compiler_flag:'`
  7819. (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
  7820. (eval "$lt_compile" 2>out/conftest.err)
  7821. ac_status=$?
  7822. cat out/conftest.err >&5
  7823. echo "$as_me:8930: \$? = $ac_status" >&5
  7824. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7825. then
  7826. # The compiler can only warn and ignore the option if not recognized
  7827. # So say no if there are warnings
  7828. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7829. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7830. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7831. lt_cv_prog_compiler_c_o=yes
  7832. fi
  7833. fi
  7834. chmod u+w . 2>&5
  7835. $RM conftest*
  7836. # SGI C++ compiler will create directory out/ii_files/ for
  7837. # template instantiation
  7838. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7839. $RM out/* && rmdir out
  7840. cd ..
  7841. $RM -r conftest
  7842. $RM conftest*
  7843. fi
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7845. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7846. hard_links="nottested"
  7847. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7848. # do not overwrite the value of need_locks provided by the user
  7849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7850. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7851. hard_links=yes
  7852. $RM conftest*
  7853. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7854. touch conftest.a
  7855. ln conftest.a conftest.b 2>&5 || hard_links=no
  7856. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7858. $as_echo "$hard_links" >&6; }
  7859. if test "$hard_links" = no; then
  7860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7861. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7862. need_locks=warn
  7863. fi
  7864. else
  7865. need_locks=no
  7866. fi
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7868. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7869. runpath_var=
  7870. allow_undefined_flag=
  7871. always_export_symbols=no
  7872. archive_cmds=
  7873. archive_expsym_cmds=
  7874. compiler_needs_object=no
  7875. enable_shared_with_static_runtimes=no
  7876. export_dynamic_flag_spec=
  7877. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7878. hardcode_automatic=no
  7879. hardcode_direct=no
  7880. hardcode_direct_absolute=no
  7881. hardcode_libdir_flag_spec=
  7882. hardcode_libdir_flag_spec_ld=
  7883. hardcode_libdir_separator=
  7884. hardcode_minus_L=no
  7885. hardcode_shlibpath_var=unsupported
  7886. inherit_rpath=no
  7887. link_all_deplibs=unknown
  7888. module_cmds=
  7889. module_expsym_cmds=
  7890. old_archive_from_new_cmds=
  7891. old_archive_from_expsyms_cmds=
  7892. thread_safe_flag_spec=
  7893. whole_archive_flag_spec=
  7894. # include_expsyms should be a list of space-separated symbols to be *always*
  7895. # included in the symbol list
  7896. include_expsyms=
  7897. # exclude_expsyms can be an extended regexp of symbols to exclude
  7898. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7899. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7900. # as well as any symbol that contains `d'.
  7901. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7902. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7903. # platforms (ab)use it in PIC code, but their linkers get confused if
  7904. # the symbol is explicitly referenced. Since portable code cannot
  7905. # rely on this symbol name, it's probably fine to never include it in
  7906. # preloaded symbol tables.
  7907. # Exclude shared library initialization/finalization symbols.
  7908. extract_expsyms_cmds=
  7909. case $host_os in
  7910. cygwin* | mingw* | pw32* | cegcc*)
  7911. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7912. # When not using gcc, we currently assume that we are using
  7913. # Microsoft Visual C++.
  7914. if test "$GCC" != yes; then
  7915. with_gnu_ld=no
  7916. fi
  7917. ;;
  7918. interix*)
  7919. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7920. with_gnu_ld=yes
  7921. ;;
  7922. openbsd*)
  7923. with_gnu_ld=no
  7924. ;;
  7925. esac
  7926. ld_shlibs=yes
  7927. if test "$with_gnu_ld" = yes; then
  7928. # If archive_cmds runs LD, not CC, wlarc should be empty
  7929. wlarc='${wl}'
  7930. # Set some defaults for GNU ld with shared library support. These
  7931. # are reset later if shared libraries are not supported. Putting them
  7932. # here allows them to be overridden if necessary.
  7933. runpath_var=LD_RUN_PATH
  7934. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7935. export_dynamic_flag_spec='${wl}--export-dynamic'
  7936. # ancient GNU ld didn't support --whole-archive et. al.
  7937. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7938. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7939. else
  7940. whole_archive_flag_spec=
  7941. fi
  7942. supports_anon_versioning=no
  7943. case `$LD -v 2>&1` in
  7944. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7945. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7946. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7947. *\ 2.11.*) ;; # other 2.11 versions
  7948. *) supports_anon_versioning=yes ;;
  7949. esac
  7950. # See if GNU ld supports shared libraries.
  7951. case $host_os in
  7952. aix[3-9]*)
  7953. # On AIX/PPC, the GNU linker is very broken
  7954. if test "$host_cpu" != ia64; then
  7955. ld_shlibs=no
  7956. cat <<_LT_EOF 1>&2
  7957. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7958. *** to be unable to reliably create shared libraries on AIX.
  7959. *** Therefore, libtool is disabling shared libraries support. If you
  7960. *** really care for shared libraries, you may want to modify your PATH
  7961. *** so that a non-GNU linker is found, and then restart.
  7962. _LT_EOF
  7963. fi
  7964. ;;
  7965. amigaos*)
  7966. case $host_cpu in
  7967. powerpc)
  7968. # see comment about AmigaOS4 .so support
  7969. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7970. archive_expsym_cmds=''
  7971. ;;
  7972. m68k)
  7973. 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)'
  7974. hardcode_libdir_flag_spec='-L$libdir'
  7975. hardcode_minus_L=yes
  7976. ;;
  7977. esac
  7978. ;;
  7979. beos*)
  7980. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7981. allow_undefined_flag=unsupported
  7982. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7983. # support --undefined. This deserves some investigation. FIXME
  7984. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7985. else
  7986. ld_shlibs=no
  7987. fi
  7988. ;;
  7989. cygwin* | mingw* | pw32* | cegcc*)
  7990. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7991. # as there is no search path for DLLs.
  7992. hardcode_libdir_flag_spec='-L$libdir'
  7993. allow_undefined_flag=unsupported
  7994. always_export_symbols=no
  7995. enable_shared_with_static_runtimes=yes
  7996. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7997. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7998. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7999. # If the export-symbols file already is a .def file (1st line
  8000. # is EXPORTS), use it as is; otherwise, prepend...
  8001. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8002. cp $export_symbols $output_objdir/$soname.def;
  8003. else
  8004. echo EXPORTS > $output_objdir/$soname.def;
  8005. cat $export_symbols >> $output_objdir/$soname.def;
  8006. fi~
  8007. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8008. else
  8009. ld_shlibs=no
  8010. fi
  8011. ;;
  8012. interix[3-9]*)
  8013. hardcode_direct=no
  8014. hardcode_shlibpath_var=no
  8015. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8016. export_dynamic_flag_spec='${wl}-E'
  8017. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8018. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8019. # default) and relocated if they conflict, which is a slow very memory
  8020. # consuming and fragmenting process. To avoid this, we pick a random,
  8021. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8022. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8023. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8024. 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'
  8025. ;;
  8026. gnu* | linux* | tpf* | k*bsd*-gnu)
  8027. tmp_diet=no
  8028. if test "$host_os" = linux-dietlibc; then
  8029. case $cc_basename in
  8030. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8031. esac
  8032. fi
  8033. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8034. && test "$tmp_diet" = no
  8035. then
  8036. tmp_addflag=
  8037. tmp_sharedflag='-shared'
  8038. case $cc_basename,$host_cpu in
  8039. pgcc*) # Portland Group C compiler
  8040. 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'
  8041. tmp_addflag=' $pic_flag'
  8042. ;;
  8043. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8044. 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'
  8045. tmp_addflag=' $pic_flag -Mnomain' ;;
  8046. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8047. tmp_addflag=' -i_dynamic' ;;
  8048. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8049. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8050. ifc* | ifort*) # Intel Fortran compiler
  8051. tmp_addflag=' -nofor_main' ;;
  8052. lf95*) # Lahey Fortran 8.1
  8053. whole_archive_flag_spec=
  8054. tmp_sharedflag='--shared' ;;
  8055. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8056. tmp_sharedflag='-qmkshrobj'
  8057. tmp_addflag= ;;
  8058. esac
  8059. case `$CC -V 2>&1 | sed 5q` in
  8060. *Sun\ C*) # Sun C 5.9
  8061. 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'
  8062. compiler_needs_object=yes
  8063. tmp_sharedflag='-G' ;;
  8064. *Sun\ F*) # Sun Fortran 8.3
  8065. tmp_sharedflag='-G' ;;
  8066. esac
  8067. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8068. if test "x$supports_anon_versioning" = xyes; then
  8069. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8070. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8071. echo "local: *; };" >> $output_objdir/$libname.ver~
  8072. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8073. fi
  8074. case $cc_basename in
  8075. xlf*)
  8076. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8077. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8078. hardcode_libdir_flag_spec=
  8079. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8080. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8081. if test "x$supports_anon_versioning" = xyes; then
  8082. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8083. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8084. echo "local: *; };" >> $output_objdir/$libname.ver~
  8085. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8086. fi
  8087. ;;
  8088. esac
  8089. else
  8090. ld_shlibs=no
  8091. fi
  8092. ;;
  8093. netbsd* | netbsdelf*-gnu)
  8094. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8095. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8096. wlarc=
  8097. else
  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. fi
  8101. ;;
  8102. solaris*)
  8103. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8104. ld_shlibs=no
  8105. cat <<_LT_EOF 1>&2
  8106. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8107. *** create shared libraries on Solaris systems. Therefore, libtool
  8108. *** is disabling shared libraries support. We urge you to upgrade GNU
  8109. *** binutils to release 2.9.1 or newer. Another option is to modify
  8110. *** your PATH or compiler configuration so that the native linker is
  8111. *** used, and then restart.
  8112. _LT_EOF
  8113. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8114. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8115. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8116. else
  8117. ld_shlibs=no
  8118. fi
  8119. ;;
  8120. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8121. case `$LD -v 2>&1` in
  8122. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8123. ld_shlibs=no
  8124. cat <<_LT_EOF 1>&2
  8125. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8126. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8127. *** is disabling shared libraries support. We urge you to upgrade GNU
  8128. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8129. *** your PATH or compiler configuration so that the native linker is
  8130. *** used, and then restart.
  8131. _LT_EOF
  8132. ;;
  8133. *)
  8134. # For security reasons, it is highly recommended that you always
  8135. # use absolute paths for naming shared libraries, and exclude the
  8136. # DT_RUNPATH tag from executables and libraries. But doing so
  8137. # requires that you compile everything twice, which is a pain.
  8138. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8139. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  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. ;;
  8148. sunos4*)
  8149. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8150. wlarc=
  8151. hardcode_direct=yes
  8152. hardcode_shlibpath_var=no
  8153. ;;
  8154. *)
  8155. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8156. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8157. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8158. else
  8159. ld_shlibs=no
  8160. fi
  8161. ;;
  8162. esac
  8163. if test "$ld_shlibs" = no; then
  8164. runpath_var=
  8165. hardcode_libdir_flag_spec=
  8166. export_dynamic_flag_spec=
  8167. whole_archive_flag_spec=
  8168. fi
  8169. else
  8170. # PORTME fill in a description of your system's linker (not GNU ld)
  8171. case $host_os in
  8172. aix3*)
  8173. allow_undefined_flag=unsupported
  8174. always_export_symbols=yes
  8175. 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'
  8176. # Note: this linker hardcodes the directories in LIBPATH if there
  8177. # are no directories specified by -L.
  8178. hardcode_minus_L=yes
  8179. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8180. # Neither direct hardcoding nor static linking is supported with a
  8181. # broken collect2.
  8182. hardcode_direct=unsupported
  8183. fi
  8184. ;;
  8185. aix[4-9]*)
  8186. if test "$host_cpu" = ia64; then
  8187. # On IA64, the linker does run time linking by default, so we don't
  8188. # have to do anything special.
  8189. aix_use_runtimelinking=no
  8190. exp_sym_flag='-Bexport'
  8191. no_entry_flag=""
  8192. else
  8193. # If we're using GNU nm, then we don't want the "-C" option.
  8194. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8195. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8196. 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'
  8197. else
  8198. 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'
  8199. fi
  8200. aix_use_runtimelinking=no
  8201. # Test if we are trying to use run time linking or normal
  8202. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8203. # need to do runtime linking.
  8204. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8205. for ld_flag in $LDFLAGS; do
  8206. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8207. aix_use_runtimelinking=yes
  8208. break
  8209. fi
  8210. done
  8211. ;;
  8212. esac
  8213. exp_sym_flag='-bexport'
  8214. no_entry_flag='-bnoentry'
  8215. fi
  8216. # When large executables or shared objects are built, AIX ld can
  8217. # have problems creating the table of contents. If linking a library
  8218. # or program results in "error TOC overflow" add -mminimal-toc to
  8219. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8220. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8221. archive_cmds=''
  8222. hardcode_direct=yes
  8223. hardcode_direct_absolute=yes
  8224. hardcode_libdir_separator=':'
  8225. link_all_deplibs=yes
  8226. file_list_spec='${wl}-f,'
  8227. if test "$GCC" = yes; then
  8228. case $host_os in aix4.[012]|aix4.[012].*)
  8229. # We only want to do this on AIX 4.2 and lower, the check
  8230. # below for broken collect2 doesn't work under 4.3+
  8231. collect2name=`${CC} -print-prog-name=collect2`
  8232. if test -f "$collect2name" &&
  8233. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8234. then
  8235. # We have reworked collect2
  8236. :
  8237. else
  8238. # We have old collect2
  8239. hardcode_direct=unsupported
  8240. # It fails to find uninstalled libraries when the uninstalled
  8241. # path is not listed in the libpath. Setting hardcode_minus_L
  8242. # to unsupported forces relinking
  8243. hardcode_minus_L=yes
  8244. hardcode_libdir_flag_spec='-L$libdir'
  8245. hardcode_libdir_separator=
  8246. fi
  8247. ;;
  8248. esac
  8249. shared_flag='-shared'
  8250. if test "$aix_use_runtimelinking" = yes; then
  8251. shared_flag="$shared_flag "'${wl}-G'
  8252. fi
  8253. link_all_deplibs=no
  8254. else
  8255. # not using gcc
  8256. if test "$host_cpu" = ia64; then
  8257. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8258. # chokes on -Wl,-G. The following line is correct:
  8259. shared_flag='-G'
  8260. else
  8261. if test "$aix_use_runtimelinking" = yes; then
  8262. shared_flag='${wl}-G'
  8263. else
  8264. shared_flag='${wl}-bM:SRE'
  8265. fi
  8266. fi
  8267. fi
  8268. export_dynamic_flag_spec='${wl}-bexpall'
  8269. # It seems that -bexpall does not export symbols beginning with
  8270. # underscore (_), so it is better to generate a list of symbols to export.
  8271. always_export_symbols=yes
  8272. if test "$aix_use_runtimelinking" = yes; then
  8273. # Warning - without using the other runtime loading flags (-brtl),
  8274. # -berok will link without error, but may produce a broken library.
  8275. allow_undefined_flag='-berok'
  8276. # Determine the default libpath from the value encoded in an
  8277. # empty executable.
  8278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8279. /* end confdefs.h. */
  8280. int
  8281. main ()
  8282. {
  8283. ;
  8284. return 0;
  8285. }
  8286. _ACEOF
  8287. if ac_fn_c_try_link "$LINENO"; then :
  8288. lt_aix_libpath_sed='
  8289. /Import File Strings/,/^$/ {
  8290. /^0/ {
  8291. s/^0 *\(.*\)$/\1/
  8292. p
  8293. }
  8294. }'
  8295. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8296. # Check for a 64-bit object if we didn't find anything.
  8297. if test -z "$aix_libpath"; then
  8298. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8299. fi
  8300. fi
  8301. rm -f core conftest.err conftest.$ac_objext \
  8302. conftest$ac_exeext conftest.$ac_ext
  8303. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8304. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8305. 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"
  8306. else
  8307. if test "$host_cpu" = ia64; then
  8308. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8309. allow_undefined_flag="-z nodefs"
  8310. 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"
  8311. else
  8312. # Determine the default libpath from the value encoded in an
  8313. # empty executable.
  8314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8315. /* end confdefs.h. */
  8316. int
  8317. main ()
  8318. {
  8319. ;
  8320. return 0;
  8321. }
  8322. _ACEOF
  8323. if ac_fn_c_try_link "$LINENO"; then :
  8324. lt_aix_libpath_sed='
  8325. /Import File Strings/,/^$/ {
  8326. /^0/ {
  8327. s/^0 *\(.*\)$/\1/
  8328. p
  8329. }
  8330. }'
  8331. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8332. # Check for a 64-bit object if we didn't find anything.
  8333. if test -z "$aix_libpath"; then
  8334. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8335. fi
  8336. fi
  8337. rm -f core conftest.err conftest.$ac_objext \
  8338. conftest$ac_exeext conftest.$ac_ext
  8339. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8340. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8341. # Warning - without using the other run time loading flags,
  8342. # -berok will link without error, but may produce a broken library.
  8343. no_undefined_flag=' ${wl}-bernotok'
  8344. allow_undefined_flag=' ${wl}-berok'
  8345. # Exported symbols can be pulled into shared objects from archives
  8346. whole_archive_flag_spec='$convenience'
  8347. archive_cmds_need_lc=yes
  8348. # This is similar to how AIX traditionally builds its shared libraries.
  8349. 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'
  8350. fi
  8351. fi
  8352. ;;
  8353. amigaos*)
  8354. case $host_cpu in
  8355. powerpc)
  8356. # see comment about AmigaOS4 .so support
  8357. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8358. archive_expsym_cmds=''
  8359. ;;
  8360. m68k)
  8361. 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)'
  8362. hardcode_libdir_flag_spec='-L$libdir'
  8363. hardcode_minus_L=yes
  8364. ;;
  8365. esac
  8366. ;;
  8367. bsdi[45]*)
  8368. export_dynamic_flag_spec=-rdynamic
  8369. ;;
  8370. cygwin* | mingw* | pw32* | cegcc*)
  8371. # When not using gcc, we currently assume that we are using
  8372. # Microsoft Visual C++.
  8373. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8374. # no search path for DLLs.
  8375. hardcode_libdir_flag_spec=' '
  8376. allow_undefined_flag=unsupported
  8377. # Tell ltmain to make .lib files, not .a files.
  8378. libext=lib
  8379. # Tell ltmain to make .dll files, not .so files.
  8380. shrext_cmds=".dll"
  8381. # FIXME: Setting linknames here is a bad hack.
  8382. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8383. # The linker will automatically build a .lib file if we build a DLL.
  8384. old_archive_from_new_cmds='true'
  8385. # FIXME: Should let the user specify the lib program.
  8386. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8387. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8388. enable_shared_with_static_runtimes=yes
  8389. ;;
  8390. darwin* | rhapsody*)
  8391. archive_cmds_need_lc=no
  8392. hardcode_direct=no
  8393. hardcode_automatic=yes
  8394. hardcode_shlibpath_var=unsupported
  8395. whole_archive_flag_spec=''
  8396. link_all_deplibs=yes
  8397. allow_undefined_flag="$_lt_dar_allow_undefined"
  8398. case $cc_basename in
  8399. ifort*) _lt_dar_can_shared=yes ;;
  8400. *) _lt_dar_can_shared=$GCC ;;
  8401. esac
  8402. if test "$_lt_dar_can_shared" = "yes"; then
  8403. output_verbose_link_cmd=echo
  8404. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8405. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8406. 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}"
  8407. 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}"
  8408. else
  8409. ld_shlibs=no
  8410. fi
  8411. ;;
  8412. dgux*)
  8413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8414. hardcode_libdir_flag_spec='-L$libdir'
  8415. hardcode_shlibpath_var=no
  8416. ;;
  8417. freebsd1*)
  8418. ld_shlibs=no
  8419. ;;
  8420. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8421. # support. Future versions do this automatically, but an explicit c++rt0.o
  8422. # does not break anything, and helps significantly (at the cost of a little
  8423. # extra space).
  8424. freebsd2.2*)
  8425. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8426. hardcode_libdir_flag_spec='-R$libdir'
  8427. hardcode_direct=yes
  8428. hardcode_shlibpath_var=no
  8429. ;;
  8430. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8431. freebsd2*)
  8432. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8433. hardcode_direct=yes
  8434. hardcode_minus_L=yes
  8435. hardcode_shlibpath_var=no
  8436. ;;
  8437. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8438. freebsd* | dragonfly*)
  8439. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8440. hardcode_libdir_flag_spec='-R$libdir'
  8441. hardcode_direct=yes
  8442. hardcode_shlibpath_var=no
  8443. ;;
  8444. hpux9*)
  8445. if test "$GCC" = yes; then
  8446. 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'
  8447. else
  8448. 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'
  8449. fi
  8450. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8451. hardcode_libdir_separator=:
  8452. hardcode_direct=yes
  8453. # hardcode_minus_L: Not really in the search PATH,
  8454. # but as the default location of the library.
  8455. hardcode_minus_L=yes
  8456. export_dynamic_flag_spec='${wl}-E'
  8457. ;;
  8458. hpux10*)
  8459. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8460. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8461. else
  8462. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8463. fi
  8464. if test "$with_gnu_ld" = no; then
  8465. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8466. hardcode_libdir_flag_spec_ld='+b $libdir'
  8467. hardcode_libdir_separator=:
  8468. hardcode_direct=yes
  8469. hardcode_direct_absolute=yes
  8470. export_dynamic_flag_spec='${wl}-E'
  8471. # hardcode_minus_L: Not really in the search PATH,
  8472. # but as the default location of the library.
  8473. hardcode_minus_L=yes
  8474. fi
  8475. ;;
  8476. hpux11*)
  8477. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8478. case $host_cpu in
  8479. hppa*64*)
  8480. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8481. ;;
  8482. ia64*)
  8483. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8484. ;;
  8485. *)
  8486. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8487. ;;
  8488. esac
  8489. else
  8490. case $host_cpu in
  8491. hppa*64*)
  8492. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8493. ;;
  8494. ia64*)
  8495. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8496. ;;
  8497. *)
  8498. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8499. ;;
  8500. esac
  8501. fi
  8502. if test "$with_gnu_ld" = no; then
  8503. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8504. hardcode_libdir_separator=:
  8505. case $host_cpu in
  8506. hppa*64*|ia64*)
  8507. hardcode_direct=no
  8508. hardcode_shlibpath_var=no
  8509. ;;
  8510. *)
  8511. hardcode_direct=yes
  8512. hardcode_direct_absolute=yes
  8513. export_dynamic_flag_spec='${wl}-E'
  8514. # hardcode_minus_L: Not really in the search PATH,
  8515. # but as the default location of the library.
  8516. hardcode_minus_L=yes
  8517. ;;
  8518. esac
  8519. fi
  8520. ;;
  8521. irix5* | irix6* | nonstopux*)
  8522. if test "$GCC" = yes; then
  8523. 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'
  8524. # Try to use the -exported_symbol ld option, if it does not
  8525. # work, assume that -exports_file does not work either and
  8526. # implicitly export all symbols.
  8527. save_LDFLAGS="$LDFLAGS"
  8528. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8530. /* end confdefs.h. */
  8531. int foo(void) {}
  8532. _ACEOF
  8533. if ac_fn_c_try_link "$LINENO"; then :
  8534. 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'
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext \
  8537. conftest$ac_exeext conftest.$ac_ext
  8538. LDFLAGS="$save_LDFLAGS"
  8539. else
  8540. 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'
  8541. 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'
  8542. fi
  8543. archive_cmds_need_lc='no'
  8544. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8545. hardcode_libdir_separator=:
  8546. inherit_rpath=yes
  8547. link_all_deplibs=yes
  8548. ;;
  8549. netbsd* | netbsdelf*-gnu)
  8550. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8551. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8552. else
  8553. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8554. fi
  8555. hardcode_libdir_flag_spec='-R$libdir'
  8556. hardcode_direct=yes
  8557. hardcode_shlibpath_var=no
  8558. ;;
  8559. newsos6)
  8560. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8561. hardcode_direct=yes
  8562. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8563. hardcode_libdir_separator=:
  8564. hardcode_shlibpath_var=no
  8565. ;;
  8566. *nto* | *qnx*)
  8567. ;;
  8568. openbsd*)
  8569. if test -f /usr/libexec/ld.so; then
  8570. hardcode_direct=yes
  8571. hardcode_shlibpath_var=no
  8572. hardcode_direct_absolute=yes
  8573. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8574. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8575. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8576. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8577. export_dynamic_flag_spec='${wl}-E'
  8578. else
  8579. case $host_os in
  8580. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8581. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8582. hardcode_libdir_flag_spec='-R$libdir'
  8583. ;;
  8584. *)
  8585. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8586. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8587. ;;
  8588. esac
  8589. fi
  8590. else
  8591. ld_shlibs=no
  8592. fi
  8593. ;;
  8594. os2*)
  8595. hardcode_libdir_flag_spec='-L$libdir'
  8596. hardcode_minus_L=yes
  8597. allow_undefined_flag=unsupported
  8598. 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'
  8599. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8600. ;;
  8601. osf3*)
  8602. if test "$GCC" = yes; then
  8603. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8604. 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'
  8605. else
  8606. allow_undefined_flag=' -expect_unresolved \*'
  8607. 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'
  8608. fi
  8609. archive_cmds_need_lc='no'
  8610. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8611. hardcode_libdir_separator=:
  8612. ;;
  8613. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8614. if test "$GCC" = yes; then
  8615. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8616. 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'
  8617. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8618. else
  8619. allow_undefined_flag=' -expect_unresolved \*'
  8620. 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'
  8621. 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~
  8622. $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'
  8623. # Both c and cxx compiler support -rpath directly
  8624. hardcode_libdir_flag_spec='-rpath $libdir'
  8625. fi
  8626. archive_cmds_need_lc='no'
  8627. hardcode_libdir_separator=:
  8628. ;;
  8629. solaris*)
  8630. no_undefined_flag=' -z defs'
  8631. if test "$GCC" = yes; then
  8632. wlarc='${wl}'
  8633. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8634. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8635. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8636. else
  8637. case `$CC -V 2>&1` in
  8638. *"Compilers 5.0"*)
  8639. wlarc=''
  8640. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8641. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8642. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8643. ;;
  8644. *)
  8645. wlarc='${wl}'
  8646. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8647. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8648. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8649. ;;
  8650. esac
  8651. fi
  8652. hardcode_libdir_flag_spec='-R$libdir'
  8653. hardcode_shlibpath_var=no
  8654. case $host_os in
  8655. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8656. *)
  8657. # The compiler driver will combine and reorder linker options,
  8658. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8659. # but is careful enough not to reorder.
  8660. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8661. if test "$GCC" = yes; then
  8662. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8663. else
  8664. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8665. fi
  8666. ;;
  8667. esac
  8668. link_all_deplibs=yes
  8669. ;;
  8670. sunos4*)
  8671. if test "x$host_vendor" = xsequent; then
  8672. # Use $CC to link under sequent, because it throws in some extra .o
  8673. # files that make .init and .fini sections work.
  8674. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8675. else
  8676. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8677. fi
  8678. hardcode_libdir_flag_spec='-L$libdir'
  8679. hardcode_direct=yes
  8680. hardcode_minus_L=yes
  8681. hardcode_shlibpath_var=no
  8682. ;;
  8683. sysv4)
  8684. case $host_vendor in
  8685. sni)
  8686. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8687. hardcode_direct=yes # is this really true???
  8688. ;;
  8689. siemens)
  8690. ## LD is ld it makes a PLAMLIB
  8691. ## CC just makes a GrossModule.
  8692. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8693. reload_cmds='$CC -r -o $output$reload_objs'
  8694. hardcode_direct=no
  8695. ;;
  8696. motorola)
  8697. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8698. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8699. ;;
  8700. esac
  8701. runpath_var='LD_RUN_PATH'
  8702. hardcode_shlibpath_var=no
  8703. ;;
  8704. sysv4.3*)
  8705. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8706. hardcode_shlibpath_var=no
  8707. export_dynamic_flag_spec='-Bexport'
  8708. ;;
  8709. sysv4*MP*)
  8710. if test -d /usr/nec; then
  8711. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8712. hardcode_shlibpath_var=no
  8713. runpath_var=LD_RUN_PATH
  8714. hardcode_runpath_var=yes
  8715. ld_shlibs=yes
  8716. fi
  8717. ;;
  8718. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8719. no_undefined_flag='${wl}-z,text'
  8720. archive_cmds_need_lc=no
  8721. hardcode_shlibpath_var=no
  8722. runpath_var='LD_RUN_PATH'
  8723. if test "$GCC" = yes; then
  8724. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8725. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8726. else
  8727. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8728. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8729. fi
  8730. ;;
  8731. sysv5* | sco3.2v5* | sco5v6*)
  8732. # Note: We can NOT use -z defs as we might desire, because we do not
  8733. # link with -lc, and that would cause any symbols used from libc to
  8734. # always be unresolved, which means just about no library would
  8735. # ever link correctly. If we're not using GNU ld we use -z text
  8736. # though, which does catch some bad symbols but isn't as heavy-handed
  8737. # as -z defs.
  8738. no_undefined_flag='${wl}-z,text'
  8739. allow_undefined_flag='${wl}-z,nodefs'
  8740. archive_cmds_need_lc=no
  8741. hardcode_shlibpath_var=no
  8742. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8743. hardcode_libdir_separator=':'
  8744. link_all_deplibs=yes
  8745. export_dynamic_flag_spec='${wl}-Bexport'
  8746. runpath_var='LD_RUN_PATH'
  8747. if test "$GCC" = yes; then
  8748. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8749. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. else
  8751. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8752. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8753. fi
  8754. ;;
  8755. uts4*)
  8756. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8757. hardcode_libdir_flag_spec='-L$libdir'
  8758. hardcode_shlibpath_var=no
  8759. ;;
  8760. *)
  8761. ld_shlibs=no
  8762. ;;
  8763. esac
  8764. if test x$host_vendor = xsni; then
  8765. case $host in
  8766. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8767. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8768. ;;
  8769. esac
  8770. fi
  8771. fi
  8772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8773. $as_echo "$ld_shlibs" >&6; }
  8774. test "$ld_shlibs" = no && can_build_shared=no
  8775. with_gnu_ld=$with_gnu_ld
  8776. #
  8777. # Do we need to explicitly link libc?
  8778. #
  8779. case "x$archive_cmds_need_lc" in
  8780. x|xyes)
  8781. # Assume -lc should be added
  8782. archive_cmds_need_lc=yes
  8783. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8784. case $archive_cmds in
  8785. *'~'*)
  8786. # FIXME: we may have to deal with multi-command sequences.
  8787. ;;
  8788. '$CC '*)
  8789. # Test whether the compiler implicitly links with -lc since on some
  8790. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8791. # to ld, don't add -lc before -lgcc.
  8792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8793. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8794. $RM conftest*
  8795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8796. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8797. (eval $ac_compile) 2>&5
  8798. ac_status=$?
  8799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8800. test $ac_status = 0; } 2>conftest.err; then
  8801. soname=conftest
  8802. lib=conftest
  8803. libobjs=conftest.$ac_objext
  8804. deplibs=
  8805. wl=$lt_prog_compiler_wl
  8806. pic_flag=$lt_prog_compiler_pic
  8807. compiler_flags=-v
  8808. linker_flags=-v
  8809. verstring=
  8810. output_objdir=.
  8811. libname=conftest
  8812. lt_save_allow_undefined_flag=$allow_undefined_flag
  8813. allow_undefined_flag=
  8814. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8815. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8816. ac_status=$?
  8817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8818. test $ac_status = 0; }
  8819. then
  8820. archive_cmds_need_lc=no
  8821. else
  8822. archive_cmds_need_lc=yes
  8823. fi
  8824. allow_undefined_flag=$lt_save_allow_undefined_flag
  8825. else
  8826. cat conftest.err 1>&5
  8827. fi
  8828. $RM conftest*
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8830. $as_echo "$archive_cmds_need_lc" >&6; }
  8831. ;;
  8832. esac
  8833. fi
  8834. ;;
  8835. esac
  8836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8837. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8838. if test "$GCC" = yes; then
  8839. case $host_os in
  8840. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8841. *) lt_awk_arg="/^libraries:/" ;;
  8842. esac
  8843. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8844. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8845. # if the path contains ";" then we assume it to be the separator
  8846. # otherwise default to the standard path separator (i.e. ":") - it is
  8847. # assumed that no part of a normal pathname contains ";" but that should
  8848. # okay in the real world where ";" in dirpaths is itself problematic.
  8849. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8850. else
  8851. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8852. fi
  8853. # Ok, now we have the path, separated by spaces, we can step through it
  8854. # and add multilib dir if necessary.
  8855. lt_tmp_lt_search_path_spec=
  8856. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8857. for lt_sys_path in $lt_search_path_spec; do
  8858. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8859. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8860. else
  8861. test -d "$lt_sys_path" && \
  8862. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8863. fi
  8864. done
  8865. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8866. BEGIN {RS=" "; FS="/|\n";} {
  8867. lt_foo="";
  8868. lt_count=0;
  8869. for (lt_i = NF; lt_i > 0; lt_i--) {
  8870. if ($lt_i != "" && $lt_i != ".") {
  8871. if ($lt_i == "..") {
  8872. lt_count++;
  8873. } else {
  8874. if (lt_count == 0) {
  8875. lt_foo="/" $lt_i lt_foo;
  8876. } else {
  8877. lt_count--;
  8878. }
  8879. }
  8880. }
  8881. }
  8882. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8883. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8884. }'`
  8885. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8886. else
  8887. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8888. fi
  8889. library_names_spec=
  8890. libname_spec='lib$name'
  8891. soname_spec=
  8892. shrext_cmds=".so"
  8893. postinstall_cmds=
  8894. postuninstall_cmds=
  8895. finish_cmds=
  8896. finish_eval=
  8897. shlibpath_var=
  8898. shlibpath_overrides_runpath=unknown
  8899. version_type=none
  8900. dynamic_linker="$host_os ld.so"
  8901. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8902. need_lib_prefix=unknown
  8903. hardcode_into_libs=no
  8904. # when you set need_version to no, make sure it does not cause -set_version
  8905. # flags to be left without arguments
  8906. need_version=unknown
  8907. case $host_os in
  8908. aix3*)
  8909. version_type=linux
  8910. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8911. shlibpath_var=LIBPATH
  8912. # AIX 3 has no versioning support, so we append a major version to the name.
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. ;;
  8915. aix[4-9]*)
  8916. version_type=linux
  8917. need_lib_prefix=no
  8918. need_version=no
  8919. hardcode_into_libs=yes
  8920. if test "$host_cpu" = ia64; then
  8921. # AIX 5 supports IA64
  8922. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8923. shlibpath_var=LD_LIBRARY_PATH
  8924. else
  8925. # With GCC up to 2.95.x, collect2 would create an import file
  8926. # for dependence libraries. The import file would start with
  8927. # the line `#! .'. This would cause the generated library to
  8928. # depend on `.', always an invalid library. This was fixed in
  8929. # development snapshots of GCC prior to 3.0.
  8930. case $host_os in
  8931. aix4 | aix4.[01] | aix4.[01].*)
  8932. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8933. echo ' yes '
  8934. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8935. :
  8936. else
  8937. can_build_shared=no
  8938. fi
  8939. ;;
  8940. esac
  8941. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8942. # soname into executable. Probably we can add versioning support to
  8943. # collect2, so additional links can be useful in future.
  8944. if test "$aix_use_runtimelinking" = yes; then
  8945. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8946. # instead of lib<name>.a to let people know that these are not
  8947. # typical AIX shared libraries.
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8949. else
  8950. # We preserve .a as extension for shared libraries through AIX4.2
  8951. # and later when we are not doing run time linking.
  8952. library_names_spec='${libname}${release}.a $libname.a'
  8953. soname_spec='${libname}${release}${shared_ext}$major'
  8954. fi
  8955. shlibpath_var=LIBPATH
  8956. fi
  8957. ;;
  8958. amigaos*)
  8959. case $host_cpu in
  8960. powerpc)
  8961. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8962. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8964. ;;
  8965. m68k)
  8966. library_names_spec='$libname.ixlibrary $libname.a'
  8967. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8968. 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'
  8969. ;;
  8970. esac
  8971. ;;
  8972. beos*)
  8973. library_names_spec='${libname}${shared_ext}'
  8974. dynamic_linker="$host_os ld.so"
  8975. shlibpath_var=LIBRARY_PATH
  8976. ;;
  8977. bsdi[45]*)
  8978. version_type=linux
  8979. need_version=no
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8981. soname_spec='${libname}${release}${shared_ext}$major'
  8982. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8983. shlibpath_var=LD_LIBRARY_PATH
  8984. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8985. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8986. # the default ld.so.conf also contains /usr/contrib/lib and
  8987. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8988. # libtool to hard-code these into programs
  8989. ;;
  8990. cygwin* | mingw* | pw32* | cegcc*)
  8991. version_type=windows
  8992. shrext_cmds=".dll"
  8993. need_version=no
  8994. need_lib_prefix=no
  8995. case $GCC,$host_os in
  8996. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8997. library_names_spec='$libname.dll.a'
  8998. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8999. postinstall_cmds='base_file=`basename \${file}`~
  9000. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9001. dldir=$destdir/`dirname \$dlpath`~
  9002. test -d \$dldir || mkdir -p \$dldir~
  9003. $install_prog $dir/$dlname \$dldir/$dlname~
  9004. chmod a+x \$dldir/$dlname~
  9005. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9006. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9007. fi'
  9008. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9009. dlpath=$dir/\$dldll~
  9010. $RM \$dlpath'
  9011. shlibpath_overrides_runpath=yes
  9012. case $host_os in
  9013. cygwin*)
  9014. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9015. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9016. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9017. ;;
  9018. mingw* | cegcc*)
  9019. # MinGW DLLs use traditional 'lib' prefix
  9020. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9021. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9022. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9023. # It is most probably a Windows format PATH printed by
  9024. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9025. # path with ; separators, and with drive letters. We can handle the
  9026. # drive letters (cygwin fileutils understands them), so leave them,
  9027. # especially as we might pass files found there to a mingw objdump,
  9028. # which wouldn't understand a cygwinified path. Ahh.
  9029. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9030. else
  9031. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9032. fi
  9033. ;;
  9034. pw32*)
  9035. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9036. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9037. ;;
  9038. esac
  9039. ;;
  9040. *)
  9041. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9042. ;;
  9043. esac
  9044. dynamic_linker='Win32 ld.exe'
  9045. # FIXME: first we should search . and the directory the executable is in
  9046. shlibpath_var=PATH
  9047. ;;
  9048. darwin* | rhapsody*)
  9049. dynamic_linker="$host_os dyld"
  9050. version_type=darwin
  9051. need_lib_prefix=no
  9052. need_version=no
  9053. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9054. soname_spec='${libname}${release}${major}$shared_ext'
  9055. shlibpath_overrides_runpath=yes
  9056. shlibpath_var=DYLD_LIBRARY_PATH
  9057. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9058. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9059. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9060. ;;
  9061. dgux*)
  9062. version_type=linux
  9063. need_lib_prefix=no
  9064. need_version=no
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. shlibpath_var=LD_LIBRARY_PATH
  9068. ;;
  9069. freebsd1*)
  9070. dynamic_linker=no
  9071. ;;
  9072. freebsd* | dragonfly*)
  9073. # DragonFly does not have aout. When/if they implement a new
  9074. # versioning mechanism, adjust this.
  9075. if test -x /usr/bin/objformat; then
  9076. objformat=`/usr/bin/objformat`
  9077. else
  9078. case $host_os in
  9079. freebsd[123]*) objformat=aout ;;
  9080. *) objformat=elf ;;
  9081. esac
  9082. fi
  9083. version_type=freebsd-$objformat
  9084. case $version_type in
  9085. freebsd-elf*)
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9087. need_version=no
  9088. need_lib_prefix=no
  9089. ;;
  9090. freebsd-*)
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9092. need_version=yes
  9093. ;;
  9094. esac
  9095. shlibpath_var=LD_LIBRARY_PATH
  9096. case $host_os in
  9097. freebsd2*)
  9098. shlibpath_overrides_runpath=yes
  9099. ;;
  9100. freebsd3.[01]* | freebsdelf3.[01]*)
  9101. shlibpath_overrides_runpath=yes
  9102. hardcode_into_libs=yes
  9103. ;;
  9104. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9105. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9106. shlibpath_overrides_runpath=no
  9107. hardcode_into_libs=yes
  9108. ;;
  9109. *) # from 4.6 on, and DragonFly
  9110. shlibpath_overrides_runpath=yes
  9111. hardcode_into_libs=yes
  9112. ;;
  9113. esac
  9114. ;;
  9115. gnu*)
  9116. version_type=linux
  9117. need_lib_prefix=no
  9118. need_version=no
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9120. soname_spec='${libname}${release}${shared_ext}$major'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. hardcode_into_libs=yes
  9123. ;;
  9124. hpux9* | hpux10* | hpux11*)
  9125. # Give a soname corresponding to the major version so that dld.sl refuses to
  9126. # link against other versions.
  9127. version_type=sunos
  9128. need_lib_prefix=no
  9129. need_version=no
  9130. case $host_cpu in
  9131. ia64*)
  9132. shrext_cmds='.so'
  9133. hardcode_into_libs=yes
  9134. dynamic_linker="$host_os dld.so"
  9135. shlibpath_var=LD_LIBRARY_PATH
  9136. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. if test "X$HPUX_IA64_MODE" = X32; then
  9140. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9141. else
  9142. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9143. fi
  9144. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9145. ;;
  9146. hppa*64*)
  9147. shrext_cmds='.sl'
  9148. hardcode_into_libs=yes
  9149. dynamic_linker="$host_os dld.sl"
  9150. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9151. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9153. soname_spec='${libname}${release}${shared_ext}$major'
  9154. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9155. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9156. ;;
  9157. *)
  9158. shrext_cmds='.sl'
  9159. dynamic_linker="$host_os dld.sl"
  9160. shlibpath_var=SHLIB_PATH
  9161. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9163. soname_spec='${libname}${release}${shared_ext}$major'
  9164. ;;
  9165. esac
  9166. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9167. postinstall_cmds='chmod 555 $lib'
  9168. ;;
  9169. interix[3-9]*)
  9170. version_type=linux
  9171. need_lib_prefix=no
  9172. need_version=no
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9174. soname_spec='${libname}${release}${shared_ext}$major'
  9175. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9176. shlibpath_var=LD_LIBRARY_PATH
  9177. shlibpath_overrides_runpath=no
  9178. hardcode_into_libs=yes
  9179. ;;
  9180. irix5* | irix6* | nonstopux*)
  9181. case $host_os in
  9182. nonstopux*) version_type=nonstopux ;;
  9183. *)
  9184. if test "$lt_cv_prog_gnu_ld" = yes; then
  9185. version_type=linux
  9186. else
  9187. version_type=irix
  9188. fi ;;
  9189. esac
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9194. case $host_os in
  9195. irix5* | nonstopux*)
  9196. libsuff= shlibsuff=
  9197. ;;
  9198. *)
  9199. case $LD in # libtool.m4 will add one of these switches to LD
  9200. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9201. libsuff= shlibsuff= libmagic=32-bit;;
  9202. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9203. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9204. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9205. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9206. *) libsuff= shlibsuff= libmagic=never-match;;
  9207. esac
  9208. ;;
  9209. esac
  9210. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9211. shlibpath_overrides_runpath=no
  9212. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9213. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9214. hardcode_into_libs=yes
  9215. ;;
  9216. # No shared lib support for Linux oldld, aout, or coff.
  9217. linux*oldld* | linux*aout* | linux*coff*)
  9218. dynamic_linker=no
  9219. ;;
  9220. # This must be Linux ELF.
  9221. linux* | k*bsd*-gnu)
  9222. version_type=linux
  9223. need_lib_prefix=no
  9224. need_version=no
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. soname_spec='${libname}${release}${shared_ext}$major'
  9227. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9228. shlibpath_var=LD_LIBRARY_PATH
  9229. shlibpath_overrides_runpath=no
  9230. # Some binutils ld are patched to set DT_RUNPATH
  9231. save_LDFLAGS=$LDFLAGS
  9232. save_libdir=$libdir
  9233. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9234. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9236. /* end confdefs.h. */
  9237. int
  9238. main ()
  9239. {
  9240. ;
  9241. return 0;
  9242. }
  9243. _ACEOF
  9244. if ac_fn_c_try_link "$LINENO"; then :
  9245. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9246. shlibpath_overrides_runpath=yes
  9247. fi
  9248. fi
  9249. rm -f core conftest.err conftest.$ac_objext \
  9250. conftest$ac_exeext conftest.$ac_ext
  9251. LDFLAGS=$save_LDFLAGS
  9252. libdir=$save_libdir
  9253. # This implies no fast_install, which is unacceptable.
  9254. # Some rework will be needed to allow for fast_install
  9255. # before this can be enabled.
  9256. hardcode_into_libs=yes
  9257. # Append ld.so.conf contents to the search path
  9258. if test -f /etc/ld.so.conf; then
  9259. 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' ' '`
  9260. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9261. fi
  9262. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9263. # powerpc, because MkLinux only supported shared libraries with the
  9264. # GNU dynamic linker. Since this was broken with cross compilers,
  9265. # most powerpc-linux boxes support dynamic linking these days and
  9266. # people can always --disable-shared, the test was removed, and we
  9267. # assume the GNU/Linux dynamic linker is in use.
  9268. dynamic_linker='GNU/Linux ld.so'
  9269. ;;
  9270. netbsdelf*-gnu)
  9271. version_type=linux
  9272. need_lib_prefix=no
  9273. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  9277. shlibpath_overrides_runpath=no
  9278. hardcode_into_libs=yes
  9279. dynamic_linker='NetBSD ld.elf_so'
  9280. ;;
  9281. netbsd*)
  9282. version_type=sunos
  9283. need_lib_prefix=no
  9284. need_version=no
  9285. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9287. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9288. dynamic_linker='NetBSD (a.out) ld.so'
  9289. else
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. dynamic_linker='NetBSD ld.elf_so'
  9293. fi
  9294. shlibpath_var=LD_LIBRARY_PATH
  9295. shlibpath_overrides_runpath=yes
  9296. hardcode_into_libs=yes
  9297. ;;
  9298. newsos6)
  9299. version_type=linux
  9300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9301. shlibpath_var=LD_LIBRARY_PATH
  9302. shlibpath_overrides_runpath=yes
  9303. ;;
  9304. *nto* | *qnx*)
  9305. version_type=qnx
  9306. need_lib_prefix=no
  9307. need_version=no
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9309. soname_spec='${libname}${release}${shared_ext}$major'
  9310. shlibpath_var=LD_LIBRARY_PATH
  9311. shlibpath_overrides_runpath=no
  9312. hardcode_into_libs=yes
  9313. dynamic_linker='ldqnx.so'
  9314. ;;
  9315. openbsd*)
  9316. version_type=sunos
  9317. sys_lib_dlsearch_path_spec="/usr/lib"
  9318. need_lib_prefix=no
  9319. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9320. case $host_os in
  9321. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9322. *) need_version=no ;;
  9323. esac
  9324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9325. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9326. shlibpath_var=LD_LIBRARY_PATH
  9327. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9328. case $host_os in
  9329. openbsd2.[89] | openbsd2.[89].*)
  9330. shlibpath_overrides_runpath=no
  9331. ;;
  9332. *)
  9333. shlibpath_overrides_runpath=yes
  9334. ;;
  9335. esac
  9336. else
  9337. shlibpath_overrides_runpath=yes
  9338. fi
  9339. ;;
  9340. os2*)
  9341. libname_spec='$name'
  9342. shrext_cmds=".dll"
  9343. need_lib_prefix=no
  9344. library_names_spec='$libname${shared_ext} $libname.a'
  9345. dynamic_linker='OS/2 ld.exe'
  9346. shlibpath_var=LIBPATH
  9347. ;;
  9348. osf3* | osf4* | osf5*)
  9349. version_type=osf
  9350. need_lib_prefix=no
  9351. need_version=no
  9352. soname_spec='${libname}${release}${shared_ext}$major'
  9353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9354. shlibpath_var=LD_LIBRARY_PATH
  9355. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9356. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9357. ;;
  9358. rdos*)
  9359. dynamic_linker=no
  9360. ;;
  9361. solaris*)
  9362. version_type=linux
  9363. need_lib_prefix=no
  9364. need_version=no
  9365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9366. soname_spec='${libname}${release}${shared_ext}$major'
  9367. shlibpath_var=LD_LIBRARY_PATH
  9368. shlibpath_overrides_runpath=yes
  9369. hardcode_into_libs=yes
  9370. # ldd complains unless libraries are executable
  9371. postinstall_cmds='chmod +x $lib'
  9372. ;;
  9373. sunos4*)
  9374. version_type=sunos
  9375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9376. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9377. shlibpath_var=LD_LIBRARY_PATH
  9378. shlibpath_overrides_runpath=yes
  9379. if test "$with_gnu_ld" = yes; then
  9380. need_lib_prefix=no
  9381. fi
  9382. need_version=yes
  9383. ;;
  9384. sysv4 | sysv4.3*)
  9385. version_type=linux
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9387. soname_spec='${libname}${release}${shared_ext}$major'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. case $host_vendor in
  9390. sni)
  9391. shlibpath_overrides_runpath=no
  9392. need_lib_prefix=no
  9393. runpath_var=LD_RUN_PATH
  9394. ;;
  9395. siemens)
  9396. need_lib_prefix=no
  9397. ;;
  9398. motorola)
  9399. need_lib_prefix=no
  9400. need_version=no
  9401. shlibpath_overrides_runpath=no
  9402. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9403. ;;
  9404. esac
  9405. ;;
  9406. sysv4*MP*)
  9407. if test -d /usr/nec ;then
  9408. version_type=linux
  9409. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9410. soname_spec='$libname${shared_ext}.$major'
  9411. shlibpath_var=LD_LIBRARY_PATH
  9412. fi
  9413. ;;
  9414. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9415. version_type=freebsd-elf
  9416. need_lib_prefix=no
  9417. need_version=no
  9418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9419. soname_spec='${libname}${release}${shared_ext}$major'
  9420. shlibpath_var=LD_LIBRARY_PATH
  9421. shlibpath_overrides_runpath=yes
  9422. hardcode_into_libs=yes
  9423. if test "$with_gnu_ld" = yes; then
  9424. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9425. else
  9426. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9427. case $host_os in
  9428. sco3.2v5*)
  9429. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9430. ;;
  9431. esac
  9432. fi
  9433. sys_lib_dlsearch_path_spec='/usr/lib'
  9434. ;;
  9435. tpf*)
  9436. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9437. version_type=linux
  9438. need_lib_prefix=no
  9439. need_version=no
  9440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9441. shlibpath_var=LD_LIBRARY_PATH
  9442. shlibpath_overrides_runpath=no
  9443. hardcode_into_libs=yes
  9444. ;;
  9445. uts4*)
  9446. version_type=linux
  9447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9448. soname_spec='${libname}${release}${shared_ext}$major'
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. ;;
  9451. *)
  9452. dynamic_linker=no
  9453. ;;
  9454. esac
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9456. $as_echo "$dynamic_linker" >&6; }
  9457. test "$dynamic_linker" = no && can_build_shared=no
  9458. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9459. if test "$GCC" = yes; then
  9460. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9461. fi
  9462. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9463. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9464. fi
  9465. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9466. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9467. fi
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9469. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9470. hardcode_action=
  9471. if test -n "$hardcode_libdir_flag_spec" ||
  9472. test -n "$runpath_var" ||
  9473. test "X$hardcode_automatic" = "Xyes" ; then
  9474. # We can hardcode non-existent directories.
  9475. if test "$hardcode_direct" != no &&
  9476. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9477. # have to relink, otherwise we might link with an installed library
  9478. # when we should be linking with a yet-to-be-installed one
  9479. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9480. test "$hardcode_minus_L" != no; then
  9481. # Linking always hardcodes the temporary library directory.
  9482. hardcode_action=relink
  9483. else
  9484. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9485. hardcode_action=immediate
  9486. fi
  9487. else
  9488. # We cannot hardcode anything, or else we can only hardcode existing
  9489. # directories.
  9490. hardcode_action=unsupported
  9491. fi
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9493. $as_echo "$hardcode_action" >&6; }
  9494. if test "$hardcode_action" = relink ||
  9495. test "$inherit_rpath" = yes; then
  9496. # Fast installation is not supported
  9497. enable_fast_install=no
  9498. elif test "$shlibpath_overrides_runpath" = yes ||
  9499. test "$enable_shared" = no; then
  9500. # Fast installation is not necessary
  9501. enable_fast_install=needless
  9502. fi
  9503. if test "x$enable_dlopen" != xyes; then
  9504. enable_dlopen=unknown
  9505. enable_dlopen_self=unknown
  9506. enable_dlopen_self_static=unknown
  9507. else
  9508. lt_cv_dlopen=no
  9509. lt_cv_dlopen_libs=
  9510. case $host_os in
  9511. beos*)
  9512. lt_cv_dlopen="load_add_on"
  9513. lt_cv_dlopen_libs=
  9514. lt_cv_dlopen_self=yes
  9515. ;;
  9516. mingw* | pw32* | cegcc*)
  9517. lt_cv_dlopen="LoadLibrary"
  9518. lt_cv_dlopen_libs=
  9519. ;;
  9520. cygwin*)
  9521. lt_cv_dlopen="dlopen"
  9522. lt_cv_dlopen_libs=
  9523. ;;
  9524. darwin*)
  9525. # if libdl is installed we need to link against it
  9526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9527. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9528. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9529. $as_echo_n "(cached) " >&6
  9530. else
  9531. ac_check_lib_save_LIBS=$LIBS
  9532. LIBS="-ldl $LIBS"
  9533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9534. /* end confdefs.h. */
  9535. /* Override any GCC internal prototype to avoid an error.
  9536. Use char because int might match the return type of a GCC
  9537. builtin and then its argument prototype would still apply. */
  9538. #ifdef __cplusplus
  9539. extern "C"
  9540. #endif
  9541. char dlopen ();
  9542. int
  9543. main ()
  9544. {
  9545. return dlopen ();
  9546. ;
  9547. return 0;
  9548. }
  9549. _ACEOF
  9550. if ac_fn_c_try_link "$LINENO"; then :
  9551. ac_cv_lib_dl_dlopen=yes
  9552. else
  9553. ac_cv_lib_dl_dlopen=no
  9554. fi
  9555. rm -f core conftest.err conftest.$ac_objext \
  9556. conftest$ac_exeext conftest.$ac_ext
  9557. LIBS=$ac_check_lib_save_LIBS
  9558. fi
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9560. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9561. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9562. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9563. else
  9564. lt_cv_dlopen="dyld"
  9565. lt_cv_dlopen_libs=
  9566. lt_cv_dlopen_self=yes
  9567. fi
  9568. ;;
  9569. *)
  9570. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9571. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9572. lt_cv_dlopen="shl_load"
  9573. else
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9575. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9576. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. ac_check_lib_save_LIBS=$LIBS
  9580. LIBS="-ldld $LIBS"
  9581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9582. /* end confdefs.h. */
  9583. /* Override any GCC internal prototype to avoid an error.
  9584. Use char because int might match the return type of a GCC
  9585. builtin and then its argument prototype would still apply. */
  9586. #ifdef __cplusplus
  9587. extern "C"
  9588. #endif
  9589. char shl_load ();
  9590. int
  9591. main ()
  9592. {
  9593. return shl_load ();
  9594. ;
  9595. return 0;
  9596. }
  9597. _ACEOF
  9598. if ac_fn_c_try_link "$LINENO"; then :
  9599. ac_cv_lib_dld_shl_load=yes
  9600. else
  9601. ac_cv_lib_dld_shl_load=no
  9602. fi
  9603. rm -f core conftest.err conftest.$ac_objext \
  9604. conftest$ac_exeext conftest.$ac_ext
  9605. LIBS=$ac_check_lib_save_LIBS
  9606. fi
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9608. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9609. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9610. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9611. else
  9612. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9613. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9614. lt_cv_dlopen="dlopen"
  9615. else
  9616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9617. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9618. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9619. $as_echo_n "(cached) " >&6
  9620. else
  9621. ac_check_lib_save_LIBS=$LIBS
  9622. LIBS="-ldl $LIBS"
  9623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9624. /* end confdefs.h. */
  9625. /* Override any GCC internal prototype to avoid an error.
  9626. Use char because int might match the return type of a GCC
  9627. builtin and then its argument prototype would still apply. */
  9628. #ifdef __cplusplus
  9629. extern "C"
  9630. #endif
  9631. char dlopen ();
  9632. int
  9633. main ()
  9634. {
  9635. return dlopen ();
  9636. ;
  9637. return 0;
  9638. }
  9639. _ACEOF
  9640. if ac_fn_c_try_link "$LINENO"; then :
  9641. ac_cv_lib_dl_dlopen=yes
  9642. else
  9643. ac_cv_lib_dl_dlopen=no
  9644. fi
  9645. rm -f core conftest.err conftest.$ac_objext \
  9646. conftest$ac_exeext conftest.$ac_ext
  9647. LIBS=$ac_check_lib_save_LIBS
  9648. fi
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9650. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9651. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9652. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9653. else
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9655. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9656. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9657. $as_echo_n "(cached) " >&6
  9658. else
  9659. ac_check_lib_save_LIBS=$LIBS
  9660. LIBS="-lsvld $LIBS"
  9661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9662. /* end confdefs.h. */
  9663. /* Override any GCC internal prototype to avoid an error.
  9664. Use char because int might match the return type of a GCC
  9665. builtin and then its argument prototype would still apply. */
  9666. #ifdef __cplusplus
  9667. extern "C"
  9668. #endif
  9669. char dlopen ();
  9670. int
  9671. main ()
  9672. {
  9673. return dlopen ();
  9674. ;
  9675. return 0;
  9676. }
  9677. _ACEOF
  9678. if ac_fn_c_try_link "$LINENO"; then :
  9679. ac_cv_lib_svld_dlopen=yes
  9680. else
  9681. ac_cv_lib_svld_dlopen=no
  9682. fi
  9683. rm -f core conftest.err conftest.$ac_objext \
  9684. conftest$ac_exeext conftest.$ac_ext
  9685. LIBS=$ac_check_lib_save_LIBS
  9686. fi
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9688. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9689. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9690. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9691. else
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9693. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9694. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9695. $as_echo_n "(cached) " >&6
  9696. else
  9697. ac_check_lib_save_LIBS=$LIBS
  9698. LIBS="-ldld $LIBS"
  9699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9700. /* end confdefs.h. */
  9701. /* Override any GCC internal prototype to avoid an error.
  9702. Use char because int might match the return type of a GCC
  9703. builtin and then its argument prototype would still apply. */
  9704. #ifdef __cplusplus
  9705. extern "C"
  9706. #endif
  9707. char dld_link ();
  9708. int
  9709. main ()
  9710. {
  9711. return dld_link ();
  9712. ;
  9713. return 0;
  9714. }
  9715. _ACEOF
  9716. if ac_fn_c_try_link "$LINENO"; then :
  9717. ac_cv_lib_dld_dld_link=yes
  9718. else
  9719. ac_cv_lib_dld_dld_link=no
  9720. fi
  9721. rm -f core conftest.err conftest.$ac_objext \
  9722. conftest$ac_exeext conftest.$ac_ext
  9723. LIBS=$ac_check_lib_save_LIBS
  9724. fi
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9726. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9727. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9728. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9729. fi
  9730. fi
  9731. fi
  9732. fi
  9733. fi
  9734. fi
  9735. ;;
  9736. esac
  9737. if test "x$lt_cv_dlopen" != xno; then
  9738. enable_dlopen=yes
  9739. else
  9740. enable_dlopen=no
  9741. fi
  9742. case $lt_cv_dlopen in
  9743. dlopen)
  9744. save_CPPFLAGS="$CPPFLAGS"
  9745. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9746. save_LDFLAGS="$LDFLAGS"
  9747. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9748. save_LIBS="$LIBS"
  9749. LIBS="$lt_cv_dlopen_libs $LIBS"
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9751. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9752. if test "${lt_cv_dlopen_self+set}" = set; then :
  9753. $as_echo_n "(cached) " >&6
  9754. else
  9755. if test "$cross_compiling" = yes; then :
  9756. lt_cv_dlopen_self=cross
  9757. else
  9758. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9759. lt_status=$lt_dlunknown
  9760. cat > conftest.$ac_ext <<_LT_EOF
  9761. #line 11306 "configure"
  9762. #include "confdefs.h"
  9763. #if HAVE_DLFCN_H
  9764. #include <dlfcn.h>
  9765. #endif
  9766. #include <stdio.h>
  9767. #ifdef RTLD_GLOBAL
  9768. # define LT_DLGLOBAL RTLD_GLOBAL
  9769. #else
  9770. # ifdef DL_GLOBAL
  9771. # define LT_DLGLOBAL DL_GLOBAL
  9772. # else
  9773. # define LT_DLGLOBAL 0
  9774. # endif
  9775. #endif
  9776. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9777. find out it does not work in some platform. */
  9778. #ifndef LT_DLLAZY_OR_NOW
  9779. # ifdef RTLD_LAZY
  9780. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9781. # else
  9782. # ifdef DL_LAZY
  9783. # define LT_DLLAZY_OR_NOW DL_LAZY
  9784. # else
  9785. # ifdef RTLD_NOW
  9786. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9787. # else
  9788. # ifdef DL_NOW
  9789. # define LT_DLLAZY_OR_NOW DL_NOW
  9790. # else
  9791. # define LT_DLLAZY_OR_NOW 0
  9792. # endif
  9793. # endif
  9794. # endif
  9795. # endif
  9796. #endif
  9797. void fnord() { int i=42;}
  9798. int main ()
  9799. {
  9800. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9801. int status = $lt_dlunknown;
  9802. if (self)
  9803. {
  9804. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9805. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9806. /* dlclose (self); */
  9807. }
  9808. else
  9809. puts (dlerror ());
  9810. return status;
  9811. }
  9812. _LT_EOF
  9813. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9814. (eval $ac_link) 2>&5
  9815. ac_status=$?
  9816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9817. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9818. (./conftest; exit; ) >&5 2>/dev/null
  9819. lt_status=$?
  9820. case x$lt_status in
  9821. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9822. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9823. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9824. esac
  9825. else :
  9826. # compilation failed
  9827. lt_cv_dlopen_self=no
  9828. fi
  9829. fi
  9830. rm -fr conftest*
  9831. fi
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9833. $as_echo "$lt_cv_dlopen_self" >&6; }
  9834. if test "x$lt_cv_dlopen_self" = xyes; then
  9835. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9837. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9838. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9839. $as_echo_n "(cached) " >&6
  9840. else
  9841. if test "$cross_compiling" = yes; then :
  9842. lt_cv_dlopen_self_static=cross
  9843. else
  9844. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9845. lt_status=$lt_dlunknown
  9846. cat > conftest.$ac_ext <<_LT_EOF
  9847. #line 11402 "configure"
  9848. #include "confdefs.h"
  9849. #if HAVE_DLFCN_H
  9850. #include <dlfcn.h>
  9851. #endif
  9852. #include <stdio.h>
  9853. #ifdef RTLD_GLOBAL
  9854. # define LT_DLGLOBAL RTLD_GLOBAL
  9855. #else
  9856. # ifdef DL_GLOBAL
  9857. # define LT_DLGLOBAL DL_GLOBAL
  9858. # else
  9859. # define LT_DLGLOBAL 0
  9860. # endif
  9861. #endif
  9862. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9863. find out it does not work in some platform. */
  9864. #ifndef LT_DLLAZY_OR_NOW
  9865. # ifdef RTLD_LAZY
  9866. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9867. # else
  9868. # ifdef DL_LAZY
  9869. # define LT_DLLAZY_OR_NOW DL_LAZY
  9870. # else
  9871. # ifdef RTLD_NOW
  9872. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9873. # else
  9874. # ifdef DL_NOW
  9875. # define LT_DLLAZY_OR_NOW DL_NOW
  9876. # else
  9877. # define LT_DLLAZY_OR_NOW 0
  9878. # endif
  9879. # endif
  9880. # endif
  9881. # endif
  9882. #endif
  9883. void fnord() { int i=42;}
  9884. int main ()
  9885. {
  9886. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9887. int status = $lt_dlunknown;
  9888. if (self)
  9889. {
  9890. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9891. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9892. /* dlclose (self); */
  9893. }
  9894. else
  9895. puts (dlerror ());
  9896. return status;
  9897. }
  9898. _LT_EOF
  9899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9900. (eval $ac_link) 2>&5
  9901. ac_status=$?
  9902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9903. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9904. (./conftest; exit; ) >&5 2>/dev/null
  9905. lt_status=$?
  9906. case x$lt_status in
  9907. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9908. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9909. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9910. esac
  9911. else :
  9912. # compilation failed
  9913. lt_cv_dlopen_self_static=no
  9914. fi
  9915. fi
  9916. rm -fr conftest*
  9917. fi
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9919. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9920. fi
  9921. CPPFLAGS="$save_CPPFLAGS"
  9922. LDFLAGS="$save_LDFLAGS"
  9923. LIBS="$save_LIBS"
  9924. ;;
  9925. esac
  9926. case $lt_cv_dlopen_self in
  9927. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9928. *) enable_dlopen_self=unknown ;;
  9929. esac
  9930. case $lt_cv_dlopen_self_static in
  9931. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9932. *) enable_dlopen_self_static=unknown ;;
  9933. esac
  9934. fi
  9935. striplib=
  9936. old_striplib=
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9938. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9939. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9940. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9941. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9943. $as_echo "yes" >&6; }
  9944. else
  9945. # FIXME - insert some real tests, host_os isn't really good enough
  9946. case $host_os in
  9947. darwin*)
  9948. if test -n "$STRIP" ; then
  9949. striplib="$STRIP -x"
  9950. old_striplib="$STRIP -S"
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9952. $as_echo "yes" >&6; }
  9953. else
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9955. $as_echo "no" >&6; }
  9956. fi
  9957. ;;
  9958. *)
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9960. $as_echo "no" >&6; }
  9961. ;;
  9962. esac
  9963. fi
  9964. # Report which library types will actually be built
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9966. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9968. $as_echo "$can_build_shared" >&6; }
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9970. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9971. test "$can_build_shared" = "no" && enable_shared=no
  9972. # On AIX, shared libraries and static libraries use the same namespace, and
  9973. # are all built from PIC.
  9974. case $host_os in
  9975. aix3*)
  9976. test "$enable_shared" = yes && enable_static=no
  9977. if test -n "$RANLIB"; then
  9978. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9979. postinstall_cmds='$RANLIB $lib'
  9980. fi
  9981. ;;
  9982. aix[4-9]*)
  9983. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9984. test "$enable_shared" = yes && enable_static=no
  9985. fi
  9986. ;;
  9987. esac
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9989. $as_echo "$enable_shared" >&6; }
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9991. $as_echo_n "checking whether to build static libraries... " >&6; }
  9992. # Make sure either enable_shared or enable_static is yes.
  9993. test "$enable_shared" = yes || enable_static=yes
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9995. $as_echo "$enable_static" >&6; }
  9996. fi
  9997. ac_ext=cpp
  9998. ac_cpp='$CXXCPP $CPPFLAGS'
  9999. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10000. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10001. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10002. CC="$lt_save_CC"
  10003. ac_ext=cpp
  10004. ac_cpp='$CXXCPP $CPPFLAGS'
  10005. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10006. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10007. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10008. archive_cmds_need_lc_CXX=no
  10009. allow_undefined_flag_CXX=
  10010. always_export_symbols_CXX=no
  10011. archive_expsym_cmds_CXX=
  10012. compiler_needs_object_CXX=no
  10013. export_dynamic_flag_spec_CXX=
  10014. hardcode_direct_CXX=no
  10015. hardcode_direct_absolute_CXX=no
  10016. hardcode_libdir_flag_spec_CXX=
  10017. hardcode_libdir_flag_spec_ld_CXX=
  10018. hardcode_libdir_separator_CXX=
  10019. hardcode_minus_L_CXX=no
  10020. hardcode_shlibpath_var_CXX=unsupported
  10021. hardcode_automatic_CXX=no
  10022. inherit_rpath_CXX=no
  10023. module_cmds_CXX=
  10024. module_expsym_cmds_CXX=
  10025. link_all_deplibs_CXX=unknown
  10026. old_archive_cmds_CXX=$old_archive_cmds
  10027. no_undefined_flag_CXX=
  10028. whole_archive_flag_spec_CXX=
  10029. enable_shared_with_static_runtimes_CXX=no
  10030. # Source file extension for C++ test sources.
  10031. ac_ext=cpp
  10032. # Object file extension for compiled C++ test sources.
  10033. objext=o
  10034. objext_CXX=$objext
  10035. # No sense in running all these tests if we already determined that
  10036. # the CXX compiler isn't working. Some variables (like enable_shared)
  10037. # are currently assumed to apply to all compilers on this platform,
  10038. # and will be corrupted by setting them based on a non-working compiler.
  10039. if test "$_lt_caught_CXX_error" != yes; then
  10040. # Code to be used in simple compile tests
  10041. lt_simple_compile_test_code="int some_variable = 0;"
  10042. # Code to be used in simple link tests
  10043. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10044. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10045. # If no C compiler was specified, use CC.
  10046. LTCC=${LTCC-"$CC"}
  10047. # If no C compiler flags were specified, use CFLAGS.
  10048. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10049. # Allow CC to be a program name with arguments.
  10050. compiler=$CC
  10051. # save warnings/boilerplate of simple test code
  10052. ac_outfile=conftest.$ac_objext
  10053. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10054. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10055. _lt_compiler_boilerplate=`cat conftest.err`
  10056. $RM conftest*
  10057. ac_outfile=conftest.$ac_objext
  10058. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10059. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10060. _lt_linker_boilerplate=`cat conftest.err`
  10061. $RM -r conftest*
  10062. # Allow CC to be a program name with arguments.
  10063. lt_save_CC=$CC
  10064. lt_save_LD=$LD
  10065. lt_save_GCC=$GCC
  10066. GCC=$GXX
  10067. lt_save_with_gnu_ld=$with_gnu_ld
  10068. lt_save_path_LD=$lt_cv_path_LD
  10069. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10070. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10071. else
  10072. $as_unset lt_cv_prog_gnu_ld
  10073. fi
  10074. if test -n "${lt_cv_path_LDCXX+set}"; then
  10075. lt_cv_path_LD=$lt_cv_path_LDCXX
  10076. else
  10077. $as_unset lt_cv_path_LD
  10078. fi
  10079. test -z "${LDCXX+set}" || LD=$LDCXX
  10080. CC=${CXX-"c++"}
  10081. compiler=$CC
  10082. compiler_CXX=$CC
  10083. for cc_temp in $compiler""; do
  10084. case $cc_temp in
  10085. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10086. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10087. \-*) ;;
  10088. *) break;;
  10089. esac
  10090. done
  10091. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10092. if test -n "$compiler"; then
  10093. # We don't want -fno-exception when compiling C++ code, so set the
  10094. # no_builtin_flag separately
  10095. if test "$GXX" = yes; then
  10096. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10097. else
  10098. lt_prog_compiler_no_builtin_flag_CXX=
  10099. fi
  10100. if test "$GXX" = yes; then
  10101. # Set up default GNU C++ configuration
  10102. # Check whether --with-gnu-ld was given.
  10103. if test "${with_gnu_ld+set}" = set; then :
  10104. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10105. else
  10106. with_gnu_ld=no
  10107. fi
  10108. ac_prog=ld
  10109. if test "$GCC" = yes; then
  10110. # Check if gcc -print-prog-name=ld gives a path.
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10112. $as_echo_n "checking for ld used by $CC... " >&6; }
  10113. case $host in
  10114. *-*-mingw*)
  10115. # gcc leaves a trailing carriage return which upsets mingw
  10116. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10117. *)
  10118. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10119. esac
  10120. case $ac_prog in
  10121. # Accept absolute paths.
  10122. [\\/]* | ?:[\\/]*)
  10123. re_direlt='/[^/][^/]*/\.\./'
  10124. # Canonicalize the pathname of ld
  10125. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10126. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10127. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10128. done
  10129. test -z "$LD" && LD="$ac_prog"
  10130. ;;
  10131. "")
  10132. # If it fails, then pretend we aren't using GCC.
  10133. ac_prog=ld
  10134. ;;
  10135. *)
  10136. # If it is relative, then search for the first ld in PATH.
  10137. with_gnu_ld=unknown
  10138. ;;
  10139. esac
  10140. elif test "$with_gnu_ld" = yes; then
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10142. $as_echo_n "checking for GNU ld... " >&6; }
  10143. else
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10145. $as_echo_n "checking for non-GNU ld... " >&6; }
  10146. fi
  10147. if test "${lt_cv_path_LD+set}" = set; then :
  10148. $as_echo_n "(cached) " >&6
  10149. else
  10150. if test -z "$LD"; then
  10151. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10152. for ac_dir in $PATH; do
  10153. IFS="$lt_save_ifs"
  10154. test -z "$ac_dir" && ac_dir=.
  10155. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10156. lt_cv_path_LD="$ac_dir/$ac_prog"
  10157. # Check to see if the program is GNU ld. I'd rather use --version,
  10158. # but apparently some variants of GNU ld only accept -v.
  10159. # Break only if it was the GNU/non-GNU ld that we prefer.
  10160. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10161. *GNU* | *'with BFD'*)
  10162. test "$with_gnu_ld" != no && break
  10163. ;;
  10164. *)
  10165. test "$with_gnu_ld" != yes && break
  10166. ;;
  10167. esac
  10168. fi
  10169. done
  10170. IFS="$lt_save_ifs"
  10171. else
  10172. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10173. fi
  10174. fi
  10175. LD="$lt_cv_path_LD"
  10176. if test -n "$LD"; then
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10178. $as_echo "$LD" >&6; }
  10179. else
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10181. $as_echo "no" >&6; }
  10182. fi
  10183. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10185. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10186. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10187. $as_echo_n "(cached) " >&6
  10188. else
  10189. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10190. case `$LD -v 2>&1 </dev/null` in
  10191. *GNU* | *'with BFD'*)
  10192. lt_cv_prog_gnu_ld=yes
  10193. ;;
  10194. *)
  10195. lt_cv_prog_gnu_ld=no
  10196. ;;
  10197. esac
  10198. fi
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10200. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10201. with_gnu_ld=$lt_cv_prog_gnu_ld
  10202. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10203. # archiving commands below assume that GNU ld is being used.
  10204. if test "$with_gnu_ld" = yes; then
  10205. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10206. 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'
  10207. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10208. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10209. # If archive_cmds runs LD, not CC, wlarc should be empty
  10210. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10211. # investigate it a little bit more. (MM)
  10212. wlarc='${wl}'
  10213. # ancient GNU ld didn't support --whole-archive et. al.
  10214. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10215. $GREP 'no-whole-archive' > /dev/null; then
  10216. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10217. else
  10218. whole_archive_flag_spec_CXX=
  10219. fi
  10220. else
  10221. with_gnu_ld=no
  10222. wlarc=
  10223. # A generic and very simple default shared library creation
  10224. # command for GNU C++ for the case where it uses the native
  10225. # linker, instead of GNU ld. If possible, this setting should
  10226. # overridden to take advantage of the native linker features on
  10227. # the platform it is being used on.
  10228. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10229. fi
  10230. # Commands to make compiler produce verbose output that lists
  10231. # what "hidden" libraries, object files and flags are used when
  10232. # linking a shared library.
  10233. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10234. else
  10235. GXX=no
  10236. with_gnu_ld=no
  10237. wlarc=
  10238. fi
  10239. # PORTME: fill in a description of your system's C++ link characteristics
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10241. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10242. ld_shlibs_CXX=yes
  10243. case $host_os in
  10244. aix3*)
  10245. # FIXME: insert proper C++ library support
  10246. ld_shlibs_CXX=no
  10247. ;;
  10248. aix[4-9]*)
  10249. if test "$host_cpu" = ia64; then
  10250. # On IA64, the linker does run time linking by default, so we don't
  10251. # have to do anything special.
  10252. aix_use_runtimelinking=no
  10253. exp_sym_flag='-Bexport'
  10254. no_entry_flag=""
  10255. else
  10256. aix_use_runtimelinking=no
  10257. # Test if we are trying to use run time linking or normal
  10258. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10259. # need to do runtime linking.
  10260. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10261. for ld_flag in $LDFLAGS; do
  10262. case $ld_flag in
  10263. *-brtl*)
  10264. aix_use_runtimelinking=yes
  10265. break
  10266. ;;
  10267. esac
  10268. done
  10269. ;;
  10270. esac
  10271. exp_sym_flag='-bexport'
  10272. no_entry_flag='-bnoentry'
  10273. fi
  10274. # When large executables or shared objects are built, AIX ld can
  10275. # have problems creating the table of contents. If linking a library
  10276. # or program results in "error TOC overflow" add -mminimal-toc to
  10277. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10278. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10279. archive_cmds_CXX=''
  10280. hardcode_direct_CXX=yes
  10281. hardcode_direct_absolute_CXX=yes
  10282. hardcode_libdir_separator_CXX=':'
  10283. link_all_deplibs_CXX=yes
  10284. file_list_spec_CXX='${wl}-f,'
  10285. if test "$GXX" = yes; then
  10286. case $host_os in aix4.[012]|aix4.[012].*)
  10287. # We only want to do this on AIX 4.2 and lower, the check
  10288. # below for broken collect2 doesn't work under 4.3+
  10289. collect2name=`${CC} -print-prog-name=collect2`
  10290. if test -f "$collect2name" &&
  10291. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10292. then
  10293. # We have reworked collect2
  10294. :
  10295. else
  10296. # We have old collect2
  10297. hardcode_direct_CXX=unsupported
  10298. # It fails to find uninstalled libraries when the uninstalled
  10299. # path is not listed in the libpath. Setting hardcode_minus_L
  10300. # to unsupported forces relinking
  10301. hardcode_minus_L_CXX=yes
  10302. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10303. hardcode_libdir_separator_CXX=
  10304. fi
  10305. esac
  10306. shared_flag='-shared'
  10307. if test "$aix_use_runtimelinking" = yes; then
  10308. shared_flag="$shared_flag "'${wl}-G'
  10309. fi
  10310. else
  10311. # not using gcc
  10312. if test "$host_cpu" = ia64; then
  10313. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10314. # chokes on -Wl,-G. The following line is correct:
  10315. shared_flag='-G'
  10316. else
  10317. if test "$aix_use_runtimelinking" = yes; then
  10318. shared_flag='${wl}-G'
  10319. else
  10320. shared_flag='${wl}-bM:SRE'
  10321. fi
  10322. fi
  10323. fi
  10324. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10325. # It seems that -bexpall does not export symbols beginning with
  10326. # underscore (_), so it is better to generate a list of symbols to
  10327. # export.
  10328. always_export_symbols_CXX=yes
  10329. if test "$aix_use_runtimelinking" = yes; then
  10330. # Warning - without using the other runtime loading flags (-brtl),
  10331. # -berok will link without error, but may produce a broken library.
  10332. allow_undefined_flag_CXX='-berok'
  10333. # Determine the default libpath from the value encoded in an empty
  10334. # executable.
  10335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10336. /* end confdefs.h. */
  10337. int
  10338. main ()
  10339. {
  10340. ;
  10341. return 0;
  10342. }
  10343. _ACEOF
  10344. if ac_fn_cxx_try_link "$LINENO"; then :
  10345. lt_aix_libpath_sed='
  10346. /Import File Strings/,/^$/ {
  10347. /^0/ {
  10348. s/^0 *\(.*\)$/\1/
  10349. p
  10350. }
  10351. }'
  10352. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10353. # Check for a 64-bit object if we didn't find anything.
  10354. if test -z "$aix_libpath"; then
  10355. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10356. fi
  10357. fi
  10358. rm -f core conftest.err conftest.$ac_objext \
  10359. conftest$ac_exeext conftest.$ac_ext
  10360. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10361. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10362. 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"
  10363. else
  10364. if test "$host_cpu" = ia64; then
  10365. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10366. allow_undefined_flag_CXX="-z nodefs"
  10367. 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"
  10368. else
  10369. # Determine the default libpath from the value encoded in an
  10370. # empty executable.
  10371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10372. /* end confdefs.h. */
  10373. int
  10374. main ()
  10375. {
  10376. ;
  10377. return 0;
  10378. }
  10379. _ACEOF
  10380. if ac_fn_cxx_try_link "$LINENO"; then :
  10381. lt_aix_libpath_sed='
  10382. /Import File Strings/,/^$/ {
  10383. /^0/ {
  10384. s/^0 *\(.*\)$/\1/
  10385. p
  10386. }
  10387. }'
  10388. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10389. # Check for a 64-bit object if we didn't find anything.
  10390. if test -z "$aix_libpath"; then
  10391. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10392. fi
  10393. fi
  10394. rm -f core conftest.err conftest.$ac_objext \
  10395. conftest$ac_exeext conftest.$ac_ext
  10396. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10397. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10398. # Warning - without using the other run time loading flags,
  10399. # -berok will link without error, but may produce a broken library.
  10400. no_undefined_flag_CXX=' ${wl}-bernotok'
  10401. allow_undefined_flag_CXX=' ${wl}-berok'
  10402. # Exported symbols can be pulled into shared objects from archives
  10403. whole_archive_flag_spec_CXX='$convenience'
  10404. archive_cmds_need_lc_CXX=yes
  10405. # This is similar to how AIX traditionally builds its shared
  10406. # libraries.
  10407. 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'
  10408. fi
  10409. fi
  10410. ;;
  10411. beos*)
  10412. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10413. allow_undefined_flag_CXX=unsupported
  10414. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10415. # support --undefined. This deserves some investigation. FIXME
  10416. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10417. else
  10418. ld_shlibs_CXX=no
  10419. fi
  10420. ;;
  10421. chorus*)
  10422. case $cc_basename in
  10423. *)
  10424. # FIXME: insert proper C++ library support
  10425. ld_shlibs_CXX=no
  10426. ;;
  10427. esac
  10428. ;;
  10429. cygwin* | mingw* | pw32* | cegcc*)
  10430. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10431. # as there is no search path for DLLs.
  10432. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10433. allow_undefined_flag_CXX=unsupported
  10434. always_export_symbols_CXX=no
  10435. enable_shared_with_static_runtimes_CXX=yes
  10436. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10437. 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'
  10438. # If the export-symbols file already is a .def file (1st line
  10439. # is EXPORTS), use it as is; otherwise, prepend...
  10440. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10441. cp $export_symbols $output_objdir/$soname.def;
  10442. else
  10443. echo EXPORTS > $output_objdir/$soname.def;
  10444. cat $export_symbols >> $output_objdir/$soname.def;
  10445. fi~
  10446. $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'
  10447. else
  10448. ld_shlibs_CXX=no
  10449. fi
  10450. ;;
  10451. darwin* | rhapsody*)
  10452. archive_cmds_need_lc_CXX=no
  10453. hardcode_direct_CXX=no
  10454. hardcode_automatic_CXX=yes
  10455. hardcode_shlibpath_var_CXX=unsupported
  10456. whole_archive_flag_spec_CXX=''
  10457. link_all_deplibs_CXX=yes
  10458. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10459. case $cc_basename in
  10460. ifort*) _lt_dar_can_shared=yes ;;
  10461. *) _lt_dar_can_shared=$GCC ;;
  10462. esac
  10463. if test "$_lt_dar_can_shared" = "yes"; then
  10464. output_verbose_link_cmd=echo
  10465. 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}"
  10466. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10467. 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}"
  10468. 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}"
  10469. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10470. 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}"
  10471. 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}"
  10472. fi
  10473. else
  10474. ld_shlibs_CXX=no
  10475. fi
  10476. ;;
  10477. dgux*)
  10478. case $cc_basename in
  10479. ec++*)
  10480. # FIXME: insert proper C++ library support
  10481. ld_shlibs_CXX=no
  10482. ;;
  10483. ghcx*)
  10484. # Green Hills C++ Compiler
  10485. # FIXME: insert proper C++ library support
  10486. ld_shlibs_CXX=no
  10487. ;;
  10488. *)
  10489. # FIXME: insert proper C++ library support
  10490. ld_shlibs_CXX=no
  10491. ;;
  10492. esac
  10493. ;;
  10494. freebsd[12]*)
  10495. # C++ shared libraries reported to be fairly broken before
  10496. # switch to ELF
  10497. ld_shlibs_CXX=no
  10498. ;;
  10499. freebsd-elf*)
  10500. archive_cmds_need_lc_CXX=no
  10501. ;;
  10502. freebsd* | dragonfly*)
  10503. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10504. # conventions
  10505. ld_shlibs_CXX=yes
  10506. ;;
  10507. gnu*)
  10508. ;;
  10509. hpux9*)
  10510. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10511. hardcode_libdir_separator_CXX=:
  10512. export_dynamic_flag_spec_CXX='${wl}-E'
  10513. hardcode_direct_CXX=yes
  10514. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10515. # but as the default
  10516. # location of the library.
  10517. case $cc_basename in
  10518. CC*)
  10519. # FIXME: insert proper C++ library support
  10520. ld_shlibs_CXX=no
  10521. ;;
  10522. aCC*)
  10523. 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'
  10524. # Commands to make compiler produce verbose output that lists
  10525. # what "hidden" libraries, object files and flags are used when
  10526. # linking a shared library.
  10527. #
  10528. # There doesn't appear to be a way to prevent this compiler from
  10529. # explicitly linking system object files so we need to strip them
  10530. # from the output so that they don't get included in the library
  10531. # dependencies.
  10532. 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'
  10533. ;;
  10534. *)
  10535. if test "$GXX" = yes; then
  10536. 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'
  10537. else
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. fi
  10541. ;;
  10542. esac
  10543. ;;
  10544. hpux10*|hpux11*)
  10545. if test $with_gnu_ld = no; then
  10546. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10547. hardcode_libdir_separator_CXX=:
  10548. case $host_cpu in
  10549. hppa*64*|ia64*)
  10550. ;;
  10551. *)
  10552. export_dynamic_flag_spec_CXX='${wl}-E'
  10553. ;;
  10554. esac
  10555. fi
  10556. case $host_cpu in
  10557. hppa*64*|ia64*)
  10558. hardcode_direct_CXX=no
  10559. hardcode_shlibpath_var_CXX=no
  10560. ;;
  10561. *)
  10562. hardcode_direct_CXX=yes
  10563. hardcode_direct_absolute_CXX=yes
  10564. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10565. # but as the default
  10566. # location of the library.
  10567. ;;
  10568. esac
  10569. case $cc_basename in
  10570. CC*)
  10571. # FIXME: insert proper C++ library support
  10572. ld_shlibs_CXX=no
  10573. ;;
  10574. aCC*)
  10575. case $host_cpu in
  10576. hppa*64*)
  10577. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10578. ;;
  10579. ia64*)
  10580. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10581. ;;
  10582. *)
  10583. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10584. ;;
  10585. esac
  10586. # Commands to make compiler produce verbose output that lists
  10587. # what "hidden" libraries, object files and flags are used when
  10588. # linking a shared library.
  10589. #
  10590. # There doesn't appear to be a way to prevent this compiler from
  10591. # explicitly linking system object files so we need to strip them
  10592. # from the output so that they don't get included in the library
  10593. # dependencies.
  10594. 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'
  10595. ;;
  10596. *)
  10597. if test "$GXX" = yes; then
  10598. if test $with_gnu_ld = no; then
  10599. case $host_cpu in
  10600. hppa*64*)
  10601. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10602. ;;
  10603. ia64*)
  10604. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10605. ;;
  10606. *)
  10607. 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'
  10608. ;;
  10609. esac
  10610. fi
  10611. else
  10612. # FIXME: insert proper C++ library support
  10613. ld_shlibs_CXX=no
  10614. fi
  10615. ;;
  10616. esac
  10617. ;;
  10618. interix[3-9]*)
  10619. hardcode_direct_CXX=no
  10620. hardcode_shlibpath_var_CXX=no
  10621. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10622. export_dynamic_flag_spec_CXX='${wl}-E'
  10623. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10624. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10625. # default) and relocated if they conflict, which is a slow very memory
  10626. # consuming and fragmenting process. To avoid this, we pick a random,
  10627. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10628. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10629. 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'
  10630. 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'
  10631. ;;
  10632. irix5* | irix6*)
  10633. case $cc_basename in
  10634. CC*)
  10635. # SGI C++
  10636. 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'
  10637. # Archives containing C++ object files must be created using
  10638. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10639. # necessary to make sure instantiated templates are included
  10640. # in the archive.
  10641. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10642. ;;
  10643. *)
  10644. if test "$GXX" = yes; then
  10645. if test "$with_gnu_ld" = no; then
  10646. 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'
  10647. else
  10648. 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'
  10649. fi
  10650. fi
  10651. link_all_deplibs_CXX=yes
  10652. ;;
  10653. esac
  10654. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10655. hardcode_libdir_separator_CXX=:
  10656. inherit_rpath_CXX=yes
  10657. ;;
  10658. linux* | k*bsd*-gnu)
  10659. case $cc_basename in
  10660. KCC*)
  10661. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10662. # KCC will only create a shared library if the output file
  10663. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10664. # to its proper name (with version) after linking.
  10665. 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'
  10666. 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'
  10667. # Commands to make compiler produce verbose output that lists
  10668. # what "hidden" libraries, object files and flags are used when
  10669. # linking a shared library.
  10670. #
  10671. # There doesn't appear to be a way to prevent this compiler from
  10672. # explicitly linking system object files so we need to strip them
  10673. # from the output so that they don't get included in the library
  10674. # dependencies.
  10675. 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'
  10676. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10677. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10678. # Archives containing C++ object files must be created using
  10679. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10680. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10681. ;;
  10682. icpc* | ecpc* )
  10683. # Intel C++
  10684. with_gnu_ld=yes
  10685. # version 8.0 and above of icpc choke on multiply defined symbols
  10686. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10687. # earlier do not add the objects themselves.
  10688. case `$CC -V 2>&1` in
  10689. *"Version 7."*)
  10690. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10691. 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'
  10692. ;;
  10693. *) # Version 8.0 or newer
  10694. tmp_idyn=
  10695. case $host_cpu in
  10696. ia64*) tmp_idyn=' -i_dynamic';;
  10697. esac
  10698. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10699. 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'
  10700. ;;
  10701. esac
  10702. archive_cmds_need_lc_CXX=no
  10703. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10704. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10705. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10706. ;;
  10707. pgCC* | pgcpp*)
  10708. # Portland Group C++ compiler
  10709. case `$CC -V` in
  10710. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10711. prelink_cmds_CXX='tpldir=Template.dir~
  10712. rm -rf $tpldir~
  10713. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10714. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10715. old_archive_cmds_CXX='tpldir=Template.dir~
  10716. rm -rf $tpldir~
  10717. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10718. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10719. $RANLIB $oldlib'
  10720. archive_cmds_CXX='tpldir=Template.dir~
  10721. rm -rf $tpldir~
  10722. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10723. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10724. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10725. rm -rf $tpldir~
  10726. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10727. $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'
  10728. ;;
  10729. *) # Version 6 will use weak symbols
  10730. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10731. 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'
  10732. ;;
  10733. esac
  10734. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10735. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10736. 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'
  10737. ;;
  10738. cxx*)
  10739. # Compaq C++
  10740. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10741. 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'
  10742. runpath_var=LD_RUN_PATH
  10743. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10744. hardcode_libdir_separator_CXX=:
  10745. # Commands to make compiler produce verbose output that lists
  10746. # what "hidden" libraries, object files and flags are used when
  10747. # linking a shared library.
  10748. #
  10749. # There doesn't appear to be a way to prevent this compiler from
  10750. # explicitly linking system object files so we need to strip them
  10751. # from the output so that they don't get included in the library
  10752. # dependencies.
  10753. 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'
  10754. ;;
  10755. xl*)
  10756. # IBM XL 8.0 on PPC, with GNU ld
  10757. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10758. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10759. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10760. if test "x$supports_anon_versioning" = xyes; then
  10761. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10762. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10763. echo "local: *; };" >> $output_objdir/$libname.ver~
  10764. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10765. fi
  10766. ;;
  10767. *)
  10768. case `$CC -V 2>&1 | sed 5q` in
  10769. *Sun\ C*)
  10770. # Sun C++ 5.9
  10771. no_undefined_flag_CXX=' -zdefs'
  10772. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10773. 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'
  10774. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10775. 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'
  10776. compiler_needs_object_CXX=yes
  10777. # Not sure whether something based on
  10778. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10779. # would be better.
  10780. output_verbose_link_cmd='echo'
  10781. # Archives containing C++ object files must be created using
  10782. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10783. # necessary to make sure instantiated templates are included
  10784. # in the archive.
  10785. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10786. ;;
  10787. esac
  10788. ;;
  10789. esac
  10790. ;;
  10791. lynxos*)
  10792. # FIXME: insert proper C++ library support
  10793. ld_shlibs_CXX=no
  10794. ;;
  10795. m88k*)
  10796. # FIXME: insert proper C++ library support
  10797. ld_shlibs_CXX=no
  10798. ;;
  10799. mvs*)
  10800. case $cc_basename in
  10801. cxx*)
  10802. # FIXME: insert proper C++ library support
  10803. ld_shlibs_CXX=no
  10804. ;;
  10805. *)
  10806. # FIXME: insert proper C++ library support
  10807. ld_shlibs_CXX=no
  10808. ;;
  10809. esac
  10810. ;;
  10811. netbsd*)
  10812. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10813. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10814. wlarc=
  10815. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10816. hardcode_direct_CXX=yes
  10817. hardcode_shlibpath_var_CXX=no
  10818. fi
  10819. # Workaround some broken pre-1.5 toolchains
  10820. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10821. ;;
  10822. *nto* | *qnx*)
  10823. ld_shlibs_CXX=yes
  10824. ;;
  10825. openbsd2*)
  10826. # C++ shared libraries are fairly broken
  10827. ld_shlibs_CXX=no
  10828. ;;
  10829. openbsd*)
  10830. if test -f /usr/libexec/ld.so; then
  10831. hardcode_direct_CXX=yes
  10832. hardcode_shlibpath_var_CXX=no
  10833. hardcode_direct_absolute_CXX=yes
  10834. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10835. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10836. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10837. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10838. export_dynamic_flag_spec_CXX='${wl}-E'
  10839. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10840. fi
  10841. output_verbose_link_cmd=echo
  10842. else
  10843. ld_shlibs_CXX=no
  10844. fi
  10845. ;;
  10846. osf3* | osf4* | osf5*)
  10847. case $cc_basename in
  10848. KCC*)
  10849. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10850. # KCC will only create a shared library if the output file
  10851. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10852. # to its proper name (with version) after linking.
  10853. 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'
  10854. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10855. hardcode_libdir_separator_CXX=:
  10856. # Archives containing C++ object files must be created using
  10857. # the KAI C++ compiler.
  10858. case $host in
  10859. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10860. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10861. esac
  10862. ;;
  10863. RCC*)
  10864. # Rational C++ 2.4.1
  10865. # FIXME: insert proper C++ library support
  10866. ld_shlibs_CXX=no
  10867. ;;
  10868. cxx*)
  10869. case $host in
  10870. osf3*)
  10871. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10872. 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'
  10873. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10874. ;;
  10875. *)
  10876. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10877. 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'
  10878. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10879. echo "-hidden">> $lib.exp~
  10880. $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~
  10881. $RM $lib.exp'
  10882. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10883. ;;
  10884. esac
  10885. hardcode_libdir_separator_CXX=:
  10886. # Commands to make compiler produce verbose output that lists
  10887. # what "hidden" libraries, object files and flags are used when
  10888. # linking a shared library.
  10889. #
  10890. # There doesn't appear to be a way to prevent this compiler from
  10891. # explicitly linking system object files so we need to strip them
  10892. # from the output so that they don't get included in the library
  10893. # dependencies.
  10894. 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'
  10895. ;;
  10896. *)
  10897. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10898. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10899. case $host in
  10900. osf3*)
  10901. 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'
  10902. ;;
  10903. *)
  10904. 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'
  10905. ;;
  10906. esac
  10907. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10908. hardcode_libdir_separator_CXX=:
  10909. # Commands to make compiler produce verbose output that lists
  10910. # what "hidden" libraries, object files and flags are used when
  10911. # linking a shared library.
  10912. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10913. else
  10914. # FIXME: insert proper C++ library support
  10915. ld_shlibs_CXX=no
  10916. fi
  10917. ;;
  10918. esac
  10919. ;;
  10920. psos*)
  10921. # FIXME: insert proper C++ library support
  10922. ld_shlibs_CXX=no
  10923. ;;
  10924. sunos4*)
  10925. case $cc_basename in
  10926. CC*)
  10927. # Sun C++ 4.x
  10928. # FIXME: insert proper C++ library support
  10929. ld_shlibs_CXX=no
  10930. ;;
  10931. lcc*)
  10932. # Lucid
  10933. # FIXME: insert proper C++ library support
  10934. ld_shlibs_CXX=no
  10935. ;;
  10936. *)
  10937. # FIXME: insert proper C++ library support
  10938. ld_shlibs_CXX=no
  10939. ;;
  10940. esac
  10941. ;;
  10942. solaris*)
  10943. case $cc_basename in
  10944. CC*)
  10945. # Sun C++ 4.2, 5.x and Centerline C++
  10946. archive_cmds_need_lc_CXX=yes
  10947. no_undefined_flag_CXX=' -zdefs'
  10948. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10949. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10950. $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'
  10951. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10952. hardcode_shlibpath_var_CXX=no
  10953. case $host_os in
  10954. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10955. *)
  10956. # The compiler driver will combine and reorder linker options,
  10957. # but understands `-z linker_flag'.
  10958. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10959. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10960. ;;
  10961. esac
  10962. link_all_deplibs_CXX=yes
  10963. output_verbose_link_cmd='echo'
  10964. # Archives containing C++ object files must be created using
  10965. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10966. # necessary to make sure instantiated templates are included
  10967. # in the archive.
  10968. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10969. ;;
  10970. gcx*)
  10971. # Green Hills C++ Compiler
  10972. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10973. # The C++ compiler must be used to create the archive.
  10974. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10975. ;;
  10976. *)
  10977. # GNU C++ compiler with Solaris linker
  10978. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10979. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10980. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10981. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10982. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10983. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10984. # Commands to make compiler produce verbose output that lists
  10985. # what "hidden" libraries, object files and flags are used when
  10986. # linking a shared library.
  10987. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10988. else
  10989. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10990. # platform.
  10991. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10992. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10993. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10994. # Commands to make compiler produce verbose output that lists
  10995. # what "hidden" libraries, object files and flags are used when
  10996. # linking a shared library.
  10997. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10998. fi
  10999. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11000. case $host_os in
  11001. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11002. *)
  11003. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11004. ;;
  11005. esac
  11006. fi
  11007. ;;
  11008. esac
  11009. ;;
  11010. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11011. no_undefined_flag_CXX='${wl}-z,text'
  11012. archive_cmds_need_lc_CXX=no
  11013. hardcode_shlibpath_var_CXX=no
  11014. runpath_var='LD_RUN_PATH'
  11015. case $cc_basename in
  11016. CC*)
  11017. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11018. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11019. ;;
  11020. *)
  11021. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11022. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11023. ;;
  11024. esac
  11025. ;;
  11026. sysv5* | sco3.2v5* | sco5v6*)
  11027. # Note: We can NOT use -z defs as we might desire, because we do not
  11028. # link with -lc, and that would cause any symbols used from libc to
  11029. # always be unresolved, which means just about no library would
  11030. # ever link correctly. If we're not using GNU ld we use -z text
  11031. # though, which does catch some bad symbols but isn't as heavy-handed
  11032. # as -z defs.
  11033. no_undefined_flag_CXX='${wl}-z,text'
  11034. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11035. archive_cmds_need_lc_CXX=no
  11036. hardcode_shlibpath_var_CXX=no
  11037. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11038. hardcode_libdir_separator_CXX=':'
  11039. link_all_deplibs_CXX=yes
  11040. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11041. runpath_var='LD_RUN_PATH'
  11042. case $cc_basename in
  11043. CC*)
  11044. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11045. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11046. ;;
  11047. *)
  11048. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11049. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11050. ;;
  11051. esac
  11052. ;;
  11053. tandem*)
  11054. case $cc_basename in
  11055. NCC*)
  11056. # NonStop-UX NCC 3.20
  11057. # FIXME: insert proper C++ library support
  11058. ld_shlibs_CXX=no
  11059. ;;
  11060. *)
  11061. # FIXME: insert proper C++ library support
  11062. ld_shlibs_CXX=no
  11063. ;;
  11064. esac
  11065. ;;
  11066. vxworks*)
  11067. # FIXME: insert proper C++ library support
  11068. ld_shlibs_CXX=no
  11069. ;;
  11070. *)
  11071. # FIXME: insert proper C++ library support
  11072. ld_shlibs_CXX=no
  11073. ;;
  11074. esac
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11076. $as_echo "$ld_shlibs_CXX" >&6; }
  11077. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11078. GCC_CXX="$GXX"
  11079. LD_CXX="$LD"
  11080. ## CAVEAT EMPTOR:
  11081. ## There is no encapsulation within the following macros, do not change
  11082. ## the running order or otherwise move them around unless you know exactly
  11083. ## what you are doing...
  11084. # Dependencies to place before and after the object being linked:
  11085. predep_objects_CXX=
  11086. postdep_objects_CXX=
  11087. predeps_CXX=
  11088. postdeps_CXX=
  11089. compiler_lib_search_path_CXX=
  11090. cat > conftest.$ac_ext <<_LT_EOF
  11091. class Foo
  11092. {
  11093. public:
  11094. Foo (void) { a = 0; }
  11095. private:
  11096. int a;
  11097. };
  11098. _LT_EOF
  11099. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11100. (eval $ac_compile) 2>&5
  11101. ac_status=$?
  11102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11103. test $ac_status = 0; }; then
  11104. # Parse the compiler output and extract the necessary
  11105. # objects, libraries and library flags.
  11106. # Sentinel used to keep track of whether or not we are before
  11107. # the conftest object file.
  11108. pre_test_object_deps_done=no
  11109. for p in `eval "$output_verbose_link_cmd"`; do
  11110. case $p in
  11111. -L* | -R* | -l*)
  11112. # Some compilers place space between "-{L,R}" and the path.
  11113. # Remove the space.
  11114. if test $p = "-L" ||
  11115. test $p = "-R"; then
  11116. prev=$p
  11117. continue
  11118. else
  11119. prev=
  11120. fi
  11121. if test "$pre_test_object_deps_done" = no; then
  11122. case $p in
  11123. -L* | -R*)
  11124. # Internal compiler library paths should come after those
  11125. # provided the user. The postdeps already come after the
  11126. # user supplied libs so there is no need to process them.
  11127. if test -z "$compiler_lib_search_path_CXX"; then
  11128. compiler_lib_search_path_CXX="${prev}${p}"
  11129. else
  11130. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11131. fi
  11132. ;;
  11133. # The "-l" case would never come before the object being
  11134. # linked, so don't bother handling this case.
  11135. esac
  11136. else
  11137. if test -z "$postdeps_CXX"; then
  11138. postdeps_CXX="${prev}${p}"
  11139. else
  11140. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11141. fi
  11142. fi
  11143. ;;
  11144. *.$objext)
  11145. # This assumes that the test object file only shows up
  11146. # once in the compiler output.
  11147. if test "$p" = "conftest.$objext"; then
  11148. pre_test_object_deps_done=yes
  11149. continue
  11150. fi
  11151. if test "$pre_test_object_deps_done" = no; then
  11152. if test -z "$predep_objects_CXX"; then
  11153. predep_objects_CXX="$p"
  11154. else
  11155. predep_objects_CXX="$predep_objects_CXX $p"
  11156. fi
  11157. else
  11158. if test -z "$postdep_objects_CXX"; then
  11159. postdep_objects_CXX="$p"
  11160. else
  11161. postdep_objects_CXX="$postdep_objects_CXX $p"
  11162. fi
  11163. fi
  11164. ;;
  11165. *) ;; # Ignore the rest.
  11166. esac
  11167. done
  11168. # Clean up.
  11169. rm -f a.out a.exe
  11170. else
  11171. echo "libtool.m4: error: problem compiling CXX test program"
  11172. fi
  11173. $RM -f confest.$objext
  11174. # PORTME: override above test on systems where it is broken
  11175. case $host_os in
  11176. interix[3-9]*)
  11177. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11178. # hack all around it, let's just trust "g++" to DTRT.
  11179. predep_objects_CXX=
  11180. postdep_objects_CXX=
  11181. postdeps_CXX=
  11182. ;;
  11183. linux*)
  11184. case `$CC -V 2>&1 | sed 5q` in
  11185. *Sun\ C*)
  11186. # Sun C++ 5.9
  11187. # The more standards-conforming stlport4 library is
  11188. # incompatible with the Cstd library. Avoid specifying
  11189. # it if it's in CXXFLAGS. Ignore libCrun as
  11190. # -library=stlport4 depends on it.
  11191. case " $CXX $CXXFLAGS " in
  11192. *" -library=stlport4 "*)
  11193. solaris_use_stlport4=yes
  11194. ;;
  11195. esac
  11196. if test "$solaris_use_stlport4" != yes; then
  11197. postdeps_CXX='-library=Cstd -library=Crun'
  11198. fi
  11199. ;;
  11200. esac
  11201. ;;
  11202. solaris*)
  11203. case $cc_basename in
  11204. CC*)
  11205. # The more standards-conforming stlport4 library is
  11206. # incompatible with the Cstd library. Avoid specifying
  11207. # it if it's in CXXFLAGS. Ignore libCrun as
  11208. # -library=stlport4 depends on it.
  11209. case " $CXX $CXXFLAGS " in
  11210. *" -library=stlport4 "*)
  11211. solaris_use_stlport4=yes
  11212. ;;
  11213. esac
  11214. # Adding this requires a known-good setup of shared libraries for
  11215. # Sun compiler versions before 5.6, else PIC objects from an old
  11216. # archive will be linked into the output, leading to subtle bugs.
  11217. if test "$solaris_use_stlport4" != yes; then
  11218. postdeps_CXX='-library=Cstd -library=Crun'
  11219. fi
  11220. ;;
  11221. esac
  11222. ;;
  11223. esac
  11224. case " $postdeps_CXX " in
  11225. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11226. esac
  11227. compiler_lib_search_dirs_CXX=
  11228. if test -n "${compiler_lib_search_path_CXX}"; then
  11229. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11230. fi
  11231. lt_prog_compiler_wl_CXX=
  11232. lt_prog_compiler_pic_CXX=
  11233. lt_prog_compiler_static_CXX=
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11235. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11236. # C++ specific cases for pic, static, wl, etc.
  11237. if test "$GXX" = yes; then
  11238. lt_prog_compiler_wl_CXX='-Wl,'
  11239. lt_prog_compiler_static_CXX='-static'
  11240. case $host_os in
  11241. aix*)
  11242. # All AIX code is PIC.
  11243. if test "$host_cpu" = ia64; then
  11244. # AIX 5 now supports IA64 processor
  11245. lt_prog_compiler_static_CXX='-Bstatic'
  11246. fi
  11247. ;;
  11248. amigaos*)
  11249. case $host_cpu in
  11250. powerpc)
  11251. # see comment about AmigaOS4 .so support
  11252. lt_prog_compiler_pic_CXX='-fPIC'
  11253. ;;
  11254. m68k)
  11255. # FIXME: we need at least 68020 code to build shared libraries, but
  11256. # adding the `-m68020' flag to GCC prevents building anything better,
  11257. # like `-m68040'.
  11258. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11259. ;;
  11260. esac
  11261. ;;
  11262. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11263. # PIC is the default for these OSes.
  11264. ;;
  11265. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11266. # This hack is so that the source file can tell whether it is being
  11267. # built for inclusion in a dll (and should export symbols for example).
  11268. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11269. # (--disable-auto-import) libraries
  11270. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11271. ;;
  11272. darwin* | rhapsody*)
  11273. # PIC is the default on this platform
  11274. # Common symbols not allowed in MH_DYLIB files
  11275. lt_prog_compiler_pic_CXX='-fno-common'
  11276. ;;
  11277. *djgpp*)
  11278. # DJGPP does not support shared libraries at all
  11279. lt_prog_compiler_pic_CXX=
  11280. ;;
  11281. interix[3-9]*)
  11282. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11283. # Instead, we relocate shared libraries at runtime.
  11284. ;;
  11285. sysv4*MP*)
  11286. if test -d /usr/nec; then
  11287. lt_prog_compiler_pic_CXX=-Kconform_pic
  11288. fi
  11289. ;;
  11290. hpux*)
  11291. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11292. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11293. # sets the default TLS model and affects inlining.
  11294. case $host_cpu in
  11295. hppa*64*)
  11296. ;;
  11297. *)
  11298. lt_prog_compiler_pic_CXX='-fPIC'
  11299. ;;
  11300. esac
  11301. ;;
  11302. *qnx* | *nto*)
  11303. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11304. # it will coredump.
  11305. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11306. ;;
  11307. *)
  11308. lt_prog_compiler_pic_CXX='-fPIC'
  11309. ;;
  11310. esac
  11311. else
  11312. case $host_os in
  11313. aix[4-9]*)
  11314. # All AIX code is PIC.
  11315. if test "$host_cpu" = ia64; then
  11316. # AIX 5 now supports IA64 processor
  11317. lt_prog_compiler_static_CXX='-Bstatic'
  11318. else
  11319. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11320. fi
  11321. ;;
  11322. chorus*)
  11323. case $cc_basename in
  11324. cxch68*)
  11325. # Green Hills C++ Compiler
  11326. # _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"
  11327. ;;
  11328. esac
  11329. ;;
  11330. dgux*)
  11331. case $cc_basename in
  11332. ec++*)
  11333. lt_prog_compiler_pic_CXX='-KPIC'
  11334. ;;
  11335. ghcx*)
  11336. # Green Hills C++ Compiler
  11337. lt_prog_compiler_pic_CXX='-pic'
  11338. ;;
  11339. *)
  11340. ;;
  11341. esac
  11342. ;;
  11343. freebsd* | dragonfly*)
  11344. # FreeBSD uses GNU C++
  11345. ;;
  11346. hpux9* | hpux10* | hpux11*)
  11347. case $cc_basename in
  11348. CC*)
  11349. lt_prog_compiler_wl_CXX='-Wl,'
  11350. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11351. if test "$host_cpu" != ia64; then
  11352. lt_prog_compiler_pic_CXX='+Z'
  11353. fi
  11354. ;;
  11355. aCC*)
  11356. lt_prog_compiler_wl_CXX='-Wl,'
  11357. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11358. case $host_cpu in
  11359. hppa*64*|ia64*)
  11360. # +Z the default
  11361. ;;
  11362. *)
  11363. lt_prog_compiler_pic_CXX='+Z'
  11364. ;;
  11365. esac
  11366. ;;
  11367. *)
  11368. ;;
  11369. esac
  11370. ;;
  11371. interix*)
  11372. # This is c89, which is MS Visual C++ (no shared libs)
  11373. # Anyone wants to do a port?
  11374. ;;
  11375. irix5* | irix6* | nonstopux*)
  11376. case $cc_basename in
  11377. CC*)
  11378. lt_prog_compiler_wl_CXX='-Wl,'
  11379. lt_prog_compiler_static_CXX='-non_shared'
  11380. # CC pic flag -KPIC is the default.
  11381. ;;
  11382. *)
  11383. ;;
  11384. esac
  11385. ;;
  11386. linux* | k*bsd*-gnu)
  11387. case $cc_basename in
  11388. KCC*)
  11389. # KAI C++ Compiler
  11390. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11391. lt_prog_compiler_pic_CXX='-fPIC'
  11392. ;;
  11393. ecpc* )
  11394. # old Intel C++ for x86_64 which still supported -KPIC.
  11395. lt_prog_compiler_wl_CXX='-Wl,'
  11396. lt_prog_compiler_pic_CXX='-KPIC'
  11397. lt_prog_compiler_static_CXX='-static'
  11398. ;;
  11399. icpc* )
  11400. # Intel C++, used to be incompatible with GCC.
  11401. # ICC 10 doesn't accept -KPIC any more.
  11402. lt_prog_compiler_wl_CXX='-Wl,'
  11403. lt_prog_compiler_pic_CXX='-fPIC'
  11404. lt_prog_compiler_static_CXX='-static'
  11405. ;;
  11406. pgCC* | pgcpp*)
  11407. # Portland Group C++ compiler
  11408. lt_prog_compiler_wl_CXX='-Wl,'
  11409. lt_prog_compiler_pic_CXX='-fpic'
  11410. lt_prog_compiler_static_CXX='-Bstatic'
  11411. ;;
  11412. cxx*)
  11413. # Compaq C++
  11414. # Make sure the PIC flag is empty. It appears that all Alpha
  11415. # Linux and Compaq Tru64 Unix objects are PIC.
  11416. lt_prog_compiler_pic_CXX=
  11417. lt_prog_compiler_static_CXX='-non_shared'
  11418. ;;
  11419. xlc* | xlC*)
  11420. # IBM XL 8.0 on PPC
  11421. lt_prog_compiler_wl_CXX='-Wl,'
  11422. lt_prog_compiler_pic_CXX='-qpic'
  11423. lt_prog_compiler_static_CXX='-qstaticlink'
  11424. ;;
  11425. *)
  11426. case `$CC -V 2>&1 | sed 5q` in
  11427. *Sun\ C*)
  11428. # Sun C++ 5.9
  11429. lt_prog_compiler_pic_CXX='-KPIC'
  11430. lt_prog_compiler_static_CXX='-Bstatic'
  11431. lt_prog_compiler_wl_CXX='-Qoption ld '
  11432. ;;
  11433. esac
  11434. ;;
  11435. esac
  11436. ;;
  11437. lynxos*)
  11438. ;;
  11439. m88k*)
  11440. ;;
  11441. mvs*)
  11442. case $cc_basename in
  11443. cxx*)
  11444. lt_prog_compiler_pic_CXX='-W c,exportall'
  11445. ;;
  11446. *)
  11447. ;;
  11448. esac
  11449. ;;
  11450. netbsd* | netbsdelf*-gnu)
  11451. ;;
  11452. *qnx* | *nto*)
  11453. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11454. # it will coredump.
  11455. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11456. ;;
  11457. osf3* | osf4* | osf5*)
  11458. case $cc_basename in
  11459. KCC*)
  11460. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11461. ;;
  11462. RCC*)
  11463. # Rational C++ 2.4.1
  11464. lt_prog_compiler_pic_CXX='-pic'
  11465. ;;
  11466. cxx*)
  11467. # Digital/Compaq C++
  11468. lt_prog_compiler_wl_CXX='-Wl,'
  11469. # Make sure the PIC flag is empty. It appears that all Alpha
  11470. # Linux and Compaq Tru64 Unix objects are PIC.
  11471. lt_prog_compiler_pic_CXX=
  11472. lt_prog_compiler_static_CXX='-non_shared'
  11473. ;;
  11474. *)
  11475. ;;
  11476. esac
  11477. ;;
  11478. psos*)
  11479. ;;
  11480. solaris*)
  11481. case $cc_basename in
  11482. CC*)
  11483. # Sun C++ 4.2, 5.x and Centerline C++
  11484. lt_prog_compiler_pic_CXX='-KPIC'
  11485. lt_prog_compiler_static_CXX='-Bstatic'
  11486. lt_prog_compiler_wl_CXX='-Qoption ld '
  11487. ;;
  11488. gcx*)
  11489. # Green Hills C++ Compiler
  11490. lt_prog_compiler_pic_CXX='-PIC'
  11491. ;;
  11492. *)
  11493. ;;
  11494. esac
  11495. ;;
  11496. sunos4*)
  11497. case $cc_basename in
  11498. CC*)
  11499. # Sun C++ 4.x
  11500. lt_prog_compiler_pic_CXX='-pic'
  11501. lt_prog_compiler_static_CXX='-Bstatic'
  11502. ;;
  11503. lcc*)
  11504. # Lucid
  11505. lt_prog_compiler_pic_CXX='-pic'
  11506. ;;
  11507. *)
  11508. ;;
  11509. esac
  11510. ;;
  11511. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11512. case $cc_basename in
  11513. CC*)
  11514. lt_prog_compiler_wl_CXX='-Wl,'
  11515. lt_prog_compiler_pic_CXX='-KPIC'
  11516. lt_prog_compiler_static_CXX='-Bstatic'
  11517. ;;
  11518. esac
  11519. ;;
  11520. tandem*)
  11521. case $cc_basename in
  11522. NCC*)
  11523. # NonStop-UX NCC 3.20
  11524. lt_prog_compiler_pic_CXX='-KPIC'
  11525. ;;
  11526. *)
  11527. ;;
  11528. esac
  11529. ;;
  11530. vxworks*)
  11531. ;;
  11532. *)
  11533. lt_prog_compiler_can_build_shared_CXX=no
  11534. ;;
  11535. esac
  11536. fi
  11537. case $host_os in
  11538. # For platforms which do not support PIC, -DPIC is meaningless:
  11539. *djgpp*)
  11540. lt_prog_compiler_pic_CXX=
  11541. ;;
  11542. *)
  11543. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11544. ;;
  11545. esac
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11547. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11548. #
  11549. # Check to make sure the PIC flag actually works.
  11550. #
  11551. if test -n "$lt_prog_compiler_pic_CXX"; then
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11553. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11554. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11555. $as_echo_n "(cached) " >&6
  11556. else
  11557. lt_cv_prog_compiler_pic_works_CXX=no
  11558. ac_outfile=conftest.$ac_objext
  11559. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11560. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11561. # Insert the option either (1) after the last *FLAGS variable, or
  11562. # (2) before a word containing "conftest.", or (3) at the end.
  11563. # Note that $ac_compile itself does not contain backslashes and begins
  11564. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11565. # The option is referenced via a variable to avoid confusing sed.
  11566. lt_compile=`echo "$ac_compile" | $SED \
  11567. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11568. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11569. -e 's:$: $lt_compiler_flag:'`
  11570. (eval echo "\"\$as_me:13358: $lt_compile\"" >&5)
  11571. (eval "$lt_compile" 2>conftest.err)
  11572. ac_status=$?
  11573. cat conftest.err >&5
  11574. echo "$as_me:13362: \$? = $ac_status" >&5
  11575. if (exit $ac_status) && test -s "$ac_outfile"; then
  11576. # The compiler can only warn and ignore the option if not recognized
  11577. # So say no if there are warnings other than the usual output.
  11578. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11579. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11580. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11581. lt_cv_prog_compiler_pic_works_CXX=yes
  11582. fi
  11583. fi
  11584. $RM conftest*
  11585. fi
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11587. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11588. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11589. case $lt_prog_compiler_pic_CXX in
  11590. "" | " "*) ;;
  11591. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11592. esac
  11593. else
  11594. lt_prog_compiler_pic_CXX=
  11595. lt_prog_compiler_can_build_shared_CXX=no
  11596. fi
  11597. fi
  11598. #
  11599. # Check to make sure the static flag actually works.
  11600. #
  11601. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11603. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11604. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11605. $as_echo_n "(cached) " >&6
  11606. else
  11607. lt_cv_prog_compiler_static_works_CXX=no
  11608. save_LDFLAGS="$LDFLAGS"
  11609. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11610. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11611. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11612. # The linker can only warn and ignore the option if not recognized
  11613. # So say no if there are warnings
  11614. if test -s conftest.err; then
  11615. # Append any errors to the config.log.
  11616. cat conftest.err 1>&5
  11617. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11618. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11619. if diff conftest.exp conftest.er2 >/dev/null; then
  11620. lt_cv_prog_compiler_static_works_CXX=yes
  11621. fi
  11622. else
  11623. lt_cv_prog_compiler_static_works_CXX=yes
  11624. fi
  11625. fi
  11626. $RM -r conftest*
  11627. LDFLAGS="$save_LDFLAGS"
  11628. fi
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11630. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11631. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11632. :
  11633. else
  11634. lt_prog_compiler_static_CXX=
  11635. fi
  11636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11637. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11638. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11639. $as_echo_n "(cached) " >&6
  11640. else
  11641. lt_cv_prog_compiler_c_o_CXX=no
  11642. $RM -r conftest 2>/dev/null
  11643. mkdir conftest
  11644. cd conftest
  11645. mkdir out
  11646. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11647. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11648. # Insert the option either (1) after the last *FLAGS variable, or
  11649. # (2) before a word containing "conftest.", or (3) at the end.
  11650. # Note that $ac_compile itself does not contain backslashes and begins
  11651. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11652. lt_compile=`echo "$ac_compile" | $SED \
  11653. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11654. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11655. -e 's:$: $lt_compiler_flag:'`
  11656. (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
  11657. (eval "$lt_compile" 2>out/conftest.err)
  11658. ac_status=$?
  11659. cat out/conftest.err >&5
  11660. echo "$as_me:13461: \$? = $ac_status" >&5
  11661. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11662. then
  11663. # The compiler can only warn and ignore the option if not recognized
  11664. # So say no if there are warnings
  11665. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11666. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11667. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11668. lt_cv_prog_compiler_c_o_CXX=yes
  11669. fi
  11670. fi
  11671. chmod u+w . 2>&5
  11672. $RM conftest*
  11673. # SGI C++ compiler will create directory out/ii_files/ for
  11674. # template instantiation
  11675. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11676. $RM out/* && rmdir out
  11677. cd ..
  11678. $RM -r conftest
  11679. $RM conftest*
  11680. fi
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11682. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11685. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11686. $as_echo_n "(cached) " >&6
  11687. else
  11688. lt_cv_prog_compiler_c_o_CXX=no
  11689. $RM -r conftest 2>/dev/null
  11690. mkdir conftest
  11691. cd conftest
  11692. mkdir out
  11693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11695. # Insert the option either (1) after the last *FLAGS variable, or
  11696. # (2) before a word containing "conftest.", or (3) at the end.
  11697. # Note that $ac_compile itself does not contain backslashes and begins
  11698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11699. lt_compile=`echo "$ac_compile" | $SED \
  11700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11702. -e 's:$: $lt_compiler_flag:'`
  11703. (eval echo "\"\$as_me:13509: $lt_compile\"" >&5)
  11704. (eval "$lt_compile" 2>out/conftest.err)
  11705. ac_status=$?
  11706. cat out/conftest.err >&5
  11707. echo "$as_me:13513: \$? = $ac_status" >&5
  11708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11709. then
  11710. # The compiler can only warn and ignore the option if not recognized
  11711. # So say no if there are warnings
  11712. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11715. lt_cv_prog_compiler_c_o_CXX=yes
  11716. fi
  11717. fi
  11718. chmod u+w . 2>&5
  11719. $RM conftest*
  11720. # SGI C++ compiler will create directory out/ii_files/ for
  11721. # template instantiation
  11722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11723. $RM out/* && rmdir out
  11724. cd ..
  11725. $RM -r conftest
  11726. $RM conftest*
  11727. fi
  11728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11729. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11730. hard_links="nottested"
  11731. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11732. # do not overwrite the value of need_locks provided by the user
  11733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11734. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11735. hard_links=yes
  11736. $RM conftest*
  11737. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11738. touch conftest.a
  11739. ln conftest.a conftest.b 2>&5 || hard_links=no
  11740. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11742. $as_echo "$hard_links" >&6; }
  11743. if test "$hard_links" = no; then
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11745. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11746. need_locks=warn
  11747. fi
  11748. else
  11749. need_locks=no
  11750. fi
  11751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11752. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11753. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11754. case $host_os in
  11755. aix[4-9]*)
  11756. # If we're using GNU nm, then we don't want the "-C" option.
  11757. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11758. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11759. 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'
  11760. else
  11761. 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'
  11762. fi
  11763. ;;
  11764. pw32*)
  11765. export_symbols_cmds_CXX="$ltdll_cmds"
  11766. ;;
  11767. cygwin* | mingw* | cegcc*)
  11768. 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'
  11769. ;;
  11770. linux* | k*bsd*-gnu)
  11771. link_all_deplibs_CXX=no
  11772. ;;
  11773. *)
  11774. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11775. ;;
  11776. esac
  11777. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11779. $as_echo "$ld_shlibs_CXX" >&6; }
  11780. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11781. with_gnu_ld_CXX=$with_gnu_ld
  11782. #
  11783. # Do we need to explicitly link libc?
  11784. #
  11785. case "x$archive_cmds_need_lc_CXX" in
  11786. x|xyes)
  11787. # Assume -lc should be added
  11788. archive_cmds_need_lc_CXX=yes
  11789. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11790. case $archive_cmds_CXX in
  11791. *'~'*)
  11792. # FIXME: we may have to deal with multi-command sequences.
  11793. ;;
  11794. '$CC '*)
  11795. # Test whether the compiler implicitly links with -lc since on some
  11796. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11797. # to ld, don't add -lc before -lgcc.
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11799. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11800. $RM conftest*
  11801. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11802. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11803. (eval $ac_compile) 2>&5
  11804. ac_status=$?
  11805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11806. test $ac_status = 0; } 2>conftest.err; then
  11807. soname=conftest
  11808. lib=conftest
  11809. libobjs=conftest.$ac_objext
  11810. deplibs=
  11811. wl=$lt_prog_compiler_wl_CXX
  11812. pic_flag=$lt_prog_compiler_pic_CXX
  11813. compiler_flags=-v
  11814. linker_flags=-v
  11815. verstring=
  11816. output_objdir=.
  11817. libname=conftest
  11818. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11819. allow_undefined_flag_CXX=
  11820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11821. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11822. ac_status=$?
  11823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11824. test $ac_status = 0; }
  11825. then
  11826. archive_cmds_need_lc_CXX=no
  11827. else
  11828. archive_cmds_need_lc_CXX=yes
  11829. fi
  11830. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11831. else
  11832. cat conftest.err 1>&5
  11833. fi
  11834. $RM conftest*
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11836. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11837. ;;
  11838. esac
  11839. fi
  11840. ;;
  11841. esac
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11843. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11844. library_names_spec=
  11845. libname_spec='lib$name'
  11846. soname_spec=
  11847. shrext_cmds=".so"
  11848. postinstall_cmds=
  11849. postuninstall_cmds=
  11850. finish_cmds=
  11851. finish_eval=
  11852. shlibpath_var=
  11853. shlibpath_overrides_runpath=unknown
  11854. version_type=none
  11855. dynamic_linker="$host_os ld.so"
  11856. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11857. need_lib_prefix=unknown
  11858. hardcode_into_libs=no
  11859. # when you set need_version to no, make sure it does not cause -set_version
  11860. # flags to be left without arguments
  11861. need_version=unknown
  11862. case $host_os in
  11863. aix3*)
  11864. version_type=linux
  11865. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11866. shlibpath_var=LIBPATH
  11867. # AIX 3 has no versioning support, so we append a major version to the name.
  11868. soname_spec='${libname}${release}${shared_ext}$major'
  11869. ;;
  11870. aix[4-9]*)
  11871. version_type=linux
  11872. need_lib_prefix=no
  11873. need_version=no
  11874. hardcode_into_libs=yes
  11875. if test "$host_cpu" = ia64; then
  11876. # AIX 5 supports IA64
  11877. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11878. shlibpath_var=LD_LIBRARY_PATH
  11879. else
  11880. # With GCC up to 2.95.x, collect2 would create an import file
  11881. # for dependence libraries. The import file would start with
  11882. # the line `#! .'. This would cause the generated library to
  11883. # depend on `.', always an invalid library. This was fixed in
  11884. # development snapshots of GCC prior to 3.0.
  11885. case $host_os in
  11886. aix4 | aix4.[01] | aix4.[01].*)
  11887. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11888. echo ' yes '
  11889. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11890. :
  11891. else
  11892. can_build_shared=no
  11893. fi
  11894. ;;
  11895. esac
  11896. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11897. # soname into executable. Probably we can add versioning support to
  11898. # collect2, so additional links can be useful in future.
  11899. if test "$aix_use_runtimelinking" = yes; then
  11900. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11901. # instead of lib<name>.a to let people know that these are not
  11902. # typical AIX shared libraries.
  11903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11904. else
  11905. # We preserve .a as extension for shared libraries through AIX4.2
  11906. # and later when we are not doing run time linking.
  11907. library_names_spec='${libname}${release}.a $libname.a'
  11908. soname_spec='${libname}${release}${shared_ext}$major'
  11909. fi
  11910. shlibpath_var=LIBPATH
  11911. fi
  11912. ;;
  11913. amigaos*)
  11914. case $host_cpu in
  11915. powerpc)
  11916. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11917. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11919. ;;
  11920. m68k)
  11921. library_names_spec='$libname.ixlibrary $libname.a'
  11922. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11923. 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'
  11924. ;;
  11925. esac
  11926. ;;
  11927. beos*)
  11928. library_names_spec='${libname}${shared_ext}'
  11929. dynamic_linker="$host_os ld.so"
  11930. shlibpath_var=LIBRARY_PATH
  11931. ;;
  11932. bsdi[45]*)
  11933. version_type=linux
  11934. need_version=no
  11935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11936. soname_spec='${libname}${release}${shared_ext}$major'
  11937. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11938. shlibpath_var=LD_LIBRARY_PATH
  11939. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11940. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11941. # the default ld.so.conf also contains /usr/contrib/lib and
  11942. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11943. # libtool to hard-code these into programs
  11944. ;;
  11945. cygwin* | mingw* | pw32* | cegcc*)
  11946. version_type=windows
  11947. shrext_cmds=".dll"
  11948. need_version=no
  11949. need_lib_prefix=no
  11950. case $GCC,$host_os in
  11951. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11952. library_names_spec='$libname.dll.a'
  11953. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11954. postinstall_cmds='base_file=`basename \${file}`~
  11955. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11956. dldir=$destdir/`dirname \$dlpath`~
  11957. test -d \$dldir || mkdir -p \$dldir~
  11958. $install_prog $dir/$dlname \$dldir/$dlname~
  11959. chmod a+x \$dldir/$dlname~
  11960. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11961. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11962. fi'
  11963. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11964. dlpath=$dir/\$dldll~
  11965. $RM \$dlpath'
  11966. shlibpath_overrides_runpath=yes
  11967. case $host_os in
  11968. cygwin*)
  11969. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11970. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11971. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11972. ;;
  11973. mingw* | cegcc*)
  11974. # MinGW DLLs use traditional 'lib' prefix
  11975. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11976. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11977. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11978. # It is most probably a Windows format PATH printed by
  11979. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11980. # path with ; separators, and with drive letters. We can handle the
  11981. # drive letters (cygwin fileutils understands them), so leave them,
  11982. # especially as we might pass files found there to a mingw objdump,
  11983. # which wouldn't understand a cygwinified path. Ahh.
  11984. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11985. else
  11986. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11987. fi
  11988. ;;
  11989. pw32*)
  11990. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11991. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11992. ;;
  11993. esac
  11994. ;;
  11995. *)
  11996. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11997. ;;
  11998. esac
  11999. dynamic_linker='Win32 ld.exe'
  12000. # FIXME: first we should search . and the directory the executable is in
  12001. shlibpath_var=PATH
  12002. ;;
  12003. darwin* | rhapsody*)
  12004. dynamic_linker="$host_os dyld"
  12005. version_type=darwin
  12006. need_lib_prefix=no
  12007. need_version=no
  12008. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12009. soname_spec='${libname}${release}${major}$shared_ext'
  12010. shlibpath_overrides_runpath=yes
  12011. shlibpath_var=DYLD_LIBRARY_PATH
  12012. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12013. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12014. ;;
  12015. dgux*)
  12016. version_type=linux
  12017. need_lib_prefix=no
  12018. need_version=no
  12019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12020. soname_spec='${libname}${release}${shared_ext}$major'
  12021. shlibpath_var=LD_LIBRARY_PATH
  12022. ;;
  12023. freebsd1*)
  12024. dynamic_linker=no
  12025. ;;
  12026. freebsd* | dragonfly*)
  12027. # DragonFly does not have aout. When/if they implement a new
  12028. # versioning mechanism, adjust this.
  12029. if test -x /usr/bin/objformat; then
  12030. objformat=`/usr/bin/objformat`
  12031. else
  12032. case $host_os in
  12033. freebsd[123]*) objformat=aout ;;
  12034. *) objformat=elf ;;
  12035. esac
  12036. fi
  12037. version_type=freebsd-$objformat
  12038. case $version_type in
  12039. freebsd-elf*)
  12040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12041. need_version=no
  12042. need_lib_prefix=no
  12043. ;;
  12044. freebsd-*)
  12045. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12046. need_version=yes
  12047. ;;
  12048. esac
  12049. shlibpath_var=LD_LIBRARY_PATH
  12050. case $host_os in
  12051. freebsd2*)
  12052. shlibpath_overrides_runpath=yes
  12053. ;;
  12054. freebsd3.[01]* | freebsdelf3.[01]*)
  12055. shlibpath_overrides_runpath=yes
  12056. hardcode_into_libs=yes
  12057. ;;
  12058. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12059. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12060. shlibpath_overrides_runpath=no
  12061. hardcode_into_libs=yes
  12062. ;;
  12063. *) # from 4.6 on, and DragonFly
  12064. shlibpath_overrides_runpath=yes
  12065. hardcode_into_libs=yes
  12066. ;;
  12067. esac
  12068. ;;
  12069. gnu*)
  12070. version_type=linux
  12071. need_lib_prefix=no
  12072. need_version=no
  12073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12074. soname_spec='${libname}${release}${shared_ext}$major'
  12075. shlibpath_var=LD_LIBRARY_PATH
  12076. hardcode_into_libs=yes
  12077. ;;
  12078. hpux9* | hpux10* | hpux11*)
  12079. # Give a soname corresponding to the major version so that dld.sl refuses to
  12080. # link against other versions.
  12081. version_type=sunos
  12082. need_lib_prefix=no
  12083. need_version=no
  12084. case $host_cpu in
  12085. ia64*)
  12086. shrext_cmds='.so'
  12087. hardcode_into_libs=yes
  12088. dynamic_linker="$host_os dld.so"
  12089. shlibpath_var=LD_LIBRARY_PATH
  12090. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12092. soname_spec='${libname}${release}${shared_ext}$major'
  12093. if test "X$HPUX_IA64_MODE" = X32; then
  12094. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12095. else
  12096. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12097. fi
  12098. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12099. ;;
  12100. hppa*64*)
  12101. shrext_cmds='.sl'
  12102. hardcode_into_libs=yes
  12103. dynamic_linker="$host_os dld.sl"
  12104. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12105. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12107. soname_spec='${libname}${release}${shared_ext}$major'
  12108. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12109. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12110. ;;
  12111. *)
  12112. shrext_cmds='.sl'
  12113. dynamic_linker="$host_os dld.sl"
  12114. shlibpath_var=SHLIB_PATH
  12115. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12117. soname_spec='${libname}${release}${shared_ext}$major'
  12118. ;;
  12119. esac
  12120. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12121. postinstall_cmds='chmod 555 $lib'
  12122. ;;
  12123. interix[3-9]*)
  12124. version_type=linux
  12125. need_lib_prefix=no
  12126. need_version=no
  12127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12128. soname_spec='${libname}${release}${shared_ext}$major'
  12129. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12130. shlibpath_var=LD_LIBRARY_PATH
  12131. shlibpath_overrides_runpath=no
  12132. hardcode_into_libs=yes
  12133. ;;
  12134. irix5* | irix6* | nonstopux*)
  12135. case $host_os in
  12136. nonstopux*) version_type=nonstopux ;;
  12137. *)
  12138. if test "$lt_cv_prog_gnu_ld" = yes; then
  12139. version_type=linux
  12140. else
  12141. version_type=irix
  12142. fi ;;
  12143. esac
  12144. need_lib_prefix=no
  12145. need_version=no
  12146. soname_spec='${libname}${release}${shared_ext}$major'
  12147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12148. case $host_os in
  12149. irix5* | nonstopux*)
  12150. libsuff= shlibsuff=
  12151. ;;
  12152. *)
  12153. case $LD in # libtool.m4 will add one of these switches to LD
  12154. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12155. libsuff= shlibsuff= libmagic=32-bit;;
  12156. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12157. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12158. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12159. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12160. *) libsuff= shlibsuff= libmagic=never-match;;
  12161. esac
  12162. ;;
  12163. esac
  12164. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12165. shlibpath_overrides_runpath=no
  12166. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12167. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12168. hardcode_into_libs=yes
  12169. ;;
  12170. # No shared lib support for Linux oldld, aout, or coff.
  12171. linux*oldld* | linux*aout* | linux*coff*)
  12172. dynamic_linker=no
  12173. ;;
  12174. # This must be Linux ELF.
  12175. linux* | k*bsd*-gnu)
  12176. version_type=linux
  12177. need_lib_prefix=no
  12178. need_version=no
  12179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12180. soname_spec='${libname}${release}${shared_ext}$major'
  12181. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12182. shlibpath_var=LD_LIBRARY_PATH
  12183. shlibpath_overrides_runpath=no
  12184. # Some binutils ld are patched to set DT_RUNPATH
  12185. save_LDFLAGS=$LDFLAGS
  12186. save_libdir=$libdir
  12187. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12188. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12190. /* end confdefs.h. */
  12191. int
  12192. main ()
  12193. {
  12194. ;
  12195. return 0;
  12196. }
  12197. _ACEOF
  12198. if ac_fn_cxx_try_link "$LINENO"; then :
  12199. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12200. shlibpath_overrides_runpath=yes
  12201. fi
  12202. fi
  12203. rm -f core conftest.err conftest.$ac_objext \
  12204. conftest$ac_exeext conftest.$ac_ext
  12205. LDFLAGS=$save_LDFLAGS
  12206. libdir=$save_libdir
  12207. # This implies no fast_install, which is unacceptable.
  12208. # Some rework will be needed to allow for fast_install
  12209. # before this can be enabled.
  12210. hardcode_into_libs=yes
  12211. # Append ld.so.conf contents to the search path
  12212. if test -f /etc/ld.so.conf; then
  12213. 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' ' '`
  12214. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12215. fi
  12216. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12217. # powerpc, because MkLinux only supported shared libraries with the
  12218. # GNU dynamic linker. Since this was broken with cross compilers,
  12219. # most powerpc-linux boxes support dynamic linking these days and
  12220. # people can always --disable-shared, the test was removed, and we
  12221. # assume the GNU/Linux dynamic linker is in use.
  12222. dynamic_linker='GNU/Linux ld.so'
  12223. ;;
  12224. netbsdelf*-gnu)
  12225. version_type=linux
  12226. need_lib_prefix=no
  12227. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  12231. shlibpath_overrides_runpath=no
  12232. hardcode_into_libs=yes
  12233. dynamic_linker='NetBSD ld.elf_so'
  12234. ;;
  12235. netbsd*)
  12236. version_type=sunos
  12237. need_lib_prefix=no
  12238. need_version=no
  12239. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12241. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12242. dynamic_linker='NetBSD (a.out) ld.so'
  12243. else
  12244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12245. soname_spec='${libname}${release}${shared_ext}$major'
  12246. dynamic_linker='NetBSD ld.elf_so'
  12247. fi
  12248. shlibpath_var=LD_LIBRARY_PATH
  12249. shlibpath_overrides_runpath=yes
  12250. hardcode_into_libs=yes
  12251. ;;
  12252. newsos6)
  12253. version_type=linux
  12254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12255. shlibpath_var=LD_LIBRARY_PATH
  12256. shlibpath_overrides_runpath=yes
  12257. ;;
  12258. *nto* | *qnx*)
  12259. version_type=qnx
  12260. need_lib_prefix=no
  12261. need_version=no
  12262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12263. soname_spec='${libname}${release}${shared_ext}$major'
  12264. shlibpath_var=LD_LIBRARY_PATH
  12265. shlibpath_overrides_runpath=no
  12266. hardcode_into_libs=yes
  12267. dynamic_linker='ldqnx.so'
  12268. ;;
  12269. openbsd*)
  12270. version_type=sunos
  12271. sys_lib_dlsearch_path_spec="/usr/lib"
  12272. need_lib_prefix=no
  12273. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12274. case $host_os in
  12275. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12276. *) need_version=no ;;
  12277. esac
  12278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12279. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12280. shlibpath_var=LD_LIBRARY_PATH
  12281. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12282. case $host_os in
  12283. openbsd2.[89] | openbsd2.[89].*)
  12284. shlibpath_overrides_runpath=no
  12285. ;;
  12286. *)
  12287. shlibpath_overrides_runpath=yes
  12288. ;;
  12289. esac
  12290. else
  12291. shlibpath_overrides_runpath=yes
  12292. fi
  12293. ;;
  12294. os2*)
  12295. libname_spec='$name'
  12296. shrext_cmds=".dll"
  12297. need_lib_prefix=no
  12298. library_names_spec='$libname${shared_ext} $libname.a'
  12299. dynamic_linker='OS/2 ld.exe'
  12300. shlibpath_var=LIBPATH
  12301. ;;
  12302. osf3* | osf4* | osf5*)
  12303. version_type=osf
  12304. need_lib_prefix=no
  12305. need_version=no
  12306. soname_spec='${libname}${release}${shared_ext}$major'
  12307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12308. shlibpath_var=LD_LIBRARY_PATH
  12309. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12310. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12311. ;;
  12312. rdos*)
  12313. dynamic_linker=no
  12314. ;;
  12315. solaris*)
  12316. version_type=linux
  12317. need_lib_prefix=no
  12318. need_version=no
  12319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12320. soname_spec='${libname}${release}${shared_ext}$major'
  12321. shlibpath_var=LD_LIBRARY_PATH
  12322. shlibpath_overrides_runpath=yes
  12323. hardcode_into_libs=yes
  12324. # ldd complains unless libraries are executable
  12325. postinstall_cmds='chmod +x $lib'
  12326. ;;
  12327. sunos4*)
  12328. version_type=sunos
  12329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12330. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12331. shlibpath_var=LD_LIBRARY_PATH
  12332. shlibpath_overrides_runpath=yes
  12333. if test "$with_gnu_ld" = yes; then
  12334. need_lib_prefix=no
  12335. fi
  12336. need_version=yes
  12337. ;;
  12338. sysv4 | sysv4.3*)
  12339. version_type=linux
  12340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12341. soname_spec='${libname}${release}${shared_ext}$major'
  12342. shlibpath_var=LD_LIBRARY_PATH
  12343. case $host_vendor in
  12344. sni)
  12345. shlibpath_overrides_runpath=no
  12346. need_lib_prefix=no
  12347. runpath_var=LD_RUN_PATH
  12348. ;;
  12349. siemens)
  12350. need_lib_prefix=no
  12351. ;;
  12352. motorola)
  12353. need_lib_prefix=no
  12354. need_version=no
  12355. shlibpath_overrides_runpath=no
  12356. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12357. ;;
  12358. esac
  12359. ;;
  12360. sysv4*MP*)
  12361. if test -d /usr/nec ;then
  12362. version_type=linux
  12363. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12364. soname_spec='$libname${shared_ext}.$major'
  12365. shlibpath_var=LD_LIBRARY_PATH
  12366. fi
  12367. ;;
  12368. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12369. version_type=freebsd-elf
  12370. need_lib_prefix=no
  12371. need_version=no
  12372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12373. soname_spec='${libname}${release}${shared_ext}$major'
  12374. shlibpath_var=LD_LIBRARY_PATH
  12375. shlibpath_overrides_runpath=yes
  12376. hardcode_into_libs=yes
  12377. if test "$with_gnu_ld" = yes; then
  12378. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12379. else
  12380. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12381. case $host_os in
  12382. sco3.2v5*)
  12383. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12384. ;;
  12385. esac
  12386. fi
  12387. sys_lib_dlsearch_path_spec='/usr/lib'
  12388. ;;
  12389. tpf*)
  12390. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12391. version_type=linux
  12392. need_lib_prefix=no
  12393. need_version=no
  12394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12395. shlibpath_var=LD_LIBRARY_PATH
  12396. shlibpath_overrides_runpath=no
  12397. hardcode_into_libs=yes
  12398. ;;
  12399. uts4*)
  12400. version_type=linux
  12401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12402. soname_spec='${libname}${release}${shared_ext}$major'
  12403. shlibpath_var=LD_LIBRARY_PATH
  12404. ;;
  12405. *)
  12406. dynamic_linker=no
  12407. ;;
  12408. esac
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12410. $as_echo "$dynamic_linker" >&6; }
  12411. test "$dynamic_linker" = no && can_build_shared=no
  12412. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12413. if test "$GCC" = yes; then
  12414. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12415. fi
  12416. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12417. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12418. fi
  12419. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12420. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12421. fi
  12422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12423. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12424. hardcode_action_CXX=
  12425. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12426. test -n "$runpath_var_CXX" ||
  12427. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12428. # We can hardcode non-existent directories.
  12429. if test "$hardcode_direct_CXX" != no &&
  12430. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12431. # have to relink, otherwise we might link with an installed library
  12432. # when we should be linking with a yet-to-be-installed one
  12433. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12434. test "$hardcode_minus_L_CXX" != no; then
  12435. # Linking always hardcodes the temporary library directory.
  12436. hardcode_action_CXX=relink
  12437. else
  12438. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12439. hardcode_action_CXX=immediate
  12440. fi
  12441. else
  12442. # We cannot hardcode anything, or else we can only hardcode existing
  12443. # directories.
  12444. hardcode_action_CXX=unsupported
  12445. fi
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12447. $as_echo "$hardcode_action_CXX" >&6; }
  12448. if test "$hardcode_action_CXX" = relink ||
  12449. test "$inherit_rpath_CXX" = yes; then
  12450. # Fast installation is not supported
  12451. enable_fast_install=no
  12452. elif test "$shlibpath_overrides_runpath" = yes ||
  12453. test "$enable_shared" = no; then
  12454. # Fast installation is not necessary
  12455. enable_fast_install=needless
  12456. fi
  12457. fi # test -n "$compiler"
  12458. CC=$lt_save_CC
  12459. LDCXX=$LD
  12460. LD=$lt_save_LD
  12461. GCC=$lt_save_GCC
  12462. with_gnu_ld=$lt_save_with_gnu_ld
  12463. lt_cv_path_LDCXX=$lt_cv_path_LD
  12464. lt_cv_path_LD=$lt_save_path_LD
  12465. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12466. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12467. fi # test "$_lt_caught_CXX_error" != yes
  12468. ac_ext=cpp
  12469. ac_cpp='$CXXCPP $CPPFLAGS'
  12470. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12471. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12472. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12473. ac_config_commands="$ac_config_commands libtool"
  12474. # Only expand once:
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  12476. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  12477. if test "${ax_cv_cxx_compiler_vendor+set}" = set; then :
  12478. $as_echo_n "(cached) " >&6
  12479. else
  12480. ax_cv_cxx_compiler_vendor=unknown
  12481. # note: don't check for gcc first since some other compilers define __GNUC__
  12482. for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
  12483. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  12484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12485. /* end confdefs.h. */
  12486. int
  12487. main ()
  12488. {
  12489. #if !($vencpp)
  12490. thisisanerror;
  12491. #endif
  12492. ;
  12493. return 0;
  12494. }
  12495. _ACEOF
  12496. if ac_fn_cxx_try_compile "$LINENO"; then :
  12497. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  12498. fi
  12499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12500. done
  12501. fi
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  12503. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  12504. # Use silent rules if supported.
  12505. # Check whether --enable-silent-rules was given.
  12506. if test "${enable_silent_rules+set}" = set; then :
  12507. enableval=$enable_silent_rules;
  12508. fi
  12509. case $enable_silent_rules in
  12510. yes) AM_DEFAULT_VERBOSITY=0;;
  12511. no) AM_DEFAULT_VERBOSITY=1;;
  12512. *) AM_DEFAULT_VERBOSITY=0;;
  12513. esac
  12514. AM_BACKSLASH='\'
  12515. # Check whether --enable-debug was given.
  12516. if test "${enable_debug+set}" = set; then :
  12517. enableval=$enable_debug; if test x$enableval = xyes ; then
  12518. enable_debug="yes"
  12519. else
  12520. enable_debug="no"
  12521. fi
  12522. else
  12523. enable_debug="yes"
  12524. fi
  12525. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12526. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  12527. fi
  12528. # For gcc and compatible compilers, enable compilation warnings, but
  12529. # selectively disable some because too many are generated.
  12530. if test "x$GXX" = "xyes" ; then
  12531. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith -Wno-unknown-pragmas"
  12532. fi
  12533. # extra clang parameters
  12534. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  12535. CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-cast-align"
  12536. fi
  12537. # extra Intel icc parameters
  12538. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  12539. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  12540. fi
  12541. # Check for Boost libraries
  12542. # Check whether --with-boost was given.
  12543. if test "${with_boost+set}" = set; then :
  12544. withval=$with_boost;
  12545. if test "$withval" = "no"; then
  12546. want_boost="no"
  12547. elif test "$withval" = "yes"; then
  12548. want_boost="yes"
  12549. ac_boost_path=""
  12550. else
  12551. want_boost="yes"
  12552. ac_boost_path="$withval"
  12553. fi
  12554. else
  12555. want_boost="yes"
  12556. fi
  12557. # Check whether --with-boost-libdir was given.
  12558. if test "${with_boost_libdir+set}" = set; then :
  12559. withval=$with_boost_libdir;
  12560. if test -d "$withval"
  12561. then
  12562. ac_boost_lib_path="$withval"
  12563. else
  12564. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  12565. fi
  12566. else
  12567. ac_boost_lib_path=""
  12568. fi
  12569. if test "x$want_boost" = "xyes"; then
  12570. boost_lib_version_req=1.36
  12571. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12572. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12573. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12574. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12575. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12576. boost_lib_version_req_sub_minor="0"
  12577. fi
  12578. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12580. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12581. succeeded=no
  12582. libsubdirs="lib"
  12583. ax_arch=`uname -m`
  12584. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  12585. libsubdirs="lib64 lib lib64"
  12586. fi
  12587. if test "$ac_boost_path" != ""; then
  12588. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12589. for ac_boost_path_tmp in $libsubdirs; do
  12590. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  12591. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  12592. break
  12593. fi
  12594. done
  12595. elif test "$cross_compiling" != yes; then
  12596. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12597. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12598. for libsubdir in $libsubdirs ; do
  12599. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12600. done
  12601. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  12602. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12603. break;
  12604. fi
  12605. done
  12606. fi
  12607. if test "$ac_boost_lib_path" != ""; then
  12608. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12609. fi
  12610. CPPFLAGS_SAVED="$CPPFLAGS"
  12611. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12612. export CPPFLAGS
  12613. LDFLAGS_SAVED="$LDFLAGS"
  12614. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12615. export LDFLAGS
  12616. ac_ext=cpp
  12617. ac_cpp='$CXXCPP $CPPFLAGS'
  12618. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12619. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12620. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12622. /* end confdefs.h. */
  12623. #include <boost/version.hpp>
  12624. int
  12625. main ()
  12626. {
  12627. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12628. // Everything is okay
  12629. #else
  12630. # error Boost version is too old
  12631. #endif
  12632. ;
  12633. return 0;
  12634. }
  12635. _ACEOF
  12636. if ac_fn_cxx_try_compile "$LINENO"; then :
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12638. $as_echo "yes" >&6; }
  12639. succeeded=yes
  12640. found_system=yes
  12641. fi
  12642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12643. ac_ext=cpp
  12644. ac_cpp='$CXXCPP $CPPFLAGS'
  12645. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12646. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12647. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12648. if test "x$succeeded" != "xyes"; then
  12649. _version=0
  12650. if test "$ac_boost_path" != ""; then
  12651. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12652. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12653. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12654. V_CHECK=`expr $_version_tmp \> $_version`
  12655. if test "$V_CHECK" = "1" ; then
  12656. _version=$_version_tmp
  12657. fi
  12658. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12659. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12660. done
  12661. fi
  12662. else
  12663. if test "$cross_compiling" != yes; then
  12664. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12665. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12666. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12667. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12668. V_CHECK=`expr $_version_tmp \> $_version`
  12669. if test "$V_CHECK" = "1" ; then
  12670. _version=$_version_tmp
  12671. best_path=$ac_boost_path
  12672. fi
  12673. done
  12674. fi
  12675. done
  12676. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12677. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12678. if test "$ac_boost_lib_path" = ""; then
  12679. for libsubdir in $libsubdirs ; do
  12680. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12681. done
  12682. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  12683. fi
  12684. fi
  12685. if test "x$BOOST_ROOT" != "x"; then
  12686. for libsubdir in $libsubdirs ; do
  12687. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12688. done
  12689. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  12690. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12691. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12692. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12693. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12694. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12696. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12697. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12698. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  12699. fi
  12700. fi
  12701. fi
  12702. fi
  12703. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12704. export CPPFLAGS
  12705. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12706. export LDFLAGS
  12707. ac_ext=cpp
  12708. ac_cpp='$CXXCPP $CPPFLAGS'
  12709. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12710. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12711. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. #include <boost/version.hpp>
  12715. int
  12716. main ()
  12717. {
  12718. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12719. // Everything is okay
  12720. #else
  12721. # error Boost version is too old
  12722. #endif
  12723. ;
  12724. return 0;
  12725. }
  12726. _ACEOF
  12727. if ac_fn_cxx_try_compile "$LINENO"; then :
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12729. $as_echo "yes" >&6; }
  12730. succeeded=yes
  12731. found_system=yes
  12732. fi
  12733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12734. ac_ext=cpp
  12735. ac_cpp='$CXXCPP $CPPFLAGS'
  12736. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12737. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12738. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12739. fi
  12740. if test "$succeeded" != "yes" ; then
  12741. if test "$_version" = "0" ; then
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: 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." >&5
  12743. $as_echo "$as_me: 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." >&6;}
  12744. else
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12746. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12747. fi
  12748. # execute ACTION-IF-NOT-FOUND (if present):
  12749. :
  12750. else
  12751. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12752. # execute ACTION-IF-FOUND (if present):
  12753. :
  12754. fi
  12755. CPPFLAGS="$CPPFLAGS_SAVED"
  12756. LDFLAGS="$LDFLAGS_SAVED"
  12757. fi
  12758. # Check whether --with-boost-system was given.
  12759. if test "${with_boost_system+set}" = set; then :
  12760. withval=$with_boost_system;
  12761. if test "$withval" = "no"; then
  12762. want_boost="no"
  12763. elif test "$withval" = "yes"; then
  12764. want_boost="yes"
  12765. ax_boost_user_system_lib=""
  12766. else
  12767. want_boost="yes"
  12768. ax_boost_user_system_lib="$withval"
  12769. fi
  12770. else
  12771. want_boost="yes"
  12772. fi
  12773. if test "x$want_boost" = "xyes"; then
  12774. CPPFLAGS_SAVED="$CPPFLAGS"
  12775. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12776. export CPPFLAGS
  12777. LDFLAGS_SAVED="$LDFLAGS"
  12778. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12779. export LDFLAGS
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12781. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12782. if test "${ax_cv_boost_system+set}" = set; then :
  12783. $as_echo_n "(cached) " >&6
  12784. else
  12785. ac_ext=cpp
  12786. ac_cpp='$CXXCPP $CPPFLAGS'
  12787. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12788. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12789. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12790. CXXFLAGS_SAVE=$CXXFLAGS
  12791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12792. /* end confdefs.h. */
  12793. #include <boost/system/error_code.hpp>
  12794. int
  12795. main ()
  12796. {
  12797. boost::system::system_category
  12798. ;
  12799. return 0;
  12800. }
  12801. _ACEOF
  12802. if ac_fn_cxx_try_compile "$LINENO"; then :
  12803. ax_cv_boost_system=yes
  12804. else
  12805. ax_cv_boost_system=no
  12806. fi
  12807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12808. CXXFLAGS=$CXXFLAGS_SAVE
  12809. ac_ext=cpp
  12810. ac_cpp='$CXXCPP $CPPFLAGS'
  12811. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12812. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12813. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12814. fi
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12816. $as_echo "$ax_cv_boost_system" >&6; }
  12817. if test "x$ax_cv_boost_system" = "xyes"; then
  12818. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12819. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12820. LDFLAGS_SAVE=$LDFLAGS
  12821. if test "x$ax_boost_user_system_lib" = "x"; then
  12822. for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  12823. ax_lib=${libextension}
  12824. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12826. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12827. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12828. $as_echo_n "(cached) " >&6
  12829. else
  12830. ac_check_lib_save_LIBS=$LIBS
  12831. LIBS="-l$ax_lib $LIBS"
  12832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12833. /* end confdefs.h. */
  12834. /* Override any GCC internal prototype to avoid an error.
  12835. Use char because int might match the return type of a GCC
  12836. builtin and then its argument prototype would still apply. */
  12837. #ifdef __cplusplus
  12838. extern "C"
  12839. #endif
  12840. char exit ();
  12841. int
  12842. main ()
  12843. {
  12844. return exit ();
  12845. ;
  12846. return 0;
  12847. }
  12848. _ACEOF
  12849. if ac_fn_cxx_try_link "$LINENO"; then :
  12850. eval "$as_ac_Lib=yes"
  12851. else
  12852. eval "$as_ac_Lib=no"
  12853. fi
  12854. rm -f core conftest.err conftest.$ac_objext \
  12855. conftest$ac_exeext conftest.$ac_ext
  12856. LIBS=$ac_check_lib_save_LIBS
  12857. fi
  12858. eval ac_res=\$$as_ac_Lib
  12859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12860. $as_echo "$ac_res" >&6; }
  12861. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12862. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12863. else
  12864. link_system="no"
  12865. fi
  12866. done
  12867. if test "x$link_system" != "xyes"; then
  12868. 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
  12869. ax_lib=${libextension}
  12870. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12872. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12873. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12874. $as_echo_n "(cached) " >&6
  12875. else
  12876. ac_check_lib_save_LIBS=$LIBS
  12877. LIBS="-l$ax_lib $LIBS"
  12878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12879. /* end confdefs.h. */
  12880. /* Override any GCC internal prototype to avoid an error.
  12881. Use char because int might match the return type of a GCC
  12882. builtin and then its argument prototype would still apply. */
  12883. #ifdef __cplusplus
  12884. extern "C"
  12885. #endif
  12886. char exit ();
  12887. int
  12888. main ()
  12889. {
  12890. return exit ();
  12891. ;
  12892. return 0;
  12893. }
  12894. _ACEOF
  12895. if ac_fn_cxx_try_link "$LINENO"; then :
  12896. eval "$as_ac_Lib=yes"
  12897. else
  12898. eval "$as_ac_Lib=no"
  12899. fi
  12900. rm -f core conftest.err conftest.$ac_objext \
  12901. conftest$ac_exeext conftest.$ac_ext
  12902. LIBS=$ac_check_lib_save_LIBS
  12903. fi
  12904. eval ac_res=\$$as_ac_Lib
  12905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12906. $as_echo "$ac_res" >&6; }
  12907. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12908. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12909. else
  12910. link_system="no"
  12911. fi
  12912. done
  12913. fi
  12914. else
  12915. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12916. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12918. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12919. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12920. $as_echo_n "(cached) " >&6
  12921. else
  12922. ac_check_lib_save_LIBS=$LIBS
  12923. LIBS="-l$ax_lib $LIBS"
  12924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h. */
  12926. /* Override any GCC internal prototype to avoid an error.
  12927. Use char because int might match the return type of a GCC
  12928. builtin and then its argument prototype would still apply. */
  12929. #ifdef __cplusplus
  12930. extern "C"
  12931. #endif
  12932. char exit ();
  12933. int
  12934. main ()
  12935. {
  12936. return exit ();
  12937. ;
  12938. return 0;
  12939. }
  12940. _ACEOF
  12941. if ac_fn_cxx_try_link "$LINENO"; then :
  12942. eval "$as_ac_Lib=yes"
  12943. else
  12944. eval "$as_ac_Lib=no"
  12945. fi
  12946. rm -f core conftest.err conftest.$ac_objext \
  12947. conftest$ac_exeext conftest.$ac_ext
  12948. LIBS=$ac_check_lib_save_LIBS
  12949. fi
  12950. eval ac_res=\$$as_ac_Lib
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12952. $as_echo "$ac_res" >&6; }
  12953. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12954. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12955. else
  12956. link_system="no"
  12957. fi
  12958. done
  12959. fi
  12960. if test "x$ax_lib" = "x"; then
  12961. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  12962. fi
  12963. if test "x$link_system" = "xno"; then
  12964. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  12965. fi
  12966. fi
  12967. CPPFLAGS="$CPPFLAGS_SAVED"
  12968. LDFLAGS="$LDFLAGS_SAVED"
  12969. fi
  12970. # Check whether --with-boost-filesystem was given.
  12971. if test "${with_boost_filesystem+set}" = set; then :
  12972. withval=$with_boost_filesystem;
  12973. if test "$withval" = "no"; then
  12974. want_boost="no"
  12975. elif test "$withval" = "yes"; then
  12976. want_boost="yes"
  12977. ax_boost_user_filesystem_lib=""
  12978. else
  12979. want_boost="yes"
  12980. ax_boost_user_filesystem_lib="$withval"
  12981. fi
  12982. else
  12983. want_boost="yes"
  12984. fi
  12985. if test "x$want_boost" = "xyes"; then
  12986. CPPFLAGS_SAVED="$CPPFLAGS"
  12987. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12988. export CPPFLAGS
  12989. LDFLAGS_SAVED="$LDFLAGS"
  12990. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12991. export LDFLAGS
  12992. LIBS_SAVED=$LIBS
  12993. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  12994. export LIBS
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12996. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12997. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12998. $as_echo_n "(cached) " >&6
  12999. else
  13000. ac_ext=cpp
  13001. ac_cpp='$CXXCPP $CPPFLAGS'
  13002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13006. /* end confdefs.h. */
  13007. #include <boost/filesystem/path.hpp>
  13008. int
  13009. main ()
  13010. {
  13011. using namespace boost::filesystem;
  13012. path my_path( "foo/bar/data.txt" );
  13013. return 0;
  13014. ;
  13015. return 0;
  13016. }
  13017. _ACEOF
  13018. if ac_fn_cxx_try_compile "$LINENO"; then :
  13019. ax_cv_boost_filesystem=yes
  13020. else
  13021. ax_cv_boost_filesystem=no
  13022. fi
  13023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13024. ac_ext=cpp
  13025. ac_cpp='$CXXCPP $CPPFLAGS'
  13026. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13027. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13028. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13029. fi
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  13031. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13032. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13033. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  13034. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13035. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13036. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
  13037. ax_lib=${libextension}
  13038. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13040. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13041. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13042. $as_echo_n "(cached) " >&6
  13043. else
  13044. ac_check_lib_save_LIBS=$LIBS
  13045. LIBS="-l$ax_lib $LIBS"
  13046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13047. /* end confdefs.h. */
  13048. /* Override any GCC internal prototype to avoid an error.
  13049. Use char because int might match the return type of a GCC
  13050. builtin and then its argument prototype would still apply. */
  13051. #ifdef __cplusplus
  13052. extern "C"
  13053. #endif
  13054. char exit ();
  13055. int
  13056. main ()
  13057. {
  13058. return exit ();
  13059. ;
  13060. return 0;
  13061. }
  13062. _ACEOF
  13063. if ac_fn_cxx_try_link "$LINENO"; then :
  13064. eval "$as_ac_Lib=yes"
  13065. else
  13066. eval "$as_ac_Lib=no"
  13067. fi
  13068. rm -f core conftest.err conftest.$ac_objext \
  13069. conftest$ac_exeext conftest.$ac_ext
  13070. LIBS=$ac_check_lib_save_LIBS
  13071. fi
  13072. eval ac_res=\$$as_ac_Lib
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13074. $as_echo "$ac_res" >&6; }
  13075. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13076. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13077. else
  13078. link_filesystem="no"
  13079. fi
  13080. done
  13081. if test "x$link_program_options" != "xyes"; then
  13082. 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
  13083. ax_lib=${libextension}
  13084. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13086. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13087. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13088. $as_echo_n "(cached) " >&6
  13089. else
  13090. ac_check_lib_save_LIBS=$LIBS
  13091. LIBS="-l$ax_lib $LIBS"
  13092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13093. /* end confdefs.h. */
  13094. /* Override any GCC internal prototype to avoid an error.
  13095. Use char because int might match the return type of a GCC
  13096. builtin and then its argument prototype would still apply. */
  13097. #ifdef __cplusplus
  13098. extern "C"
  13099. #endif
  13100. char exit ();
  13101. int
  13102. main ()
  13103. {
  13104. return exit ();
  13105. ;
  13106. return 0;
  13107. }
  13108. _ACEOF
  13109. if ac_fn_cxx_try_link "$LINENO"; then :
  13110. eval "$as_ac_Lib=yes"
  13111. else
  13112. eval "$as_ac_Lib=no"
  13113. fi
  13114. rm -f core conftest.err conftest.$ac_objext \
  13115. conftest$ac_exeext conftest.$ac_ext
  13116. LIBS=$ac_check_lib_save_LIBS
  13117. fi
  13118. eval ac_res=\$$as_ac_Lib
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13120. $as_echo "$ac_res" >&6; }
  13121. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13122. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13123. else
  13124. link_filesystem="no"
  13125. fi
  13126. done
  13127. fi
  13128. else
  13129. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13130. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13132. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13133. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13134. $as_echo_n "(cached) " >&6
  13135. else
  13136. ac_check_lib_save_LIBS=$LIBS
  13137. LIBS="-l$ax_lib $LIBS"
  13138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13139. /* end confdefs.h. */
  13140. /* Override any GCC internal prototype to avoid an error.
  13141. Use char because int might match the return type of a GCC
  13142. builtin and then its argument prototype would still apply. */
  13143. #ifdef __cplusplus
  13144. extern "C"
  13145. #endif
  13146. char exit ();
  13147. int
  13148. main ()
  13149. {
  13150. return exit ();
  13151. ;
  13152. return 0;
  13153. }
  13154. _ACEOF
  13155. if ac_fn_cxx_try_link "$LINENO"; then :
  13156. eval "$as_ac_Lib=yes"
  13157. else
  13158. eval "$as_ac_Lib=no"
  13159. fi
  13160. rm -f core conftest.err conftest.$ac_objext \
  13161. conftest$ac_exeext conftest.$ac_ext
  13162. LIBS=$ac_check_lib_save_LIBS
  13163. fi
  13164. eval ac_res=\$$as_ac_Lib
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13166. $as_echo "$ac_res" >&6; }
  13167. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13168. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13169. else
  13170. link_filesystem="no"
  13171. fi
  13172. done
  13173. fi
  13174. if test "x$ax_lib" = "x"; then
  13175. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13176. fi
  13177. if test "x$link_filesystem" != "xyes"; then
  13178. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13179. fi
  13180. fi
  13181. CPPFLAGS="$CPPFLAGS_SAVED"
  13182. LDFLAGS="$LDFLAGS_SAVED"
  13183. LIBS="$LIBS_SAVED"
  13184. fi
  13185. # Check whether --with-boost-thread was given.
  13186. if test "${with_boost_thread+set}" = set; then :
  13187. withval=$with_boost_thread;
  13188. if test "$withval" = "no"; then
  13189. want_boost="no"
  13190. elif test "$withval" = "yes"; then
  13191. want_boost="yes"
  13192. ax_boost_user_thread_lib=""
  13193. else
  13194. want_boost="yes"
  13195. ax_boost_user_thread_lib="$withval"
  13196. fi
  13197. else
  13198. want_boost="yes"
  13199. fi
  13200. if test "x$want_boost" = "xyes"; then
  13201. CPPFLAGS_SAVED="$CPPFLAGS"
  13202. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13203. export CPPFLAGS
  13204. LDFLAGS_SAVED="$LDFLAGS"
  13205. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13206. export LDFLAGS
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13208. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13209. if test "${ax_cv_boost_thread+set}" = set; then :
  13210. $as_echo_n "(cached) " >&6
  13211. else
  13212. ac_ext=cpp
  13213. ac_cpp='$CXXCPP $CPPFLAGS'
  13214. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13215. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13216. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13217. CXXFLAGS_SAVE=$CXXFLAGS
  13218. if test "x$build_os" = "xsolaris" ; then
  13219. CXXFLAGS="-pthreads $CXXFLAGS"
  13220. elif test "x$build_os" = "xming32" ; then
  13221. CXXFLAGS="-mthreads $CXXFLAGS"
  13222. else
  13223. CXXFLAGS="-pthread $CXXFLAGS"
  13224. fi
  13225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13226. /* end confdefs.h. */
  13227. #include <boost/thread/thread.hpp>
  13228. int
  13229. main ()
  13230. {
  13231. boost::thread_group thrds;
  13232. return 0;
  13233. ;
  13234. return 0;
  13235. }
  13236. _ACEOF
  13237. if ac_fn_cxx_try_compile "$LINENO"; then :
  13238. ax_cv_boost_thread=yes
  13239. else
  13240. ax_cv_boost_thread=no
  13241. fi
  13242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13243. CXXFLAGS=$CXXFLAGS_SAVE
  13244. ac_ext=cpp
  13245. ac_cpp='$CXXCPP $CPPFLAGS'
  13246. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13247. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13248. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13249. fi
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13251. $as_echo "$ax_cv_boost_thread" >&6; }
  13252. if test "x$ax_cv_boost_thread" = "xyes"; then
  13253. if test "x$build_os" = "xsolaris" ; then
  13254. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13255. elif test "x$build_os" = "xming32" ; then
  13256. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13257. else
  13258. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13259. fi
  13260. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13261. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13262. LDFLAGS_SAVE=$LDFLAGS
  13263. case "x$build_os" in
  13264. *bsd* )
  13265. LDFLAGS="-pthread $LDFLAGS"
  13266. break;
  13267. ;;
  13268. esac
  13269. if test "x$ax_boost_user_thread_lib" = "x"; then
  13270. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
  13271. ax_lib=${libextension}
  13272. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13274. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13275. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13276. $as_echo_n "(cached) " >&6
  13277. else
  13278. ac_check_lib_save_LIBS=$LIBS
  13279. LIBS="-l$ax_lib $LIBS"
  13280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13281. /* end confdefs.h. */
  13282. /* Override any GCC internal prototype to avoid an error.
  13283. Use char because int might match the return type of a GCC
  13284. builtin and then its argument prototype would still apply. */
  13285. #ifdef __cplusplus
  13286. extern "C"
  13287. #endif
  13288. char exit ();
  13289. int
  13290. main ()
  13291. {
  13292. return exit ();
  13293. ;
  13294. return 0;
  13295. }
  13296. _ACEOF
  13297. if ac_fn_cxx_try_link "$LINENO"; then :
  13298. eval "$as_ac_Lib=yes"
  13299. else
  13300. eval "$as_ac_Lib=no"
  13301. fi
  13302. rm -f core conftest.err conftest.$ac_objext \
  13303. conftest$ac_exeext conftest.$ac_ext
  13304. LIBS=$ac_check_lib_save_LIBS
  13305. fi
  13306. eval ac_res=\$$as_ac_Lib
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13308. $as_echo "$ac_res" >&6; }
  13309. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13310. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13311. else
  13312. link_thread="no"
  13313. fi
  13314. done
  13315. if test "x$link_thread" != "xyes"; then
  13316. for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  13317. ax_lib=${libextension}
  13318. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13320. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13321. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13322. $as_echo_n "(cached) " >&6
  13323. else
  13324. ac_check_lib_save_LIBS=$LIBS
  13325. LIBS="-l$ax_lib $LIBS"
  13326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13327. /* end confdefs.h. */
  13328. /* Override any GCC internal prototype to avoid an error.
  13329. Use char because int might match the return type of a GCC
  13330. builtin and then its argument prototype would still apply. */
  13331. #ifdef __cplusplus
  13332. extern "C"
  13333. #endif
  13334. char exit ();
  13335. int
  13336. main ()
  13337. {
  13338. return exit ();
  13339. ;
  13340. return 0;
  13341. }
  13342. _ACEOF
  13343. if ac_fn_cxx_try_link "$LINENO"; then :
  13344. eval "$as_ac_Lib=yes"
  13345. else
  13346. eval "$as_ac_Lib=no"
  13347. fi
  13348. rm -f core conftest.err conftest.$ac_objext \
  13349. conftest$ac_exeext conftest.$ac_ext
  13350. LIBS=$ac_check_lib_save_LIBS
  13351. fi
  13352. eval ac_res=\$$as_ac_Lib
  13353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13354. $as_echo "$ac_res" >&6; }
  13355. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13356. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13357. else
  13358. link_thread="no"
  13359. fi
  13360. done
  13361. fi
  13362. else
  13363. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13364. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13366. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13367. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. ac_check_lib_save_LIBS=$LIBS
  13371. LIBS="-l$ax_lib $LIBS"
  13372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13373. /* end confdefs.h. */
  13374. /* Override any GCC internal prototype to avoid an error.
  13375. Use char because int might match the return type of a GCC
  13376. builtin and then its argument prototype would still apply. */
  13377. #ifdef __cplusplus
  13378. extern "C"
  13379. #endif
  13380. char exit ();
  13381. int
  13382. main ()
  13383. {
  13384. return exit ();
  13385. ;
  13386. return 0;
  13387. }
  13388. _ACEOF
  13389. if ac_fn_cxx_try_link "$LINENO"; then :
  13390. eval "$as_ac_Lib=yes"
  13391. else
  13392. eval "$as_ac_Lib=no"
  13393. fi
  13394. rm -f core conftest.err conftest.$ac_objext \
  13395. conftest$ac_exeext conftest.$ac_ext
  13396. LIBS=$ac_check_lib_save_LIBS
  13397. fi
  13398. eval ac_res=\$$as_ac_Lib
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13400. $as_echo "$ac_res" >&6; }
  13401. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13402. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13403. else
  13404. link_thread="no"
  13405. fi
  13406. done
  13407. fi
  13408. if test "x$ax_lib" = "x"; then
  13409. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13410. fi
  13411. if test "x$link_thread" = "xno"; then
  13412. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13413. else
  13414. case "x$build_os" in
  13415. *bsd* )
  13416. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13417. break;
  13418. ;;
  13419. esac
  13420. fi
  13421. fi
  13422. CPPFLAGS="$CPPFLAGS_SAVED"
  13423. LDFLAGS="$LDFLAGS_SAVED"
  13424. fi
  13425. # Check whether --with-boost-iostreams was given.
  13426. if test "${with_boost_iostreams+set}" = set; then :
  13427. withval=$with_boost_iostreams;
  13428. if test "$withval" = "no"; then
  13429. want_boost="no"
  13430. elif test "$withval" = "yes"; then
  13431. want_boost="yes"
  13432. ax_boost_user_iostreams_lib=""
  13433. else
  13434. want_boost="yes"
  13435. ax_boost_user_iostreams_lib="$withval"
  13436. fi
  13437. else
  13438. want_boost="yes"
  13439. fi
  13440. if test "x$want_boost" = "xyes"; then
  13441. CPPFLAGS_SAVED="$CPPFLAGS"
  13442. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13443. export CPPFLAGS
  13444. LDFLAGS_SAVED="$LDFLAGS"
  13445. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13446. export LDFLAGS
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13448. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13449. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13450. $as_echo_n "(cached) " >&6
  13451. else
  13452. ac_ext=cpp
  13453. ac_cpp='$CXXCPP $CPPFLAGS'
  13454. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13455. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13456. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13458. /* end confdefs.h. */
  13459. #include <boost/iostreams/filtering_stream.hpp>
  13460. #include <boost/range/iterator_range.hpp>
  13461. int
  13462. main ()
  13463. {
  13464. std::string input = "Hello World!";
  13465. namespace io = boost::iostreams;
  13466. io::filtering_istream in(boost::make_iterator_range(input));
  13467. return 0;
  13468. ;
  13469. return 0;
  13470. }
  13471. _ACEOF
  13472. if ac_fn_cxx_try_compile "$LINENO"; then :
  13473. ax_cv_boost_iostreams=yes
  13474. else
  13475. ax_cv_boost_iostreams=no
  13476. fi
  13477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13478. ac_ext=cpp
  13479. ac_cpp='$CXXCPP $CPPFLAGS'
  13480. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13481. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13482. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13483. fi
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13485. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13486. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13487. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13488. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13489. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13490. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.so* $BOOSTLIBDIR/libboost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13491. ax_lib=${libextension}
  13492. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13494. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13495. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13496. $as_echo_n "(cached) " >&6
  13497. else
  13498. ac_check_lib_save_LIBS=$LIBS
  13499. LIBS="-l$ax_lib $LIBS"
  13500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13501. /* end confdefs.h. */
  13502. /* Override any GCC internal prototype to avoid an error.
  13503. Use char because int might match the return type of a GCC
  13504. builtin and then its argument prototype would still apply. */
  13505. #ifdef __cplusplus
  13506. extern "C"
  13507. #endif
  13508. char exit ();
  13509. int
  13510. main ()
  13511. {
  13512. return exit ();
  13513. ;
  13514. return 0;
  13515. }
  13516. _ACEOF
  13517. if ac_fn_cxx_try_link "$LINENO"; then :
  13518. eval "$as_ac_Lib=yes"
  13519. else
  13520. eval "$as_ac_Lib=no"
  13521. fi
  13522. rm -f core conftest.err conftest.$ac_objext \
  13523. conftest$ac_exeext conftest.$ac_ext
  13524. LIBS=$ac_check_lib_save_LIBS
  13525. fi
  13526. eval ac_res=\$$as_ac_Lib
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13528. $as_echo "$ac_res" >&6; }
  13529. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13530. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13531. else
  13532. link_iostreams="no"
  13533. fi
  13534. done
  13535. if test "x$link_iostreams" != "xyes"; then
  13536. 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
  13537. ax_lib=${libextension}
  13538. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13540. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13541. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13542. $as_echo_n "(cached) " >&6
  13543. else
  13544. ac_check_lib_save_LIBS=$LIBS
  13545. LIBS="-l$ax_lib $LIBS"
  13546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13547. /* end confdefs.h. */
  13548. /* Override any GCC internal prototype to avoid an error.
  13549. Use char because int might match the return type of a GCC
  13550. builtin and then its argument prototype would still apply. */
  13551. #ifdef __cplusplus
  13552. extern "C"
  13553. #endif
  13554. char exit ();
  13555. int
  13556. main ()
  13557. {
  13558. return exit ();
  13559. ;
  13560. return 0;
  13561. }
  13562. _ACEOF
  13563. if ac_fn_cxx_try_link "$LINENO"; then :
  13564. eval "$as_ac_Lib=yes"
  13565. else
  13566. eval "$as_ac_Lib=no"
  13567. fi
  13568. rm -f core conftest.err conftest.$ac_objext \
  13569. conftest$ac_exeext conftest.$ac_ext
  13570. LIBS=$ac_check_lib_save_LIBS
  13571. fi
  13572. eval ac_res=\$$as_ac_Lib
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13574. $as_echo "$ac_res" >&6; }
  13575. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13576. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13577. else
  13578. link_iostreams="no"
  13579. fi
  13580. done
  13581. fi
  13582. else
  13583. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13584. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13586. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13587. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13588. $as_echo_n "(cached) " >&6
  13589. else
  13590. ac_check_lib_save_LIBS=$LIBS
  13591. LIBS="-l$ax_lib $LIBS"
  13592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13593. /* end confdefs.h. */
  13594. int
  13595. main ()
  13596. {
  13597. return main ();
  13598. ;
  13599. return 0;
  13600. }
  13601. _ACEOF
  13602. if ac_fn_cxx_try_link "$LINENO"; then :
  13603. eval "$as_ac_Lib=yes"
  13604. else
  13605. eval "$as_ac_Lib=no"
  13606. fi
  13607. rm -f core conftest.err conftest.$ac_objext \
  13608. conftest$ac_exeext conftest.$ac_ext
  13609. LIBS=$ac_check_lib_save_LIBS
  13610. fi
  13611. eval ac_res=\$$as_ac_Lib
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13613. $as_echo "$ac_res" >&6; }
  13614. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13615. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13616. else
  13617. link_iostreams="no"
  13618. fi
  13619. done
  13620. fi
  13621. if test "x$ax_lib" = "x"; then
  13622. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13623. fi
  13624. if test "x$link_iostreams" != "xyes"; then
  13625. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13626. fi
  13627. fi
  13628. CPPFLAGS="$CPPFLAGS_SAVED"
  13629. LDFLAGS="$LDFLAGS_SAVED"
  13630. fi
  13631. # Check whether --with-boost-program-options was given.
  13632. if test "${with_boost_program_options+set}" = set; then :
  13633. withval=$with_boost_program_options;
  13634. if test "$withval" = "no"; then
  13635. want_boost="no"
  13636. elif test "$withval" = "yes"; then
  13637. want_boost="yes"
  13638. ax_boost_user_program_options_lib=""
  13639. else
  13640. want_boost="yes"
  13641. ax_boost_user_program_options_lib="$withval"
  13642. fi
  13643. else
  13644. want_boost="yes"
  13645. fi
  13646. if test "x$want_boost" = "xyes"; then
  13647. export want_boost
  13648. CPPFLAGS_SAVED="$CPPFLAGS"
  13649. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13650. export CPPFLAGS
  13651. LDFLAGS_SAVED="$LDFLAGS"
  13652. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13653. export LDFLAGS
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  13655. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  13656. if test "${ax_cv_boost_program_options+set}" = set; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. ac_ext=cpp
  13660. ac_cpp='$CXXCPP $CPPFLAGS'
  13661. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13662. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13663. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13665. /* end confdefs.h. */
  13666. #include <boost/program_options.hpp>
  13667. int
  13668. main ()
  13669. {
  13670. boost::program_options::options_description generic("Generic options");
  13671. return 0;
  13672. ;
  13673. return 0;
  13674. }
  13675. _ACEOF
  13676. if ac_fn_cxx_try_compile "$LINENO"; then :
  13677. ax_cv_boost_program_options=yes
  13678. else
  13679. ax_cv_boost_program_options=no
  13680. fi
  13681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13682. ac_ext=cpp
  13683. ac_cpp='$CXXCPP $CPPFLAGS'
  13684. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13685. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13686. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13687. fi
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  13689. $as_echo "$ax_cv_boost_program_options" >&6; }
  13690. if test "$ax_cv_boost_program_options" = yes; then
  13691. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  13692. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13693. if test "x$ax_boost_user_program_options_lib" = "x"; then
  13694. for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do
  13695. ax_lib=${libextension}
  13696. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13698. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13699. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. ac_check_lib_save_LIBS=$LIBS
  13703. LIBS="-l$ax_lib $LIBS"
  13704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13705. /* end confdefs.h. */
  13706. /* Override any GCC internal prototype to avoid an error.
  13707. Use char because int might match the return type of a GCC
  13708. builtin and then its argument prototype would still apply. */
  13709. #ifdef __cplusplus
  13710. extern "C"
  13711. #endif
  13712. char exit ();
  13713. int
  13714. main ()
  13715. {
  13716. return exit ();
  13717. ;
  13718. return 0;
  13719. }
  13720. _ACEOF
  13721. if ac_fn_cxx_try_link "$LINENO"; then :
  13722. eval "$as_ac_Lib=yes"
  13723. else
  13724. eval "$as_ac_Lib=no"
  13725. fi
  13726. rm -f core conftest.err conftest.$ac_objext \
  13727. conftest$ac_exeext conftest.$ac_ext
  13728. LIBS=$ac_check_lib_save_LIBS
  13729. fi
  13730. eval ac_res=\$$as_ac_Lib
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13732. $as_echo "$ac_res" >&6; }
  13733. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13734. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13735. else
  13736. link_program_options="no"
  13737. fi
  13738. done
  13739. if test "x$link_program_options" != "xyes"; then
  13740. for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
  13741. ax_lib=${libextension}
  13742. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13744. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13745. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13746. $as_echo_n "(cached) " >&6
  13747. else
  13748. ac_check_lib_save_LIBS=$LIBS
  13749. LIBS="-l$ax_lib $LIBS"
  13750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13751. /* end confdefs.h. */
  13752. /* Override any GCC internal prototype to avoid an error.
  13753. Use char because int might match the return type of a GCC
  13754. builtin and then its argument prototype would still apply. */
  13755. #ifdef __cplusplus
  13756. extern "C"
  13757. #endif
  13758. char exit ();
  13759. int
  13760. main ()
  13761. {
  13762. return exit ();
  13763. ;
  13764. return 0;
  13765. }
  13766. _ACEOF
  13767. if ac_fn_cxx_try_link "$LINENO"; then :
  13768. eval "$as_ac_Lib=yes"
  13769. else
  13770. eval "$as_ac_Lib=no"
  13771. fi
  13772. rm -f core conftest.err conftest.$ac_objext \
  13773. conftest$ac_exeext conftest.$ac_ext
  13774. LIBS=$ac_check_lib_save_LIBS
  13775. fi
  13776. eval ac_res=\$$as_ac_Lib
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13778. $as_echo "$ac_res" >&6; }
  13779. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13780. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13781. else
  13782. link_program_options="no"
  13783. fi
  13784. done
  13785. fi
  13786. else
  13787. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  13788. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13790. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13791. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13792. $as_echo_n "(cached) " >&6
  13793. else
  13794. ac_check_lib_save_LIBS=$LIBS
  13795. LIBS="-l$ax_lib $LIBS"
  13796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13797. /* end confdefs.h. */
  13798. int
  13799. main ()
  13800. {
  13801. return main ();
  13802. ;
  13803. return 0;
  13804. }
  13805. _ACEOF
  13806. if ac_fn_cxx_try_link "$LINENO"; then :
  13807. eval "$as_ac_Lib=yes"
  13808. else
  13809. eval "$as_ac_Lib=no"
  13810. fi
  13811. rm -f core conftest.err conftest.$ac_objext \
  13812. conftest$ac_exeext conftest.$ac_ext
  13813. LIBS=$ac_check_lib_save_LIBS
  13814. fi
  13815. eval ac_res=\$$as_ac_Lib
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13817. $as_echo "$ac_res" >&6; }
  13818. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13819. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13820. else
  13821. link_program_options="no"
  13822. fi
  13823. done
  13824. fi
  13825. if test "x$ax_lib" = "x"; then
  13826. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13827. fi
  13828. if test "x$link_program_options" != "xyes"; then
  13829. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13830. fi
  13831. fi
  13832. CPPFLAGS="$CPPFLAGS_SAVED"
  13833. LDFLAGS="$LDFLAGS_SAVED"
  13834. fi
  13835. # Check for SDL headers and libraries
  13836. saved_LIBS=$LIBS
  13837. saved_CFLAGS=$CFLAGS
  13838. # Extract the first word of "sdl-config", so it can be a program name with args.
  13839. set dummy sdl-config; ac_word=$2
  13840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13841. $as_echo_n "checking for $ac_word... " >&6; }
  13842. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13843. $as_echo_n "(cached) " >&6
  13844. else
  13845. if test -n "$HAVE_SDL_CONFIG"; then
  13846. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13847. else
  13848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13849. for as_dir in $PATH
  13850. do
  13851. IFS=$as_save_IFS
  13852. test -z "$as_dir" && as_dir=.
  13853. for ac_exec_ext in '' $ac_executable_extensions; do
  13854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13855. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13857. break 2
  13858. fi
  13859. done
  13860. done
  13861. IFS=$as_save_IFS
  13862. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13863. fi
  13864. fi
  13865. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13866. if test -n "$HAVE_SDL_CONFIG"; then
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13868. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13869. else
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13871. $as_echo "no" >&6; }
  13872. fi
  13873. if test "$HAVE_SDL_CONFIG" = no; then
  13874. as_fn_error $? "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13875. fi
  13876. SDL_CXXFLAGS="`sdl-config --cflags`"
  13877. LIBS="$LIBS `sdl-config --libs`"
  13878. CFLAGS="$CFLAGS $SDL_CXXFLAGS"
  13879. for ac_header in SDL/SDL.h SDL/SDL_mixer.h SDL/SDL_image.h SDL/SDL_ttf.h
  13880. do :
  13881. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13882. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13883. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13884. cat >>confdefs.h <<_ACEOF
  13885. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13886. _ACEOF
  13887. else
  13888. as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
  13889. fi
  13890. done
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13892. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13893. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13894. $as_echo_n "(cached) " >&6
  13895. else
  13896. ac_check_lib_save_LIBS=$LIBS
  13897. LIBS="-lSDL $LIBS"
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. /* Override any GCC internal prototype to avoid an error.
  13901. Use char because int might match the return type of a GCC
  13902. builtin and then its argument prototype would still apply. */
  13903. #ifdef __cplusplus
  13904. extern "C"
  13905. #endif
  13906. char SDL_Init ();
  13907. int
  13908. main ()
  13909. {
  13910. return SDL_Init ();
  13911. ;
  13912. return 0;
  13913. }
  13914. _ACEOF
  13915. if ac_fn_cxx_try_link "$LINENO"; then :
  13916. ac_cv_lib_SDL_SDL_Init=yes
  13917. else
  13918. ac_cv_lib_SDL_SDL_Init=no
  13919. fi
  13920. rm -f core conftest.err conftest.$ac_objext \
  13921. conftest$ac_exeext conftest.$ac_ext
  13922. LIBS=$ac_check_lib_save_LIBS
  13923. fi
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13925. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13926. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13927. cat >>confdefs.h <<_ACEOF
  13928. #define HAVE_LIBSDL 1
  13929. _ACEOF
  13930. LIBS="-lSDL $LIBS"
  13931. else
  13932. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  13933. fi
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13935. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13936. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13937. $as_echo_n "(cached) " >&6
  13938. else
  13939. ac_check_lib_save_LIBS=$LIBS
  13940. LIBS="-lSDL_mixer $LIBS"
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. int
  13944. main ()
  13945. {
  13946. return main ();
  13947. ;
  13948. return 0;
  13949. }
  13950. _ACEOF
  13951. if ac_fn_cxx_try_link "$LINENO"; then :
  13952. ac_cv_lib_SDL_mixer_main=yes
  13953. else
  13954. ac_cv_lib_SDL_mixer_main=no
  13955. fi
  13956. rm -f core conftest.err conftest.$ac_objext \
  13957. conftest$ac_exeext conftest.$ac_ext
  13958. LIBS=$ac_check_lib_save_LIBS
  13959. fi
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13961. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13962. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13963. cat >>confdefs.h <<_ACEOF
  13964. #define HAVE_LIBSDL_MIXER 1
  13965. _ACEOF
  13966. LIBS="-lSDL_mixer $LIBS"
  13967. else
  13968. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  13969. fi
  13970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13971. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13972. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13973. $as_echo_n "(cached) " >&6
  13974. else
  13975. ac_check_lib_save_LIBS=$LIBS
  13976. LIBS="-lSDL_image $LIBS"
  13977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13978. /* end confdefs.h. */
  13979. /* Override any GCC internal prototype to avoid an error.
  13980. Use char because int might match the return type of a GCC
  13981. builtin and then its argument prototype would still apply. */
  13982. #ifdef __cplusplus
  13983. extern "C"
  13984. #endif
  13985. char IMG_Load ();
  13986. int
  13987. main ()
  13988. {
  13989. return IMG_Load ();
  13990. ;
  13991. return 0;
  13992. }
  13993. _ACEOF
  13994. if ac_fn_cxx_try_link "$LINENO"; then :
  13995. ac_cv_lib_SDL_image_IMG_Load=yes
  13996. else
  13997. ac_cv_lib_SDL_image_IMG_Load=no
  13998. fi
  13999. rm -f core conftest.err conftest.$ac_objext \
  14000. conftest$ac_exeext conftest.$ac_ext
  14001. LIBS=$ac_check_lib_save_LIBS
  14002. fi
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14004. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14005. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  14006. cat >>confdefs.h <<_ACEOF
  14007. #define HAVE_LIBSDL_IMAGE 1
  14008. _ACEOF
  14009. LIBS="-lSDL_image $LIBS"
  14010. else
  14011. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  14014. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14015. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  14016. $as_echo_n "(cached) " >&6
  14017. else
  14018. ac_check_lib_save_LIBS=$LIBS
  14019. LIBS="-lSDL_ttf $LIBS"
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. int
  14023. main ()
  14024. {
  14025. return main ();
  14026. ;
  14027. return 0;
  14028. }
  14029. _ACEOF
  14030. if ac_fn_cxx_try_link "$LINENO"; then :
  14031. ac_cv_lib_SDL_ttf_main=yes
  14032. else
  14033. ac_cv_lib_SDL_ttf_main=no
  14034. fi
  14035. rm -f core conftest.err conftest.$ac_objext \
  14036. conftest$ac_exeext conftest.$ac_ext
  14037. LIBS=$ac_check_lib_save_LIBS
  14038. fi
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  14040. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14041. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  14042. cat >>confdefs.h <<_ACEOF
  14043. #define HAVE_LIBSDL_TTF 1
  14044. _ACEOF
  14045. LIBS="-lSDL_ttf $LIBS"
  14046. else
  14047. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  14048. fi
  14049. SDL_LIBS="$LIBS"
  14050. LIBS=$saved_LIBS
  14051. CFLAGS=$saved_CFLAGS
  14052. # Check for ffmpeg libraries
  14053. saved_LIBS=$LIBS
  14054. saved_CFLAGS=$CFLAGS
  14055. FFMPEG_CXXFLAGS=""
  14056. FFMPEG_LIBS=
  14057. LIBS="$LIBS `pkg-config --libs libavformat libswscale`"
  14058. CFLAGS="$CFLAGS `pkg-config --cflags libavformat libswscale`"
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  14060. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  14061. if test "${ac_cv_lib_avformat_av_open_input_file+set}" = set; then :
  14062. $as_echo_n "(cached) " >&6
  14063. else
  14064. ac_check_lib_save_LIBS=$LIBS
  14065. LIBS="-lavformat $LIBS"
  14066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14067. /* end confdefs.h. */
  14068. /* Override any GCC internal prototype to avoid an error.
  14069. Use char because int might match the return type of a GCC
  14070. builtin and then its argument prototype would still apply. */
  14071. #ifdef __cplusplus
  14072. extern "C"
  14073. #endif
  14074. char av_open_input_file ();
  14075. int
  14076. main ()
  14077. {
  14078. return av_open_input_file ();
  14079. ;
  14080. return 0;
  14081. }
  14082. _ACEOF
  14083. if ac_fn_cxx_try_link "$LINENO"; then :
  14084. ac_cv_lib_avformat_av_open_input_file=yes
  14085. else
  14086. ac_cv_lib_avformat_av_open_input_file=no
  14087. fi
  14088. rm -f core conftest.err conftest.$ac_objext \
  14089. conftest$ac_exeext conftest.$ac_ext
  14090. LIBS=$ac_check_lib_save_LIBS
  14091. fi
  14092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  14093. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  14094. if test "x$ac_cv_lib_avformat_av_open_input_file" = x""yes; then :
  14095. cat >>confdefs.h <<_ACEOF
  14096. #define HAVE_LIBAVFORMAT 1
  14097. _ACEOF
  14098. LIBS="-lavformat $LIBS"
  14099. else
  14100. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  14101. fi
  14102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  14103. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  14104. if test "${ac_cv_lib_swscale_sws_getContext+set}" = set; then :
  14105. $as_echo_n "(cached) " >&6
  14106. else
  14107. ac_check_lib_save_LIBS=$LIBS
  14108. LIBS="-lswscale $LIBS"
  14109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14110. /* end confdefs.h. */
  14111. /* Override any GCC internal prototype to avoid an error.
  14112. Use char because int might match the return type of a GCC
  14113. builtin and then its argument prototype would still apply. */
  14114. #ifdef __cplusplus
  14115. extern "C"
  14116. #endif
  14117. char sws_getContext ();
  14118. int
  14119. main ()
  14120. {
  14121. return sws_getContext ();
  14122. ;
  14123. return 0;
  14124. }
  14125. _ACEOF
  14126. if ac_fn_cxx_try_link "$LINENO"; then :
  14127. ac_cv_lib_swscale_sws_getContext=yes
  14128. else
  14129. ac_cv_lib_swscale_sws_getContext=no
  14130. fi
  14131. rm -f core conftest.err conftest.$ac_objext \
  14132. conftest$ac_exeext conftest.$ac_ext
  14133. LIBS=$ac_check_lib_save_LIBS
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  14136. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  14137. if test "x$ac_cv_lib_swscale_sws_getContext" = x""yes; then :
  14138. cat >>confdefs.h <<_ACEOF
  14139. #define HAVE_LIBSWSCALE 1
  14140. _ACEOF
  14141. LIBS="-lswscale $LIBS"
  14142. else
  14143. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14144. fi
  14145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  14146. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  14147. if test "${ac_cv_lib_avcodec_avcodec_decode_video2+set}" = set; then :
  14148. $as_echo_n "(cached) " >&6
  14149. else
  14150. ac_check_lib_save_LIBS=$LIBS
  14151. LIBS="-lavcodec $LIBS"
  14152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14153. /* end confdefs.h. */
  14154. /* Override any GCC internal prototype to avoid an error.
  14155. Use char because int might match the return type of a GCC
  14156. builtin and then its argument prototype would still apply. */
  14157. #ifdef __cplusplus
  14158. extern "C"
  14159. #endif
  14160. char avcodec_decode_video2 ();
  14161. int
  14162. main ()
  14163. {
  14164. return avcodec_decode_video2 ();
  14165. ;
  14166. return 0;
  14167. }
  14168. _ACEOF
  14169. if ac_fn_cxx_try_link "$LINENO"; then :
  14170. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  14171. else
  14172. ac_cv_lib_avcodec_avcodec_decode_video2=no
  14173. fi
  14174. rm -f core conftest.err conftest.$ac_objext \
  14175. conftest$ac_exeext conftest.$ac_ext
  14176. LIBS=$ac_check_lib_save_LIBS
  14177. fi
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  14179. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  14180. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = x""yes; then :
  14181. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  14182. fi
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_protocol2 in -lavcodec" >&5
  14184. $as_echo_n "checking for av_register_protocol2 in -lavcodec... " >&6; }
  14185. if test "${ac_cv_lib_avcodec_av_register_protocol2+set}" = set; then :
  14186. $as_echo_n "(cached) " >&6
  14187. else
  14188. ac_check_lib_save_LIBS=$LIBS
  14189. LIBS="-lavcodec $LIBS"
  14190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14191. /* end confdefs.h. */
  14192. /* Override any GCC internal prototype to avoid an error.
  14193. Use char because int might match the return type of a GCC
  14194. builtin and then its argument prototype would still apply. */
  14195. #ifdef __cplusplus
  14196. extern "C"
  14197. #endif
  14198. char av_register_protocol2 ();
  14199. int
  14200. main ()
  14201. {
  14202. return av_register_protocol2 ();
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_cxx_try_link "$LINENO"; then :
  14208. ac_cv_lib_avcodec_av_register_protocol2=yes
  14209. else
  14210. ac_cv_lib_avcodec_av_register_protocol2=no
  14211. fi
  14212. rm -f core conftest.err conftest.$ac_objext \
  14213. conftest$ac_exeext conftest.$ac_ext
  14214. LIBS=$ac_check_lib_save_LIBS
  14215. fi
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_register_protocol2" >&5
  14217. $as_echo "$ac_cv_lib_avcodec_av_register_protocol2" >&6; }
  14218. if test "x$ac_cv_lib_avcodec_av_register_protocol2" = x""yes; then :
  14219. AVCODEC_DECODE_VIDEO2="-DWITH_AV_REGISTER_PROTOCOL2"
  14220. fi
  14221. FFMPEG_LIBS="$LIBS"
  14222. FFMPEG_CXXFLAGS="$CFLAGS $AVCODEC_DECODE_VIDEO2"
  14223. LIBS=$saved_LIBS
  14224. CFLAGS=$saved_CFLAGS
  14225. # Checks for header files.
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14227. $as_echo_n "checking for ANSI C header files... " >&6; }
  14228. if test "${ac_cv_header_stdc+set}" = set; then :
  14229. $as_echo_n "(cached) " >&6
  14230. else
  14231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14232. /* end confdefs.h. */
  14233. #include <stdlib.h>
  14234. #include <stdarg.h>
  14235. #include <string.h>
  14236. #include <float.h>
  14237. int
  14238. main ()
  14239. {
  14240. ;
  14241. return 0;
  14242. }
  14243. _ACEOF
  14244. if ac_fn_cxx_try_compile "$LINENO"; then :
  14245. ac_cv_header_stdc=yes
  14246. else
  14247. ac_cv_header_stdc=no
  14248. fi
  14249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14250. if test $ac_cv_header_stdc = yes; then
  14251. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14253. /* end confdefs.h. */
  14254. #include <string.h>
  14255. _ACEOF
  14256. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14257. $EGREP "memchr" >/dev/null 2>&1; then :
  14258. else
  14259. ac_cv_header_stdc=no
  14260. fi
  14261. rm -f conftest*
  14262. fi
  14263. if test $ac_cv_header_stdc = yes; then
  14264. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14266. /* end confdefs.h. */
  14267. #include <stdlib.h>
  14268. _ACEOF
  14269. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14270. $EGREP "free" >/dev/null 2>&1; then :
  14271. else
  14272. ac_cv_header_stdc=no
  14273. fi
  14274. rm -f conftest*
  14275. fi
  14276. if test $ac_cv_header_stdc = yes; then
  14277. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14278. if test "$cross_compiling" = yes; then :
  14279. :
  14280. else
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. #include <ctype.h>
  14284. #include <stdlib.h>
  14285. #if ((' ' & 0x0FF) == 0x020)
  14286. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14287. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14288. #else
  14289. # define ISLOWER(c) \
  14290. (('a' <= (c) && (c) <= 'i') \
  14291. || ('j' <= (c) && (c) <= 'r') \
  14292. || ('s' <= (c) && (c) <= 'z'))
  14293. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14294. #endif
  14295. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14296. int
  14297. main ()
  14298. {
  14299. int i;
  14300. for (i = 0; i < 256; i++)
  14301. if (XOR (islower (i), ISLOWER (i))
  14302. || toupper (i) != TOUPPER (i))
  14303. return 2;
  14304. return 0;
  14305. }
  14306. _ACEOF
  14307. if ac_fn_cxx_try_run "$LINENO"; then :
  14308. else
  14309. ac_cv_header_stdc=no
  14310. fi
  14311. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14312. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14313. fi
  14314. fi
  14315. fi
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14317. $as_echo "$ac_cv_header_stdc" >&6; }
  14318. if test $ac_cv_header_stdc = yes; then
  14319. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14320. fi
  14321. for ac_header in fcntl.h stdlib.h string.h
  14322. do :
  14323. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14324. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14325. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14326. cat >>confdefs.h <<_ACEOF
  14327. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14328. _ACEOF
  14329. fi
  14330. done
  14331. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14332. 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
  14333. do :
  14334. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14335. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14336. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14337. cat >>confdefs.h <<_ACEOF
  14338. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14339. _ACEOF
  14340. else
  14341. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  14342. fi
  14343. done
  14344. # Checks for library functions.
  14345. for ac_func in atexit memset pow select sqrt
  14346. do :
  14347. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14348. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14349. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14350. cat >>confdefs.h <<_ACEOF
  14351. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14352. _ACEOF
  14353. fi
  14354. done
  14355. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  14356. VCMI_AI_LIBS_DIR="$libdir/vcmi/AI"
  14357. VCMI_SCRIPTING_LIBS_DIR="$libdir/vcmi/Scripting"
  14358. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/StupidAI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile Scripting/ERM/Makefile"
  14359. cat >confcache <<\_ACEOF
  14360. # This file is a shell script that caches the results of configure
  14361. # tests run on this system so they can be shared between configure
  14362. # scripts and configure runs, see configure's option --config-cache.
  14363. # It is not useful on other systems. If it contains results you don't
  14364. # want to keep, you may remove or edit it.
  14365. #
  14366. # config.status only pays attention to the cache file if you give it
  14367. # the --recheck option to rerun configure.
  14368. #
  14369. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14370. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14371. # following values.
  14372. _ACEOF
  14373. # The following way of writing the cache mishandles newlines in values,
  14374. # but we know of no workaround that is simple, portable, and efficient.
  14375. # So, we kill variables containing newlines.
  14376. # Ultrix sh set writes to stderr and can't be redirected directly,
  14377. # and sets the high bit in the cache file unless we assign to the vars.
  14378. (
  14379. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14380. eval ac_val=\$$ac_var
  14381. case $ac_val in #(
  14382. *${as_nl}*)
  14383. case $ac_var in #(
  14384. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14385. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14386. esac
  14387. case $ac_var in #(
  14388. _ | IFS | as_nl) ;; #(
  14389. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14390. *) { eval $ac_var=; unset $ac_var;} ;;
  14391. esac ;;
  14392. esac
  14393. done
  14394. (set) 2>&1 |
  14395. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14396. *${as_nl}ac_space=\ *)
  14397. # `set' does not quote correctly, so add quotes: double-quote
  14398. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14399. sed -n \
  14400. "s/'/'\\\\''/g;
  14401. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14402. ;; #(
  14403. *)
  14404. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14405. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14406. ;;
  14407. esac |
  14408. sort
  14409. ) |
  14410. sed '
  14411. /^ac_cv_env_/b end
  14412. t clear
  14413. :clear
  14414. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14415. t end
  14416. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14417. :end' >>confcache
  14418. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14419. if test -w "$cache_file"; then
  14420. test "x$cache_file" != "x/dev/null" &&
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14422. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14423. cat confcache >$cache_file
  14424. else
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14426. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14427. fi
  14428. fi
  14429. rm -f confcache
  14430. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14431. # Let make expand exec_prefix.
  14432. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14433. # Transform confdefs.h into DEFS.
  14434. # Protect against shell expansion while executing Makefile rules.
  14435. # Protect against Makefile macro expansion.
  14436. #
  14437. # If the first sed substitution is executed (which looks for macros that
  14438. # take arguments), then branch to the quote section. Otherwise,
  14439. # look for a macro that doesn't take arguments.
  14440. ac_script='
  14441. :mline
  14442. /\\$/{
  14443. N
  14444. s,\\\n,,
  14445. b mline
  14446. }
  14447. t clear
  14448. :clear
  14449. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14450. t quote
  14451. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14452. t quote
  14453. b any
  14454. :quote
  14455. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14456. s/\[/\\&/g
  14457. s/\]/\\&/g
  14458. s/\$/$$/g
  14459. H
  14460. :any
  14461. ${
  14462. g
  14463. s/^\n//
  14464. s/\n/ /g
  14465. p
  14466. }
  14467. '
  14468. DEFS=`sed -n "$ac_script" confdefs.h`
  14469. ac_libobjs=
  14470. ac_ltlibobjs=
  14471. U=
  14472. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14473. # 1. Remove the extension, and $U if already installed.
  14474. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14475. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14476. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14477. # will be set to the directory where LIBOBJS objects are built.
  14478. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14479. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14480. done
  14481. LIBOBJS=$ac_libobjs
  14482. LTLIBOBJS=$ac_ltlibobjs
  14483. if test -n "$EXEEXT"; then
  14484. am__EXEEXT_TRUE=
  14485. am__EXEEXT_FALSE='#'
  14486. else
  14487. am__EXEEXT_TRUE='#'
  14488. am__EXEEXT_FALSE=
  14489. fi
  14490. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14491. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14492. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14493. fi
  14494. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14495. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14496. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14497. fi
  14498. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14499. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14500. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14501. fi
  14502. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14503. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14504. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14505. fi
  14506. : ${CONFIG_STATUS=./config.status}
  14507. ac_write_fail=0
  14508. ac_clean_files_save=$ac_clean_files
  14509. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14510. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14511. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14512. as_write_fail=0
  14513. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14514. #! $SHELL
  14515. # Generated by $as_me.
  14516. # Run this file to recreate the current configuration.
  14517. # Compiler output produced by configure, useful for debugging
  14518. # configure, is in config.log if it exists.
  14519. debug=false
  14520. ac_cs_recheck=false
  14521. ac_cs_silent=false
  14522. SHELL=\${CONFIG_SHELL-$SHELL}
  14523. export SHELL
  14524. _ASEOF
  14525. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14526. ## -------------------- ##
  14527. ## M4sh Initialization. ##
  14528. ## -------------------- ##
  14529. # Be more Bourne compatible
  14530. DUALCASE=1; export DUALCASE # for MKS sh
  14531. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14532. emulate sh
  14533. NULLCMD=:
  14534. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14535. # is contrary to our usage. Disable this feature.
  14536. alias -g '${1+"$@"}'='"$@"'
  14537. setopt NO_GLOB_SUBST
  14538. else
  14539. case `(set -o) 2>/dev/null` in #(
  14540. *posix*) :
  14541. set -o posix ;; #(
  14542. *) :
  14543. ;;
  14544. esac
  14545. fi
  14546. as_nl='
  14547. '
  14548. export as_nl
  14549. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14550. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14551. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14552. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14553. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14554. # but without wasting forks for bash or zsh.
  14555. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14556. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14557. as_echo='print -r --'
  14558. as_echo_n='print -rn --'
  14559. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14560. as_echo='printf %s\n'
  14561. as_echo_n='printf %s'
  14562. else
  14563. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14564. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14565. as_echo_n='/usr/ucb/echo -n'
  14566. else
  14567. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14568. as_echo_n_body='eval
  14569. arg=$1;
  14570. case $arg in #(
  14571. *"$as_nl"*)
  14572. expr "X$arg" : "X\\(.*\\)$as_nl";
  14573. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14574. esac;
  14575. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14576. '
  14577. export as_echo_n_body
  14578. as_echo_n='sh -c $as_echo_n_body as_echo'
  14579. fi
  14580. export as_echo_body
  14581. as_echo='sh -c $as_echo_body as_echo'
  14582. fi
  14583. # The user is always right.
  14584. if test "${PATH_SEPARATOR+set}" != set; then
  14585. PATH_SEPARATOR=:
  14586. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14587. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14588. PATH_SEPARATOR=';'
  14589. }
  14590. fi
  14591. # IFS
  14592. # We need space, tab and new line, in precisely that order. Quoting is
  14593. # there to prevent editors from complaining about space-tab.
  14594. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14595. # splitting by setting IFS to empty value.)
  14596. IFS=" "" $as_nl"
  14597. # Find who we are. Look in the path if we contain no directory separator.
  14598. case $0 in #((
  14599. *[\\/]* ) as_myself=$0 ;;
  14600. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14601. for as_dir in $PATH
  14602. do
  14603. IFS=$as_save_IFS
  14604. test -z "$as_dir" && as_dir=.
  14605. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14606. done
  14607. IFS=$as_save_IFS
  14608. ;;
  14609. esac
  14610. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14611. # in which case we are not to be found in the path.
  14612. if test "x$as_myself" = x; then
  14613. as_myself=$0
  14614. fi
  14615. if test ! -f "$as_myself"; then
  14616. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14617. exit 1
  14618. fi
  14619. # Unset variables that we do not need and which cause bugs (e.g. in
  14620. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14621. # suppresses any "Segmentation fault" message there. '((' could
  14622. # trigger a bug in pdksh 5.2.14.
  14623. for as_var in BASH_ENV ENV MAIL MAILPATH
  14624. do eval test x\${$as_var+set} = xset \
  14625. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14626. done
  14627. PS1='$ '
  14628. PS2='> '
  14629. PS4='+ '
  14630. # NLS nuisances.
  14631. LC_ALL=C
  14632. export LC_ALL
  14633. LANGUAGE=C
  14634. export LANGUAGE
  14635. # CDPATH.
  14636. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14637. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14638. # ----------------------------------------
  14639. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14640. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14641. # script with STATUS, using 1 if that was 0.
  14642. as_fn_error ()
  14643. {
  14644. as_status=$1; test $as_status -eq 0 && as_status=1
  14645. if test "$4"; then
  14646. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14647. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14648. fi
  14649. $as_echo "$as_me: error: $2" >&2
  14650. as_fn_exit $as_status
  14651. } # as_fn_error
  14652. # as_fn_set_status STATUS
  14653. # -----------------------
  14654. # Set $? to STATUS, without forking.
  14655. as_fn_set_status ()
  14656. {
  14657. return $1
  14658. } # as_fn_set_status
  14659. # as_fn_exit STATUS
  14660. # -----------------
  14661. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14662. as_fn_exit ()
  14663. {
  14664. set +e
  14665. as_fn_set_status $1
  14666. exit $1
  14667. } # as_fn_exit
  14668. # as_fn_unset VAR
  14669. # ---------------
  14670. # Portably unset VAR.
  14671. as_fn_unset ()
  14672. {
  14673. { eval $1=; unset $1;}
  14674. }
  14675. as_unset=as_fn_unset
  14676. # as_fn_append VAR VALUE
  14677. # ----------------------
  14678. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14679. # advantage of any shell optimizations that allow amortized linear growth over
  14680. # repeated appends, instead of the typical quadratic growth present in naive
  14681. # implementations.
  14682. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14683. eval 'as_fn_append ()
  14684. {
  14685. eval $1+=\$2
  14686. }'
  14687. else
  14688. as_fn_append ()
  14689. {
  14690. eval $1=\$$1\$2
  14691. }
  14692. fi # as_fn_append
  14693. # as_fn_arith ARG...
  14694. # ------------------
  14695. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14696. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14697. # must be portable across $(()) and expr.
  14698. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14699. eval 'as_fn_arith ()
  14700. {
  14701. as_val=$(( $* ))
  14702. }'
  14703. else
  14704. as_fn_arith ()
  14705. {
  14706. as_val=`expr "$@" || test $? -eq 1`
  14707. }
  14708. fi # as_fn_arith
  14709. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14710. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14711. as_expr=expr
  14712. else
  14713. as_expr=false
  14714. fi
  14715. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14716. as_basename=basename
  14717. else
  14718. as_basename=false
  14719. fi
  14720. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14721. as_dirname=dirname
  14722. else
  14723. as_dirname=false
  14724. fi
  14725. as_me=`$as_basename -- "$0" ||
  14726. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14727. X"$0" : 'X\(//\)$' \| \
  14728. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14729. $as_echo X/"$0" |
  14730. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14731. s//\1/
  14732. q
  14733. }
  14734. /^X\/\(\/\/\)$/{
  14735. s//\1/
  14736. q
  14737. }
  14738. /^X\/\(\/\).*/{
  14739. s//\1/
  14740. q
  14741. }
  14742. s/.*/./; q'`
  14743. # Avoid depending upon Character Ranges.
  14744. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14745. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14746. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14747. as_cr_digits='0123456789'
  14748. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14749. ECHO_C= ECHO_N= ECHO_T=
  14750. case `echo -n x` in #(((((
  14751. -n*)
  14752. case `echo 'xy\c'` in
  14753. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14754. xy) ECHO_C='\c';;
  14755. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14756. ECHO_T=' ';;
  14757. esac;;
  14758. *)
  14759. ECHO_N='-n';;
  14760. esac
  14761. rm -f conf$$ conf$$.exe conf$$.file
  14762. if test -d conf$$.dir; then
  14763. rm -f conf$$.dir/conf$$.file
  14764. else
  14765. rm -f conf$$.dir
  14766. mkdir conf$$.dir 2>/dev/null
  14767. fi
  14768. if (echo >conf$$.file) 2>/dev/null; then
  14769. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14770. as_ln_s='ln -s'
  14771. # ... but there are two gotchas:
  14772. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14773. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14774. # In both cases, we have to default to `cp -p'.
  14775. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14776. as_ln_s='cp -p'
  14777. elif ln conf$$.file conf$$ 2>/dev/null; then
  14778. as_ln_s=ln
  14779. else
  14780. as_ln_s='cp -p'
  14781. fi
  14782. else
  14783. as_ln_s='cp -p'
  14784. fi
  14785. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14786. rmdir conf$$.dir 2>/dev/null
  14787. # as_fn_mkdir_p
  14788. # -------------
  14789. # Create "$as_dir" as a directory, including parents if necessary.
  14790. as_fn_mkdir_p ()
  14791. {
  14792. case $as_dir in #(
  14793. -*) as_dir=./$as_dir;;
  14794. esac
  14795. test -d "$as_dir" || eval $as_mkdir_p || {
  14796. as_dirs=
  14797. while :; do
  14798. case $as_dir in #(
  14799. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14800. *) as_qdir=$as_dir;;
  14801. esac
  14802. as_dirs="'$as_qdir' $as_dirs"
  14803. as_dir=`$as_dirname -- "$as_dir" ||
  14804. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14805. X"$as_dir" : 'X\(//\)[^/]' \| \
  14806. X"$as_dir" : 'X\(//\)$' \| \
  14807. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14808. $as_echo X"$as_dir" |
  14809. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14810. s//\1/
  14811. q
  14812. }
  14813. /^X\(\/\/\)[^/].*/{
  14814. s//\1/
  14815. q
  14816. }
  14817. /^X\(\/\/\)$/{
  14818. s//\1/
  14819. q
  14820. }
  14821. /^X\(\/\).*/{
  14822. s//\1/
  14823. q
  14824. }
  14825. s/.*/./; q'`
  14826. test -d "$as_dir" && break
  14827. done
  14828. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14829. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14830. } # as_fn_mkdir_p
  14831. if mkdir -p . 2>/dev/null; then
  14832. as_mkdir_p='mkdir -p "$as_dir"'
  14833. else
  14834. test -d ./-p && rmdir ./-p
  14835. as_mkdir_p=false
  14836. fi
  14837. if test -x / >/dev/null 2>&1; then
  14838. as_test_x='test -x'
  14839. else
  14840. if ls -dL / >/dev/null 2>&1; then
  14841. as_ls_L_option=L
  14842. else
  14843. as_ls_L_option=
  14844. fi
  14845. as_test_x='
  14846. eval sh -c '\''
  14847. if test -d "$1"; then
  14848. test -d "$1/.";
  14849. else
  14850. case $1 in #(
  14851. -*)set "./$1";;
  14852. esac;
  14853. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14854. ???[sx]*):;;*)false;;esac;fi
  14855. '\'' sh
  14856. '
  14857. fi
  14858. as_executable_p=$as_test_x
  14859. # Sed expression to map a string onto a valid CPP name.
  14860. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14861. # Sed expression to map a string onto a valid variable name.
  14862. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14863. exec 6>&1
  14864. ## ----------------------------------- ##
  14865. ## Main body of $CONFIG_STATUS script. ##
  14866. ## ----------------------------------- ##
  14867. _ASEOF
  14868. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14870. # Save the log message, to keep $0 and so on meaningful, and to
  14871. # report actual input values of CONFIG_FILES etc. instead of their
  14872. # values after options handling.
  14873. ac_log="
  14874. This file was extended by vcmi $as_me 0.84b, which was
  14875. generated by GNU Autoconf 2.67. Invocation command line was
  14876. CONFIG_FILES = $CONFIG_FILES
  14877. CONFIG_HEADERS = $CONFIG_HEADERS
  14878. CONFIG_LINKS = $CONFIG_LINKS
  14879. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14880. $ $0 $@
  14881. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14882. "
  14883. _ACEOF
  14884. case $ac_config_files in *"
  14885. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14886. esac
  14887. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14888. # Files that config.status was made for.
  14889. config_files="$ac_config_files"
  14890. config_commands="$ac_config_commands"
  14891. _ACEOF
  14892. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14893. ac_cs_usage="\
  14894. \`$as_me' instantiates files and other configuration actions
  14895. from templates according to the current configuration. Unless the files
  14896. and actions are specified as TAGs, all are instantiated by default.
  14897. Usage: $0 [OPTION]... [TAG]...
  14898. -h, --help print this help, then exit
  14899. -V, --version print version number and configuration settings, then exit
  14900. --config print configuration, then exit
  14901. -q, --quiet, --silent
  14902. do not print progress messages
  14903. -d, --debug don't remove temporary files
  14904. --recheck update $as_me by reconfiguring in the same conditions
  14905. --file=FILE[:TEMPLATE]
  14906. instantiate the configuration file FILE
  14907. Configuration files:
  14908. $config_files
  14909. Configuration commands:
  14910. $config_commands
  14911. Report bugs to the package provider."
  14912. _ACEOF
  14913. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14914. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14915. ac_cs_version="\\
  14916. vcmi config.status 0.84b
  14917. configured by $0, generated by GNU Autoconf 2.67,
  14918. with options \\"\$ac_cs_config\\"
  14919. Copyright (C) 2010 Free Software Foundation, Inc.
  14920. This config.status script is free software; the Free Software Foundation
  14921. gives unlimited permission to copy, distribute and modify it."
  14922. ac_pwd='$ac_pwd'
  14923. srcdir='$srcdir'
  14924. INSTALL='$INSTALL'
  14925. MKDIR_P='$MKDIR_P'
  14926. AWK='$AWK'
  14927. test -n "\$AWK" || AWK=awk
  14928. _ACEOF
  14929. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14930. # The default lists apply if the user does not specify any file.
  14931. ac_need_defaults=:
  14932. while test $# != 0
  14933. do
  14934. case $1 in
  14935. --*=?*)
  14936. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14937. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14938. ac_shift=:
  14939. ;;
  14940. --*=)
  14941. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14942. ac_optarg=
  14943. ac_shift=:
  14944. ;;
  14945. *)
  14946. ac_option=$1
  14947. ac_optarg=$2
  14948. ac_shift=shift
  14949. ;;
  14950. esac
  14951. case $ac_option in
  14952. # Handling of the options.
  14953. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14954. ac_cs_recheck=: ;;
  14955. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14956. $as_echo "$ac_cs_version"; exit ;;
  14957. --config | --confi | --conf | --con | --co | --c )
  14958. $as_echo "$ac_cs_config"; exit ;;
  14959. --debug | --debu | --deb | --de | --d | -d )
  14960. debug=: ;;
  14961. --file | --fil | --fi | --f )
  14962. $ac_shift
  14963. case $ac_optarg in
  14964. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14965. '') as_fn_error $? "missing file argument" ;;
  14966. esac
  14967. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14968. ac_need_defaults=false;;
  14969. --he | --h | --help | --hel | -h )
  14970. $as_echo "$ac_cs_usage"; exit ;;
  14971. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14972. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14973. ac_cs_silent=: ;;
  14974. # This is an error.
  14975. -*) as_fn_error $? "unrecognized option: \`$1'
  14976. Try \`$0 --help' for more information." ;;
  14977. *) as_fn_append ac_config_targets " $1"
  14978. ac_need_defaults=false ;;
  14979. esac
  14980. shift
  14981. done
  14982. ac_configure_extra_args=
  14983. if $ac_cs_silent; then
  14984. exec 6>/dev/null
  14985. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14986. fi
  14987. _ACEOF
  14988. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14989. if \$ac_cs_recheck; then
  14990. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14991. shift
  14992. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14993. CONFIG_SHELL='$SHELL'
  14994. export CONFIG_SHELL
  14995. exec "\$@"
  14996. fi
  14997. _ACEOF
  14998. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14999. exec 5>>config.log
  15000. {
  15001. echo
  15002. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15003. ## Running $as_me. ##
  15004. _ASBOX
  15005. $as_echo "$ac_log"
  15006. } >&5
  15007. _ACEOF
  15008. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15009. #
  15010. # INIT-COMMANDS
  15011. #
  15012. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15013. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15014. # if CDPATH is set.
  15015. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15016. sed_quote_subst='$sed_quote_subst'
  15017. double_quote_subst='$double_quote_subst'
  15018. delay_variable_subst='$delay_variable_subst'
  15019. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  15020. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  15021. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  15022. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  15023. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  15024. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  15025. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  15026. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  15027. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  15028. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  15029. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  15030. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  15031. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  15032. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  15033. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  15034. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  15035. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  15036. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  15037. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  15038. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  15039. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  15040. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  15041. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  15042. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  15043. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  15044. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  15045. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15046. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15047. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  15048. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  15049. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  15050. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  15051. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  15052. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  15053. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  15054. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15055. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15056. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15057. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  15058. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  15059. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  15060. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  15061. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  15062. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  15063. 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"`'
  15064. 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"`'
  15065. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  15066. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  15067. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  15068. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  15069. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15070. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  15071. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  15072. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  15073. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  15074. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  15075. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  15076. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  15077. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  15078. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  15079. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  15080. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  15081. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15082. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15083. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  15084. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  15085. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15086. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15087. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  15088. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15089. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15090. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15091. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15092. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15093. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15094. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  15095. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15096. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15097. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15098. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  15099. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  15100. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  15101. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  15102. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  15103. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15104. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  15105. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  15106. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  15107. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  15108. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  15109. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15110. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  15111. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  15112. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15113. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15114. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  15115. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  15116. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  15117. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  15118. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15119. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15120. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  15121. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15122. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15123. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15124. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15125. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15126. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15127. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  15128. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  15129. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15130. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15131. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  15132. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  15133. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  15134. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  15135. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  15136. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  15137. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  15138. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  15139. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  15140. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  15141. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  15142. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  15143. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15144. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15145. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15146. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15147. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15148. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15149. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15150. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15151. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15152. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15153. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15154. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15155. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15156. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15157. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15158. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15159. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15160. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15161. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15162. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15163. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15164. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15165. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15166. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15167. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15168. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15169. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15170. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15171. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15172. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15173. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15174. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15175. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15176. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15177. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15178. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15179. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15180. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15181. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15182. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15183. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15184. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15185. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15186. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15187. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15188. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15189. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15190. LTCC='$LTCC'
  15191. LTCFLAGS='$LTCFLAGS'
  15192. compiler='$compiler_DEFAULT'
  15193. # Quote evaled strings.
  15194. for var in SED \
  15195. GREP \
  15196. EGREP \
  15197. FGREP \
  15198. LD \
  15199. NM \
  15200. LN_S \
  15201. lt_SP2NL \
  15202. lt_NL2SP \
  15203. reload_flag \
  15204. OBJDUMP \
  15205. deplibs_check_method \
  15206. file_magic_cmd \
  15207. AR \
  15208. AR_FLAGS \
  15209. STRIP \
  15210. RANLIB \
  15211. CC \
  15212. CFLAGS \
  15213. compiler \
  15214. lt_cv_sys_global_symbol_pipe \
  15215. lt_cv_sys_global_symbol_to_cdecl \
  15216. lt_cv_sys_global_symbol_to_c_name_address \
  15217. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15218. SHELL \
  15219. ECHO \
  15220. lt_prog_compiler_no_builtin_flag \
  15221. lt_prog_compiler_wl \
  15222. lt_prog_compiler_pic \
  15223. lt_prog_compiler_static \
  15224. lt_cv_prog_compiler_c_o \
  15225. need_locks \
  15226. DSYMUTIL \
  15227. NMEDIT \
  15228. LIPO \
  15229. OTOOL \
  15230. OTOOL64 \
  15231. shrext_cmds \
  15232. export_dynamic_flag_spec \
  15233. whole_archive_flag_spec \
  15234. compiler_needs_object \
  15235. with_gnu_ld \
  15236. allow_undefined_flag \
  15237. no_undefined_flag \
  15238. hardcode_libdir_flag_spec \
  15239. hardcode_libdir_flag_spec_ld \
  15240. hardcode_libdir_separator \
  15241. fix_srcfile_path \
  15242. exclude_expsyms \
  15243. include_expsyms \
  15244. file_list_spec \
  15245. variables_saved_for_relink \
  15246. libname_spec \
  15247. library_names_spec \
  15248. soname_spec \
  15249. finish_eval \
  15250. old_striplib \
  15251. striplib \
  15252. compiler_lib_search_dirs \
  15253. predep_objects \
  15254. postdep_objects \
  15255. predeps \
  15256. postdeps \
  15257. compiler_lib_search_path \
  15258. LD_CXX \
  15259. compiler_CXX \
  15260. lt_prog_compiler_no_builtin_flag_CXX \
  15261. lt_prog_compiler_wl_CXX \
  15262. lt_prog_compiler_pic_CXX \
  15263. lt_prog_compiler_static_CXX \
  15264. lt_cv_prog_compiler_c_o_CXX \
  15265. export_dynamic_flag_spec_CXX \
  15266. whole_archive_flag_spec_CXX \
  15267. compiler_needs_object_CXX \
  15268. with_gnu_ld_CXX \
  15269. allow_undefined_flag_CXX \
  15270. no_undefined_flag_CXX \
  15271. hardcode_libdir_flag_spec_CXX \
  15272. hardcode_libdir_flag_spec_ld_CXX \
  15273. hardcode_libdir_separator_CXX \
  15274. fix_srcfile_path_CXX \
  15275. exclude_expsyms_CXX \
  15276. include_expsyms_CXX \
  15277. file_list_spec_CXX \
  15278. compiler_lib_search_dirs_CXX \
  15279. predep_objects_CXX \
  15280. postdep_objects_CXX \
  15281. predeps_CXX \
  15282. postdeps_CXX \
  15283. compiler_lib_search_path_CXX; do
  15284. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15285. *[\\\\\\\`\\"\\\$]*)
  15286. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15287. ;;
  15288. *)
  15289. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15290. ;;
  15291. esac
  15292. done
  15293. # Double-quote double-evaled strings.
  15294. for var in reload_cmds \
  15295. old_postinstall_cmds \
  15296. old_postuninstall_cmds \
  15297. old_archive_cmds \
  15298. extract_expsyms_cmds \
  15299. old_archive_from_new_cmds \
  15300. old_archive_from_expsyms_cmds \
  15301. archive_cmds \
  15302. archive_expsym_cmds \
  15303. module_cmds \
  15304. module_expsym_cmds \
  15305. export_symbols_cmds \
  15306. prelink_cmds \
  15307. postinstall_cmds \
  15308. postuninstall_cmds \
  15309. finish_cmds \
  15310. sys_lib_search_path_spec \
  15311. sys_lib_dlsearch_path_spec \
  15312. old_archive_cmds_CXX \
  15313. old_archive_from_new_cmds_CXX \
  15314. old_archive_from_expsyms_cmds_CXX \
  15315. archive_cmds_CXX \
  15316. archive_expsym_cmds_CXX \
  15317. module_cmds_CXX \
  15318. module_expsym_cmds_CXX \
  15319. export_symbols_cmds_CXX \
  15320. prelink_cmds_CXX; do
  15321. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15322. *[\\\\\\\`\\"\\\$]*)
  15323. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15324. ;;
  15325. *)
  15326. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15327. ;;
  15328. esac
  15329. done
  15330. # Fix-up fallback echo if it was mangled by the above quoting rules.
  15331. case \$lt_ECHO in
  15332. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  15333. ;;
  15334. esac
  15335. ac_aux_dir='$ac_aux_dir'
  15336. xsi_shell='$xsi_shell'
  15337. lt_shell_append='$lt_shell_append'
  15338. # See if we are running on zsh, and set the options which allow our
  15339. # commands through without removal of \ escapes INIT.
  15340. if test -n "\${ZSH_VERSION+set}" ; then
  15341. setopt NO_GLOB_SUBST
  15342. fi
  15343. PACKAGE='$PACKAGE'
  15344. VERSION='$VERSION'
  15345. TIMESTAMP='$TIMESTAMP'
  15346. RM='$RM'
  15347. ofile='$ofile'
  15348. _ACEOF
  15349. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15350. # Handling of arguments.
  15351. for ac_config_target in $ac_config_targets
  15352. do
  15353. case $ac_config_target in
  15354. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15355. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15356. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15357. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  15358. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  15359. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  15360. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  15361. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  15362. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  15363. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  15364. "Scripting/ERM/Makefile") CONFIG_FILES="$CONFIG_FILES Scripting/ERM/Makefile" ;;
  15365. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  15366. esac
  15367. done
  15368. # If the user did not use the arguments to specify the items to instantiate,
  15369. # then the envvar interface is used. Set only those that are not.
  15370. # We use the long form for the default assignment because of an extremely
  15371. # bizarre bug on SunOS 4.1.3.
  15372. if $ac_need_defaults; then
  15373. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15374. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15375. fi
  15376. # Have a temporary directory for convenience. Make it in the build tree
  15377. # simply because there is no reason against having it here, and in addition,
  15378. # creating and moving files from /tmp can sometimes cause problems.
  15379. # Hook for its removal unless debugging.
  15380. # Note that there is a small window in which the directory will not be cleaned:
  15381. # after its creation but before its name has been assigned to `$tmp'.
  15382. $debug ||
  15383. {
  15384. tmp=
  15385. trap 'exit_status=$?
  15386. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15387. ' 0
  15388. trap 'as_fn_exit 1' 1 2 13 15
  15389. }
  15390. # Create a (secure) tmp directory for tmp files.
  15391. {
  15392. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15393. test -n "$tmp" && test -d "$tmp"
  15394. } ||
  15395. {
  15396. tmp=./conf$$-$RANDOM
  15397. (umask 077 && mkdir "$tmp")
  15398. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15399. # Set up the scripts for CONFIG_FILES section.
  15400. # No need to generate them if there are no CONFIG_FILES.
  15401. # This happens for instance with `./config.status config.h'.
  15402. if test -n "$CONFIG_FILES"; then
  15403. ac_cr=`echo X | tr X '\015'`
  15404. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15405. # But we know of no other shell where ac_cr would be empty at this
  15406. # point, so we can use a bashism as a fallback.
  15407. if test "x$ac_cr" = x; then
  15408. eval ac_cr=\$\'\\r\'
  15409. fi
  15410. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15411. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15412. ac_cs_awk_cr='\\r'
  15413. else
  15414. ac_cs_awk_cr=$ac_cr
  15415. fi
  15416. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15417. _ACEOF
  15418. {
  15419. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15420. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15421. echo "_ACEOF"
  15422. } >conf$$subs.sh ||
  15423. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15424. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15425. ac_delim='%!_!# '
  15426. for ac_last_try in false false false false false :; do
  15427. . ./conf$$subs.sh ||
  15428. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15429. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15430. if test $ac_delim_n = $ac_delim_num; then
  15431. break
  15432. elif $ac_last_try; then
  15433. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15434. else
  15435. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15436. fi
  15437. done
  15438. rm -f conf$$subs.sh
  15439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15440. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15441. _ACEOF
  15442. sed -n '
  15443. h
  15444. s/^/S["/; s/!.*/"]=/
  15445. p
  15446. g
  15447. s/^[^!]*!//
  15448. :repl
  15449. t repl
  15450. s/'"$ac_delim"'$//
  15451. t delim
  15452. :nl
  15453. h
  15454. s/\(.\{148\}\)..*/\1/
  15455. t more1
  15456. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15457. p
  15458. n
  15459. b repl
  15460. :more1
  15461. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15462. p
  15463. g
  15464. s/.\{148\}//
  15465. t nl
  15466. :delim
  15467. h
  15468. s/\(.\{148\}\)..*/\1/
  15469. t more2
  15470. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15471. p
  15472. b
  15473. :more2
  15474. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15475. p
  15476. g
  15477. s/.\{148\}//
  15478. t delim
  15479. ' <conf$$subs.awk | sed '
  15480. /^[^""]/{
  15481. N
  15482. s/\n//
  15483. }
  15484. ' >>$CONFIG_STATUS || ac_write_fail=1
  15485. rm -f conf$$subs.awk
  15486. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15487. _ACAWK
  15488. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15489. for (key in S) S_is_set[key] = 1
  15490. FS = ""
  15491. }
  15492. {
  15493. line = $ 0
  15494. nfields = split(line, field, "@")
  15495. substed = 0
  15496. len = length(field[1])
  15497. for (i = 2; i < nfields; i++) {
  15498. key = field[i]
  15499. keylen = length(key)
  15500. if (S_is_set[key]) {
  15501. value = S[key]
  15502. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15503. len += length(value) + length(field[++i])
  15504. substed = 1
  15505. } else
  15506. len += 1 + keylen
  15507. }
  15508. print line
  15509. }
  15510. _ACAWK
  15511. _ACEOF
  15512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15513. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15514. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15515. else
  15516. cat
  15517. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15518. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15519. _ACEOF
  15520. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15521. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15522. # trailing colons and then remove the whole line if VPATH becomes empty
  15523. # (actually we leave an empty line to preserve line numbers).
  15524. if test "x$srcdir" = x.; then
  15525. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15526. h
  15527. s///
  15528. s/^/:/
  15529. s/[ ]*$/:/
  15530. s/:\$(srcdir):/:/g
  15531. s/:\${srcdir}:/:/g
  15532. s/:@srcdir@:/:/g
  15533. s/^:*//
  15534. s/:*$//
  15535. x
  15536. s/\(=[ ]*\).*/\1/
  15537. G
  15538. s/\n//
  15539. s/^[^=]*=[ ]*$//
  15540. }'
  15541. fi
  15542. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15543. fi # test -n "$CONFIG_FILES"
  15544. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15545. shift
  15546. for ac_tag
  15547. do
  15548. case $ac_tag in
  15549. :[FHLC]) ac_mode=$ac_tag; continue;;
  15550. esac
  15551. case $ac_mode$ac_tag in
  15552. :[FHL]*:*);;
  15553. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  15554. :[FH]-) ac_tag=-:-;;
  15555. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15556. esac
  15557. ac_save_IFS=$IFS
  15558. IFS=:
  15559. set x $ac_tag
  15560. IFS=$ac_save_IFS
  15561. shift
  15562. ac_file=$1
  15563. shift
  15564. case $ac_mode in
  15565. :L) ac_source=$1;;
  15566. :[FH])
  15567. ac_file_inputs=
  15568. for ac_f
  15569. do
  15570. case $ac_f in
  15571. -) ac_f="$tmp/stdin";;
  15572. *) # Look for the file first in the build tree, then in the source tree
  15573. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15574. # because $ac_f cannot contain `:'.
  15575. test -f "$ac_f" ||
  15576. case $ac_f in
  15577. [\\/$]*) false;;
  15578. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15579. esac ||
  15580. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  15581. esac
  15582. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15583. as_fn_append ac_file_inputs " '$ac_f'"
  15584. done
  15585. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15586. # use $as_me), people would be surprised to read:
  15587. # /* config.h. Generated by config.status. */
  15588. configure_input='Generated from '`
  15589. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15590. `' by configure.'
  15591. if test x"$ac_file" != x-; then
  15592. configure_input="$ac_file. $configure_input"
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15594. $as_echo "$as_me: creating $ac_file" >&6;}
  15595. fi
  15596. # Neutralize special characters interpreted by sed in replacement strings.
  15597. case $configure_input in #(
  15598. *\&* | *\|* | *\\* )
  15599. ac_sed_conf_input=`$as_echo "$configure_input" |
  15600. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15601. *) ac_sed_conf_input=$configure_input;;
  15602. esac
  15603. case $ac_tag in
  15604. *:-:* | *:-) cat >"$tmp/stdin" \
  15605. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15606. esac
  15607. ;;
  15608. esac
  15609. ac_dir=`$as_dirname -- "$ac_file" ||
  15610. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15611. X"$ac_file" : 'X\(//\)[^/]' \| \
  15612. X"$ac_file" : 'X\(//\)$' \| \
  15613. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15614. $as_echo X"$ac_file" |
  15615. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15616. s//\1/
  15617. q
  15618. }
  15619. /^X\(\/\/\)[^/].*/{
  15620. s//\1/
  15621. q
  15622. }
  15623. /^X\(\/\/\)$/{
  15624. s//\1/
  15625. q
  15626. }
  15627. /^X\(\/\).*/{
  15628. s//\1/
  15629. q
  15630. }
  15631. s/.*/./; q'`
  15632. as_dir="$ac_dir"; as_fn_mkdir_p
  15633. ac_builddir=.
  15634. case "$ac_dir" in
  15635. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15636. *)
  15637. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15638. # A ".." for each directory in $ac_dir_suffix.
  15639. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15640. case $ac_top_builddir_sub in
  15641. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15642. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15643. esac ;;
  15644. esac
  15645. ac_abs_top_builddir=$ac_pwd
  15646. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15647. # for backward compatibility:
  15648. ac_top_builddir=$ac_top_build_prefix
  15649. case $srcdir in
  15650. .) # We are building in place.
  15651. ac_srcdir=.
  15652. ac_top_srcdir=$ac_top_builddir_sub
  15653. ac_abs_top_srcdir=$ac_pwd ;;
  15654. [\\/]* | ?:[\\/]* ) # Absolute name.
  15655. ac_srcdir=$srcdir$ac_dir_suffix;
  15656. ac_top_srcdir=$srcdir
  15657. ac_abs_top_srcdir=$srcdir ;;
  15658. *) # Relative name.
  15659. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15660. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15661. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15662. esac
  15663. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15664. case $ac_mode in
  15665. :F)
  15666. #
  15667. # CONFIG_FILE
  15668. #
  15669. case $INSTALL in
  15670. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15671. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15672. esac
  15673. ac_MKDIR_P=$MKDIR_P
  15674. case $MKDIR_P in
  15675. [\\/$]* | ?:[\\/]* ) ;;
  15676. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15677. esac
  15678. _ACEOF
  15679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15680. # If the template does not know about datarootdir, expand it.
  15681. # FIXME: This hack should be removed a few years after 2.60.
  15682. ac_datarootdir_hack=; ac_datarootdir_seen=
  15683. ac_sed_dataroot='
  15684. /datarootdir/ {
  15685. p
  15686. q
  15687. }
  15688. /@datadir@/p
  15689. /@docdir@/p
  15690. /@infodir@/p
  15691. /@localedir@/p
  15692. /@mandir@/p'
  15693. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15694. *datarootdir*) ac_datarootdir_seen=yes;;
  15695. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15697. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15698. _ACEOF
  15699. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15700. ac_datarootdir_hack='
  15701. s&@datadir@&$datadir&g
  15702. s&@docdir@&$docdir&g
  15703. s&@infodir@&$infodir&g
  15704. s&@localedir@&$localedir&g
  15705. s&@mandir@&$mandir&g
  15706. s&\\\${datarootdir}&$datarootdir&g' ;;
  15707. esac
  15708. _ACEOF
  15709. # Neutralize VPATH when `$srcdir' = `.'.
  15710. # Shell code in configure.ac might set extrasub.
  15711. # FIXME: do we really want to maintain this feature?
  15712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15713. ac_sed_extra="$ac_vpsub
  15714. $extrasub
  15715. _ACEOF
  15716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15717. :t
  15718. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15719. s|@configure_input@|$ac_sed_conf_input|;t t
  15720. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15721. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15722. s&@srcdir@&$ac_srcdir&;t t
  15723. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15724. s&@top_srcdir@&$ac_top_srcdir&;t t
  15725. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15726. s&@builddir@&$ac_builddir&;t t
  15727. s&@abs_builddir@&$ac_abs_builddir&;t t
  15728. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15729. s&@INSTALL@&$ac_INSTALL&;t t
  15730. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15731. $ac_datarootdir_hack
  15732. "
  15733. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15734. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15735. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15736. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15737. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15739. which seems to be undefined. Please make sure it is defined" >&5
  15740. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15741. which seems to be undefined. Please make sure it is defined" >&2;}
  15742. rm -f "$tmp/stdin"
  15743. case $ac_file in
  15744. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15745. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15746. esac \
  15747. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15748. ;;
  15749. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15750. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15751. ;;
  15752. esac
  15753. case $ac_file$ac_mode in
  15754. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15755. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15756. # are listed without --file. Let's play safe and only enable the eval
  15757. # if we detect the quoting.
  15758. case $CONFIG_FILES in
  15759. *\'*) eval set x "$CONFIG_FILES" ;;
  15760. *) set x $CONFIG_FILES ;;
  15761. esac
  15762. shift
  15763. for mf
  15764. do
  15765. # Strip MF so we end up with the name of the file.
  15766. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15767. # Check whether this is an Automake generated Makefile or not.
  15768. # We used to match only the files named `Makefile.in', but
  15769. # some people rename them; so instead we look at the file content.
  15770. # Grep'ing the first line is not enough: some people post-process
  15771. # each Makefile.in and add a new line on top of each file to say so.
  15772. # Grep'ing the whole file is not good either: AIX grep has a line
  15773. # limit of 2048, but all sed's we know have understand at least 4000.
  15774. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15775. dirpart=`$as_dirname -- "$mf" ||
  15776. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15777. X"$mf" : 'X\(//\)[^/]' \| \
  15778. X"$mf" : 'X\(//\)$' \| \
  15779. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15780. $as_echo X"$mf" |
  15781. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15782. s//\1/
  15783. q
  15784. }
  15785. /^X\(\/\/\)[^/].*/{
  15786. s//\1/
  15787. q
  15788. }
  15789. /^X\(\/\/\)$/{
  15790. s//\1/
  15791. q
  15792. }
  15793. /^X\(\/\).*/{
  15794. s//\1/
  15795. q
  15796. }
  15797. s/.*/./; q'`
  15798. else
  15799. continue
  15800. fi
  15801. # Extract the definition of DEPDIR, am__include, and am__quote
  15802. # from the Makefile without running `make'.
  15803. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15804. test -z "$DEPDIR" && continue
  15805. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15806. test -z "am__include" && continue
  15807. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15808. # When using ansi2knr, U may be empty or an underscore; expand it
  15809. U=`sed -n 's/^U = //p' < "$mf"`
  15810. # Find all dependency output files, they are included files with
  15811. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15812. # simplest approach to changing $(DEPDIR) to its actual value in the
  15813. # expansion.
  15814. for file in `sed -n "
  15815. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15816. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15817. # Make sure the directory exists.
  15818. test -f "$dirpart/$file" && continue
  15819. fdir=`$as_dirname -- "$file" ||
  15820. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15821. X"$file" : 'X\(//\)[^/]' \| \
  15822. X"$file" : 'X\(//\)$' \| \
  15823. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15824. $as_echo X"$file" |
  15825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15826. s//\1/
  15827. q
  15828. }
  15829. /^X\(\/\/\)[^/].*/{
  15830. s//\1/
  15831. q
  15832. }
  15833. /^X\(\/\/\)$/{
  15834. s//\1/
  15835. q
  15836. }
  15837. /^X\(\/\).*/{
  15838. s//\1/
  15839. q
  15840. }
  15841. s/.*/./; q'`
  15842. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15843. # echo "creating $dirpart/$file"
  15844. echo '# dummy' > "$dirpart/$file"
  15845. done
  15846. done
  15847. }
  15848. ;;
  15849. "libtool":C)
  15850. # See if we are running on zsh, and set the options which allow our
  15851. # commands through without removal of \ escapes.
  15852. if test -n "${ZSH_VERSION+set}" ; then
  15853. setopt NO_GLOB_SUBST
  15854. fi
  15855. cfgfile="${ofile}T"
  15856. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15857. $RM "$cfgfile"
  15858. cat <<_LT_EOF >> "$cfgfile"
  15859. #! $SHELL
  15860. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15861. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15862. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15863. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15864. #
  15865. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15866. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15867. # Written by Gordon Matzigkeit, 1996
  15868. #
  15869. # This file is part of GNU Libtool.
  15870. #
  15871. # GNU Libtool is free software; you can redistribute it and/or
  15872. # modify it under the terms of the GNU General Public License as
  15873. # published by the Free Software Foundation; either version 2 of
  15874. # the License, or (at your option) any later version.
  15875. #
  15876. # As a special exception to the GNU General Public License,
  15877. # if you distribute this file as part of a program or library that
  15878. # is built using GNU Libtool, you may include this file under the
  15879. # same distribution terms that you use for the rest of that program.
  15880. #
  15881. # GNU Libtool is distributed in the hope that it will be useful,
  15882. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15883. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15884. # GNU General Public License for more details.
  15885. #
  15886. # You should have received a copy of the GNU General Public License
  15887. # along with GNU Libtool; see the file COPYING. If not, a copy
  15888. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15889. # obtained by writing to the Free Software Foundation, Inc.,
  15890. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15891. # The names of the tagged configurations supported by this script.
  15892. available_tags="CXX "
  15893. # ### BEGIN LIBTOOL CONFIG
  15894. # Whether or not to build shared libraries.
  15895. build_libtool_libs=$enable_shared
  15896. # Whether or not to build static libraries.
  15897. build_old_libs=$enable_static
  15898. # Which release of libtool.m4 was used?
  15899. macro_version=$macro_version
  15900. macro_revision=$macro_revision
  15901. # What type of objects to build.
  15902. pic_mode=$pic_mode
  15903. # Whether or not to optimize for fast installation.
  15904. fast_install=$enable_fast_install
  15905. # The host system.
  15906. host_alias=$host_alias
  15907. host=$host
  15908. host_os=$host_os
  15909. # The build system.
  15910. build_alias=$build_alias
  15911. build=$build
  15912. build_os=$build_os
  15913. # A sed program that does not truncate output.
  15914. SED=$lt_SED
  15915. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15916. Xsed="\$SED -e 1s/^X//"
  15917. # A grep program that handles long lines.
  15918. GREP=$lt_GREP
  15919. # An ERE matcher.
  15920. EGREP=$lt_EGREP
  15921. # A literal string matcher.
  15922. FGREP=$lt_FGREP
  15923. # A BSD- or MS-compatible name lister.
  15924. NM=$lt_NM
  15925. # Whether we need soft or hard links.
  15926. LN_S=$lt_LN_S
  15927. # What is the maximum length of a command?
  15928. max_cmd_len=$max_cmd_len
  15929. # Object file suffix (normally "o").
  15930. objext=$ac_objext
  15931. # Executable file suffix (normally "").
  15932. exeext=$exeext
  15933. # whether the shell understands "unset".
  15934. lt_unset=$lt_unset
  15935. # turn spaces into newlines.
  15936. SP2NL=$lt_lt_SP2NL
  15937. # turn newlines into spaces.
  15938. NL2SP=$lt_lt_NL2SP
  15939. # How to create reloadable object files.
  15940. reload_flag=$lt_reload_flag
  15941. reload_cmds=$lt_reload_cmds
  15942. # An object symbol dumper.
  15943. OBJDUMP=$lt_OBJDUMP
  15944. # Method to check whether dependent libraries are shared objects.
  15945. deplibs_check_method=$lt_deplibs_check_method
  15946. # Command to use when deplibs_check_method == "file_magic".
  15947. file_magic_cmd=$lt_file_magic_cmd
  15948. # The archiver.
  15949. AR=$lt_AR
  15950. AR_FLAGS=$lt_AR_FLAGS
  15951. # A symbol stripping program.
  15952. STRIP=$lt_STRIP
  15953. # Commands used to install an old-style archive.
  15954. RANLIB=$lt_RANLIB
  15955. old_postinstall_cmds=$lt_old_postinstall_cmds
  15956. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15957. # A C compiler.
  15958. LTCC=$lt_CC
  15959. # LTCC compiler flags.
  15960. LTCFLAGS=$lt_CFLAGS
  15961. # Take the output of nm and produce a listing of raw symbols and C names.
  15962. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15963. # Transform the output of nm in a proper C declaration.
  15964. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15965. # Transform the output of nm in a C name address pair.
  15966. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15967. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15968. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15969. # The name of the directory that contains temporary libtool files.
  15970. objdir=$objdir
  15971. # Shell to use when invoking shell scripts.
  15972. SHELL=$lt_SHELL
  15973. # An echo program that does not interpret backslashes.
  15974. ECHO=$lt_ECHO
  15975. # Used to examine libraries when file_magic_cmd begins with "file".
  15976. MAGIC_CMD=$MAGIC_CMD
  15977. # Must we lock files when doing compilation?
  15978. need_locks=$lt_need_locks
  15979. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15980. DSYMUTIL=$lt_DSYMUTIL
  15981. # Tool to change global to local symbols on Mac OS X.
  15982. NMEDIT=$lt_NMEDIT
  15983. # Tool to manipulate fat objects and archives on Mac OS X.
  15984. LIPO=$lt_LIPO
  15985. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15986. OTOOL=$lt_OTOOL
  15987. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15988. OTOOL64=$lt_OTOOL64
  15989. # Old archive suffix (normally "a").
  15990. libext=$libext
  15991. # Shared library suffix (normally ".so").
  15992. shrext_cmds=$lt_shrext_cmds
  15993. # The commands to extract the exported symbol list from a shared archive.
  15994. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15995. # Variables whose values should be saved in libtool wrapper scripts and
  15996. # restored at link time.
  15997. variables_saved_for_relink=$lt_variables_saved_for_relink
  15998. # Do we need the "lib" prefix for modules?
  15999. need_lib_prefix=$need_lib_prefix
  16000. # Do we need a version for libraries?
  16001. need_version=$need_version
  16002. # Library versioning type.
  16003. version_type=$version_type
  16004. # Shared library runtime path variable.
  16005. runpath_var=$runpath_var
  16006. # Shared library path variable.
  16007. shlibpath_var=$shlibpath_var
  16008. # Is shlibpath searched before the hard-coded library search path?
  16009. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16010. # Format of library name prefix.
  16011. libname_spec=$lt_libname_spec
  16012. # List of archive names. First name is the real one, the rest are links.
  16013. # The last name is the one that the linker finds with -lNAME
  16014. library_names_spec=$lt_library_names_spec
  16015. # The coded name of the library, if different from the real name.
  16016. soname_spec=$lt_soname_spec
  16017. # Command to use after installation of a shared archive.
  16018. postinstall_cmds=$lt_postinstall_cmds
  16019. # Command to use after uninstallation of a shared archive.
  16020. postuninstall_cmds=$lt_postuninstall_cmds
  16021. # Commands used to finish a libtool library installation in a directory.
  16022. finish_cmds=$lt_finish_cmds
  16023. # As "finish_cmds", except a single script fragment to be evaled but
  16024. # not shown.
  16025. finish_eval=$lt_finish_eval
  16026. # Whether we should hardcode library paths into libraries.
  16027. hardcode_into_libs=$hardcode_into_libs
  16028. # Compile-time system search path for libraries.
  16029. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16030. # Run-time system search path for libraries.
  16031. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16032. # Whether dlopen is supported.
  16033. dlopen_support=$enable_dlopen
  16034. # Whether dlopen of programs is supported.
  16035. dlopen_self=$enable_dlopen_self
  16036. # Whether dlopen of statically linked programs is supported.
  16037. dlopen_self_static=$enable_dlopen_self_static
  16038. # Commands to strip libraries.
  16039. old_striplib=$lt_old_striplib
  16040. striplib=$lt_striplib
  16041. # The linker used to build libraries.
  16042. LD=$lt_LD
  16043. # Commands used to build an old-style archive.
  16044. old_archive_cmds=$lt_old_archive_cmds
  16045. # A language specific compiler.
  16046. CC=$lt_compiler
  16047. # Is the compiler the GNU compiler?
  16048. with_gcc=$GCC
  16049. # Compiler flag to turn off builtin functions.
  16050. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16051. # How to pass a linker flag through the compiler.
  16052. wl=$lt_lt_prog_compiler_wl
  16053. # Additional compiler flags for building library objects.
  16054. pic_flag=$lt_lt_prog_compiler_pic
  16055. # Compiler flag to prevent dynamic linking.
  16056. link_static_flag=$lt_lt_prog_compiler_static
  16057. # Does compiler simultaneously support -c and -o options?
  16058. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16059. # Whether or not to add -lc for building shared libraries.
  16060. build_libtool_need_lc=$archive_cmds_need_lc
  16061. # Whether or not to disallow shared libs when runtime libs are static.
  16062. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16063. # Compiler flag to allow reflexive dlopens.
  16064. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16065. # Compiler flag to generate shared objects directly from archives.
  16066. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16067. # Whether the compiler copes with passing no objects directly.
  16068. compiler_needs_object=$lt_compiler_needs_object
  16069. # Create an old-style archive from a shared archive.
  16070. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16071. # Create a temporary old-style archive to link instead of a shared archive.
  16072. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16073. # Commands used to build a shared archive.
  16074. archive_cmds=$lt_archive_cmds
  16075. archive_expsym_cmds=$lt_archive_expsym_cmds
  16076. # Commands used to build a loadable module if different from building
  16077. # a shared archive.
  16078. module_cmds=$lt_module_cmds
  16079. module_expsym_cmds=$lt_module_expsym_cmds
  16080. # Whether we are building with GNU ld or not.
  16081. with_gnu_ld=$lt_with_gnu_ld
  16082. # Flag that allows shared libraries with undefined symbols to be built.
  16083. allow_undefined_flag=$lt_allow_undefined_flag
  16084. # Flag that enforces no undefined symbols.
  16085. no_undefined_flag=$lt_no_undefined_flag
  16086. # Flag to hardcode \$libdir into a binary during linking.
  16087. # This must work even if \$libdir does not exist
  16088. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16089. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16090. # during linking. This must work even if \$libdir does not exist.
  16091. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16092. # Whether we need a single "-rpath" flag with a separated argument.
  16093. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16094. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16095. # DIR into the resulting binary.
  16096. hardcode_direct=$hardcode_direct
  16097. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16098. # DIR into the resulting binary and the resulting library dependency is
  16099. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16100. # library is relocated.
  16101. hardcode_direct_absolute=$hardcode_direct_absolute
  16102. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16103. # into the resulting binary.
  16104. hardcode_minus_L=$hardcode_minus_L
  16105. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16106. # into the resulting binary.
  16107. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16108. # Set to "yes" if building a shared library automatically hardcodes DIR
  16109. # into the library and all subsequent libraries and executables linked
  16110. # against it.
  16111. hardcode_automatic=$hardcode_automatic
  16112. # Set to yes if linker adds runtime paths of dependent libraries
  16113. # to runtime path list.
  16114. inherit_rpath=$inherit_rpath
  16115. # Whether libtool must link a program against all its dependency libraries.
  16116. link_all_deplibs=$link_all_deplibs
  16117. # Fix the shell variable \$srcfile for the compiler.
  16118. fix_srcfile_path=$lt_fix_srcfile_path
  16119. # Set to "yes" if exported symbols are required.
  16120. always_export_symbols=$always_export_symbols
  16121. # The commands to list exported symbols.
  16122. export_symbols_cmds=$lt_export_symbols_cmds
  16123. # Symbols that should not be listed in the preloaded symbols.
  16124. exclude_expsyms=$lt_exclude_expsyms
  16125. # Symbols that must always be exported.
  16126. include_expsyms=$lt_include_expsyms
  16127. # Commands necessary for linking programs (against libraries) with templates.
  16128. prelink_cmds=$lt_prelink_cmds
  16129. # Specify filename containing input files.
  16130. file_list_spec=$lt_file_list_spec
  16131. # How to hardcode a shared library path into an executable.
  16132. hardcode_action=$hardcode_action
  16133. # The directories searched by this compiler when creating a shared library.
  16134. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16135. # Dependencies to place before and after the objects being linked to
  16136. # create a shared library.
  16137. predep_objects=$lt_predep_objects
  16138. postdep_objects=$lt_postdep_objects
  16139. predeps=$lt_predeps
  16140. postdeps=$lt_postdeps
  16141. # The library search path used internally by the compiler when linking
  16142. # a shared library.
  16143. compiler_lib_search_path=$lt_compiler_lib_search_path
  16144. # ### END LIBTOOL CONFIG
  16145. _LT_EOF
  16146. case $host_os in
  16147. aix3*)
  16148. cat <<\_LT_EOF >> "$cfgfile"
  16149. # AIX sometimes has problems with the GCC collect2 program. For some
  16150. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16151. # vanish in a puff of smoke.
  16152. if test "X${COLLECT_NAMES+set}" != Xset; then
  16153. COLLECT_NAMES=
  16154. export COLLECT_NAMES
  16155. fi
  16156. _LT_EOF
  16157. ;;
  16158. esac
  16159. ltmain="$ac_aux_dir/ltmain.sh"
  16160. # We use sed instead of cat because bash on DJGPP gets confused if
  16161. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16162. # text mode, it properly converts lines to CR/LF. This bash problem
  16163. # is reportedly fixed, but why not run on old versions too?
  16164. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16165. || (rm -f "$cfgfile"; exit 1)
  16166. case $xsi_shell in
  16167. yes)
  16168. cat << \_LT_EOF >> "$cfgfile"
  16169. # func_dirname file append nondir_replacement
  16170. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16171. # otherwise set result to NONDIR_REPLACEMENT.
  16172. func_dirname ()
  16173. {
  16174. case ${1} in
  16175. */*) func_dirname_result="${1%/*}${2}" ;;
  16176. * ) func_dirname_result="${3}" ;;
  16177. esac
  16178. }
  16179. # func_basename file
  16180. func_basename ()
  16181. {
  16182. func_basename_result="${1##*/}"
  16183. }
  16184. # func_dirname_and_basename file append nondir_replacement
  16185. # perform func_basename and func_dirname in a single function
  16186. # call:
  16187. # dirname: Compute the dirname of FILE. If nonempty,
  16188. # add APPEND to the result, otherwise set result
  16189. # to NONDIR_REPLACEMENT.
  16190. # value returned in "$func_dirname_result"
  16191. # basename: Compute filename of FILE.
  16192. # value retuned in "$func_basename_result"
  16193. # Implementation must be kept synchronized with func_dirname
  16194. # and func_basename. For efficiency, we do not delegate to
  16195. # those functions but instead duplicate the functionality here.
  16196. func_dirname_and_basename ()
  16197. {
  16198. case ${1} in
  16199. */*) func_dirname_result="${1%/*}${2}" ;;
  16200. * ) func_dirname_result="${3}" ;;
  16201. esac
  16202. func_basename_result="${1##*/}"
  16203. }
  16204. # func_stripname prefix suffix name
  16205. # strip PREFIX and SUFFIX off of NAME.
  16206. # PREFIX and SUFFIX must not contain globbing or regex special
  16207. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16208. # dot (in which case that matches only a dot).
  16209. func_stripname ()
  16210. {
  16211. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16212. # positional parameters, so assign one to ordinary parameter first.
  16213. func_stripname_result=${3}
  16214. func_stripname_result=${func_stripname_result#"${1}"}
  16215. func_stripname_result=${func_stripname_result%"${2}"}
  16216. }
  16217. # func_opt_split
  16218. func_opt_split ()
  16219. {
  16220. func_opt_split_opt=${1%%=*}
  16221. func_opt_split_arg=${1#*=}
  16222. }
  16223. # func_lo2o object
  16224. func_lo2o ()
  16225. {
  16226. case ${1} in
  16227. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16228. *) func_lo2o_result=${1} ;;
  16229. esac
  16230. }
  16231. # func_xform libobj-or-source
  16232. func_xform ()
  16233. {
  16234. func_xform_result=${1%.*}.lo
  16235. }
  16236. # func_arith arithmetic-term...
  16237. func_arith ()
  16238. {
  16239. func_arith_result=$(( $* ))
  16240. }
  16241. # func_len string
  16242. # STRING may not start with a hyphen.
  16243. func_len ()
  16244. {
  16245. func_len_result=${#1}
  16246. }
  16247. _LT_EOF
  16248. ;;
  16249. *) # Bourne compatible functions.
  16250. cat << \_LT_EOF >> "$cfgfile"
  16251. # func_dirname file append nondir_replacement
  16252. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16253. # otherwise set result to NONDIR_REPLACEMENT.
  16254. func_dirname ()
  16255. {
  16256. # Extract subdirectory from the argument.
  16257. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16258. if test "X$func_dirname_result" = "X${1}"; then
  16259. func_dirname_result="${3}"
  16260. else
  16261. func_dirname_result="$func_dirname_result${2}"
  16262. fi
  16263. }
  16264. # func_basename file
  16265. func_basename ()
  16266. {
  16267. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16268. }
  16269. # func_stripname prefix suffix name
  16270. # strip PREFIX and SUFFIX off of NAME.
  16271. # PREFIX and SUFFIX must not contain globbing or regex special
  16272. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16273. # dot (in which case that matches only a dot).
  16274. # func_strip_suffix prefix name
  16275. func_stripname ()
  16276. {
  16277. case ${2} in
  16278. .*) func_stripname_result=`$ECHO "X${3}" \
  16279. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  16280. *) func_stripname_result=`$ECHO "X${3}" \
  16281. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  16282. esac
  16283. }
  16284. # sed scripts:
  16285. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16286. my_sed_long_arg='1s/^-[^=]*=//'
  16287. # func_opt_split
  16288. func_opt_split ()
  16289. {
  16290. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  16291. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  16292. }
  16293. # func_lo2o object
  16294. func_lo2o ()
  16295. {
  16296. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  16297. }
  16298. # func_xform libobj-or-source
  16299. func_xform ()
  16300. {
  16301. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  16302. }
  16303. # func_arith arithmetic-term...
  16304. func_arith ()
  16305. {
  16306. func_arith_result=`expr "$@"`
  16307. }
  16308. # func_len string
  16309. # STRING may not start with a hyphen.
  16310. func_len ()
  16311. {
  16312. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16313. }
  16314. _LT_EOF
  16315. esac
  16316. case $lt_shell_append in
  16317. yes)
  16318. cat << \_LT_EOF >> "$cfgfile"
  16319. # func_append var value
  16320. # Append VALUE to the end of shell variable VAR.
  16321. func_append ()
  16322. {
  16323. eval "$1+=\$2"
  16324. }
  16325. _LT_EOF
  16326. ;;
  16327. *)
  16328. cat << \_LT_EOF >> "$cfgfile"
  16329. # func_append var value
  16330. # Append VALUE to the end of shell variable VAR.
  16331. func_append ()
  16332. {
  16333. eval "$1=\$$1\$2"
  16334. }
  16335. _LT_EOF
  16336. ;;
  16337. esac
  16338. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16339. || (rm -f "$cfgfile"; exit 1)
  16340. mv -f "$cfgfile" "$ofile" ||
  16341. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16342. chmod +x "$ofile"
  16343. cat <<_LT_EOF >> "$ofile"
  16344. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16345. # The linker used to build libraries.
  16346. LD=$lt_LD_CXX
  16347. # Commands used to build an old-style archive.
  16348. old_archive_cmds=$lt_old_archive_cmds_CXX
  16349. # A language specific compiler.
  16350. CC=$lt_compiler_CXX
  16351. # Is the compiler the GNU compiler?
  16352. with_gcc=$GCC_CXX
  16353. # Compiler flag to turn off builtin functions.
  16354. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16355. # How to pass a linker flag through the compiler.
  16356. wl=$lt_lt_prog_compiler_wl_CXX
  16357. # Additional compiler flags for building library objects.
  16358. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16359. # Compiler flag to prevent dynamic linking.
  16360. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16361. # Does compiler simultaneously support -c and -o options?
  16362. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16363. # Whether or not to add -lc for building shared libraries.
  16364. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16365. # Whether or not to disallow shared libs when runtime libs are static.
  16366. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16367. # Compiler flag to allow reflexive dlopens.
  16368. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16369. # Compiler flag to generate shared objects directly from archives.
  16370. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16371. # Whether the compiler copes with passing no objects directly.
  16372. compiler_needs_object=$lt_compiler_needs_object_CXX
  16373. # Create an old-style archive from a shared archive.
  16374. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16375. # Create a temporary old-style archive to link instead of a shared archive.
  16376. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16377. # Commands used to build a shared archive.
  16378. archive_cmds=$lt_archive_cmds_CXX
  16379. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16380. # Commands used to build a loadable module if different from building
  16381. # a shared archive.
  16382. module_cmds=$lt_module_cmds_CXX
  16383. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16384. # Whether we are building with GNU ld or not.
  16385. with_gnu_ld=$lt_with_gnu_ld_CXX
  16386. # Flag that allows shared libraries with undefined symbols to be built.
  16387. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16388. # Flag that enforces no undefined symbols.
  16389. no_undefined_flag=$lt_no_undefined_flag_CXX
  16390. # Flag to hardcode \$libdir into a binary during linking.
  16391. # This must work even if \$libdir does not exist
  16392. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16393. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16394. # during linking. This must work even if \$libdir does not exist.
  16395. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16396. # Whether we need a single "-rpath" flag with a separated argument.
  16397. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16398. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16399. # DIR into the resulting binary.
  16400. hardcode_direct=$hardcode_direct_CXX
  16401. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16402. # DIR into the resulting binary and the resulting library dependency is
  16403. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16404. # library is relocated.
  16405. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16406. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16407. # into the resulting binary.
  16408. hardcode_minus_L=$hardcode_minus_L_CXX
  16409. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16410. # into the resulting binary.
  16411. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16412. # Set to "yes" if building a shared library automatically hardcodes DIR
  16413. # into the library and all subsequent libraries and executables linked
  16414. # against it.
  16415. hardcode_automatic=$hardcode_automatic_CXX
  16416. # Set to yes if linker adds runtime paths of dependent libraries
  16417. # to runtime path list.
  16418. inherit_rpath=$inherit_rpath_CXX
  16419. # Whether libtool must link a program against all its dependency libraries.
  16420. link_all_deplibs=$link_all_deplibs_CXX
  16421. # Fix the shell variable \$srcfile for the compiler.
  16422. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16423. # Set to "yes" if exported symbols are required.
  16424. always_export_symbols=$always_export_symbols_CXX
  16425. # The commands to list exported symbols.
  16426. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16427. # Symbols that should not be listed in the preloaded symbols.
  16428. exclude_expsyms=$lt_exclude_expsyms_CXX
  16429. # Symbols that must always be exported.
  16430. include_expsyms=$lt_include_expsyms_CXX
  16431. # Commands necessary for linking programs (against libraries) with templates.
  16432. prelink_cmds=$lt_prelink_cmds_CXX
  16433. # Specify filename containing input files.
  16434. file_list_spec=$lt_file_list_spec_CXX
  16435. # How to hardcode a shared library path into an executable.
  16436. hardcode_action=$hardcode_action_CXX
  16437. # The directories searched by this compiler when creating a shared library.
  16438. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16439. # Dependencies to place before and after the objects being linked to
  16440. # create a shared library.
  16441. predep_objects=$lt_predep_objects_CXX
  16442. postdep_objects=$lt_postdep_objects_CXX
  16443. predeps=$lt_predeps_CXX
  16444. postdeps=$lt_postdeps_CXX
  16445. # The library search path used internally by the compiler when linking
  16446. # a shared library.
  16447. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16448. # ### END LIBTOOL TAG CONFIG: CXX
  16449. _LT_EOF
  16450. ;;
  16451. esac
  16452. done # for ac_tag
  16453. as_fn_exit 0
  16454. _ACEOF
  16455. ac_clean_files=$ac_clean_files_save
  16456. test $ac_write_fail = 0 ||
  16457. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16458. # configure is writing to config.log, and then calls config.status.
  16459. # config.status does its own redirection, appending to config.log.
  16460. # Unfortunately, on DOS this fails, as config.log is still kept open
  16461. # by configure, so config.status won't be able to write to it; its
  16462. # output is simply discarded. So we exec the FD to /dev/null,
  16463. # effectively closing config.log, so it can be properly (re)opened and
  16464. # appended to by config.status. When coming back to configure, we
  16465. # need to make the FD available again.
  16466. if test "$no_create" != yes; then
  16467. ac_cs_success=:
  16468. ac_config_status_args=
  16469. test "$silent" = yes &&
  16470. ac_config_status_args="$ac_config_status_args --quiet"
  16471. exec 5>/dev/null
  16472. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16473. exec 5>>config.log
  16474. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16475. # would make configure fail if this is the last instruction.
  16476. $ac_cs_success || as_fn_exit 1
  16477. fi
  16478. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16480. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16481. fi