configure 605 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for vcmi 0.89.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in #(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in # ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell [email protected] about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. # as_fn_unset VAR
  246. # ---------------
  247. # Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. # as_fn_set_status STATUS
  254. # -----------------------
  255. # Set $? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } # as_fn_set_status
  260. # as_fn_exit STATUS
  261. # -----------------
  262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } # as_fn_exit
  269. # as_fn_mkdir_p
  270. # -------------
  271. # Create "$as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } # as_fn_mkdir_p
  313. # as_fn_append VAR VALUE
  314. # ----------------------
  315. # Append the text in VALUE to the end of the definition contained in VAR. Take
  316. # advantage of any shell optimizations that allow amortized linear growth over
  317. # repeated appends, instead of the typical quadratic growth present in naive
  318. # implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. # as_fn_arith ARG...
  331. # ------------------
  332. # Perform arithmetic evaluation on the ARGs, and store the result in the
  333. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  334. # must be portable across $(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. # ----------------------------------------
  348. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. # script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } # as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in #(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in #(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIBOBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME='vcmi'
  520. PACKAGE_TARNAME='vcmi'
  521. PACKAGE_VERSION='0.89'
  522. PACKAGE_STRING='vcmi 0.89'
  523. PACKAGE_BUGREPORT=''
  524. PACKAGE_URL=''
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIBOBJS
  564. VCMI_SCRIPTING_LIBS_DIR
  565. VCMI_AI_LIBS_DIR
  566. FFMPEG_CXXFLAGS
  567. FFMPEG_LIBS
  568. SDL_CXXFLAGS
  569. SDL_LIBS
  570. SDL_CFLAGS
  571. SDL_CONFIG
  572. BOOST_PROGRAM_OPTIONS_LIB
  573. BOOST_IOSTREAMS_LIB
  574. BOOST_THREAD_LIB
  575. BOOST_FILESYSTEM_LIB
  576. BOOST_SYSTEM_LIB
  577. BOOST_LDFLAGS
  578. BOOST_CPPFLAGS
  579. AM_BACKSLASH
  580. AM_DEFAULT_VERBOSITY
  581. AM_DEFAULT_V
  582. AM_V
  583. CXXCPP
  584. CPP
  585. OTOOL64
  586. OTOOL
  587. LIPO
  588. NMEDIT
  589. DSYMUTIL
  590. MANIFEST_TOOL
  591. RANLIB
  592. ac_ct_AR
  593. AR
  594. DLLTOOL
  595. OBJDUMP
  596. LN_S
  597. NM
  598. ac_ct_DUMPBIN
  599. DUMPBIN
  600. LD
  601. FGREP
  602. EGREP
  603. GREP
  604. SED
  605. am__fastdepCC_FALSE
  606. am__fastdepCC_TRUE
  607. CCDEPMODE
  608. ac_ct_CC
  609. CFLAGS
  610. CC
  611. host_os
  612. host_vendor
  613. host_cpu
  614. host
  615. build_os
  616. build_vendor
  617. build_cpu
  618. build
  619. LIBTOOL
  620. am__fastdepCXX_FALSE
  621. am__fastdepCXX_TRUE
  622. CXXDEPMODE
  623. am__nodep
  624. AMDEPBACKSLASH
  625. AMDEP_FALSE
  626. AMDEP_TRUE
  627. am__quote
  628. am__include
  629. DEPDIR
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CXX
  633. CPPFLAGS
  634. LDFLAGS
  635. CXXFLAGS
  636. CXX
  637. am__untar
  638. am__tar
  639. AMTAR
  640. am__leading_dot
  641. SET_MAKE
  642. AWK
  643. mkdir_p
  644. MKDIR_P
  645. INSTALL_STRIP_PROGRAM
  646. STRIP
  647. install_sh
  648. MAKEINFO
  649. AUTOHEADER
  650. AUTOMAKE
  651. AUTOCONF
  652. ACLOCAL
  653. VERSION
  654. PACKAGE
  655. CYGPATH_W
  656. am__isrc
  657. INSTALL_DATA
  658. INSTALL_SCRIPT
  659. INSTALL_PROGRAM
  660. target_alias
  661. host_alias
  662. build_alias
  663. LIBS
  664. ECHO_T
  665. ECHO_N
  666. ECHO_C
  667. DEFS
  668. mandir
  669. localedir
  670. libdir
  671. psdir
  672. pdfdir
  673. dvidir
  674. htmldir
  675. infodir
  676. docdir
  677. oldincludedir
  678. includedir
  679. localstatedir
  680. sharedstatedir
  681. sysconfdir
  682. datadir
  683. datarootdir
  684. libexecdir
  685. sbindir
  686. bindir
  687. program_transform_name
  688. prefix
  689. exec_prefix
  690. PACKAGE_URL
  691. PACKAGE_BUGREPORT
  692. PACKAGE_STRING
  693. PACKAGE_VERSION
  694. PACKAGE_TARNAME
  695. PACKAGE_NAME
  696. PATH_SEPARATOR
  697. SHELL'
  698. ac_subst_files=''
  699. ac_user_opts='
  700. enable_option_checking
  701. enable_dependency_tracking
  702. enable_shared
  703. enable_static
  704. with_pic
  705. enable_fast_install
  706. with_gnu_ld
  707. with_sysroot
  708. enable_libtool_lock
  709. enable_silent_rules
  710. enable_debug
  711. with_boost
  712. with_boost_libdir
  713. with_boost_system
  714. with_boost_filesystem
  715. with_boost_thread
  716. with_boost_iostreams
  717. with_boost_program_options
  718. with_sdl_prefix
  719. with_sdl_exec_prefix
  720. enable_sdltest
  721. '
  722. ac_precious_vars='build_alias
  723. host_alias
  724. target_alias
  725. CXX
  726. CXXFLAGS
  727. LDFLAGS
  728. LIBS
  729. CPPFLAGS
  730. CCC
  731. CC
  732. CFLAGS
  733. CPP
  734. CXXCPP'
  735. # Initialize some variables set by options.
  736. ac_init_help=
  737. ac_init_version=false
  738. ac_unrecognized_opts=
  739. ac_unrecognized_sep=
  740. # The variables have the same names as the options, with
  741. # dashes changed to underlines.
  742. cache_file=/dev/null
  743. exec_prefix=NONE
  744. no_create=
  745. no_recursion=
  746. prefix=NONE
  747. program_prefix=NONE
  748. program_suffix=NONE
  749. program_transform_name=s,x,x,
  750. silent=
  751. site=
  752. srcdir=
  753. verbose=
  754. x_includes=NONE
  755. x_libraries=NONE
  756. # Installation directory options.
  757. # These are left unexpanded so users can "make install exec_prefix=/foo"
  758. # and all the variables that are supposed to be based on exec_prefix
  759. # by default will actually change.
  760. # Use braces instead of parens because sh, perl, etc. also accept them.
  761. # (The list follows the same order as the GNU Coding Standards.)
  762. bindir='${exec_prefix}/bin'
  763. sbindir='${exec_prefix}/sbin'
  764. libexecdir='${exec_prefix}/libexec'
  765. datarootdir='${prefix}/share'
  766. datadir='${datarootdir}'
  767. sysconfdir='${prefix}/etc'
  768. sharedstatedir='${prefix}/com'
  769. localstatedir='${prefix}/var'
  770. includedir='${prefix}/include'
  771. oldincludedir='/usr/include'
  772. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  773. infodir='${datarootdir}/info'
  774. htmldir='${docdir}'
  775. dvidir='${docdir}'
  776. pdfdir='${docdir}'
  777. psdir='${docdir}'
  778. libdir='${exec_prefix}/lib'
  779. localedir='${datarootdir}/locale'
  780. mandir='${datarootdir}/man'
  781. ac_prev=
  782. ac_dashdash=
  783. for ac_option
  784. do
  785. # If the previous option needs an argument, assign it.
  786. if test -n "$ac_prev"; then
  787. eval $ac_prev=\$ac_option
  788. ac_prev=
  789. continue
  790. fi
  791. case $ac_option in
  792. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  793. *=) ac_optarg= ;;
  794. *) ac_optarg=yes ;;
  795. esac
  796. # Accept the important Cygnus configure options, so we can diagnose typos.
  797. case $ac_dashdash$ac_option in
  798. --)
  799. ac_dashdash=yes ;;
  800. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  801. ac_prev=bindir ;;
  802. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  803. bindir=$ac_optarg ;;
  804. -build | --build | --buil | --bui | --bu)
  805. ac_prev=build_alias ;;
  806. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  807. build_alias=$ac_optarg ;;
  808. -cache-file | --cache-file | --cache-fil | --cache-fi \
  809. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  810. ac_prev=cache_file ;;
  811. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  812. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  813. cache_file=$ac_optarg ;;
  814. --config-cache | -C)
  815. cache_file=config.cache ;;
  816. -datadir | --datadir | --datadi | --datad)
  817. ac_prev=datadir ;;
  818. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  819. datadir=$ac_optarg ;;
  820. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  821. | --dataroo | --dataro | --datar)
  822. ac_prev=datarootdir ;;
  823. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  824. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  825. datarootdir=$ac_optarg ;;
  826. -disable-* | --disable-*)
  827. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  828. # Reject names that are not valid shell variable names.
  829. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  830. as_fn_error $? "invalid feature name: $ac_useropt"
  831. ac_useropt_orig=$ac_useropt
  832. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  833. case $ac_user_opts in
  834. *"
  835. "enable_$ac_useropt"
  836. "*) ;;
  837. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  838. ac_unrecognized_sep=', ';;
  839. esac
  840. eval enable_$ac_useropt=no ;;
  841. -docdir | --docdir | --docdi | --doc | --do)
  842. ac_prev=docdir ;;
  843. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  844. docdir=$ac_optarg ;;
  845. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  846. ac_prev=dvidir ;;
  847. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  848. dvidir=$ac_optarg ;;
  849. -enable-* | --enable-*)
  850. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  851. # Reject names that are not valid shell variable names.
  852. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  853. as_fn_error $? "invalid feature name: $ac_useropt"
  854. ac_useropt_orig=$ac_useropt
  855. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  856. case $ac_user_opts in
  857. *"
  858. "enable_$ac_useropt"
  859. "*) ;;
  860. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  861. ac_unrecognized_sep=', ';;
  862. esac
  863. eval enable_$ac_useropt=\$ac_optarg ;;
  864. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  865. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  866. | --exec | --exe | --ex)
  867. ac_prev=exec_prefix ;;
  868. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  869. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  870. | --exec=* | --exe=* | --ex=*)
  871. exec_prefix=$ac_optarg ;;
  872. -gas | --gas | --ga | --g)
  873. # Obsolete; use --with-gas.
  874. with_gas=yes ;;
  875. -help | --help | --hel | --he | -h)
  876. ac_init_help=long ;;
  877. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  878. ac_init_help=recursive ;;
  879. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  880. ac_init_help=short ;;
  881. -host | --host | --hos | --ho)
  882. ac_prev=host_alias ;;
  883. -host=* | --host=* | --hos=* | --ho=*)
  884. host_alias=$ac_optarg ;;
  885. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  886. ac_prev=htmldir ;;
  887. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  888. | --ht=*)
  889. htmldir=$ac_optarg ;;
  890. -includedir | --includedir | --includedi | --included | --include \
  891. | --includ | --inclu | --incl | --inc)
  892. ac_prev=includedir ;;
  893. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  894. | --includ=* | --inclu=* | --incl=* | --inc=*)
  895. includedir=$ac_optarg ;;
  896. -infodir | --infodir | --infodi | --infod | --info | --inf)
  897. ac_prev=infodir ;;
  898. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  899. infodir=$ac_optarg ;;
  900. -libdir | --libdir | --libdi | --libd)
  901. ac_prev=libdir ;;
  902. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  903. libdir=$ac_optarg ;;
  904. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  905. | --libexe | --libex | --libe)
  906. ac_prev=libexecdir ;;
  907. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  908. | --libexe=* | --libex=* | --libe=*)
  909. libexecdir=$ac_optarg ;;
  910. -localedir | --localedir | --localedi | --localed | --locale)
  911. ac_prev=localedir ;;
  912. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  913. localedir=$ac_optarg ;;
  914. -localstatedir | --localstatedir | --localstatedi | --localstated \
  915. | --localstate | --localstat | --localsta | --localst | --locals)
  916. ac_prev=localstatedir ;;
  917. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  918. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  919. localstatedir=$ac_optarg ;;
  920. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  921. ac_prev=mandir ;;
  922. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  923. mandir=$ac_optarg ;;
  924. -nfp | --nfp | --nf)
  925. # Obsolete; use --without-fp.
  926. with_fp=no ;;
  927. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  928. | --no-cr | --no-c | -n)
  929. no_create=yes ;;
  930. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  931. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  932. no_recursion=yes ;;
  933. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  934. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  935. | --oldin | --oldi | --old | --ol | --o)
  936. ac_prev=oldincludedir ;;
  937. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  938. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  939. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  940. oldincludedir=$ac_optarg ;;
  941. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  942. ac_prev=prefix ;;
  943. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  944. prefix=$ac_optarg ;;
  945. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  946. | --program-pre | --program-pr | --program-p)
  947. ac_prev=program_prefix ;;
  948. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  949. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  950. program_prefix=$ac_optarg ;;
  951. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  952. | --program-suf | --program-su | --program-s)
  953. ac_prev=program_suffix ;;
  954. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  955. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  956. program_suffix=$ac_optarg ;;
  957. -program-transform-name | --program-transform-name \
  958. | --program-transform-nam | --program-transform-na \
  959. | --program-transform-n | --program-transform- \
  960. | --program-transform | --program-transfor \
  961. | --program-transfo | --program-transf \
  962. | --program-trans | --program-tran \
  963. | --progr-tra | --program-tr | --program-t)
  964. ac_prev=program_transform_name ;;
  965. -program-transform-name=* | --program-transform-name=* \
  966. | --program-transform-nam=* | --program-transform-na=* \
  967. | --program-transform-n=* | --program-transform-=* \
  968. | --program-transform=* | --program-transfor=* \
  969. | --program-transfo=* | --program-transf=* \
  970. | --program-trans=* | --program-tran=* \
  971. | --progr-tra=* | --program-tr=* | --program-t=*)
  972. program_transform_name=$ac_optarg ;;
  973. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  974. ac_prev=pdfdir ;;
  975. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  976. pdfdir=$ac_optarg ;;
  977. -psdir | --psdir | --psdi | --psd | --ps)
  978. ac_prev=psdir ;;
  979. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  980. psdir=$ac_optarg ;;
  981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  982. | -silent | --silent | --silen | --sile | --sil)
  983. silent=yes ;;
  984. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  985. ac_prev=sbindir ;;
  986. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  987. | --sbi=* | --sb=*)
  988. sbindir=$ac_optarg ;;
  989. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  990. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  991. | --sharedst | --shareds | --shared | --share | --shar \
  992. | --sha | --sh)
  993. ac_prev=sharedstatedir ;;
  994. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  995. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  996. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  997. | --sha=* | --sh=*)
  998. sharedstatedir=$ac_optarg ;;
  999. -site | --site | --sit)
  1000. ac_prev=site ;;
  1001. -site=* | --site=* | --sit=*)
  1002. site=$ac_optarg ;;
  1003. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1004. ac_prev=srcdir ;;
  1005. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1006. srcdir=$ac_optarg ;;
  1007. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1008. | --syscon | --sysco | --sysc | --sys | --sy)
  1009. ac_prev=sysconfdir ;;
  1010. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1011. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1012. sysconfdir=$ac_optarg ;;
  1013. -target | --target | --targe | --targ | --tar | --ta | --t)
  1014. ac_prev=target_alias ;;
  1015. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1016. target_alias=$ac_optarg ;;
  1017. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1018. verbose=yes ;;
  1019. -version | --version | --versio | --versi | --vers | -V)
  1020. ac_init_version=: ;;
  1021. -with-* | --with-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid package name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "with_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval with_$ac_useropt=no ;;
  1051. --x)
  1052. # Obsolete; use --with-x.
  1053. with_x=yes ;;
  1054. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055. | --x-incl | --x-inc | --x-in | --x-i)
  1056. ac_prev=x_includes ;;
  1057. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059. x_includes=$ac_optarg ;;
  1060. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1061. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1062. ac_prev=x_libraries ;;
  1063. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1064. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1065. x_libraries=$ac_optarg ;;
  1066. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1067. Try \`$0 --help' for more information"
  1068. ;;
  1069. *=*)
  1070. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1071. # Reject names that are not valid shell variable names.
  1072. case $ac_envvar in #(
  1073. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1074. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1075. esac
  1076. eval $ac_envvar=\$ac_optarg
  1077. export $ac_envvar ;;
  1078. *)
  1079. # FIXME: should be removed in autoconf 3.0.
  1080. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1081. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1083. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1084. ;;
  1085. esac
  1086. done
  1087. if test -n "$ac_prev"; then
  1088. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1089. as_fn_error $? "missing argument to $ac_option"
  1090. fi
  1091. if test -n "$ac_unrecognized_opts"; then
  1092. case $enable_option_checking in
  1093. no) ;;
  1094. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1095. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1096. esac
  1097. fi
  1098. # Check all directory arguments for consistency.
  1099. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1100. datadir sysconfdir sharedstatedir localstatedir includedir \
  1101. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1102. libdir localedir mandir
  1103. do
  1104. eval ac_val=\$$ac_var
  1105. # Remove trailing slashes.
  1106. case $ac_val in
  1107. */ )
  1108. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1109. eval $ac_var=\$ac_val;;
  1110. esac
  1111. # Be sure to have absolute directory names.
  1112. case $ac_val in
  1113. [\\/$]* | ?:[\\/]* ) continue;;
  1114. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1115. esac
  1116. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1117. done
  1118. # There might be people who depend on the old broken behavior: `$host'
  1119. # used to hold the argument of --host etc.
  1120. # FIXME: To remove some day.
  1121. build=$build_alias
  1122. host=$host_alias
  1123. target=$target_alias
  1124. # FIXME: To remove some day.
  1125. if test "x$host_alias" != x; then
  1126. if test "x$build_alias" = x; then
  1127. cross_compiling=maybe
  1128. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1129. If a cross compiler is detected then cross compile mode will be used" >&2
  1130. elif test "x$build_alias" != "x$host_alias"; then
  1131. cross_compiling=yes
  1132. fi
  1133. fi
  1134. ac_tool_prefix=
  1135. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1136. test "$silent" = yes && exec 6>/dev/null
  1137. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1138. ac_ls_di=`ls -di .` &&
  1139. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1140. as_fn_error $? "working directory cannot be determined"
  1141. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1142. as_fn_error $? "pwd does not report name of working directory"
  1143. # Find the source files, if location was not specified.
  1144. if test -z "$srcdir"; then
  1145. ac_srcdir_defaulted=yes
  1146. # Try the directory containing this script, then the parent directory.
  1147. ac_confdir=`$as_dirname -- "$as_myself" ||
  1148. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1149. X"$as_myself" : 'X\(//\)[^/]' \| \
  1150. X"$as_myself" : 'X\(//\)$' \| \
  1151. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1152. $as_echo X"$as_myself" |
  1153. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)[^/].*/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\/\)$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\).*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. s/.*/./; q'`
  1170. srcdir=$ac_confdir
  1171. if test ! -r "$srcdir/$ac_unique_file"; then
  1172. srcdir=..
  1173. fi
  1174. else
  1175. ac_srcdir_defaulted=no
  1176. fi
  1177. if test ! -r "$srcdir/$ac_unique_file"; then
  1178. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1179. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1180. fi
  1181. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1182. ac_abs_confdir=`(
  1183. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1184. pwd)`
  1185. # When building in place, set srcdir=.
  1186. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1187. srcdir=.
  1188. fi
  1189. # Remove unnecessary trailing slashes from srcdir.
  1190. # Double slashes in file names in object file debugging info
  1191. # mess up M-x gdb in Emacs.
  1192. case $srcdir in
  1193. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1194. esac
  1195. for ac_var in $ac_precious_vars; do
  1196. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_env_${ac_var}_value=\$${ac_var}
  1198. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1200. done
  1201. #
  1202. # Report the --help message.
  1203. #
  1204. if test "$ac_init_help" = "long"; then
  1205. # Omit some internal or obsolete options to make the list less imposing.
  1206. # This message is too long to be a string in the A/UX 3.1 sh.
  1207. cat <<_ACEOF
  1208. \`configure' configures vcmi 0.89 to adapt to many kinds of systems.
  1209. Usage: $0 [OPTION]... [VAR=VALUE]...
  1210. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1211. VAR=VALUE. See below for descriptions of some of the useful variables.
  1212. Defaults for the options are specified in brackets.
  1213. Configuration:
  1214. -h, --help display this help and exit
  1215. --help=short display options specific to this package
  1216. --help=recursive display the short help of all the included packages
  1217. -V, --version display version information and exit
  1218. -q, --quiet, --silent do not print \`checking ...' messages
  1219. --cache-file=FILE cache test results in FILE [disabled]
  1220. -C, --config-cache alias for \`--cache-file=config.cache'
  1221. -n, --no-create do not create output files
  1222. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1223. Installation directories:
  1224. --prefix=PREFIX install architecture-independent files in PREFIX
  1225. [$ac_default_prefix]
  1226. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1227. [PREFIX]
  1228. By default, \`make install' will install all the files in
  1229. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1230. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1231. for instance \`--prefix=\$HOME'.
  1232. For better control, use the options below.
  1233. Fine tuning of the installation directories:
  1234. --bindir=DIR user executables [EPREFIX/bin]
  1235. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1236. --libexecdir=DIR program executables [EPREFIX/libexec]
  1237. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1238. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1239. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1240. --libdir=DIR object code libraries [EPREFIX/lib]
  1241. --includedir=DIR C header files [PREFIX/include]
  1242. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1243. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1244. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1245. --infodir=DIR info documentation [DATAROOTDIR/info]
  1246. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1247. --mandir=DIR man documentation [DATAROOTDIR/man]
  1248. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1249. --htmldir=DIR html documentation [DOCDIR]
  1250. --dvidir=DIR dvi documentation [DOCDIR]
  1251. --pdfdir=DIR pdf documentation [DOCDIR]
  1252. --psdir=DIR ps documentation [DOCDIR]
  1253. _ACEOF
  1254. cat <<\_ACEOF
  1255. Program names:
  1256. --program-prefix=PREFIX prepend PREFIX to installed program names
  1257. --program-suffix=SUFFIX append SUFFIX to installed program names
  1258. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1259. System types:
  1260. --build=BUILD configure for building on BUILD [guessed]
  1261. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1262. _ACEOF
  1263. fi
  1264. if test -n "$ac_init_help"; then
  1265. case $ac_init_help in
  1266. short | recursive ) echo "Configuration of vcmi 0.89:";;
  1267. esac
  1268. cat <<\_ACEOF
  1269. Optional Features:
  1270. --disable-option-checking ignore unrecognized --enable/--with options
  1271. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1272. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1273. --disable-dependency-tracking speeds up one-time build
  1274. --enable-dependency-tracking do not reject slow dependency extractors
  1275. --enable-shared[=PKGS] build shared libraries [default=yes]
  1276. --enable-static[=PKGS] build static libraries [default=no]
  1277. --enable-fast-install[=PKGS]
  1278. optimize for fast installation [default=yes]
  1279. --disable-libtool-lock avoid locking (might break parallel builds)
  1280. --enable-silent-rules less verbose build output (undo: `make V=1')
  1281. --disable-silent-rules verbose build output (undo: `make V=0')
  1282. --disable-debug turn off debugging (default=enable)
  1283. --disable-sdltest Do not try to compile and run a test SDL program
  1284. Optional Packages:
  1285. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1286. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1287. --with-pic try to use only PIC/non-PIC objects [default=use
  1288. both]
  1289. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1290. --with-sysroot=DIR Search for dependent libraries within DIR
  1291. (or the compiler's sysroot if not specified).
  1292. --with-boost[=ARG] use Boost library from a standard location
  1293. (ARG=yes), from the specified location (ARG=<path>),
  1294. or disable it (ARG=no) [ARG=yes]
  1295. --with-boost-libdir=LIB_DIR
  1296. Force given directory for boost libraries. Note that
  1297. this will override library path detection, so use
  1298. this parameter only if default library detection
  1299. fails and you know exactly where your boost
  1300. libraries are located.
  1301. --with-boost-system[=special-lib]
  1302. use the System library from boost - it is possible
  1303. to specify a certain library for the linker e.g.
  1304. --with-boost-system=boost_system-gcc-mt
  1305. --with-boost-filesystem[=special-lib]
  1306. use the Filesystem library from boost - it is
  1307. possible to specify a certain library for the linker
  1308. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1309. --with-boost-thread[=special-lib]
  1310. use the Thread library from boost - it is possible
  1311. to specify a certain library for the linker e.g.
  1312. --with-boost-thread=boost_thread-gcc-mt
  1313. --with-boost-iostreams[=special-lib]
  1314. use the IOStreams library from boost - it is
  1315. possible to specify a certain library for the linker
  1316. e.g.
  1317. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1318. --with-boost-program-options[=special-lib]
  1319. use the program options library from boost - it is
  1320. possible to specify a certain library for the linker
  1321. e.g.
  1322. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1323. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1324. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1325. Some influential environment variables:
  1326. CXX C++ compiler command
  1327. CXXFLAGS C++ compiler flags
  1328. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1329. nonstandard directory <lib dir>
  1330. LIBS libraries to pass to the linker, e.g. -l<library>
  1331. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1332. you have headers in a nonstandard directory <include dir>
  1333. CC C compiler command
  1334. CFLAGS C compiler flags
  1335. CPP C preprocessor
  1336. CXXCPP C++ preprocessor
  1337. Use these variables to override the choices made by `configure' or to help
  1338. it to find libraries and programs with nonstandard names/locations.
  1339. Report bugs to the package provider.
  1340. _ACEOF
  1341. ac_status=$?
  1342. fi
  1343. if test "$ac_init_help" = "recursive"; then
  1344. # If there are subdirs, report their specific --help.
  1345. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1346. test -d "$ac_dir" ||
  1347. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1348. continue
  1349. ac_builddir=.
  1350. case "$ac_dir" in
  1351. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1352. *)
  1353. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1354. # A ".." for each directory in $ac_dir_suffix.
  1355. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1356. case $ac_top_builddir_sub in
  1357. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1358. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1359. esac ;;
  1360. esac
  1361. ac_abs_top_builddir=$ac_pwd
  1362. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1363. # for backward compatibility:
  1364. ac_top_builddir=$ac_top_build_prefix
  1365. case $srcdir in
  1366. .) # We are building in place.
  1367. ac_srcdir=.
  1368. ac_top_srcdir=$ac_top_builddir_sub
  1369. ac_abs_top_srcdir=$ac_pwd ;;
  1370. [\\/]* | ?:[\\/]* ) # Absolute name.
  1371. ac_srcdir=$srcdir$ac_dir_suffix;
  1372. ac_top_srcdir=$srcdir
  1373. ac_abs_top_srcdir=$srcdir ;;
  1374. *) # Relative name.
  1375. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1376. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1377. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1378. esac
  1379. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1380. cd "$ac_dir" || { ac_status=$?; continue; }
  1381. # Check for guested configure.
  1382. if test -f "$ac_srcdir/configure.gnu"; then
  1383. echo &&
  1384. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1385. elif test -f "$ac_srcdir/configure"; then
  1386. echo &&
  1387. $SHELL "$ac_srcdir/configure" --help=recursive
  1388. else
  1389. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1390. fi || ac_status=$?
  1391. cd "$ac_pwd" || { ac_status=$?; break; }
  1392. done
  1393. fi
  1394. test -n "$ac_init_help" && exit $ac_status
  1395. if $ac_init_version; then
  1396. cat <<\_ACEOF
  1397. vcmi configure 0.89
  1398. generated by GNU Autoconf 2.68
  1399. Copyright (C) 2010 Free Software Foundation, Inc.
  1400. This configure script is free software; the Free Software Foundation
  1401. gives unlimited permission to copy, distribute and modify it.
  1402. _ACEOF
  1403. exit
  1404. fi
  1405. ## ------------------------ ##
  1406. ## Autoconf initialization. ##
  1407. ## ------------------------ ##
  1408. # ac_fn_cxx_try_compile LINENO
  1409. # ----------------------------
  1410. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1411. ac_fn_cxx_try_compile ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. rm -f conftest.$ac_objext
  1415. if { { ac_try="$ac_compile"
  1416. case "(($ac_try" in
  1417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1418. *) ac_try_echo=$ac_try;;
  1419. esac
  1420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1421. $as_echo "$ac_try_echo"; } >&5
  1422. (eval "$ac_compile") 2>conftest.err
  1423. ac_status=$?
  1424. if test -s conftest.err; then
  1425. grep -v '^ *+' conftest.err >conftest.er1
  1426. cat conftest.er1 >&5
  1427. mv -f conftest.er1 conftest.err
  1428. fi
  1429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; } && {
  1431. test -z "$ac_cxx_werror_flag" ||
  1432. test ! -s conftest.err
  1433. } && test -s conftest.$ac_objext; then :
  1434. ac_retval=0
  1435. else
  1436. $as_echo "$as_me: failed program was:" >&5
  1437. sed 's/^/| /' conftest.$ac_ext >&5
  1438. ac_retval=1
  1439. fi
  1440. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1441. as_fn_set_status $ac_retval
  1442. } # ac_fn_cxx_try_compile
  1443. # ac_fn_c_try_compile LINENO
  1444. # --------------------------
  1445. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1446. ac_fn_c_try_compile ()
  1447. {
  1448. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1449. rm -f conftest.$ac_objext
  1450. if { { ac_try="$ac_compile"
  1451. case "(($ac_try" in
  1452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1453. *) ac_try_echo=$ac_try;;
  1454. esac
  1455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1456. $as_echo "$ac_try_echo"; } >&5
  1457. (eval "$ac_compile") 2>conftest.err
  1458. ac_status=$?
  1459. if test -s conftest.err; then
  1460. grep -v '^ *+' conftest.err >conftest.er1
  1461. cat conftest.er1 >&5
  1462. mv -f conftest.er1 conftest.err
  1463. fi
  1464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1465. test $ac_status = 0; } && {
  1466. test -z "$ac_c_werror_flag" ||
  1467. test ! -s conftest.err
  1468. } && test -s conftest.$ac_objext; then :
  1469. ac_retval=0
  1470. else
  1471. $as_echo "$as_me: failed program was:" >&5
  1472. sed 's/^/| /' conftest.$ac_ext >&5
  1473. ac_retval=1
  1474. fi
  1475. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1476. as_fn_set_status $ac_retval
  1477. } # ac_fn_c_try_compile
  1478. # ac_fn_c_try_link LINENO
  1479. # -----------------------
  1480. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1481. ac_fn_c_try_link ()
  1482. {
  1483. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1484. rm -f conftest.$ac_objext conftest$ac_exeext
  1485. if { { ac_try="$ac_link"
  1486. case "(($ac_try" in
  1487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1488. *) ac_try_echo=$ac_try;;
  1489. esac
  1490. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1491. $as_echo "$ac_try_echo"; } >&5
  1492. (eval "$ac_link") 2>conftest.err
  1493. ac_status=$?
  1494. if test -s conftest.err; then
  1495. grep -v '^ *+' conftest.err >conftest.er1
  1496. cat conftest.er1 >&5
  1497. mv -f conftest.er1 conftest.err
  1498. fi
  1499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1500. test $ac_status = 0; } && {
  1501. test -z "$ac_c_werror_flag" ||
  1502. test ! -s conftest.err
  1503. } && test -s conftest$ac_exeext && {
  1504. test "$cross_compiling" = yes ||
  1505. $as_test_x conftest$ac_exeext
  1506. }; then :
  1507. ac_retval=0
  1508. else
  1509. $as_echo "$as_me: failed program was:" >&5
  1510. sed 's/^/| /' conftest.$ac_ext >&5
  1511. ac_retval=1
  1512. fi
  1513. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1514. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1515. # interfere with the next link command; also delete a directory that is
  1516. # left behind by Apple's compiler. We do this before executing the actions.
  1517. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1518. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1519. as_fn_set_status $ac_retval
  1520. } # ac_fn_c_try_link
  1521. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1522. # -------------------------------------------------------
  1523. # Tests whether HEADER exists and can be compiled using the include files in
  1524. # INCLUDES, setting the cache variable VAR accordingly.
  1525. ac_fn_c_check_header_compile ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1529. $as_echo_n "checking for $2... " >&6; }
  1530. if eval \${$3+:} false; then :
  1531. $as_echo_n "(cached) " >&6
  1532. else
  1533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1534. /* end confdefs.h. */
  1535. $4
  1536. #include <$2>
  1537. _ACEOF
  1538. if ac_fn_c_try_compile "$LINENO"; then :
  1539. eval "$3=yes"
  1540. else
  1541. eval "$3=no"
  1542. fi
  1543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1544. fi
  1545. eval ac_res=\$$3
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1547. $as_echo "$ac_res" >&6; }
  1548. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1549. } # ac_fn_c_check_header_compile
  1550. # ac_fn_c_try_cpp LINENO
  1551. # ----------------------
  1552. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_c_try_cpp ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1557. case "(($ac_try" in
  1558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1559. *) ac_try_echo=$ac_try;;
  1560. esac
  1561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1562. $as_echo "$ac_try_echo"; } >&5
  1563. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1564. ac_status=$?
  1565. if test -s conftest.err; then
  1566. grep -v '^ *+' conftest.err >conftest.er1
  1567. cat conftest.er1 >&5
  1568. mv -f conftest.er1 conftest.err
  1569. fi
  1570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1571. test $ac_status = 0; } > conftest.i && {
  1572. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1573. test ! -s conftest.err
  1574. }; then :
  1575. ac_retval=0
  1576. else
  1577. $as_echo "$as_me: failed program was:" >&5
  1578. sed 's/^/| /' conftest.$ac_ext >&5
  1579. ac_retval=1
  1580. fi
  1581. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1582. as_fn_set_status $ac_retval
  1583. } # ac_fn_c_try_cpp
  1584. # ac_fn_c_try_run LINENO
  1585. # ----------------------
  1586. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1587. # that executables *can* be run.
  1588. ac_fn_c_try_run ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. if { { ac_try="$ac_link"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_link") 2>&5
  1599. ac_status=$?
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1602. { { case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_try") 2>&5
  1609. ac_status=$?
  1610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1611. test $ac_status = 0; }; }; then :
  1612. ac_retval=0
  1613. else
  1614. $as_echo "$as_me: program exited with status $ac_status" >&5
  1615. $as_echo "$as_me: failed program was:" >&5
  1616. sed 's/^/| /' conftest.$ac_ext >&5
  1617. ac_retval=$ac_status
  1618. fi
  1619. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_run
  1623. # ac_fn_c_check_func LINENO FUNC VAR
  1624. # ----------------------------------
  1625. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1626. ac_fn_c_check_func ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1630. $as_echo_n "checking for $2... " >&6; }
  1631. if eval \${$3+:} false; then :
  1632. $as_echo_n "(cached) " >&6
  1633. else
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1638. #define $2 innocuous_$2
  1639. /* System header to define __stub macros and hopefully few prototypes,
  1640. which can conflict with char $2 (); below.
  1641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1642. <limits.h> exists even on freestanding compilers. */
  1643. #ifdef __STDC__
  1644. # include <limits.h>
  1645. #else
  1646. # include <assert.h>
  1647. #endif
  1648. #undef $2
  1649. /* Override any GCC internal prototype to avoid an error.
  1650. Use char because int might match the return type of a GCC
  1651. builtin and then its argument prototype would still apply. */
  1652. #ifdef __cplusplus
  1653. extern "C"
  1654. #endif
  1655. char $2 ();
  1656. /* The GNU C library defines this for functions which it implements
  1657. to always fail with ENOSYS. Some functions are actually named
  1658. something starting with __ and the normal name is an alias. */
  1659. #if defined __stub_$2 || defined __stub___$2
  1660. choke me
  1661. #endif
  1662. int
  1663. main ()
  1664. {
  1665. return $2 ();
  1666. ;
  1667. return 0;
  1668. }
  1669. _ACEOF
  1670. if ac_fn_c_try_link "$LINENO"; then :
  1671. eval "$3=yes"
  1672. else
  1673. eval "$3=no"
  1674. fi
  1675. rm -f core conftest.err conftest.$ac_objext \
  1676. conftest$ac_exeext conftest.$ac_ext
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682. } # ac_fn_c_check_func
  1683. # ac_fn_cxx_try_cpp LINENO
  1684. # ------------------------
  1685. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1686. ac_fn_cxx_try_cpp ()
  1687. {
  1688. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1689. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1690. case "(($ac_try" in
  1691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1692. *) ac_try_echo=$ac_try;;
  1693. esac
  1694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1695. $as_echo "$ac_try_echo"; } >&5
  1696. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1697. ac_status=$?
  1698. if test -s conftest.err; then
  1699. grep -v '^ *+' conftest.err >conftest.er1
  1700. cat conftest.er1 >&5
  1701. mv -f conftest.er1 conftest.err
  1702. fi
  1703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1704. test $ac_status = 0; } > conftest.i && {
  1705. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1706. test ! -s conftest.err
  1707. }; then :
  1708. ac_retval=0
  1709. else
  1710. $as_echo "$as_me: failed program was:" >&5
  1711. sed 's/^/| /' conftest.$ac_ext >&5
  1712. ac_retval=1
  1713. fi
  1714. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1715. as_fn_set_status $ac_retval
  1716. } # ac_fn_cxx_try_cpp
  1717. # ac_fn_cxx_try_link LINENO
  1718. # -------------------------
  1719. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1720. ac_fn_cxx_try_link ()
  1721. {
  1722. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1723. rm -f conftest.$ac_objext conftest$ac_exeext
  1724. if { { ac_try="$ac_link"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_link") 2>conftest.err
  1732. ac_status=$?
  1733. if test -s conftest.err; then
  1734. grep -v '^ *+' conftest.err >conftest.er1
  1735. cat conftest.er1 >&5
  1736. mv -f conftest.er1 conftest.err
  1737. fi
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; } && {
  1740. test -z "$ac_cxx_werror_flag" ||
  1741. test ! -s conftest.err
  1742. } && test -s conftest$ac_exeext && {
  1743. test "$cross_compiling" = yes ||
  1744. $as_test_x conftest$ac_exeext
  1745. }; then :
  1746. ac_retval=0
  1747. else
  1748. $as_echo "$as_me: failed program was:" >&5
  1749. sed 's/^/| /' conftest.$ac_ext >&5
  1750. ac_retval=1
  1751. fi
  1752. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1753. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1754. # interfere with the next link command; also delete a directory that is
  1755. # left behind by Apple's compiler. We do this before executing the actions.
  1756. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1757. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1758. as_fn_set_status $ac_retval
  1759. } # ac_fn_cxx_try_link
  1760. # ac_fn_cxx_try_run LINENO
  1761. # ------------------------
  1762. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1763. # that executables *can* be run.
  1764. ac_fn_cxx_try_run ()
  1765. {
  1766. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1767. if { { ac_try="$ac_link"
  1768. case "(($ac_try" in
  1769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1770. *) ac_try_echo=$ac_try;;
  1771. esac
  1772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1773. $as_echo "$ac_try_echo"; } >&5
  1774. (eval "$ac_link") 2>&5
  1775. ac_status=$?
  1776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1777. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1778. { { case "(($ac_try" in
  1779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1780. *) ac_try_echo=$ac_try;;
  1781. esac
  1782. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1783. $as_echo "$ac_try_echo"; } >&5
  1784. (eval "$ac_try") 2>&5
  1785. ac_status=$?
  1786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1787. test $ac_status = 0; }; }; then :
  1788. ac_retval=0
  1789. else
  1790. $as_echo "$as_me: program exited with status $ac_status" >&5
  1791. $as_echo "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=$ac_status
  1794. fi
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_cxx_try_run
  1799. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1800. # ---------------------------------------------------------
  1801. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1802. # the include files in INCLUDES and setting the cache variable VAR
  1803. # accordingly.
  1804. ac_fn_cxx_check_header_mongrel ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. if eval \${$3+:} false; then :
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1809. $as_echo_n "checking for $2... " >&6; }
  1810. if eval \${$3+:} false; then :
  1811. $as_echo_n "(cached) " >&6
  1812. fi
  1813. eval ac_res=\$$3
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1815. $as_echo "$ac_res" >&6; }
  1816. else
  1817. # Is the header compilable?
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1819. $as_echo_n "checking $2 usability... " >&6; }
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. #include <$2>
  1824. _ACEOF
  1825. if ac_fn_cxx_try_compile "$LINENO"; then :
  1826. ac_header_compiler=yes
  1827. else
  1828. ac_header_compiler=no
  1829. fi
  1830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1832. $as_echo "$ac_header_compiler" >&6; }
  1833. # Is the header present?
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1835. $as_echo_n "checking $2 presence... " >&6; }
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. #include <$2>
  1839. _ACEOF
  1840. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1841. ac_header_preproc=yes
  1842. else
  1843. ac_header_preproc=no
  1844. fi
  1845. rm -f conftest.err conftest.i conftest.$ac_ext
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1847. $as_echo "$ac_header_preproc" >&6; }
  1848. # So? What about this header?
  1849. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1850. yes:no: )
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1852. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1854. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1855. ;;
  1856. no:yes:* )
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1858. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1860. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1862. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1864. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1866. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1867. ;;
  1868. esac
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1870. $as_echo_n "checking for $2... " >&6; }
  1871. if eval \${$3+:} false; then :
  1872. $as_echo_n "(cached) " >&6
  1873. else
  1874. eval "$3=\$ac_header_compiler"
  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. fi
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. } # ac_fn_cxx_check_header_mongrel
  1882. # ac_fn_cxx_check_func LINENO FUNC VAR
  1883. # ------------------------------------
  1884. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1885. ac_fn_cxx_check_func ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. $as_echo_n "checking for $2... " >&6; }
  1890. if eval \${$3+:} false; then :
  1891. $as_echo_n "(cached) " >&6
  1892. else
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1896. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1897. #define $2 innocuous_$2
  1898. /* System header to define __stub macros and hopefully few prototypes,
  1899. which can conflict with char $2 (); below.
  1900. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1901. <limits.h> exists even on freestanding compilers. */
  1902. #ifdef __STDC__
  1903. # include <limits.h>
  1904. #else
  1905. # include <assert.h>
  1906. #endif
  1907. #undef $2
  1908. /* Override any GCC internal prototype to avoid an error.
  1909. Use char because int might match the return type of a GCC
  1910. builtin and then its argument prototype would still apply. */
  1911. #ifdef __cplusplus
  1912. extern "C"
  1913. #endif
  1914. char $2 ();
  1915. /* The GNU C library defines this for functions which it implements
  1916. to always fail with ENOSYS. Some functions are actually named
  1917. something starting with __ and the normal name is an alias. */
  1918. #if defined __stub_$2 || defined __stub___$2
  1919. choke me
  1920. #endif
  1921. int
  1922. main ()
  1923. {
  1924. return $2 ();
  1925. ;
  1926. return 0;
  1927. }
  1928. _ACEOF
  1929. if ac_fn_cxx_try_link "$LINENO"; then :
  1930. eval "$3=yes"
  1931. else
  1932. eval "$3=no"
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext \
  1935. conftest$ac_exeext conftest.$ac_ext
  1936. fi
  1937. eval ac_res=\$$3
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1939. $as_echo "$ac_res" >&6; }
  1940. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1941. } # ac_fn_cxx_check_func
  1942. cat >config.log <<_ACEOF
  1943. This file contains any messages produced by compilers while
  1944. running configure, to aid debugging if configure makes a mistake.
  1945. It was created by vcmi $as_me 0.89, which was
  1946. generated by GNU Autoconf 2.68. Invocation command line was
  1947. $ $0 $@
  1948. _ACEOF
  1949. exec 5>>config.log
  1950. {
  1951. cat <<_ASUNAME
  1952. ## --------- ##
  1953. ## Platform. ##
  1954. ## --------- ##
  1955. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1956. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1957. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1958. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1959. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1960. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1961. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1962. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1963. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1964. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1965. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1966. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1967. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1968. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1969. _ASUNAME
  1970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1971. for as_dir in $PATH
  1972. do
  1973. IFS=$as_save_IFS
  1974. test -z "$as_dir" && as_dir=.
  1975. $as_echo "PATH: $as_dir"
  1976. done
  1977. IFS=$as_save_IFS
  1978. } >&5
  1979. cat >&5 <<_ACEOF
  1980. ## ----------- ##
  1981. ## Core tests. ##
  1982. ## ----------- ##
  1983. _ACEOF
  1984. # Keep a trace of the command line.
  1985. # Strip out --no-create and --no-recursion so they do not pile up.
  1986. # Strip out --silent because we don't want to record it for future runs.
  1987. # Also quote any args containing shell meta-characters.
  1988. # Make two passes to allow for proper duplicate-argument suppression.
  1989. ac_configure_args=
  1990. ac_configure_args0=
  1991. ac_configure_args1=
  1992. ac_must_keep_next=false
  1993. for ac_pass in 1 2
  1994. do
  1995. for ac_arg
  1996. do
  1997. case $ac_arg in
  1998. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1999. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2000. | -silent | --silent | --silen | --sile | --sil)
  2001. continue ;;
  2002. *\'*)
  2003. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2004. esac
  2005. case $ac_pass in
  2006. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2007. 2)
  2008. as_fn_append ac_configure_args1 " '$ac_arg'"
  2009. if test $ac_must_keep_next = true; then
  2010. ac_must_keep_next=false # Got value, back to normal.
  2011. else
  2012. case $ac_arg in
  2013. *=* | --config-cache | -C | -disable-* | --disable-* \
  2014. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2015. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2016. | -with-* | --with-* | -without-* | --without-* | --x)
  2017. case "$ac_configure_args0 " in
  2018. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2019. esac
  2020. ;;
  2021. -* ) ac_must_keep_next=true ;;
  2022. esac
  2023. fi
  2024. as_fn_append ac_configure_args " '$ac_arg'"
  2025. ;;
  2026. esac
  2027. done
  2028. done
  2029. { ac_configure_args0=; unset ac_configure_args0;}
  2030. { ac_configure_args1=; unset ac_configure_args1;}
  2031. # When interrupted or exit'd, cleanup temporary files, and complete
  2032. # config.log. We remove comments because anyway the quotes in there
  2033. # would cause problems or look ugly.
  2034. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2035. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2036. trap 'exit_status=$?
  2037. # Save into config.log some information that might help in debugging.
  2038. {
  2039. echo
  2040. $as_echo "## ---------------- ##
  2041. ## Cache variables. ##
  2042. ## ---------------- ##"
  2043. echo
  2044. # The following way of writing the cache mishandles newlines in values,
  2045. (
  2046. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2047. eval ac_val=\$$ac_var
  2048. case $ac_val in #(
  2049. *${as_nl}*)
  2050. case $ac_var in #(
  2051. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2052. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2053. esac
  2054. case $ac_var in #(
  2055. _ | IFS | as_nl) ;; #(
  2056. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2057. *) { eval $ac_var=; unset $ac_var;} ;;
  2058. esac ;;
  2059. esac
  2060. done
  2061. (set) 2>&1 |
  2062. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2063. *${as_nl}ac_space=\ *)
  2064. sed -n \
  2065. "s/'\''/'\''\\\\'\'''\''/g;
  2066. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2067. ;; #(
  2068. *)
  2069. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2070. ;;
  2071. esac |
  2072. sort
  2073. )
  2074. echo
  2075. $as_echo "## ----------------- ##
  2076. ## Output variables. ##
  2077. ## ----------------- ##"
  2078. echo
  2079. for ac_var in $ac_subst_vars
  2080. do
  2081. eval ac_val=\$$ac_var
  2082. case $ac_val in
  2083. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2084. esac
  2085. $as_echo "$ac_var='\''$ac_val'\''"
  2086. done | sort
  2087. echo
  2088. if test -n "$ac_subst_files"; then
  2089. $as_echo "## ------------------- ##
  2090. ## File substitutions. ##
  2091. ## ------------------- ##"
  2092. echo
  2093. for ac_var in $ac_subst_files
  2094. do
  2095. eval ac_val=\$$ac_var
  2096. case $ac_val in
  2097. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2098. esac
  2099. $as_echo "$ac_var='\''$ac_val'\''"
  2100. done | sort
  2101. echo
  2102. fi
  2103. if test -s confdefs.h; then
  2104. $as_echo "## ----------- ##
  2105. ## confdefs.h. ##
  2106. ## ----------- ##"
  2107. echo
  2108. cat confdefs.h
  2109. echo
  2110. fi
  2111. test "$ac_signal" != 0 &&
  2112. $as_echo "$as_me: caught signal $ac_signal"
  2113. $as_echo "$as_me: exit $exit_status"
  2114. } >&5
  2115. rm -f core *.core core.conftest.* &&
  2116. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2117. exit $exit_status
  2118. ' 0
  2119. for ac_signal in 1 2 13 15; do
  2120. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2121. done
  2122. ac_signal=0
  2123. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2124. rm -f -r conftest* confdefs.h
  2125. $as_echo "/* confdefs.h */" > confdefs.h
  2126. # Predefined preprocessor variables.
  2127. cat >>confdefs.h <<_ACEOF
  2128. #define PACKAGE_NAME "$PACKAGE_NAME"
  2129. _ACEOF
  2130. cat >>confdefs.h <<_ACEOF
  2131. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2132. _ACEOF
  2133. cat >>confdefs.h <<_ACEOF
  2134. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2135. _ACEOF
  2136. cat >>confdefs.h <<_ACEOF
  2137. #define PACKAGE_STRING "$PACKAGE_STRING"
  2138. _ACEOF
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2141. _ACEOF
  2142. cat >>confdefs.h <<_ACEOF
  2143. #define PACKAGE_URL "$PACKAGE_URL"
  2144. _ACEOF
  2145. # Let the site file select an alternate cache file if it wants to.
  2146. # Prefer an explicitly selected file to automatically selected ones.
  2147. ac_site_file1=NONE
  2148. ac_site_file2=NONE
  2149. if test -n "$CONFIG_SITE"; then
  2150. # We do not want a PATH search for config.site.
  2151. case $CONFIG_SITE in #((
  2152. -*) ac_site_file1=./$CONFIG_SITE;;
  2153. */*) ac_site_file1=$CONFIG_SITE;;
  2154. *) ac_site_file1=./$CONFIG_SITE;;
  2155. esac
  2156. elif test "x$prefix" != xNONE; then
  2157. ac_site_file1=$prefix/share/config.site
  2158. ac_site_file2=$prefix/etc/config.site
  2159. else
  2160. ac_site_file1=$ac_default_prefix/share/config.site
  2161. ac_site_file2=$ac_default_prefix/etc/config.site
  2162. fi
  2163. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2164. do
  2165. test "x$ac_site_file" = xNONE && continue
  2166. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2168. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2169. sed 's/^/| /' "$ac_site_file" >&5
  2170. . "$ac_site_file" \
  2171. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2173. as_fn_error $? "failed to load site script $ac_site_file
  2174. See \`config.log' for more details" "$LINENO" 5; }
  2175. fi
  2176. done
  2177. if test -r "$cache_file"; then
  2178. # Some versions of bash will fail to source /dev/null (special files
  2179. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2180. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2182. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2183. case $cache_file in
  2184. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2185. *) . "./$cache_file";;
  2186. esac
  2187. fi
  2188. else
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2190. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2191. >$cache_file
  2192. fi
  2193. # Check that the precious variables saved in the cache have kept the same
  2194. # value.
  2195. ac_cache_corrupted=false
  2196. for ac_var in $ac_precious_vars; do
  2197. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2198. eval ac_new_set=\$ac_env_${ac_var}_set
  2199. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2200. eval ac_new_val=\$ac_env_${ac_var}_value
  2201. case $ac_old_set,$ac_new_set in
  2202. set,)
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2204. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2205. ac_cache_corrupted=: ;;
  2206. ,set)
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2208. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2209. ac_cache_corrupted=: ;;
  2210. ,);;
  2211. *)
  2212. if test "x$ac_old_val" != "x$ac_new_val"; then
  2213. # differences in whitespace do not lead to failure.
  2214. ac_old_val_w=`echo x $ac_old_val`
  2215. ac_new_val_w=`echo x $ac_new_val`
  2216. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2218. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2219. ac_cache_corrupted=:
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2222. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2223. eval $ac_var=\$ac_old_val
  2224. fi
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2226. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2228. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2229. fi;;
  2230. esac
  2231. # Pass precious variables to config.status.
  2232. if test "$ac_new_set" = set; then
  2233. case $ac_new_val in
  2234. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2235. *) ac_arg=$ac_var=$ac_new_val ;;
  2236. esac
  2237. case " $ac_configure_args " in
  2238. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2239. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2240. esac
  2241. fi
  2242. done
  2243. if $ac_cache_corrupted; then
  2244. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2247. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2248. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2249. fi
  2250. ## -------------------- ##
  2251. ## Main body of script. ##
  2252. ## -------------------- ##
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. # Follow VCMI_VERSION in GameConstants.h
  2259. am__api_version='1.11'
  2260. ac_aux_dir=
  2261. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2262. if test -f "$ac_dir/install-sh"; then
  2263. ac_aux_dir=$ac_dir
  2264. ac_install_sh="$ac_aux_dir/install-sh -c"
  2265. break
  2266. elif test -f "$ac_dir/install.sh"; then
  2267. ac_aux_dir=$ac_dir
  2268. ac_install_sh="$ac_aux_dir/install.sh -c"
  2269. break
  2270. elif test -f "$ac_dir/shtool"; then
  2271. ac_aux_dir=$ac_dir
  2272. ac_install_sh="$ac_aux_dir/shtool install -c"
  2273. break
  2274. fi
  2275. done
  2276. if test -z "$ac_aux_dir"; then
  2277. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2278. fi
  2279. # These three variables are undocumented and unsupported,
  2280. # and are intended to be withdrawn in a future Autoconf release.
  2281. # They can cause serious problems if a builder's source tree is in a directory
  2282. # whose full name contains unusual characters.
  2283. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2284. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2285. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2286. # Find a good install program. We prefer a C program (faster),
  2287. # so one script is as good as another. But avoid the broken or
  2288. # incompatible versions:
  2289. # SysV /etc/install, /usr/sbin/install
  2290. # SunOS /usr/etc/install
  2291. # IRIX /sbin/install
  2292. # AIX /bin/install
  2293. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2294. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2295. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2296. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2297. # OS/2's system install, which has a completely different semantic
  2298. # ./install, which can be erroneously created by make from ./install.sh.
  2299. # Reject install programs that cannot install multiple files.
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2301. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2302. if test -z "$INSTALL"; then
  2303. if ${ac_cv_path_install+:} false; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. # Account for people who put trailing slashes in PATH elements.
  2312. case $as_dir/ in #((
  2313. ./ | .// | /[cC]/* | \
  2314. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2315. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2316. /usr/ucb/* ) ;;
  2317. *)
  2318. # OSF1 and SCO ODT 3.0 have their own names for install.
  2319. # Don't use installbsd from OSF since it installs stuff as root
  2320. # by default.
  2321. for ac_prog in ginstall scoinst install; do
  2322. for ac_exec_ext in '' $ac_executable_extensions; do
  2323. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2324. if test $ac_prog = install &&
  2325. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2326. # AIX install. It has an incompatible calling convention.
  2327. :
  2328. elif test $ac_prog = install &&
  2329. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2330. # program-specific install script used by HP pwplus--don't use.
  2331. :
  2332. else
  2333. rm -rf conftest.one conftest.two conftest.dir
  2334. echo one > conftest.one
  2335. echo two > conftest.two
  2336. mkdir conftest.dir
  2337. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2338. test -s conftest.one && test -s conftest.two &&
  2339. test -s conftest.dir/conftest.one &&
  2340. test -s conftest.dir/conftest.two
  2341. then
  2342. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2343. break 3
  2344. fi
  2345. fi
  2346. fi
  2347. done
  2348. done
  2349. ;;
  2350. esac
  2351. done
  2352. IFS=$as_save_IFS
  2353. rm -rf conftest.one conftest.two conftest.dir
  2354. fi
  2355. if test "${ac_cv_path_install+set}" = set; then
  2356. INSTALL=$ac_cv_path_install
  2357. else
  2358. # As a last resort, use the slow shell script. Don't cache a
  2359. # value for INSTALL within a source directory, because that will
  2360. # break other packages using the cache if that directory is
  2361. # removed, or if the value is a relative name.
  2362. INSTALL=$ac_install_sh
  2363. fi
  2364. fi
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2366. $as_echo "$INSTALL" >&6; }
  2367. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2368. # It thinks the first close brace ends the variable substitution.
  2369. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2370. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2371. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2373. $as_echo_n "checking whether build environment is sane... " >&6; }
  2374. # Just in case
  2375. sleep 1
  2376. echo timestamp > conftest.file
  2377. # Reject unsafe characters in $srcdir or the absolute working directory
  2378. # name. Accept space and tab only in the latter.
  2379. am_lf='
  2380. '
  2381. case `pwd` in
  2382. *[\\\"\#\$\&\'\`$am_lf]*)
  2383. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2384. esac
  2385. case $srcdir in
  2386. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2387. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2388. esac
  2389. # Do `set' in a subshell so we don't clobber the current shell's
  2390. # arguments. Must try -L first in case configure is actually a
  2391. # symlink; some systems play weird games with the mod time of symlinks
  2392. # (eg FreeBSD returns the mod time of the symlink's containing
  2393. # directory).
  2394. if (
  2395. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2396. if test "$*" = "X"; then
  2397. # -L didn't work.
  2398. set X `ls -t "$srcdir/configure" conftest.file`
  2399. fi
  2400. rm -f conftest.file
  2401. if test "$*" != "X $srcdir/configure conftest.file" \
  2402. && test "$*" != "X conftest.file $srcdir/configure"; then
  2403. # If neither matched, then we have a broken ls. This can happen
  2404. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2405. # broken ls alias from the environment. This has actually
  2406. # happened. Such a system could not be considered "sane".
  2407. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2408. alias in your environment" "$LINENO" 5
  2409. fi
  2410. test "$2" = conftest.file
  2411. )
  2412. then
  2413. # Ok.
  2414. :
  2415. else
  2416. as_fn_error $? "newly created file is older than distributed files!
  2417. Check your system clock" "$LINENO" 5
  2418. fi
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2420. $as_echo "yes" >&6; }
  2421. test "$program_prefix" != NONE &&
  2422. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2423. # Use a double $ so make ignores it.
  2424. test "$program_suffix" != NONE &&
  2425. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2426. # Double any \ or $.
  2427. # By default was `s,x,x', remove it if useless.
  2428. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2429. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2430. # expand $ac_aux_dir to an absolute path
  2431. am_aux_dir=`cd $ac_aux_dir && pwd`
  2432. if test x"${MISSING+set}" != xset; then
  2433. case $am_aux_dir in
  2434. *\ * | *\ *)
  2435. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2436. *)
  2437. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2438. esac
  2439. fi
  2440. # Use eval to expand $SHELL
  2441. if eval "$MISSING --run true"; then
  2442. am_missing_run="$MISSING --run "
  2443. else
  2444. am_missing_run=
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2446. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2447. fi
  2448. if test x"${install_sh}" != xset; then
  2449. case $am_aux_dir in
  2450. *\ * | *\ *)
  2451. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2452. *)
  2453. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2454. esac
  2455. fi
  2456. # Installed binaries are usually stripped using `strip' when the user
  2457. # run `make install-strip'. However `strip' might not be the right
  2458. # tool to use in cross-compilation environments, therefore Automake
  2459. # will honor the `STRIP' environment variable to overrule this program.
  2460. if test "$cross_compiling" != no; then
  2461. if test -n "$ac_tool_prefix"; then
  2462. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2463. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2465. $as_echo_n "checking for $ac_word... " >&6; }
  2466. if ${ac_cv_prog_STRIP+:} false; then :
  2467. $as_echo_n "(cached) " >&6
  2468. else
  2469. if test -n "$STRIP"; then
  2470. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2471. else
  2472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2473. for as_dir in $PATH
  2474. do
  2475. IFS=$as_save_IFS
  2476. test -z "$as_dir" && as_dir=.
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2479. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2481. break 2
  2482. fi
  2483. done
  2484. done
  2485. IFS=$as_save_IFS
  2486. fi
  2487. fi
  2488. STRIP=$ac_cv_prog_STRIP
  2489. if test -n "$STRIP"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2491. $as_echo "$STRIP" >&6; }
  2492. else
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2494. $as_echo "no" >&6; }
  2495. fi
  2496. fi
  2497. if test -z "$ac_cv_prog_STRIP"; then
  2498. ac_ct_STRIP=$STRIP
  2499. # Extract the first word of "strip", so it can be a program name with args.
  2500. set dummy strip; ac_word=$2
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2502. $as_echo_n "checking for $ac_word... " >&6; }
  2503. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. if test -n "$ac_ct_STRIP"; then
  2507. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2508. else
  2509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2510. for as_dir in $PATH
  2511. do
  2512. IFS=$as_save_IFS
  2513. test -z "$as_dir" && as_dir=.
  2514. for ac_exec_ext in '' $ac_executable_extensions; do
  2515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2516. ac_cv_prog_ac_ct_STRIP="strip"
  2517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2518. break 2
  2519. fi
  2520. done
  2521. done
  2522. IFS=$as_save_IFS
  2523. fi
  2524. fi
  2525. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2526. if test -n "$ac_ct_STRIP"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2528. $as_echo "$ac_ct_STRIP" >&6; }
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2531. $as_echo "no" >&6; }
  2532. fi
  2533. if test "x$ac_ct_STRIP" = x; then
  2534. STRIP=":"
  2535. else
  2536. case $cross_compiling:$ac_tool_warned in
  2537. yes:)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2540. ac_tool_warned=yes ;;
  2541. esac
  2542. STRIP=$ac_ct_STRIP
  2543. fi
  2544. else
  2545. STRIP="$ac_cv_prog_STRIP"
  2546. fi
  2547. fi
  2548. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2550. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2551. if test -z "$MKDIR_P"; then
  2552. if ${ac_cv_path_mkdir+:} false; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. for ac_prog in mkdir gmkdir; do
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2563. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2564. 'mkdir (GNU coreutils) '* | \
  2565. 'mkdir (coreutils) '* | \
  2566. 'mkdir (fileutils) '4.1*)
  2567. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2568. break 3;;
  2569. esac
  2570. done
  2571. done
  2572. done
  2573. IFS=$as_save_IFS
  2574. fi
  2575. test -d ./--version && rmdir ./--version
  2576. if test "${ac_cv_path_mkdir+set}" = set; then
  2577. MKDIR_P="$ac_cv_path_mkdir -p"
  2578. else
  2579. # As a last resort, use the slow shell script. Don't cache a
  2580. # value for MKDIR_P within a source directory, because that will
  2581. # break other packages using the cache if that directory is
  2582. # removed, or if the value is a relative name.
  2583. MKDIR_P="$ac_install_sh -d"
  2584. fi
  2585. fi
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2587. $as_echo "$MKDIR_P" >&6; }
  2588. mkdir_p="$MKDIR_P"
  2589. case $mkdir_p in
  2590. [\\/$]* | ?:[\\/]*) ;;
  2591. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2592. esac
  2593. for ac_prog in gawk mawk nawk awk
  2594. do
  2595. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2596. set dummy $ac_prog; ac_word=$2
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2598. $as_echo_n "checking for $ac_word... " >&6; }
  2599. if ${ac_cv_prog_AWK+:} false; then :
  2600. $as_echo_n "(cached) " >&6
  2601. else
  2602. if test -n "$AWK"; then
  2603. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_exec_ext in '' $ac_executable_extensions; do
  2611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2612. ac_cv_prog_AWK="$ac_prog"
  2613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2614. break 2
  2615. fi
  2616. done
  2617. done
  2618. IFS=$as_save_IFS
  2619. fi
  2620. fi
  2621. AWK=$ac_cv_prog_AWK
  2622. if test -n "$AWK"; then
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2624. $as_echo "$AWK" >&6; }
  2625. else
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2627. $as_echo "no" >&6; }
  2628. fi
  2629. test -n "$AWK" && break
  2630. done
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2632. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2633. set x ${MAKE-make}
  2634. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2635. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. cat >conftest.make <<\_ACEOF
  2639. SHELL = /bin/sh
  2640. all:
  2641. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2642. _ACEOF
  2643. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2644. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2645. *@@@%%%=?*=@@@%%%*)
  2646. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2647. *)
  2648. eval ac_cv_prog_make_${ac_make}_set=no;;
  2649. esac
  2650. rm -f conftest.make
  2651. fi
  2652. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2654. $as_echo "yes" >&6; }
  2655. SET_MAKE=
  2656. else
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2658. $as_echo "no" >&6; }
  2659. SET_MAKE="MAKE=${MAKE-make}"
  2660. fi
  2661. rm -rf .tst 2>/dev/null
  2662. mkdir .tst 2>/dev/null
  2663. if test -d .tst; then
  2664. am__leading_dot=.
  2665. else
  2666. am__leading_dot=_
  2667. fi
  2668. rmdir .tst 2>/dev/null
  2669. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2670. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2671. # is not polluted with repeated "-I."
  2672. am__isrc=' -I$(srcdir)'
  2673. # test to see if srcdir already configured
  2674. if test -f $srcdir/config.status; then
  2675. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2676. fi
  2677. fi
  2678. # test whether we have cygpath
  2679. if test -z "$CYGPATH_W"; then
  2680. if (cygpath --version) >/dev/null 2>/dev/null; then
  2681. CYGPATH_W='cygpath -w'
  2682. else
  2683. CYGPATH_W=echo
  2684. fi
  2685. fi
  2686. # Define the identity of the package.
  2687. PACKAGE='vcmi'
  2688. VERSION='0.89'
  2689. cat >>confdefs.h <<_ACEOF
  2690. #define PACKAGE "$PACKAGE"
  2691. _ACEOF
  2692. cat >>confdefs.h <<_ACEOF
  2693. #define VERSION "$VERSION"
  2694. _ACEOF
  2695. # Some tools Automake needs.
  2696. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2697. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2698. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2699. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2700. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2701. # We need awk for the "check" target. The system "awk" is bad on
  2702. # some platforms.
  2703. # Always define AMTAR for backward compatibility. Yes, it's still used
  2704. # in the wild :-( We should find a proper way to deprecate it ...
  2705. AMTAR='$${TAR-tar}'
  2706. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2707. # Checks for build toolchain
  2708. ac_ext=cpp
  2709. ac_cpp='$CXXCPP $CPPFLAGS'
  2710. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2711. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2712. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2713. ac_ext=cpp
  2714. ac_cpp='$CXXCPP $CPPFLAGS'
  2715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2718. if test -z "$CXX"; then
  2719. if test -n "$CCC"; then
  2720. CXX=$CCC
  2721. else
  2722. if test -n "$ac_tool_prefix"; then
  2723. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2724. do
  2725. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2726. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2728. $as_echo_n "checking for $ac_word... " >&6; }
  2729. if ${ac_cv_prog_CXX+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. if test -n "$CXX"; then
  2733. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2734. else
  2735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2736. for as_dir in $PATH
  2737. do
  2738. IFS=$as_save_IFS
  2739. test -z "$as_dir" && as_dir=.
  2740. for ac_exec_ext in '' $ac_executable_extensions; do
  2741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2742. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2744. break 2
  2745. fi
  2746. done
  2747. done
  2748. IFS=$as_save_IFS
  2749. fi
  2750. fi
  2751. CXX=$ac_cv_prog_CXX
  2752. if test -n "$CXX"; then
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2754. $as_echo "$CXX" >&6; }
  2755. else
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. fi
  2759. test -n "$CXX" && break
  2760. done
  2761. fi
  2762. if test -z "$CXX"; then
  2763. ac_ct_CXX=$CXX
  2764. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2765. do
  2766. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2767. set dummy $ac_prog; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$ac_ct_CXX"; then
  2774. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2783. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2793. if test -n "$ac_ct_CXX"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2795. $as_echo "$ac_ct_CXX" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. test -n "$ac_ct_CXX" && break
  2801. done
  2802. if test "x$ac_ct_CXX" = x; then
  2803. CXX="g++"
  2804. else
  2805. case $cross_compiling:$ac_tool_warned in
  2806. yes:)
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2809. ac_tool_warned=yes ;;
  2810. esac
  2811. CXX=$ac_ct_CXX
  2812. fi
  2813. fi
  2814. fi
  2815. fi
  2816. # Provide some information about the compiler.
  2817. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2818. set X $ac_compile
  2819. ac_compiler=$2
  2820. for ac_option in --version -v -V -qversion; do
  2821. { { ac_try="$ac_compiler $ac_option >&5"
  2822. case "(($ac_try" in
  2823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2824. *) ac_try_echo=$ac_try;;
  2825. esac
  2826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2827. $as_echo "$ac_try_echo"; } >&5
  2828. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2829. ac_status=$?
  2830. if test -s conftest.err; then
  2831. sed '10a\
  2832. ... rest of stderr output deleted ...
  2833. 10q' conftest.err >conftest.er1
  2834. cat conftest.er1 >&5
  2835. fi
  2836. rm -f conftest.er1 conftest.err
  2837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2838. test $ac_status = 0; }
  2839. done
  2840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end confdefs.h. */
  2842. int
  2843. main ()
  2844. {
  2845. ;
  2846. return 0;
  2847. }
  2848. _ACEOF
  2849. ac_clean_files_save=$ac_clean_files
  2850. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2851. # Try to create an executable without -o first, disregard a.out.
  2852. # It will help us diagnose broken compilers, and finding out an intuition
  2853. # of exeext.
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2855. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2856. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2857. # The possible output files:
  2858. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2859. ac_rmfiles=
  2860. for ac_file in $ac_files
  2861. do
  2862. case $ac_file in
  2863. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2864. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2865. esac
  2866. done
  2867. rm -f $ac_rmfiles
  2868. if { { ac_try="$ac_link_default"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. $as_echo "$ac_try_echo"; } >&5
  2875. (eval "$ac_link_default") 2>&5
  2876. ac_status=$?
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }; then :
  2879. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2880. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2881. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2882. # so that the user can short-circuit this test for compilers unknown to
  2883. # Autoconf.
  2884. for ac_file in $ac_files ''
  2885. do
  2886. test -f "$ac_file" || continue
  2887. case $ac_file in
  2888. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2889. ;;
  2890. [ab].out )
  2891. # We found the default executable, but exeext='' is most
  2892. # certainly right.
  2893. break;;
  2894. *.* )
  2895. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2896. then :; else
  2897. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2898. fi
  2899. # We set ac_cv_exeext here because the later test for it is not
  2900. # safe: cross compilers may not add the suffix if given an `-o'
  2901. # argument, so we may need to know it at that point already.
  2902. # Even if this section looks crufty: it has the advantage of
  2903. # actually working.
  2904. break;;
  2905. * )
  2906. break;;
  2907. esac
  2908. done
  2909. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2910. else
  2911. ac_file=''
  2912. fi
  2913. if test -z "$ac_file"; then :
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2915. $as_echo "no" >&6; }
  2916. $as_echo "$as_me: failed program was:" >&5
  2917. sed 's/^/| /' conftest.$ac_ext >&5
  2918. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2920. as_fn_error 77 "C++ compiler cannot create executables
  2921. See \`config.log' for more details" "$LINENO" 5; }
  2922. else
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2924. $as_echo "yes" >&6; }
  2925. fi
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2927. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2929. $as_echo "$ac_file" >&6; }
  2930. ac_exeext=$ac_cv_exeext
  2931. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2932. ac_clean_files=$ac_clean_files_save
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2934. $as_echo_n "checking for suffix of executables... " >&6; }
  2935. if { { ac_try="$ac_link"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2941. $as_echo "$ac_try_echo"; } >&5
  2942. (eval "$ac_link") 2>&5
  2943. ac_status=$?
  2944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2945. test $ac_status = 0; }; then :
  2946. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2947. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2948. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2949. # `rm'.
  2950. for ac_file in conftest.exe conftest conftest.*; do
  2951. test -f "$ac_file" || continue
  2952. case $ac_file in
  2953. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2954. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2955. break;;
  2956. * ) break;;
  2957. esac
  2958. done
  2959. else
  2960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2962. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2963. See \`config.log' for more details" "$LINENO" 5; }
  2964. fi
  2965. rm -f conftest conftest$ac_cv_exeext
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2967. $as_echo "$ac_cv_exeext" >&6; }
  2968. rm -f conftest.$ac_ext
  2969. EXEEXT=$ac_cv_exeext
  2970. ac_exeext=$EXEEXT
  2971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2972. /* end confdefs.h. */
  2973. #include <stdio.h>
  2974. int
  2975. main ()
  2976. {
  2977. FILE *f = fopen ("conftest.out", "w");
  2978. return ferror (f) || fclose (f) != 0;
  2979. ;
  2980. return 0;
  2981. }
  2982. _ACEOF
  2983. ac_clean_files="$ac_clean_files conftest.out"
  2984. # Check that the compiler produces executables we can run. If not, either
  2985. # the compiler is broken, or we cross compile.
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2987. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2988. if test "$cross_compiling" != yes; then
  2989. { { ac_try="$ac_link"
  2990. case "(($ac_try" in
  2991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2992. *) ac_try_echo=$ac_try;;
  2993. esac
  2994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2995. $as_echo "$ac_try_echo"; } >&5
  2996. (eval "$ac_link") 2>&5
  2997. ac_status=$?
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2999. test $ac_status = 0; }
  3000. if { ac_try='./conftest$ac_cv_exeext'
  3001. { { case "(($ac_try" in
  3002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3003. *) ac_try_echo=$ac_try;;
  3004. esac
  3005. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3006. $as_echo "$ac_try_echo"; } >&5
  3007. (eval "$ac_try") 2>&5
  3008. ac_status=$?
  3009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3010. test $ac_status = 0; }; }; then
  3011. cross_compiling=no
  3012. else
  3013. if test "$cross_compiling" = maybe; then
  3014. cross_compiling=yes
  3015. else
  3016. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3018. as_fn_error $? "cannot run C++ compiled programs.
  3019. If you meant to cross compile, use \`--host'.
  3020. See \`config.log' for more details" "$LINENO" 5; }
  3021. fi
  3022. fi
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3025. $as_echo "$cross_compiling" >&6; }
  3026. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3027. ac_clean_files=$ac_clean_files_save
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3029. $as_echo_n "checking for suffix of object files... " >&6; }
  3030. if ${ac_cv_objext+:} false; then :
  3031. $as_echo_n "(cached) " >&6
  3032. else
  3033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3034. /* end confdefs.h. */
  3035. int
  3036. main ()
  3037. {
  3038. ;
  3039. return 0;
  3040. }
  3041. _ACEOF
  3042. rm -f conftest.o conftest.obj
  3043. if { { ac_try="$ac_compile"
  3044. case "(($ac_try" in
  3045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3046. *) ac_try_echo=$ac_try;;
  3047. esac
  3048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3049. $as_echo "$ac_try_echo"; } >&5
  3050. (eval "$ac_compile") 2>&5
  3051. ac_status=$?
  3052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3053. test $ac_status = 0; }; then :
  3054. for ac_file in conftest.o conftest.obj conftest.*; do
  3055. test -f "$ac_file" || continue;
  3056. case $ac_file in
  3057. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3058. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3059. break;;
  3060. esac
  3061. done
  3062. else
  3063. $as_echo "$as_me: failed program was:" >&5
  3064. sed 's/^/| /' conftest.$ac_ext >&5
  3065. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3067. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3068. See \`config.log' for more details" "$LINENO" 5; }
  3069. fi
  3070. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3071. fi
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3073. $as_echo "$ac_cv_objext" >&6; }
  3074. OBJEXT=$ac_cv_objext
  3075. ac_objext=$OBJEXT
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3077. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3078. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3079. $as_echo_n "(cached) " >&6
  3080. else
  3081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3082. /* end confdefs.h. */
  3083. int
  3084. main ()
  3085. {
  3086. #ifndef __GNUC__
  3087. choke me
  3088. #endif
  3089. ;
  3090. return 0;
  3091. }
  3092. _ACEOF
  3093. if ac_fn_cxx_try_compile "$LINENO"; then :
  3094. ac_compiler_gnu=yes
  3095. else
  3096. ac_compiler_gnu=no
  3097. fi
  3098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3099. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3100. fi
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3102. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3103. if test $ac_compiler_gnu = yes; then
  3104. GXX=yes
  3105. else
  3106. GXX=
  3107. fi
  3108. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3109. ac_save_CXXFLAGS=$CXXFLAGS
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3111. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3112. if ${ac_cv_prog_cxx_g+:} false; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3116. ac_cxx_werror_flag=yes
  3117. ac_cv_prog_cxx_g=no
  3118. CXXFLAGS="-g"
  3119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end confdefs.h. */
  3121. int
  3122. main ()
  3123. {
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. if ac_fn_cxx_try_compile "$LINENO"; then :
  3129. ac_cv_prog_cxx_g=yes
  3130. else
  3131. CXXFLAGS=""
  3132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3133. /* end confdefs.h. */
  3134. int
  3135. main ()
  3136. {
  3137. ;
  3138. return 0;
  3139. }
  3140. _ACEOF
  3141. if ac_fn_cxx_try_compile "$LINENO"; then :
  3142. else
  3143. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3144. CXXFLAGS="-g"
  3145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3146. /* end confdefs.h. */
  3147. int
  3148. main ()
  3149. {
  3150. ;
  3151. return 0;
  3152. }
  3153. _ACEOF
  3154. if ac_fn_cxx_try_compile "$LINENO"; then :
  3155. ac_cv_prog_cxx_g=yes
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. fi
  3159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3163. fi
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3165. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3166. if test "$ac_test_CXXFLAGS" = set; then
  3167. CXXFLAGS=$ac_save_CXXFLAGS
  3168. elif test $ac_cv_prog_cxx_g = yes; then
  3169. if test "$GXX" = yes; then
  3170. CXXFLAGS="-g -O2"
  3171. else
  3172. CXXFLAGS="-g"
  3173. fi
  3174. else
  3175. if test "$GXX" = yes; then
  3176. CXXFLAGS="-O2"
  3177. else
  3178. CXXFLAGS=
  3179. fi
  3180. fi
  3181. ac_ext=cpp
  3182. ac_cpp='$CXXCPP $CPPFLAGS'
  3183. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3184. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3185. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3186. DEPDIR="${am__leading_dot}deps"
  3187. ac_config_commands="$ac_config_commands depfiles"
  3188. am_make=${MAKE-make}
  3189. cat > confinc << 'END'
  3190. am__doit:
  3191. @echo this is the am__doit target
  3192. .PHONY: am__doit
  3193. END
  3194. # If we don't find an include directive, just comment out the code.
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3196. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3197. am__include="#"
  3198. am__quote=
  3199. _am_result=none
  3200. # First try GNU make style include.
  3201. echo "include confinc" > confmf
  3202. # Ignore all kinds of additional output from `make'.
  3203. case `$am_make -s -f confmf 2> /dev/null` in #(
  3204. *the\ am__doit\ target*)
  3205. am__include=include
  3206. am__quote=
  3207. _am_result=GNU
  3208. ;;
  3209. esac
  3210. # Now try BSD make style include.
  3211. if test "$am__include" = "#"; then
  3212. echo '.include "confinc"' > confmf
  3213. case `$am_make -s -f confmf 2> /dev/null` in #(
  3214. *the\ am__doit\ target*)
  3215. am__include=.include
  3216. am__quote="\""
  3217. _am_result=BSD
  3218. ;;
  3219. esac
  3220. fi
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3222. $as_echo "$_am_result" >&6; }
  3223. rm -f confinc confmf
  3224. # Check whether --enable-dependency-tracking was given.
  3225. if test "${enable_dependency_tracking+set}" = set; then :
  3226. enableval=$enable_dependency_tracking;
  3227. fi
  3228. if test "x$enable_dependency_tracking" != xno; then
  3229. am_depcomp="$ac_aux_dir/depcomp"
  3230. AMDEPBACKSLASH='\'
  3231. am__nodep='_no'
  3232. fi
  3233. if test "x$enable_dependency_tracking" != xno; then
  3234. AMDEP_TRUE=
  3235. AMDEP_FALSE='#'
  3236. else
  3237. AMDEP_TRUE='#'
  3238. AMDEP_FALSE=
  3239. fi
  3240. depcc="$CXX" am_compiler_list=
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3242. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3243. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3244. $as_echo_n "(cached) " >&6
  3245. else
  3246. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3247. # We make a subdir and do the tests there. Otherwise we can end up
  3248. # making bogus files that we don't know about and never remove. For
  3249. # instance it was reported that on HP-UX the gcc test will end up
  3250. # making a dummy file named `D' -- because `-MD' means `put the output
  3251. # in D'.
  3252. rm -rf conftest.dir
  3253. mkdir conftest.dir
  3254. # Copy depcomp to subdir because otherwise we won't find it if we're
  3255. # using a relative directory.
  3256. cp "$am_depcomp" conftest.dir
  3257. cd conftest.dir
  3258. # We will build objects and dependencies in a subdirectory because
  3259. # it helps to detect inapplicable dependency modes. For instance
  3260. # both Tru64's cc and ICC support -MD to output dependencies as a
  3261. # side effect of compilation, but ICC will put the dependencies in
  3262. # the current directory while Tru64 will put them in the object
  3263. # directory.
  3264. mkdir sub
  3265. am_cv_CXX_dependencies_compiler_type=none
  3266. if test "$am_compiler_list" = ""; then
  3267. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3268. fi
  3269. am__universal=false
  3270. case " $depcc " in #(
  3271. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3272. esac
  3273. for depmode in $am_compiler_list; do
  3274. # Setup a source with many dependencies, because some compilers
  3275. # like to wrap large dependency lists on column 80 (with \), and
  3276. # we should not choose a depcomp mode which is confused by this.
  3277. #
  3278. # We need to recreate these files for each test, as the compiler may
  3279. # overwrite some of them when testing with obscure command lines.
  3280. # This happens at least with the AIX C compiler.
  3281. : > sub/conftest.c
  3282. for i in 1 2 3 4 5 6; do
  3283. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3284. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3285. # Solaris 8's {/usr,}/bin/sh.
  3286. touch sub/conftst$i.h
  3287. done
  3288. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3289. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3290. # mode. It turns out that the SunPro C++ compiler does not properly
  3291. # handle `-M -o', and we need to detect this. Also, some Intel
  3292. # versions had trouble with output in subdirs
  3293. am__obj=sub/conftest.${OBJEXT-o}
  3294. am__minus_obj="-o $am__obj"
  3295. case $depmode in
  3296. gcc)
  3297. # This depmode causes a compiler race in universal mode.
  3298. test "$am__universal" = false || continue
  3299. ;;
  3300. nosideeffect)
  3301. # after this tag, mechanisms are not by side-effect, so they'll
  3302. # only be used when explicitly requested
  3303. if test "x$enable_dependency_tracking" = xyes; then
  3304. continue
  3305. else
  3306. break
  3307. fi
  3308. ;;
  3309. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3310. # This compiler won't grok `-c -o', but also, the minuso test has
  3311. # not run yet. These depmodes are late enough in the game, and
  3312. # so weak that their functioning should not be impacted.
  3313. am__obj=conftest.${OBJEXT-o}
  3314. am__minus_obj=
  3315. ;;
  3316. none) break ;;
  3317. esac
  3318. if depmode=$depmode \
  3319. source=sub/conftest.c object=$am__obj \
  3320. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3321. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3322. >/dev/null 2>conftest.err &&
  3323. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3324. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3325. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3326. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3327. # icc doesn't choke on unknown options, it will just issue warnings
  3328. # or remarks (even with -Werror). So we grep stderr for any message
  3329. # that says an option was ignored or not supported.
  3330. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3331. # icc: Command line warning: ignoring option '-M'; no argument required
  3332. # The diagnosis changed in icc 8.0:
  3333. # icc: Command line remark: option '-MP' not supported
  3334. if (grep 'ignoring option' conftest.err ||
  3335. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3336. am_cv_CXX_dependencies_compiler_type=$depmode
  3337. break
  3338. fi
  3339. fi
  3340. done
  3341. cd ..
  3342. rm -rf conftest.dir
  3343. else
  3344. am_cv_CXX_dependencies_compiler_type=none
  3345. fi
  3346. fi
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3348. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3349. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3350. if
  3351. test "x$enable_dependency_tracking" != xno \
  3352. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3353. am__fastdepCXX_TRUE=
  3354. am__fastdepCXX_FALSE='#'
  3355. else
  3356. am__fastdepCXX_TRUE='#'
  3357. am__fastdepCXX_FALSE=
  3358. fi
  3359. # Check whether --enable-shared was given.
  3360. if test "${enable_shared+set}" = set; then :
  3361. enableval=$enable_shared; p=${PACKAGE-default}
  3362. case $enableval in
  3363. yes) enable_shared=yes ;;
  3364. no) enable_shared=no ;;
  3365. *)
  3366. enable_shared=no
  3367. # Look at the argument we got. We use all the common list separators.
  3368. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3369. for pkg in $enableval; do
  3370. IFS="$lt_save_ifs"
  3371. if test "X$pkg" = "X$p"; then
  3372. enable_shared=yes
  3373. fi
  3374. done
  3375. IFS="$lt_save_ifs"
  3376. ;;
  3377. esac
  3378. else
  3379. enable_shared=yes
  3380. fi
  3381. # Check whether --enable-static was given.
  3382. if test "${enable_static+set}" = set; then :
  3383. enableval=$enable_static; p=${PACKAGE-default}
  3384. case $enableval in
  3385. yes) enable_static=yes ;;
  3386. no) enable_static=no ;;
  3387. *)
  3388. enable_static=no
  3389. # Look at the argument we got. We use all the common list separators.
  3390. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3391. for pkg in $enableval; do
  3392. IFS="$lt_save_ifs"
  3393. if test "X$pkg" = "X$p"; then
  3394. enable_static=yes
  3395. fi
  3396. done
  3397. IFS="$lt_save_ifs"
  3398. ;;
  3399. esac
  3400. else
  3401. enable_static=no
  3402. fi
  3403. case `pwd` in
  3404. *\ * | *\ *)
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3406. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3407. esac
  3408. macro_version='2.4.2'
  3409. macro_revision='1.3337'
  3410. ltmain="$ac_aux_dir/ltmain.sh"
  3411. # Make sure we can run config.sub.
  3412. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3413. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3415. $as_echo_n "checking build system type... " >&6; }
  3416. if ${ac_cv_build+:} false; then :
  3417. $as_echo_n "(cached) " >&6
  3418. else
  3419. ac_build_alias=$build_alias
  3420. test "x$ac_build_alias" = x &&
  3421. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3422. test "x$ac_build_alias" = x &&
  3423. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3424. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3425. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3426. fi
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3428. $as_echo "$ac_cv_build" >&6; }
  3429. case $ac_cv_build in
  3430. *-*-*) ;;
  3431. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3432. esac
  3433. build=$ac_cv_build
  3434. ac_save_IFS=$IFS; IFS='-'
  3435. set x $ac_cv_build
  3436. shift
  3437. build_cpu=$1
  3438. build_vendor=$2
  3439. shift; shift
  3440. # Remember, the first character of IFS is used to create $*,
  3441. # except with old shells:
  3442. build_os=$*
  3443. IFS=$ac_save_IFS
  3444. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3446. $as_echo_n "checking host system type... " >&6; }
  3447. if ${ac_cv_host+:} false; then :
  3448. $as_echo_n "(cached) " >&6
  3449. else
  3450. if test "x$host_alias" = x; then
  3451. ac_cv_host=$ac_cv_build
  3452. else
  3453. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3454. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3455. fi
  3456. fi
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3458. $as_echo "$ac_cv_host" >&6; }
  3459. case $ac_cv_host in
  3460. *-*-*) ;;
  3461. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3462. esac
  3463. host=$ac_cv_host
  3464. ac_save_IFS=$IFS; IFS='-'
  3465. set x $ac_cv_host
  3466. shift
  3467. host_cpu=$1
  3468. host_vendor=$2
  3469. shift; shift
  3470. # Remember, the first character of IFS is used to create $*,
  3471. # except with old shells:
  3472. host_os=$*
  3473. IFS=$ac_save_IFS
  3474. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3475. # Backslashify metacharacters that are still active within
  3476. # double-quoted strings.
  3477. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3478. # Same as above, but do not quote variable references.
  3479. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3480. # Sed substitution to delay expansion of an escaped shell variable in a
  3481. # double_quote_subst'ed string.
  3482. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3483. # Sed substitution to delay expansion of an escaped single quote.
  3484. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3485. # Sed substitution to avoid accidental globbing in evaled expressions
  3486. no_glob_subst='s/\*/\\\*/g'
  3487. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3488. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3489. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3491. $as_echo_n "checking how to print strings... " >&6; }
  3492. # Test print first, because it will be a builtin if present.
  3493. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3494. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3495. ECHO='print -r --'
  3496. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3497. ECHO='printf %s\n'
  3498. else
  3499. # Use this function as a fallback that always works.
  3500. func_fallback_echo ()
  3501. {
  3502. eval 'cat <<_LTECHO_EOF
  3503. $1
  3504. _LTECHO_EOF'
  3505. }
  3506. ECHO='func_fallback_echo'
  3507. fi
  3508. # func_echo_all arg...
  3509. # Invoke $ECHO with all args, space-separated.
  3510. func_echo_all ()
  3511. {
  3512. $ECHO ""
  3513. }
  3514. case "$ECHO" in
  3515. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3516. $as_echo "printf" >&6; } ;;
  3517. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3518. $as_echo "print -r" >&6; } ;;
  3519. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3520. $as_echo "cat" >&6; } ;;
  3521. esac
  3522. ac_ext=c
  3523. ac_cpp='$CPP $CPPFLAGS'
  3524. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3525. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3526. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3527. if test -n "$ac_tool_prefix"; then
  3528. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3529. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3531. $as_echo_n "checking for $ac_word... " >&6; }
  3532. if ${ac_cv_prog_CC+:} false; then :
  3533. $as_echo_n "(cached) " >&6
  3534. else
  3535. if test -n "$CC"; then
  3536. ac_cv_prog_CC="$CC" # Let the user override the test.
  3537. else
  3538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3539. for as_dir in $PATH
  3540. do
  3541. IFS=$as_save_IFS
  3542. test -z "$as_dir" && as_dir=.
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3545. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3547. break 2
  3548. fi
  3549. done
  3550. done
  3551. IFS=$as_save_IFS
  3552. fi
  3553. fi
  3554. CC=$ac_cv_prog_CC
  3555. if test -n "$CC"; then
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3557. $as_echo "$CC" >&6; }
  3558. else
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3560. $as_echo "no" >&6; }
  3561. fi
  3562. fi
  3563. if test -z "$ac_cv_prog_CC"; then
  3564. ac_ct_CC=$CC
  3565. # Extract the first word of "gcc", so it can be a program name with args.
  3566. set dummy gcc; ac_word=$2
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3568. $as_echo_n "checking for $ac_word... " >&6; }
  3569. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. if test -n "$ac_ct_CC"; then
  3573. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3574. else
  3575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3576. for as_dir in $PATH
  3577. do
  3578. IFS=$as_save_IFS
  3579. test -z "$as_dir" && as_dir=.
  3580. for ac_exec_ext in '' $ac_executable_extensions; do
  3581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3582. ac_cv_prog_ac_ct_CC="gcc"
  3583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3584. break 2
  3585. fi
  3586. done
  3587. done
  3588. IFS=$as_save_IFS
  3589. fi
  3590. fi
  3591. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3592. if test -n "$ac_ct_CC"; then
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3594. $as_echo "$ac_ct_CC" >&6; }
  3595. else
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3597. $as_echo "no" >&6; }
  3598. fi
  3599. if test "x$ac_ct_CC" = x; then
  3600. CC=""
  3601. else
  3602. case $cross_compiling:$ac_tool_warned in
  3603. yes:)
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3605. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3606. ac_tool_warned=yes ;;
  3607. esac
  3608. CC=$ac_ct_CC
  3609. fi
  3610. else
  3611. CC="$ac_cv_prog_CC"
  3612. fi
  3613. if test -z "$CC"; then
  3614. if test -n "$ac_tool_prefix"; then
  3615. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3616. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. $as_echo_n "checking for $ac_word... " >&6; }
  3619. if ${ac_cv_prog_CC+:} false; then :
  3620. $as_echo_n "(cached) " >&6
  3621. else
  3622. if test -n "$CC"; then
  3623. ac_cv_prog_CC="$CC" # Let the user override the test.
  3624. else
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3632. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3634. break 2
  3635. fi
  3636. done
  3637. done
  3638. IFS=$as_save_IFS
  3639. fi
  3640. fi
  3641. CC=$ac_cv_prog_CC
  3642. if test -n "$CC"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3644. $as_echo "$CC" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. fi
  3650. fi
  3651. if test -z "$CC"; then
  3652. # Extract the first word of "cc", so it can be a program name with args.
  3653. set dummy cc; ac_word=$2
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3655. $as_echo_n "checking for $ac_word... " >&6; }
  3656. if ${ac_cv_prog_CC+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if test -n "$CC"; then
  3660. ac_cv_prog_CC="$CC" # Let the user override the test.
  3661. else
  3662. ac_prog_rejected=no
  3663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3664. for as_dir in $PATH
  3665. do
  3666. IFS=$as_save_IFS
  3667. test -z "$as_dir" && as_dir=.
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3670. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3671. ac_prog_rejected=yes
  3672. continue
  3673. fi
  3674. ac_cv_prog_CC="cc"
  3675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3676. break 2
  3677. fi
  3678. done
  3679. done
  3680. IFS=$as_save_IFS
  3681. if test $ac_prog_rejected = yes; then
  3682. # We found a bogon in the path, so make sure we never use it.
  3683. set dummy $ac_cv_prog_CC
  3684. shift
  3685. if test $# != 0; then
  3686. # We chose a different compiler from the bogus one.
  3687. # However, it has the same basename, so the bogon will be chosen
  3688. # first if we set CC to just the basename; use the full file name.
  3689. shift
  3690. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3691. fi
  3692. fi
  3693. fi
  3694. fi
  3695. CC=$ac_cv_prog_CC
  3696. if test -n "$CC"; then
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3698. $as_echo "$CC" >&6; }
  3699. else
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3701. $as_echo "no" >&6; }
  3702. fi
  3703. fi
  3704. if test -z "$CC"; then
  3705. if test -n "$ac_tool_prefix"; then
  3706. for ac_prog in cl.exe
  3707. do
  3708. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3709. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3711. $as_echo_n "checking for $ac_word... " >&6; }
  3712. if ${ac_cv_prog_CC+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. if test -n "$CC"; then
  3716. ac_cv_prog_CC="$CC" # Let the user override the test.
  3717. else
  3718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3719. for as_dir in $PATH
  3720. do
  3721. IFS=$as_save_IFS
  3722. test -z "$as_dir" && as_dir=.
  3723. for ac_exec_ext in '' $ac_executable_extensions; do
  3724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3725. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3727. break 2
  3728. fi
  3729. done
  3730. done
  3731. IFS=$as_save_IFS
  3732. fi
  3733. fi
  3734. CC=$ac_cv_prog_CC
  3735. if test -n "$CC"; then
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3737. $as_echo "$CC" >&6; }
  3738. else
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3740. $as_echo "no" >&6; }
  3741. fi
  3742. test -n "$CC" && break
  3743. done
  3744. fi
  3745. if test -z "$CC"; then
  3746. ac_ct_CC=$CC
  3747. for ac_prog in cl.exe
  3748. do
  3749. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3750. set dummy $ac_prog; ac_word=$2
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3752. $as_echo_n "checking for $ac_word... " >&6; }
  3753. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. if test -n "$ac_ct_CC"; then
  3757. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3758. else
  3759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3760. for as_dir in $PATH
  3761. do
  3762. IFS=$as_save_IFS
  3763. test -z "$as_dir" && as_dir=.
  3764. for ac_exec_ext in '' $ac_executable_extensions; do
  3765. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3766. ac_cv_prog_ac_ct_CC="$ac_prog"
  3767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3768. break 2
  3769. fi
  3770. done
  3771. done
  3772. IFS=$as_save_IFS
  3773. fi
  3774. fi
  3775. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3776. if test -n "$ac_ct_CC"; then
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3778. $as_echo "$ac_ct_CC" >&6; }
  3779. else
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3781. $as_echo "no" >&6; }
  3782. fi
  3783. test -n "$ac_ct_CC" && break
  3784. done
  3785. if test "x$ac_ct_CC" = x; then
  3786. CC=""
  3787. else
  3788. case $cross_compiling:$ac_tool_warned in
  3789. yes:)
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3792. ac_tool_warned=yes ;;
  3793. esac
  3794. CC=$ac_ct_CC
  3795. fi
  3796. fi
  3797. fi
  3798. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3799. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3800. as_fn_error $? "no acceptable C compiler found in \$PATH
  3801. See \`config.log' for more details" "$LINENO" 5; }
  3802. # Provide some information about the compiler.
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3804. set X $ac_compile
  3805. ac_compiler=$2
  3806. for ac_option in --version -v -V -qversion; do
  3807. { { ac_try="$ac_compiler $ac_option >&5"
  3808. case "(($ac_try" in
  3809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3810. *) ac_try_echo=$ac_try;;
  3811. esac
  3812. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3813. $as_echo "$ac_try_echo"; } >&5
  3814. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3815. ac_status=$?
  3816. if test -s conftest.err; then
  3817. sed '10a\
  3818. ... rest of stderr output deleted ...
  3819. 10q' conftest.err >conftest.er1
  3820. cat conftest.er1 >&5
  3821. fi
  3822. rm -f conftest.er1 conftest.err
  3823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3824. test $ac_status = 0; }
  3825. done
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3827. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3828. if ${ac_cv_c_compiler_gnu+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end confdefs.h. */
  3833. int
  3834. main ()
  3835. {
  3836. #ifndef __GNUC__
  3837. choke me
  3838. #endif
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. ac_compiler_gnu=yes
  3845. else
  3846. ac_compiler_gnu=no
  3847. fi
  3848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3849. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3850. fi
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3852. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3853. if test $ac_compiler_gnu = yes; then
  3854. GCC=yes
  3855. else
  3856. GCC=
  3857. fi
  3858. ac_test_CFLAGS=${CFLAGS+set}
  3859. ac_save_CFLAGS=$CFLAGS
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3861. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3862. if ${ac_cv_prog_cc_g+:} false; then :
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. ac_save_c_werror_flag=$ac_c_werror_flag
  3866. ac_c_werror_flag=yes
  3867. ac_cv_prog_cc_g=no
  3868. CFLAGS="-g"
  3869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3870. /* end confdefs.h. */
  3871. int
  3872. main ()
  3873. {
  3874. ;
  3875. return 0;
  3876. }
  3877. _ACEOF
  3878. if ac_fn_c_try_compile "$LINENO"; then :
  3879. ac_cv_prog_cc_g=yes
  3880. else
  3881. CFLAGS=""
  3882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3883. /* end confdefs.h. */
  3884. int
  3885. main ()
  3886. {
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. if ac_fn_c_try_compile "$LINENO"; then :
  3892. else
  3893. ac_c_werror_flag=$ac_save_c_werror_flag
  3894. CFLAGS="-g"
  3895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3896. /* end confdefs.h. */
  3897. int
  3898. main ()
  3899. {
  3900. ;
  3901. return 0;
  3902. }
  3903. _ACEOF
  3904. if ac_fn_c_try_compile "$LINENO"; then :
  3905. ac_cv_prog_cc_g=yes
  3906. fi
  3907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3908. fi
  3909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3910. fi
  3911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3912. ac_c_werror_flag=$ac_save_c_werror_flag
  3913. fi
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3915. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3916. if test "$ac_test_CFLAGS" = set; then
  3917. CFLAGS=$ac_save_CFLAGS
  3918. elif test $ac_cv_prog_cc_g = yes; then
  3919. if test "$GCC" = yes; then
  3920. CFLAGS="-g -O2"
  3921. else
  3922. CFLAGS="-g"
  3923. fi
  3924. else
  3925. if test "$GCC" = yes; then
  3926. CFLAGS="-O2"
  3927. else
  3928. CFLAGS=
  3929. fi
  3930. fi
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3932. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3933. if ${ac_cv_prog_cc_c89+:} false; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. ac_cv_prog_cc_c89=no
  3937. ac_save_CC=$CC
  3938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3939. /* end confdefs.h. */
  3940. #include <stdarg.h>
  3941. #include <stdio.h>
  3942. #include <sys/types.h>
  3943. #include <sys/stat.h>
  3944. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3945. struct buf { int x; };
  3946. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3947. static char *e (p, i)
  3948. char **p;
  3949. int i;
  3950. {
  3951. return p[i];
  3952. }
  3953. static char *f (char * (*g) (char **, int), char **p, ...)
  3954. {
  3955. char *s;
  3956. va_list v;
  3957. va_start (v,p);
  3958. s = g (p, va_arg (v,int));
  3959. va_end (v);
  3960. return s;
  3961. }
  3962. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3963. function prototypes and stuff, but not '\xHH' hex character constants.
  3964. These don't provoke an error unfortunately, instead are silently treated
  3965. as 'x'. The following induces an error, until -std is added to get
  3966. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3967. array size at least. It's necessary to write '\x00'==0 to get something
  3968. that's true only with -std. */
  3969. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3970. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3971. inside strings and character constants. */
  3972. #define FOO(x) 'x'
  3973. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3974. int test (int i, double x);
  3975. struct s1 {int (*f) (int a);};
  3976. struct s2 {int (*f) (double a);};
  3977. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3978. int argc;
  3979. char **argv;
  3980. int
  3981. main ()
  3982. {
  3983. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3984. ;
  3985. return 0;
  3986. }
  3987. _ACEOF
  3988. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3989. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3990. do
  3991. CC="$ac_save_CC $ac_arg"
  3992. if ac_fn_c_try_compile "$LINENO"; then :
  3993. ac_cv_prog_cc_c89=$ac_arg
  3994. fi
  3995. rm -f core conftest.err conftest.$ac_objext
  3996. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3997. done
  3998. rm -f conftest.$ac_ext
  3999. CC=$ac_save_CC
  4000. fi
  4001. # AC_CACHE_VAL
  4002. case "x$ac_cv_prog_cc_c89" in
  4003. x)
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4005. $as_echo "none needed" >&6; } ;;
  4006. xno)
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4008. $as_echo "unsupported" >&6; } ;;
  4009. *)
  4010. CC="$CC $ac_cv_prog_cc_c89"
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4012. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4013. esac
  4014. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4015. fi
  4016. ac_ext=cpp
  4017. ac_cpp='$CXXCPP $CPPFLAGS'
  4018. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4019. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4020. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4021. depcc="$CC" am_compiler_list=
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4023. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4024. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4028. # We make a subdir and do the tests there. Otherwise we can end up
  4029. # making bogus files that we don't know about and never remove. For
  4030. # instance it was reported that on HP-UX the gcc test will end up
  4031. # making a dummy file named `D' -- because `-MD' means `put the output
  4032. # in D'.
  4033. rm -rf conftest.dir
  4034. mkdir conftest.dir
  4035. # Copy depcomp to subdir because otherwise we won't find it if we're
  4036. # using a relative directory.
  4037. cp "$am_depcomp" conftest.dir
  4038. cd conftest.dir
  4039. # We will build objects and dependencies in a subdirectory because
  4040. # it helps to detect inapplicable dependency modes. For instance
  4041. # both Tru64's cc and ICC support -MD to output dependencies as a
  4042. # side effect of compilation, but ICC will put the dependencies in
  4043. # the current directory while Tru64 will put them in the object
  4044. # directory.
  4045. mkdir sub
  4046. am_cv_CC_dependencies_compiler_type=none
  4047. if test "$am_compiler_list" = ""; then
  4048. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4049. fi
  4050. am__universal=false
  4051. case " $depcc " in #(
  4052. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4053. esac
  4054. for depmode in $am_compiler_list; do
  4055. # Setup a source with many dependencies, because some compilers
  4056. # like to wrap large dependency lists on column 80 (with \), and
  4057. # we should not choose a depcomp mode which is confused by this.
  4058. #
  4059. # We need to recreate these files for each test, as the compiler may
  4060. # overwrite some of them when testing with obscure command lines.
  4061. # This happens at least with the AIX C compiler.
  4062. : > sub/conftest.c
  4063. for i in 1 2 3 4 5 6; do
  4064. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4065. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4066. # Solaris 8's {/usr,}/bin/sh.
  4067. touch sub/conftst$i.h
  4068. done
  4069. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4070. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4071. # mode. It turns out that the SunPro C++ compiler does not properly
  4072. # handle `-M -o', and we need to detect this. Also, some Intel
  4073. # versions had trouble with output in subdirs
  4074. am__obj=sub/conftest.${OBJEXT-o}
  4075. am__minus_obj="-o $am__obj"
  4076. case $depmode in
  4077. gcc)
  4078. # This depmode causes a compiler race in universal mode.
  4079. test "$am__universal" = false || continue
  4080. ;;
  4081. nosideeffect)
  4082. # after this tag, mechanisms are not by side-effect, so they'll
  4083. # only be used when explicitly requested
  4084. if test "x$enable_dependency_tracking" = xyes; then
  4085. continue
  4086. else
  4087. break
  4088. fi
  4089. ;;
  4090. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4091. # This compiler won't grok `-c -o', but also, the minuso test has
  4092. # not run yet. These depmodes are late enough in the game, and
  4093. # so weak that their functioning should not be impacted.
  4094. am__obj=conftest.${OBJEXT-o}
  4095. am__minus_obj=
  4096. ;;
  4097. none) break ;;
  4098. esac
  4099. if depmode=$depmode \
  4100. source=sub/conftest.c object=$am__obj \
  4101. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4102. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4103. >/dev/null 2>conftest.err &&
  4104. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4105. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4106. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4107. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4108. # icc doesn't choke on unknown options, it will just issue warnings
  4109. # or remarks (even with -Werror). So we grep stderr for any message
  4110. # that says an option was ignored or not supported.
  4111. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4112. # icc: Command line warning: ignoring option '-M'; no argument required
  4113. # The diagnosis changed in icc 8.0:
  4114. # icc: Command line remark: option '-MP' not supported
  4115. if (grep 'ignoring option' conftest.err ||
  4116. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4117. am_cv_CC_dependencies_compiler_type=$depmode
  4118. break
  4119. fi
  4120. fi
  4121. done
  4122. cd ..
  4123. rm -rf conftest.dir
  4124. else
  4125. am_cv_CC_dependencies_compiler_type=none
  4126. fi
  4127. fi
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4129. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4130. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4131. if
  4132. test "x$enable_dependency_tracking" != xno \
  4133. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4134. am__fastdepCC_TRUE=
  4135. am__fastdepCC_FALSE='#'
  4136. else
  4137. am__fastdepCC_TRUE='#'
  4138. am__fastdepCC_FALSE=
  4139. fi
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4141. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4142. if ${ac_cv_path_SED+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4146. for ac_i in 1 2 3 4 5 6 7; do
  4147. ac_script="$ac_script$as_nl$ac_script"
  4148. done
  4149. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4150. { ac_script=; unset ac_script;}
  4151. if test -z "$SED"; then
  4152. ac_path_SED_found=false
  4153. # Loop through the user's path and test for each of PROGNAME-LIST
  4154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4155. for as_dir in $PATH
  4156. do
  4157. IFS=$as_save_IFS
  4158. test -z "$as_dir" && as_dir=.
  4159. for ac_prog in sed gsed; do
  4160. for ac_exec_ext in '' $ac_executable_extensions; do
  4161. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4162. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4163. # Check for GNU ac_path_SED and select it if it is found.
  4164. # Check for GNU $ac_path_SED
  4165. case `"$ac_path_SED" --version 2>&1` in
  4166. *GNU*)
  4167. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4168. *)
  4169. ac_count=0
  4170. $as_echo_n 0123456789 >"conftest.in"
  4171. while :
  4172. do
  4173. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4174. mv "conftest.tmp" "conftest.in"
  4175. cp "conftest.in" "conftest.nl"
  4176. $as_echo '' >> "conftest.nl"
  4177. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4178. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4179. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4180. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4181. # Best one so far, save it but keep looking for a better one
  4182. ac_cv_path_SED="$ac_path_SED"
  4183. ac_path_SED_max=$ac_count
  4184. fi
  4185. # 10*(2^10) chars as input seems more than enough
  4186. test $ac_count -gt 10 && break
  4187. done
  4188. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4189. esac
  4190. $ac_path_SED_found && break 3
  4191. done
  4192. done
  4193. done
  4194. IFS=$as_save_IFS
  4195. if test -z "$ac_cv_path_SED"; then
  4196. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4197. fi
  4198. else
  4199. ac_cv_path_SED=$SED
  4200. fi
  4201. fi
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4203. $as_echo "$ac_cv_path_SED" >&6; }
  4204. SED="$ac_cv_path_SED"
  4205. rm -f conftest.sed
  4206. test -z "$SED" && SED=sed
  4207. Xsed="$SED -e 1s/^X//"
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4209. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4210. if ${ac_cv_path_GREP+:} false; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -z "$GREP"; then
  4214. ac_path_GREP_found=false
  4215. # Loop through the user's path and test for each of PROGNAME-LIST
  4216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4218. do
  4219. IFS=$as_save_IFS
  4220. test -z "$as_dir" && as_dir=.
  4221. for ac_prog in grep ggrep; do
  4222. for ac_exec_ext in '' $ac_executable_extensions; do
  4223. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4224. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4225. # Check for GNU ac_path_GREP and select it if it is found.
  4226. # Check for GNU $ac_path_GREP
  4227. case `"$ac_path_GREP" --version 2>&1` in
  4228. *GNU*)
  4229. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4230. *)
  4231. ac_count=0
  4232. $as_echo_n 0123456789 >"conftest.in"
  4233. while :
  4234. do
  4235. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4236. mv "conftest.tmp" "conftest.in"
  4237. cp "conftest.in" "conftest.nl"
  4238. $as_echo 'GREP' >> "conftest.nl"
  4239. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4240. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4241. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4242. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4243. # Best one so far, save it but keep looking for a better one
  4244. ac_cv_path_GREP="$ac_path_GREP"
  4245. ac_path_GREP_max=$ac_count
  4246. fi
  4247. # 10*(2^10) chars as input seems more than enough
  4248. test $ac_count -gt 10 && break
  4249. done
  4250. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4251. esac
  4252. $ac_path_GREP_found && break 3
  4253. done
  4254. done
  4255. done
  4256. IFS=$as_save_IFS
  4257. if test -z "$ac_cv_path_GREP"; then
  4258. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4259. fi
  4260. else
  4261. ac_cv_path_GREP=$GREP
  4262. fi
  4263. fi
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4265. $as_echo "$ac_cv_path_GREP" >&6; }
  4266. GREP="$ac_cv_path_GREP"
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4268. $as_echo_n "checking for egrep... " >&6; }
  4269. if ${ac_cv_path_EGREP+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4273. then ac_cv_path_EGREP="$GREP -E"
  4274. else
  4275. if test -z "$EGREP"; then
  4276. ac_path_EGREP_found=false
  4277. # Loop through the user's path and test for each of PROGNAME-LIST
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_prog in egrep; do
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4286. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4287. # Check for GNU ac_path_EGREP and select it if it is found.
  4288. # Check for GNU $ac_path_EGREP
  4289. case `"$ac_path_EGREP" --version 2>&1` in
  4290. *GNU*)
  4291. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4292. *)
  4293. ac_count=0
  4294. $as_echo_n 0123456789 >"conftest.in"
  4295. while :
  4296. do
  4297. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4298. mv "conftest.tmp" "conftest.in"
  4299. cp "conftest.in" "conftest.nl"
  4300. $as_echo 'EGREP' >> "conftest.nl"
  4301. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4302. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4303. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4304. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4305. # Best one so far, save it but keep looking for a better one
  4306. ac_cv_path_EGREP="$ac_path_EGREP"
  4307. ac_path_EGREP_max=$ac_count
  4308. fi
  4309. # 10*(2^10) chars as input seems more than enough
  4310. test $ac_count -gt 10 && break
  4311. done
  4312. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4313. esac
  4314. $ac_path_EGREP_found && break 3
  4315. done
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. if test -z "$ac_cv_path_EGREP"; then
  4320. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4321. fi
  4322. else
  4323. ac_cv_path_EGREP=$EGREP
  4324. fi
  4325. fi
  4326. fi
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4328. $as_echo "$ac_cv_path_EGREP" >&6; }
  4329. EGREP="$ac_cv_path_EGREP"
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4331. $as_echo_n "checking for fgrep... " >&6; }
  4332. if ${ac_cv_path_FGREP+:} false; then :
  4333. $as_echo_n "(cached) " >&6
  4334. else
  4335. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4336. then ac_cv_path_FGREP="$GREP -F"
  4337. else
  4338. if test -z "$FGREP"; then
  4339. ac_path_FGREP_found=false
  4340. # Loop through the user's path and test for each of PROGNAME-LIST
  4341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4342. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4343. do
  4344. IFS=$as_save_IFS
  4345. test -z "$as_dir" && as_dir=.
  4346. for ac_prog in fgrep; do
  4347. for ac_exec_ext in '' $ac_executable_extensions; do
  4348. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4349. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4350. # Check for GNU ac_path_FGREP and select it if it is found.
  4351. # Check for GNU $ac_path_FGREP
  4352. case `"$ac_path_FGREP" --version 2>&1` in
  4353. *GNU*)
  4354. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4355. *)
  4356. ac_count=0
  4357. $as_echo_n 0123456789 >"conftest.in"
  4358. while :
  4359. do
  4360. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4361. mv "conftest.tmp" "conftest.in"
  4362. cp "conftest.in" "conftest.nl"
  4363. $as_echo 'FGREP' >> "conftest.nl"
  4364. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4365. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4366. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4367. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4368. # Best one so far, save it but keep looking for a better one
  4369. ac_cv_path_FGREP="$ac_path_FGREP"
  4370. ac_path_FGREP_max=$ac_count
  4371. fi
  4372. # 10*(2^10) chars as input seems more than enough
  4373. test $ac_count -gt 10 && break
  4374. done
  4375. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4376. esac
  4377. $ac_path_FGREP_found && break 3
  4378. done
  4379. done
  4380. done
  4381. IFS=$as_save_IFS
  4382. if test -z "$ac_cv_path_FGREP"; then
  4383. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4384. fi
  4385. else
  4386. ac_cv_path_FGREP=$FGREP
  4387. fi
  4388. fi
  4389. fi
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4391. $as_echo "$ac_cv_path_FGREP" >&6; }
  4392. FGREP="$ac_cv_path_FGREP"
  4393. test -z "$GREP" && GREP=grep
  4394. # Check whether --with-gnu-ld was given.
  4395. if test "${with_gnu_ld+set}" = set; then :
  4396. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4397. else
  4398. with_gnu_ld=no
  4399. fi
  4400. ac_prog=ld
  4401. if test "$GCC" = yes; then
  4402. # Check if gcc -print-prog-name=ld gives a path.
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4404. $as_echo_n "checking for ld used by $CC... " >&6; }
  4405. case $host in
  4406. *-*-mingw*)
  4407. # gcc leaves a trailing carriage return which upsets mingw
  4408. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4409. *)
  4410. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4411. esac
  4412. case $ac_prog in
  4413. # Accept absolute paths.
  4414. [\\/]* | ?:[\\/]*)
  4415. re_direlt='/[^/][^/]*/\.\./'
  4416. # Canonicalize the pathname of ld
  4417. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4418. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4419. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4420. done
  4421. test -z "$LD" && LD="$ac_prog"
  4422. ;;
  4423. "")
  4424. # If it fails, then pretend we aren't using GCC.
  4425. ac_prog=ld
  4426. ;;
  4427. *)
  4428. # If it is relative, then search for the first ld in PATH.
  4429. with_gnu_ld=unknown
  4430. ;;
  4431. esac
  4432. elif test "$with_gnu_ld" = yes; then
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4434. $as_echo_n "checking for GNU ld... " >&6; }
  4435. else
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4437. $as_echo_n "checking for non-GNU ld... " >&6; }
  4438. fi
  4439. if ${lt_cv_path_LD+:} false; then :
  4440. $as_echo_n "(cached) " >&6
  4441. else
  4442. if test -z "$LD"; then
  4443. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4444. for ac_dir in $PATH; do
  4445. IFS="$lt_save_ifs"
  4446. test -z "$ac_dir" && ac_dir=.
  4447. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4448. lt_cv_path_LD="$ac_dir/$ac_prog"
  4449. # Check to see if the program is GNU ld. I'd rather use --version,
  4450. # but apparently some variants of GNU ld only accept -v.
  4451. # Break only if it was the GNU/non-GNU ld that we prefer.
  4452. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4453. *GNU* | *'with BFD'*)
  4454. test "$with_gnu_ld" != no && break
  4455. ;;
  4456. *)
  4457. test "$with_gnu_ld" != yes && break
  4458. ;;
  4459. esac
  4460. fi
  4461. done
  4462. IFS="$lt_save_ifs"
  4463. else
  4464. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4465. fi
  4466. fi
  4467. LD="$lt_cv_path_LD"
  4468. if test -n "$LD"; then
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4470. $as_echo "$LD" >&6; }
  4471. else
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4477. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4478. if ${lt_cv_prog_gnu_ld+:} false; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4482. case `$LD -v 2>&1 </dev/null` in
  4483. *GNU* | *'with BFD'*)
  4484. lt_cv_prog_gnu_ld=yes
  4485. ;;
  4486. *)
  4487. lt_cv_prog_gnu_ld=no
  4488. ;;
  4489. esac
  4490. fi
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4492. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4493. with_gnu_ld=$lt_cv_prog_gnu_ld
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4495. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4496. if ${lt_cv_path_NM+:} false; then :
  4497. $as_echo_n "(cached) " >&6
  4498. else
  4499. if test -n "$NM"; then
  4500. # Let the user override the test.
  4501. lt_cv_path_NM="$NM"
  4502. else
  4503. lt_nm_to_check="${ac_tool_prefix}nm"
  4504. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4505. lt_nm_to_check="$lt_nm_to_check nm"
  4506. fi
  4507. for lt_tmp_nm in $lt_nm_to_check; do
  4508. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4509. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4510. IFS="$lt_save_ifs"
  4511. test -z "$ac_dir" && ac_dir=.
  4512. tmp_nm="$ac_dir/$lt_tmp_nm"
  4513. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4514. # Check to see if the nm accepts a BSD-compat flag.
  4515. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4516. # nm: unknown option "B" ignored
  4517. # Tru64's nm complains that /dev/null is an invalid object file
  4518. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4519. */dev/null* | *'Invalid file or object type'*)
  4520. lt_cv_path_NM="$tmp_nm -B"
  4521. break
  4522. ;;
  4523. *)
  4524. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4525. */dev/null*)
  4526. lt_cv_path_NM="$tmp_nm -p"
  4527. break
  4528. ;;
  4529. *)
  4530. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4531. continue # so that we can try to find one that supports BSD flags
  4532. ;;
  4533. esac
  4534. ;;
  4535. esac
  4536. fi
  4537. done
  4538. IFS="$lt_save_ifs"
  4539. done
  4540. : ${lt_cv_path_NM=no}
  4541. fi
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4544. $as_echo "$lt_cv_path_NM" >&6; }
  4545. if test "$lt_cv_path_NM" != "no"; then
  4546. NM="$lt_cv_path_NM"
  4547. else
  4548. # Didn't find any BSD compatible name lister, look for dumpbin.
  4549. if test -n "$DUMPBIN"; then :
  4550. # Let the user override the test.
  4551. else
  4552. if test -n "$ac_tool_prefix"; then
  4553. for ac_prog in dumpbin "link -dump"
  4554. do
  4555. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4556. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4558. $as_echo_n "checking for $ac_word... " >&6; }
  4559. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. if test -n "$DUMPBIN"; then
  4563. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4564. else
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_exec_ext in '' $ac_executable_extensions; do
  4571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4572. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4574. break 2
  4575. fi
  4576. done
  4577. done
  4578. IFS=$as_save_IFS
  4579. fi
  4580. fi
  4581. DUMPBIN=$ac_cv_prog_DUMPBIN
  4582. if test -n "$DUMPBIN"; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4584. $as_echo "$DUMPBIN" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. test -n "$DUMPBIN" && break
  4590. done
  4591. fi
  4592. if test -z "$DUMPBIN"; then
  4593. ac_ct_DUMPBIN=$DUMPBIN
  4594. for ac_prog in dumpbin "link -dump"
  4595. do
  4596. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4597. set dummy $ac_prog; ac_word=$2
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4599. $as_echo_n "checking for $ac_word... " >&6; }
  4600. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. if test -n "$ac_ct_DUMPBIN"; then
  4604. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4605. else
  4606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4607. for as_dir in $PATH
  4608. do
  4609. IFS=$as_save_IFS
  4610. test -z "$as_dir" && as_dir=.
  4611. for ac_exec_ext in '' $ac_executable_extensions; do
  4612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4613. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4615. break 2
  4616. fi
  4617. done
  4618. done
  4619. IFS=$as_save_IFS
  4620. fi
  4621. fi
  4622. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4623. if test -n "$ac_ct_DUMPBIN"; then
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4625. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4626. else
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4628. $as_echo "no" >&6; }
  4629. fi
  4630. test -n "$ac_ct_DUMPBIN" && break
  4631. done
  4632. if test "x$ac_ct_DUMPBIN" = x; then
  4633. DUMPBIN=":"
  4634. else
  4635. case $cross_compiling:$ac_tool_warned in
  4636. yes:)
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4639. ac_tool_warned=yes ;;
  4640. esac
  4641. DUMPBIN=$ac_ct_DUMPBIN
  4642. fi
  4643. fi
  4644. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4645. *COFF*)
  4646. DUMPBIN="$DUMPBIN -symbols"
  4647. ;;
  4648. *)
  4649. DUMPBIN=:
  4650. ;;
  4651. esac
  4652. fi
  4653. if test "$DUMPBIN" != ":"; then
  4654. NM="$DUMPBIN"
  4655. fi
  4656. fi
  4657. test -z "$NM" && NM=nm
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4659. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4660. if ${lt_cv_nm_interface+:} false; then :
  4661. $as_echo_n "(cached) " >&6
  4662. else
  4663. lt_cv_nm_interface="BSD nm"
  4664. echo "int some_variable = 0;" > conftest.$ac_ext
  4665. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4666. (eval "$ac_compile" 2>conftest.err)
  4667. cat conftest.err >&5
  4668. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4669. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4670. cat conftest.err >&5
  4671. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4672. cat conftest.out >&5
  4673. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4674. lt_cv_nm_interface="MS dumpbin"
  4675. fi
  4676. rm -f conftest*
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4679. $as_echo "$lt_cv_nm_interface" >&6; }
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4681. $as_echo_n "checking whether ln -s works... " >&6; }
  4682. LN_S=$as_ln_s
  4683. if test "$LN_S" = "ln -s"; then
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4685. $as_echo "yes" >&6; }
  4686. else
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4688. $as_echo "no, using $LN_S" >&6; }
  4689. fi
  4690. # find the maximum length of command line arguments
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4692. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4693. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. i=0
  4697. teststring="ABCD"
  4698. case $build_os in
  4699. msdosdjgpp*)
  4700. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4701. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4702. # during glob expansion). Even if it were fixed, the result of this
  4703. # check would be larger than it should be.
  4704. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4705. ;;
  4706. gnu*)
  4707. # Under GNU Hurd, this test is not required because there is
  4708. # no limit to the length of command line arguments.
  4709. # Libtool will interpret -1 as no limit whatsoever
  4710. lt_cv_sys_max_cmd_len=-1;
  4711. ;;
  4712. cygwin* | mingw* | cegcc*)
  4713. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4714. # about 5 minutes as the teststring grows exponentially.
  4715. # Worse, since 9x/ME are not pre-emptively multitasking,
  4716. # you end up with a "frozen" computer, even though with patience
  4717. # the test eventually succeeds (with a max line length of 256k).
  4718. # Instead, let's just punt: use the minimum linelength reported by
  4719. # all of the supported platforms: 8192 (on NT/2K/XP).
  4720. lt_cv_sys_max_cmd_len=8192;
  4721. ;;
  4722. mint*)
  4723. # On MiNT this can take a long time and run out of memory.
  4724. lt_cv_sys_max_cmd_len=8192;
  4725. ;;
  4726. amigaos*)
  4727. # On AmigaOS with pdksh, this test takes hours, literally.
  4728. # So we just punt and use a minimum line length of 8192.
  4729. lt_cv_sys_max_cmd_len=8192;
  4730. ;;
  4731. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4732. # This has been around since 386BSD, at least. Likely further.
  4733. if test -x /sbin/sysctl; then
  4734. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4735. elif test -x /usr/sbin/sysctl; then
  4736. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4737. else
  4738. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4739. fi
  4740. # And add a safety zone
  4741. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4742. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4743. ;;
  4744. interix*)
  4745. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4746. lt_cv_sys_max_cmd_len=196608
  4747. ;;
  4748. osf*)
  4749. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4750. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4751. # nice to cause kernel panics so lets avoid the loop below.
  4752. # First set a reasonable default.
  4753. lt_cv_sys_max_cmd_len=16384
  4754. #
  4755. if test -x /sbin/sysconfig; then
  4756. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4757. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4758. esac
  4759. fi
  4760. ;;
  4761. sco3.2v5*)
  4762. lt_cv_sys_max_cmd_len=102400
  4763. ;;
  4764. sysv5* | sco5v6* | sysv4.2uw2*)
  4765. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4766. if test -n "$kargmax"; then
  4767. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4768. else
  4769. lt_cv_sys_max_cmd_len=32768
  4770. fi
  4771. ;;
  4772. *)
  4773. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4774. if test -n "$lt_cv_sys_max_cmd_len"; then
  4775. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4776. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4777. else
  4778. # Make teststring a little bigger before we do anything with it.
  4779. # a 1K string should be a reasonable start.
  4780. for i in 1 2 3 4 5 6 7 8 ; do
  4781. teststring=$teststring$teststring
  4782. done
  4783. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4784. # If test is not a shell built-in, we'll probably end up computing a
  4785. # maximum length that is only half of the actual maximum length, but
  4786. # we can't tell.
  4787. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4788. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4789. test $i != 17 # 1/2 MB should be enough
  4790. do
  4791. i=`expr $i + 1`
  4792. teststring=$teststring$teststring
  4793. done
  4794. # Only check the string length outside the loop.
  4795. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4796. teststring=
  4797. # Add a significant safety factor because C++ compilers can tack on
  4798. # massive amounts of additional arguments before passing them to the
  4799. # linker. It appears as though 1/2 is a usable value.
  4800. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4801. fi
  4802. ;;
  4803. esac
  4804. fi
  4805. if test -n $lt_cv_sys_max_cmd_len ; then
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4807. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4808. else
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4810. $as_echo "none" >&6; }
  4811. fi
  4812. max_cmd_len=$lt_cv_sys_max_cmd_len
  4813. : ${CP="cp -f"}
  4814. : ${MV="mv -f"}
  4815. : ${RM="rm -f"}
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4817. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4818. # Try some XSI features
  4819. xsi_shell=no
  4820. ( _lt_dummy="a/b/c"
  4821. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4822. = c,a/b,b/c, \
  4823. && eval 'test $(( 1 + 1 )) -eq 2 \
  4824. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4825. && xsi_shell=yes
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4827. $as_echo "$xsi_shell" >&6; }
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4829. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4830. lt_shell_append=no
  4831. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4832. >/dev/null 2>&1 \
  4833. && lt_shell_append=yes
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4835. $as_echo "$lt_shell_append" >&6; }
  4836. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4837. lt_unset=unset
  4838. else
  4839. lt_unset=false
  4840. fi
  4841. # test EBCDIC or ASCII
  4842. case `echo X|tr X '\101'` in
  4843. A) # ASCII based system
  4844. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4845. lt_SP2NL='tr \040 \012'
  4846. lt_NL2SP='tr \015\012 \040\040'
  4847. ;;
  4848. *) # EBCDIC based system
  4849. lt_SP2NL='tr \100 \n'
  4850. lt_NL2SP='tr \r\n \100\100'
  4851. ;;
  4852. esac
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4854. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4855. if ${lt_cv_to_host_file_cmd+:} false; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. case $host in
  4859. *-*-mingw* )
  4860. case $build in
  4861. *-*-mingw* ) # actually msys
  4862. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4863. ;;
  4864. *-*-cygwin* )
  4865. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4866. ;;
  4867. * ) # otherwise, assume *nix
  4868. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4869. ;;
  4870. esac
  4871. ;;
  4872. *-*-cygwin* )
  4873. case $build in
  4874. *-*-mingw* ) # actually msys
  4875. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4876. ;;
  4877. *-*-cygwin* )
  4878. lt_cv_to_host_file_cmd=func_convert_file_noop
  4879. ;;
  4880. * ) # otherwise, assume *nix
  4881. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4882. ;;
  4883. esac
  4884. ;;
  4885. * ) # unhandled hosts (and "normal" native builds)
  4886. lt_cv_to_host_file_cmd=func_convert_file_noop
  4887. ;;
  4888. esac
  4889. fi
  4890. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4892. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4894. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4895. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. #assume ordinary cross tools, or native build.
  4899. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4900. case $host in
  4901. *-*-mingw* )
  4902. case $build in
  4903. *-*-mingw* ) # actually msys
  4904. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4905. ;;
  4906. esac
  4907. ;;
  4908. esac
  4909. fi
  4910. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4912. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4914. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4915. if ${lt_cv_ld_reload_flag+:} false; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. lt_cv_ld_reload_flag='-r'
  4919. fi
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4921. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4922. reload_flag=$lt_cv_ld_reload_flag
  4923. case $reload_flag in
  4924. "" | " "*) ;;
  4925. *) reload_flag=" $reload_flag" ;;
  4926. esac
  4927. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4928. case $host_os in
  4929. cygwin* | mingw* | pw32* | cegcc*)
  4930. if test "$GCC" != yes; then
  4931. reload_cmds=false
  4932. fi
  4933. ;;
  4934. darwin*)
  4935. if test "$GCC" = yes; then
  4936. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4937. else
  4938. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4939. fi
  4940. ;;
  4941. esac
  4942. if test -n "$ac_tool_prefix"; then
  4943. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4944. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4946. $as_echo_n "checking for $ac_word... " >&6; }
  4947. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. if test -n "$OBJDUMP"; then
  4951. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4960. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. fi
  4968. fi
  4969. OBJDUMP=$ac_cv_prog_OBJDUMP
  4970. if test -n "$OBJDUMP"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4972. $as_echo "$OBJDUMP" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. fi
  4978. if test -z "$ac_cv_prog_OBJDUMP"; then
  4979. ac_ct_OBJDUMP=$OBJDUMP
  4980. # Extract the first word of "objdump", so it can be a program name with args.
  4981. set dummy objdump; ac_word=$2
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4983. $as_echo_n "checking for $ac_word... " >&6; }
  4984. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. if test -n "$ac_ct_OBJDUMP"; then
  4988. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4989. else
  4990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4991. for as_dir in $PATH
  4992. do
  4993. IFS=$as_save_IFS
  4994. test -z "$as_dir" && as_dir=.
  4995. for ac_exec_ext in '' $ac_executable_extensions; do
  4996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4997. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4999. break 2
  5000. fi
  5001. done
  5002. done
  5003. IFS=$as_save_IFS
  5004. fi
  5005. fi
  5006. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5007. if test -n "$ac_ct_OBJDUMP"; then
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5009. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5010. else
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5012. $as_echo "no" >&6; }
  5013. fi
  5014. if test "x$ac_ct_OBJDUMP" = x; then
  5015. OBJDUMP="false"
  5016. else
  5017. case $cross_compiling:$ac_tool_warned in
  5018. yes:)
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5020. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5021. ac_tool_warned=yes ;;
  5022. esac
  5023. OBJDUMP=$ac_ct_OBJDUMP
  5024. fi
  5025. else
  5026. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5027. fi
  5028. test -z "$OBJDUMP" && OBJDUMP=objdump
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5030. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5031. if ${lt_cv_deplibs_check_method+:} false; then :
  5032. $as_echo_n "(cached) " >&6
  5033. else
  5034. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5035. lt_cv_file_magic_test_file=
  5036. lt_cv_deplibs_check_method='unknown'
  5037. # Need to set the preceding variable on all platforms that support
  5038. # interlibrary dependencies.
  5039. # 'none' -- dependencies not supported.
  5040. # `unknown' -- same as none, but documents that we really don't know.
  5041. # 'pass_all' -- all dependencies passed with no checks.
  5042. # 'test_compile' -- check by making test program.
  5043. # 'file_magic [[regex]]' -- check by looking for files in library path
  5044. # which responds to the $file_magic_cmd with a given extended regex.
  5045. # If you have `file' or equivalent on your system and you're not sure
  5046. # whether `pass_all' will *always* work, you probably want this one.
  5047. case $host_os in
  5048. aix[4-9]*)
  5049. lt_cv_deplibs_check_method=pass_all
  5050. ;;
  5051. beos*)
  5052. lt_cv_deplibs_check_method=pass_all
  5053. ;;
  5054. bsdi[45]*)
  5055. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5056. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5057. lt_cv_file_magic_test_file=/shlib/libc.so
  5058. ;;
  5059. cygwin*)
  5060. # func_win32_libid is a shell function defined in ltmain.sh
  5061. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5062. lt_cv_file_magic_cmd='func_win32_libid'
  5063. ;;
  5064. mingw* | pw32*)
  5065. # Base MSYS/MinGW do not provide the 'file' command needed by
  5066. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5067. # unless we find 'file', for example because we are cross-compiling.
  5068. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5069. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5070. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5071. lt_cv_file_magic_cmd='func_win32_libid'
  5072. else
  5073. # Keep this pattern in sync with the one in func_win32_libid.
  5074. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5075. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5076. fi
  5077. ;;
  5078. cegcc*)
  5079. # use the weaker test based on 'objdump'. See mingw*.
  5080. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5081. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5082. ;;
  5083. darwin* | rhapsody*)
  5084. lt_cv_deplibs_check_method=pass_all
  5085. ;;
  5086. freebsd* | dragonfly*)
  5087. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5088. case $host_cpu in
  5089. i*86 )
  5090. # Not sure whether the presence of OpenBSD here was a mistake.
  5091. # Let's accept both of them until this is cleared up.
  5092. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5093. lt_cv_file_magic_cmd=/usr/bin/file
  5094. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5095. ;;
  5096. esac
  5097. else
  5098. lt_cv_deplibs_check_method=pass_all
  5099. fi
  5100. ;;
  5101. gnu*)
  5102. lt_cv_deplibs_check_method=pass_all
  5103. ;;
  5104. haiku*)
  5105. lt_cv_deplibs_check_method=pass_all
  5106. ;;
  5107. hpux10.20* | hpux11*)
  5108. lt_cv_file_magic_cmd=/usr/bin/file
  5109. case $host_cpu in
  5110. ia64*)
  5111. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5112. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5113. ;;
  5114. hppa*64*)
  5115. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5116. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5117. ;;
  5118. *)
  5119. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5120. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5121. ;;
  5122. esac
  5123. ;;
  5124. interix[3-9]*)
  5125. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5126. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5127. ;;
  5128. irix5* | irix6* | nonstopux*)
  5129. case $LD in
  5130. *-32|*"-32 ") libmagic=32-bit;;
  5131. *-n32|*"-n32 ") libmagic=N32;;
  5132. *-64|*"-64 ") libmagic=64-bit;;
  5133. *) libmagic=never-match;;
  5134. esac
  5135. lt_cv_deplibs_check_method=pass_all
  5136. ;;
  5137. # This must be Linux ELF.
  5138. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. netbsd* | netbsdelf*-gnu)
  5142. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5143. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5144. else
  5145. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5146. fi
  5147. ;;
  5148. newos6*)
  5149. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5150. lt_cv_file_magic_cmd=/usr/bin/file
  5151. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5152. ;;
  5153. *nto* | *qnx*)
  5154. lt_cv_deplibs_check_method=pass_all
  5155. ;;
  5156. openbsd*)
  5157. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5158. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5159. else
  5160. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5161. fi
  5162. ;;
  5163. osf3* | osf4* | osf5*)
  5164. lt_cv_deplibs_check_method=pass_all
  5165. ;;
  5166. rdos*)
  5167. lt_cv_deplibs_check_method=pass_all
  5168. ;;
  5169. solaris*)
  5170. lt_cv_deplibs_check_method=pass_all
  5171. ;;
  5172. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5173. lt_cv_deplibs_check_method=pass_all
  5174. ;;
  5175. sysv4 | sysv4.3*)
  5176. case $host_vendor in
  5177. motorola)
  5178. 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]'
  5179. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5180. ;;
  5181. ncr)
  5182. lt_cv_deplibs_check_method=pass_all
  5183. ;;
  5184. sequent)
  5185. lt_cv_file_magic_cmd='/bin/file'
  5186. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5187. ;;
  5188. sni)
  5189. lt_cv_file_magic_cmd='/bin/file'
  5190. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5191. lt_cv_file_magic_test_file=/lib/libc.so
  5192. ;;
  5193. siemens)
  5194. lt_cv_deplibs_check_method=pass_all
  5195. ;;
  5196. pc)
  5197. lt_cv_deplibs_check_method=pass_all
  5198. ;;
  5199. esac
  5200. ;;
  5201. tpf*)
  5202. lt_cv_deplibs_check_method=pass_all
  5203. ;;
  5204. esac
  5205. fi
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5207. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5208. file_magic_glob=
  5209. want_nocaseglob=no
  5210. if test "$build" = "$host"; then
  5211. case $host_os in
  5212. mingw* | pw32*)
  5213. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5214. want_nocaseglob=yes
  5215. else
  5216. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5217. fi
  5218. ;;
  5219. esac
  5220. fi
  5221. file_magic_cmd=$lt_cv_file_magic_cmd
  5222. deplibs_check_method=$lt_cv_deplibs_check_method
  5223. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5224. if test -n "$ac_tool_prefix"; then
  5225. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5226. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5228. $as_echo_n "checking for $ac_word... " >&6; }
  5229. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. if test -n "$DLLTOOL"; then
  5233. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5234. else
  5235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5236. for as_dir in $PATH
  5237. do
  5238. IFS=$as_save_IFS
  5239. test -z "$as_dir" && as_dir=.
  5240. for ac_exec_ext in '' $ac_executable_extensions; do
  5241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5242. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5244. break 2
  5245. fi
  5246. done
  5247. done
  5248. IFS=$as_save_IFS
  5249. fi
  5250. fi
  5251. DLLTOOL=$ac_cv_prog_DLLTOOL
  5252. if test -n "$DLLTOOL"; then
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5254. $as_echo "$DLLTOOL" >&6; }
  5255. else
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5257. $as_echo "no" >&6; }
  5258. fi
  5259. fi
  5260. if test -z "$ac_cv_prog_DLLTOOL"; then
  5261. ac_ct_DLLTOOL=$DLLTOOL
  5262. # Extract the first word of "dlltool", so it can be a program name with args.
  5263. set dummy dlltool; ac_word=$2
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5265. $as_echo_n "checking for $ac_word... " >&6; }
  5266. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. if test -n "$ac_ct_DLLTOOL"; then
  5270. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5271. else
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH
  5274. do
  5275. IFS=$as_save_IFS
  5276. test -z "$as_dir" && as_dir=.
  5277. for ac_exec_ext in '' $ac_executable_extensions; do
  5278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5279. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5281. break 2
  5282. fi
  5283. done
  5284. done
  5285. IFS=$as_save_IFS
  5286. fi
  5287. fi
  5288. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5289. if test -n "$ac_ct_DLLTOOL"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5291. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. if test "x$ac_ct_DLLTOOL" = x; then
  5297. DLLTOOL="false"
  5298. else
  5299. case $cross_compiling:$ac_tool_warned in
  5300. yes:)
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5303. ac_tool_warned=yes ;;
  5304. esac
  5305. DLLTOOL=$ac_ct_DLLTOOL
  5306. fi
  5307. else
  5308. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5309. fi
  5310. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5312. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5313. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5314. $as_echo_n "(cached) " >&6
  5315. else
  5316. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5317. case $host_os in
  5318. cygwin* | mingw* | pw32* | cegcc*)
  5319. # two different shell functions defined in ltmain.sh
  5320. # decide which to use based on capabilities of $DLLTOOL
  5321. case `$DLLTOOL --help 2>&1` in
  5322. *--identify-strict*)
  5323. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5324. ;;
  5325. *)
  5326. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5327. ;;
  5328. esac
  5329. ;;
  5330. *)
  5331. # fallback: assume linklib IS sharedlib
  5332. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5333. ;;
  5334. esac
  5335. fi
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5337. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5338. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5339. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5340. if test -n "$ac_tool_prefix"; then
  5341. for ac_prog in ar
  5342. do
  5343. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5344. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5346. $as_echo_n "checking for $ac_word... " >&6; }
  5347. if ${ac_cv_prog_AR+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. if test -n "$AR"; then
  5351. ac_cv_prog_AR="$AR" # Let the user override the test.
  5352. else
  5353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5354. for as_dir in $PATH
  5355. do
  5356. IFS=$as_save_IFS
  5357. test -z "$as_dir" && as_dir=.
  5358. for ac_exec_ext in '' $ac_executable_extensions; do
  5359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5360. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5362. break 2
  5363. fi
  5364. done
  5365. done
  5366. IFS=$as_save_IFS
  5367. fi
  5368. fi
  5369. AR=$ac_cv_prog_AR
  5370. if test -n "$AR"; then
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5372. $as_echo "$AR" >&6; }
  5373. else
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5375. $as_echo "no" >&6; }
  5376. fi
  5377. test -n "$AR" && break
  5378. done
  5379. fi
  5380. if test -z "$AR"; then
  5381. ac_ct_AR=$AR
  5382. for ac_prog in ar
  5383. do
  5384. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5385. set dummy $ac_prog; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_AR"; then
  5392. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5401. ac_cv_prog_ac_ct_AR="$ac_prog"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5411. if test -n "$ac_ct_AR"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5413. $as_echo "$ac_ct_AR" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. test -n "$ac_ct_AR" && break
  5419. done
  5420. if test "x$ac_ct_AR" = x; then
  5421. AR="false"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. AR=$ac_ct_AR
  5430. fi
  5431. fi
  5432. : ${AR=ar}
  5433. : ${AR_FLAGS=cru}
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5435. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5436. if ${lt_cv_ar_at_file+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. lt_cv_ar_at_file=no
  5440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5441. /* end confdefs.h. */
  5442. int
  5443. main ()
  5444. {
  5445. ;
  5446. return 0;
  5447. }
  5448. _ACEOF
  5449. if ac_fn_cxx_try_compile "$LINENO"; then :
  5450. echo conftest.$ac_objext > conftest.lst
  5451. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5452. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5453. (eval $lt_ar_try) 2>&5
  5454. ac_status=$?
  5455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5456. test $ac_status = 0; }
  5457. if test "$ac_status" -eq 0; then
  5458. # Ensure the archiver fails upon bogus file names.
  5459. rm -f conftest.$ac_objext libconftest.a
  5460. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5461. (eval $lt_ar_try) 2>&5
  5462. ac_status=$?
  5463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5464. test $ac_status = 0; }
  5465. if test "$ac_status" -ne 0; then
  5466. lt_cv_ar_at_file=@
  5467. fi
  5468. fi
  5469. rm -f conftest.* libconftest.a
  5470. fi
  5471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5472. fi
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5474. $as_echo "$lt_cv_ar_at_file" >&6; }
  5475. if test "x$lt_cv_ar_at_file" = xno; then
  5476. archiver_list_spec=
  5477. else
  5478. archiver_list_spec=$lt_cv_ar_at_file
  5479. fi
  5480. if test -n "$ac_tool_prefix"; then
  5481. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5482. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5484. $as_echo_n "checking for $ac_word... " >&6; }
  5485. if ${ac_cv_prog_STRIP+:} false; then :
  5486. $as_echo_n "(cached) " >&6
  5487. else
  5488. if test -n "$STRIP"; then
  5489. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5490. else
  5491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5492. for as_dir in $PATH
  5493. do
  5494. IFS=$as_save_IFS
  5495. test -z "$as_dir" && as_dir=.
  5496. for ac_exec_ext in '' $ac_executable_extensions; do
  5497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5498. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5500. break 2
  5501. fi
  5502. done
  5503. done
  5504. IFS=$as_save_IFS
  5505. fi
  5506. fi
  5507. STRIP=$ac_cv_prog_STRIP
  5508. if test -n "$STRIP"; then
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5510. $as_echo "$STRIP" >&6; }
  5511. else
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5513. $as_echo "no" >&6; }
  5514. fi
  5515. fi
  5516. if test -z "$ac_cv_prog_STRIP"; then
  5517. ac_ct_STRIP=$STRIP
  5518. # Extract the first word of "strip", so it can be a program name with args.
  5519. set dummy strip; ac_word=$2
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5521. $as_echo_n "checking for $ac_word... " >&6; }
  5522. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5523. $as_echo_n "(cached) " >&6
  5524. else
  5525. if test -n "$ac_ct_STRIP"; then
  5526. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5527. else
  5528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5529. for as_dir in $PATH
  5530. do
  5531. IFS=$as_save_IFS
  5532. test -z "$as_dir" && as_dir=.
  5533. for ac_exec_ext in '' $ac_executable_extensions; do
  5534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5535. ac_cv_prog_ac_ct_STRIP="strip"
  5536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5537. break 2
  5538. fi
  5539. done
  5540. done
  5541. IFS=$as_save_IFS
  5542. fi
  5543. fi
  5544. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5545. if test -n "$ac_ct_STRIP"; then
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5547. $as_echo "$ac_ct_STRIP" >&6; }
  5548. else
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5550. $as_echo "no" >&6; }
  5551. fi
  5552. if test "x$ac_ct_STRIP" = x; then
  5553. STRIP=":"
  5554. else
  5555. case $cross_compiling:$ac_tool_warned in
  5556. yes:)
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5558. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5559. ac_tool_warned=yes ;;
  5560. esac
  5561. STRIP=$ac_ct_STRIP
  5562. fi
  5563. else
  5564. STRIP="$ac_cv_prog_STRIP"
  5565. fi
  5566. test -z "$STRIP" && STRIP=:
  5567. if test -n "$ac_tool_prefix"; then
  5568. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5569. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5571. $as_echo_n "checking for $ac_word... " >&6; }
  5572. if ${ac_cv_prog_RANLIB+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. if test -n "$RANLIB"; then
  5576. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5577. else
  5578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5579. for as_dir in $PATH
  5580. do
  5581. IFS=$as_save_IFS
  5582. test -z "$as_dir" && as_dir=.
  5583. for ac_exec_ext in '' $ac_executable_extensions; do
  5584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5585. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5587. break 2
  5588. fi
  5589. done
  5590. done
  5591. IFS=$as_save_IFS
  5592. fi
  5593. fi
  5594. RANLIB=$ac_cv_prog_RANLIB
  5595. if test -n "$RANLIB"; then
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5597. $as_echo "$RANLIB" >&6; }
  5598. else
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5600. $as_echo "no" >&6; }
  5601. fi
  5602. fi
  5603. if test -z "$ac_cv_prog_RANLIB"; then
  5604. ac_ct_RANLIB=$RANLIB
  5605. # Extract the first word of "ranlib", so it can be a program name with args.
  5606. set dummy ranlib; ac_word=$2
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. $as_echo_n "checking for $ac_word... " >&6; }
  5609. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. if test -n "$ac_ct_RANLIB"; then
  5613. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5622. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5632. if test -n "$ac_ct_RANLIB"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5634. $as_echo "$ac_ct_RANLIB" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. if test "x$ac_ct_RANLIB" = x; then
  5640. RANLIB=":"
  5641. else
  5642. case $cross_compiling:$ac_tool_warned in
  5643. yes:)
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5646. ac_tool_warned=yes ;;
  5647. esac
  5648. RANLIB=$ac_ct_RANLIB
  5649. fi
  5650. else
  5651. RANLIB="$ac_cv_prog_RANLIB"
  5652. fi
  5653. test -z "$RANLIB" && RANLIB=:
  5654. # Determine commands to create old-style static archives.
  5655. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5656. old_postinstall_cmds='chmod 644 $oldlib'
  5657. old_postuninstall_cmds=
  5658. if test -n "$RANLIB"; then
  5659. case $host_os in
  5660. openbsd*)
  5661. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5662. ;;
  5663. *)
  5664. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5665. ;;
  5666. esac
  5667. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5668. fi
  5669. case $host_os in
  5670. darwin*)
  5671. lock_old_archive_extraction=yes ;;
  5672. *)
  5673. lock_old_archive_extraction=no ;;
  5674. esac
  5675. # If no C compiler was specified, use CC.
  5676. LTCC=${LTCC-"$CC"}
  5677. # If no C compiler flags were specified, use CFLAGS.
  5678. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5679. # Allow CC to be a program name with arguments.
  5680. compiler=$CC
  5681. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5683. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5684. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. # These are sane defaults that work on at least a few old systems.
  5688. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5689. # Character class describing NM global symbol codes.
  5690. symcode='[BCDEGRST]'
  5691. # Regexp to match symbols that can be accessed directly from C.
  5692. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5693. # Define system-specific variables.
  5694. case $host_os in
  5695. aix*)
  5696. symcode='[BCDT]'
  5697. ;;
  5698. cygwin* | mingw* | pw32* | cegcc*)
  5699. symcode='[ABCDGISTW]'
  5700. ;;
  5701. hpux*)
  5702. if test "$host_cpu" = ia64; then
  5703. symcode='[ABCDEGRST]'
  5704. fi
  5705. ;;
  5706. irix* | nonstopux*)
  5707. symcode='[BCDEGRST]'
  5708. ;;
  5709. osf*)
  5710. symcode='[BCDEGQRST]'
  5711. ;;
  5712. solaris*)
  5713. symcode='[BDRT]'
  5714. ;;
  5715. sco3.2v5*)
  5716. symcode='[DT]'
  5717. ;;
  5718. sysv4.2uw2*)
  5719. symcode='[DT]'
  5720. ;;
  5721. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5722. symcode='[ABDT]'
  5723. ;;
  5724. sysv4)
  5725. symcode='[DFNSTU]'
  5726. ;;
  5727. esac
  5728. # If we're using GNU nm, then use its standard symbol codes.
  5729. case `$NM -V 2>&1` in
  5730. *GNU* | *'with BFD'*)
  5731. symcode='[ABCDGIRSTW]' ;;
  5732. esac
  5733. # Transform an extracted symbol line into a proper C declaration.
  5734. # Some systems (esp. on ia64) link data and code symbols differently,
  5735. # so use this general approach.
  5736. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5737. # Transform an extracted symbol line into symbol name and symbol address
  5738. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5739. 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'"
  5740. # Handle CRLF in mingw tool chain
  5741. opt_cr=
  5742. case $build_os in
  5743. mingw*)
  5744. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5745. ;;
  5746. esac
  5747. # Try without a prefix underscore, then with it.
  5748. for ac_symprfx in "" "_"; do
  5749. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5750. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5751. # Write the raw and C identifiers.
  5752. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5753. # Fake it for dumpbin and say T for any non-static function
  5754. # and D for any global variable.
  5755. # Also find C++ and __fastcall symbols from MSVC++,
  5756. # which start with @ or ?.
  5757. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5758. " {last_section=section; section=\$ 3};"\
  5759. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5760. " \$ 0!~/External *\|/{next};"\
  5761. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5762. " {if(hide[section]) next};"\
  5763. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5764. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5765. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5766. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5767. " ' prfx=^$ac_symprfx"
  5768. else
  5769. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5770. fi
  5771. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5772. # Check to see that the pipe works correctly.
  5773. pipe_works=no
  5774. rm -f conftest*
  5775. cat > conftest.$ac_ext <<_LT_EOF
  5776. #ifdef __cplusplus
  5777. extern "C" {
  5778. #endif
  5779. char nm_test_var;
  5780. void nm_test_func(void);
  5781. void nm_test_func(void){}
  5782. #ifdef __cplusplus
  5783. }
  5784. #endif
  5785. int main(){nm_test_var='a';nm_test_func();return(0);}
  5786. _LT_EOF
  5787. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5788. (eval $ac_compile) 2>&5
  5789. ac_status=$?
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5791. test $ac_status = 0; }; then
  5792. # Now try to grab the symbols.
  5793. nlist=conftest.nm
  5794. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5795. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5796. ac_status=$?
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5798. test $ac_status = 0; } && test -s "$nlist"; then
  5799. # Try sorting and uniquifying the output.
  5800. if sort "$nlist" | uniq > "$nlist"T; then
  5801. mv -f "$nlist"T "$nlist"
  5802. else
  5803. rm -f "$nlist"T
  5804. fi
  5805. # Make sure that we snagged all the symbols we need.
  5806. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5807. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5808. cat <<_LT_EOF > conftest.$ac_ext
  5809. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5810. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5811. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5812. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5813. # define LT_DLSYM_CONST
  5814. #elif defined(__osf__)
  5815. /* This system does not cope well with relocations in const data. */
  5816. # define LT_DLSYM_CONST
  5817. #else
  5818. # define LT_DLSYM_CONST const
  5819. #endif
  5820. #ifdef __cplusplus
  5821. extern "C" {
  5822. #endif
  5823. _LT_EOF
  5824. # Now generate the symbol file.
  5825. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5826. cat <<_LT_EOF >> conftest.$ac_ext
  5827. /* The mapping between symbol names and symbols. */
  5828. LT_DLSYM_CONST struct {
  5829. const char *name;
  5830. void *address;
  5831. }
  5832. lt__PROGRAM__LTX_preloaded_symbols[] =
  5833. {
  5834. { "@PROGRAM@", (void *) 0 },
  5835. _LT_EOF
  5836. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5837. cat <<\_LT_EOF >> conftest.$ac_ext
  5838. {0, (void *) 0}
  5839. };
  5840. /* This works around a problem in FreeBSD linker */
  5841. #ifdef FREEBSD_WORKAROUND
  5842. static const void *lt_preloaded_setup() {
  5843. return lt__PROGRAM__LTX_preloaded_symbols;
  5844. }
  5845. #endif
  5846. #ifdef __cplusplus
  5847. }
  5848. #endif
  5849. _LT_EOF
  5850. # Now try linking the two files.
  5851. mv conftest.$ac_objext conftstm.$ac_objext
  5852. lt_globsym_save_LIBS=$LIBS
  5853. lt_globsym_save_CFLAGS=$CFLAGS
  5854. LIBS="conftstm.$ac_objext"
  5855. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5856. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5857. (eval $ac_link) 2>&5
  5858. ac_status=$?
  5859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5860. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5861. pipe_works=yes
  5862. fi
  5863. LIBS=$lt_globsym_save_LIBS
  5864. CFLAGS=$lt_globsym_save_CFLAGS
  5865. else
  5866. echo "cannot find nm_test_func in $nlist" >&5
  5867. fi
  5868. else
  5869. echo "cannot find nm_test_var in $nlist" >&5
  5870. fi
  5871. else
  5872. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5873. fi
  5874. else
  5875. echo "$progname: failed program was:" >&5
  5876. cat conftest.$ac_ext >&5
  5877. fi
  5878. rm -rf conftest* conftst*
  5879. # Do not use the global_symbol_pipe unless it works.
  5880. if test "$pipe_works" = yes; then
  5881. break
  5882. else
  5883. lt_cv_sys_global_symbol_pipe=
  5884. fi
  5885. done
  5886. fi
  5887. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5888. lt_cv_sys_global_symbol_to_cdecl=
  5889. fi
  5890. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5892. $as_echo "failed" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5895. $as_echo "ok" >&6; }
  5896. fi
  5897. # Response file support.
  5898. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5899. nm_file_list_spec='@'
  5900. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5901. nm_file_list_spec='@'
  5902. fi
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5904. $as_echo_n "checking for sysroot... " >&6; }
  5905. # Check whether --with-sysroot was given.
  5906. if test "${with_sysroot+set}" = set; then :
  5907. withval=$with_sysroot;
  5908. else
  5909. with_sysroot=no
  5910. fi
  5911. lt_sysroot=
  5912. case ${with_sysroot} in #(
  5913. yes)
  5914. if test "$GCC" = yes; then
  5915. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5916. fi
  5917. ;; #(
  5918. /*)
  5919. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5920. ;; #(
  5921. no|'')
  5922. ;; #(
  5923. *)
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5925. $as_echo "${with_sysroot}" >&6; }
  5926. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5927. ;;
  5928. esac
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5930. $as_echo "${lt_sysroot:-no}" >&6; }
  5931. # Check whether --enable-libtool-lock was given.
  5932. if test "${enable_libtool_lock+set}" = set; then :
  5933. enableval=$enable_libtool_lock;
  5934. fi
  5935. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5936. # Some flags need to be propagated to the compiler or linker for good
  5937. # libtool support.
  5938. case $host in
  5939. ia64-*-hpux*)
  5940. # Find out which ABI we are using.
  5941. echo 'int i;' > conftest.$ac_ext
  5942. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5943. (eval $ac_compile) 2>&5
  5944. ac_status=$?
  5945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5946. test $ac_status = 0; }; then
  5947. case `/usr/bin/file conftest.$ac_objext` in
  5948. *ELF-32*)
  5949. HPUX_IA64_MODE="32"
  5950. ;;
  5951. *ELF-64*)
  5952. HPUX_IA64_MODE="64"
  5953. ;;
  5954. esac
  5955. fi
  5956. rm -rf conftest*
  5957. ;;
  5958. *-*-irix6*)
  5959. # Find out which ABI we are using.
  5960. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5961. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5962. (eval $ac_compile) 2>&5
  5963. ac_status=$?
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5965. test $ac_status = 0; }; then
  5966. if test "$lt_cv_prog_gnu_ld" = yes; then
  5967. case `/usr/bin/file conftest.$ac_objext` in
  5968. *32-bit*)
  5969. LD="${LD-ld} -melf32bsmip"
  5970. ;;
  5971. *N32*)
  5972. LD="${LD-ld} -melf32bmipn32"
  5973. ;;
  5974. *64-bit*)
  5975. LD="${LD-ld} -melf64bmip"
  5976. ;;
  5977. esac
  5978. else
  5979. case `/usr/bin/file conftest.$ac_objext` in
  5980. *32-bit*)
  5981. LD="${LD-ld} -32"
  5982. ;;
  5983. *N32*)
  5984. LD="${LD-ld} -n32"
  5985. ;;
  5986. *64-bit*)
  5987. LD="${LD-ld} -64"
  5988. ;;
  5989. esac
  5990. fi
  5991. fi
  5992. rm -rf conftest*
  5993. ;;
  5994. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5995. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5996. # Find out which ABI we are using.
  5997. echo 'int i;' > conftest.$ac_ext
  5998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5999. (eval $ac_compile) 2>&5
  6000. ac_status=$?
  6001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6002. test $ac_status = 0; }; then
  6003. case `/usr/bin/file conftest.o` in
  6004. *32-bit*)
  6005. case $host in
  6006. x86_64-*kfreebsd*-gnu)
  6007. LD="${LD-ld} -m elf_i386_fbsd"
  6008. ;;
  6009. x86_64-*linux*)
  6010. LD="${LD-ld} -m elf_i386"
  6011. ;;
  6012. ppc64-*linux*|powerpc64-*linux*)
  6013. LD="${LD-ld} -m elf32ppclinux"
  6014. ;;
  6015. s390x-*linux*)
  6016. LD="${LD-ld} -m elf_s390"
  6017. ;;
  6018. sparc64-*linux*)
  6019. LD="${LD-ld} -m elf32_sparc"
  6020. ;;
  6021. esac
  6022. ;;
  6023. *64-bit*)
  6024. case $host in
  6025. x86_64-*kfreebsd*-gnu)
  6026. LD="${LD-ld} -m elf_x86_64_fbsd"
  6027. ;;
  6028. x86_64-*linux*)
  6029. LD="${LD-ld} -m elf_x86_64"
  6030. ;;
  6031. ppc*-*linux*|powerpc*-*linux*)
  6032. LD="${LD-ld} -m elf64ppc"
  6033. ;;
  6034. s390*-*linux*|s390*-*tpf*)
  6035. LD="${LD-ld} -m elf64_s390"
  6036. ;;
  6037. sparc*-*linux*)
  6038. LD="${LD-ld} -m elf64_sparc"
  6039. ;;
  6040. esac
  6041. ;;
  6042. esac
  6043. fi
  6044. rm -rf conftest*
  6045. ;;
  6046. *-*-sco3.2v5*)
  6047. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6048. SAVE_CFLAGS="$CFLAGS"
  6049. CFLAGS="$CFLAGS -belf"
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6051. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6052. if ${lt_cv_cc_needs_belf+:} false; then :
  6053. $as_echo_n "(cached) " >&6
  6054. else
  6055. ac_ext=c
  6056. ac_cpp='$CPP $CPPFLAGS'
  6057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6061. /* end confdefs.h. */
  6062. int
  6063. main ()
  6064. {
  6065. ;
  6066. return 0;
  6067. }
  6068. _ACEOF
  6069. if ac_fn_c_try_link "$LINENO"; then :
  6070. lt_cv_cc_needs_belf=yes
  6071. else
  6072. lt_cv_cc_needs_belf=no
  6073. fi
  6074. rm -f core conftest.err conftest.$ac_objext \
  6075. conftest$ac_exeext conftest.$ac_ext
  6076. ac_ext=c
  6077. ac_cpp='$CPP $CPPFLAGS'
  6078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6081. fi
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6083. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6084. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6085. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6086. CFLAGS="$SAVE_CFLAGS"
  6087. fi
  6088. ;;
  6089. sparc*-*solaris*)
  6090. # Find out which ABI we are using.
  6091. echo 'int i;' > conftest.$ac_ext
  6092. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6093. (eval $ac_compile) 2>&5
  6094. ac_status=$?
  6095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6096. test $ac_status = 0; }; then
  6097. case `/usr/bin/file conftest.o` in
  6098. *64-bit*)
  6099. case $lt_cv_prog_gnu_ld in
  6100. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6101. *)
  6102. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6103. LD="${LD-ld} -64"
  6104. fi
  6105. ;;
  6106. esac
  6107. ;;
  6108. esac
  6109. fi
  6110. rm -rf conftest*
  6111. ;;
  6112. esac
  6113. need_locks="$enable_libtool_lock"
  6114. if test -n "$ac_tool_prefix"; then
  6115. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6116. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6118. $as_echo_n "checking for $ac_word... " >&6; }
  6119. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test -n "$MANIFEST_TOOL"; then
  6123. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6124. else
  6125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6126. for as_dir in $PATH
  6127. do
  6128. IFS=$as_save_IFS
  6129. test -z "$as_dir" && as_dir=.
  6130. for ac_exec_ext in '' $ac_executable_extensions; do
  6131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6132. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6134. break 2
  6135. fi
  6136. done
  6137. done
  6138. IFS=$as_save_IFS
  6139. fi
  6140. fi
  6141. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6142. if test -n "$MANIFEST_TOOL"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6144. $as_echo "$MANIFEST_TOOL" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6147. $as_echo "no" >&6; }
  6148. fi
  6149. fi
  6150. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6151. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6152. # Extract the first word of "mt", so it can be a program name with args.
  6153. set dummy mt; ac_word=$2
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6155. $as_echo_n "checking for $ac_word... " >&6; }
  6156. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6157. $as_echo_n "(cached) " >&6
  6158. else
  6159. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6160. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6161. else
  6162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6163. for as_dir in $PATH
  6164. do
  6165. IFS=$as_save_IFS
  6166. test -z "$as_dir" && as_dir=.
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6169. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6171. break 2
  6172. fi
  6173. done
  6174. done
  6175. IFS=$as_save_IFS
  6176. fi
  6177. fi
  6178. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6179. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6181. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6182. else
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6184. $as_echo "no" >&6; }
  6185. fi
  6186. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6187. MANIFEST_TOOL=":"
  6188. else
  6189. case $cross_compiling:$ac_tool_warned in
  6190. yes:)
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6193. ac_tool_warned=yes ;;
  6194. esac
  6195. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6196. fi
  6197. else
  6198. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6199. fi
  6200. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6202. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6203. if ${lt_cv_path_mainfest_tool+:} false; then :
  6204. $as_echo_n "(cached) " >&6
  6205. else
  6206. lt_cv_path_mainfest_tool=no
  6207. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6208. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6209. cat conftest.err >&5
  6210. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6211. lt_cv_path_mainfest_tool=yes
  6212. fi
  6213. rm -f conftest*
  6214. fi
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6216. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6217. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6218. MANIFEST_TOOL=:
  6219. fi
  6220. case $host_os in
  6221. rhapsody* | darwin*)
  6222. if test -n "$ac_tool_prefix"; then
  6223. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6224. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6226. $as_echo_n "checking for $ac_word... " >&6; }
  6227. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. if test -n "$DSYMUTIL"; then
  6231. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6232. else
  6233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6234. for as_dir in $PATH
  6235. do
  6236. IFS=$as_save_IFS
  6237. test -z "$as_dir" && as_dir=.
  6238. for ac_exec_ext in '' $ac_executable_extensions; do
  6239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6240. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6242. break 2
  6243. fi
  6244. done
  6245. done
  6246. IFS=$as_save_IFS
  6247. fi
  6248. fi
  6249. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6250. if test -n "$DSYMUTIL"; then
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6252. $as_echo "$DSYMUTIL" >&6; }
  6253. else
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6255. $as_echo "no" >&6; }
  6256. fi
  6257. fi
  6258. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6259. ac_ct_DSYMUTIL=$DSYMUTIL
  6260. # Extract the first word of "dsymutil", so it can be a program name with args.
  6261. set dummy dsymutil; ac_word=$2
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6263. $as_echo_n "checking for $ac_word... " >&6; }
  6264. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. if test -n "$ac_ct_DSYMUTIL"; then
  6268. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6269. else
  6270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6271. for as_dir in $PATH
  6272. do
  6273. IFS=$as_save_IFS
  6274. test -z "$as_dir" && as_dir=.
  6275. for ac_exec_ext in '' $ac_executable_extensions; do
  6276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6277. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6279. break 2
  6280. fi
  6281. done
  6282. done
  6283. IFS=$as_save_IFS
  6284. fi
  6285. fi
  6286. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6287. if test -n "$ac_ct_DSYMUTIL"; then
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6289. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6290. else
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6292. $as_echo "no" >&6; }
  6293. fi
  6294. if test "x$ac_ct_DSYMUTIL" = x; then
  6295. DSYMUTIL=":"
  6296. else
  6297. case $cross_compiling:$ac_tool_warned in
  6298. yes:)
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6300. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6301. ac_tool_warned=yes ;;
  6302. esac
  6303. DSYMUTIL=$ac_ct_DSYMUTIL
  6304. fi
  6305. else
  6306. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6307. fi
  6308. if test -n "$ac_tool_prefix"; then
  6309. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6310. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6312. $as_echo_n "checking for $ac_word... " >&6; }
  6313. if ${ac_cv_prog_NMEDIT+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. if test -n "$NMEDIT"; then
  6317. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6318. else
  6319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6320. for as_dir in $PATH
  6321. do
  6322. IFS=$as_save_IFS
  6323. test -z "$as_dir" && as_dir=.
  6324. for ac_exec_ext in '' $ac_executable_extensions; do
  6325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6326. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6328. break 2
  6329. fi
  6330. done
  6331. done
  6332. IFS=$as_save_IFS
  6333. fi
  6334. fi
  6335. NMEDIT=$ac_cv_prog_NMEDIT
  6336. if test -n "$NMEDIT"; then
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6338. $as_echo "$NMEDIT" >&6; }
  6339. else
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6341. $as_echo "no" >&6; }
  6342. fi
  6343. fi
  6344. if test -z "$ac_cv_prog_NMEDIT"; then
  6345. ac_ct_NMEDIT=$NMEDIT
  6346. # Extract the first word of "nmedit", so it can be a program name with args.
  6347. set dummy nmedit; ac_word=$2
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6349. $as_echo_n "checking for $ac_word... " >&6; }
  6350. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6351. $as_echo_n "(cached) " >&6
  6352. else
  6353. if test -n "$ac_ct_NMEDIT"; then
  6354. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6355. else
  6356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6357. for as_dir in $PATH
  6358. do
  6359. IFS=$as_save_IFS
  6360. test -z "$as_dir" && as_dir=.
  6361. for ac_exec_ext in '' $ac_executable_extensions; do
  6362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6363. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6365. break 2
  6366. fi
  6367. done
  6368. done
  6369. IFS=$as_save_IFS
  6370. fi
  6371. fi
  6372. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6373. if test -n "$ac_ct_NMEDIT"; then
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6375. $as_echo "$ac_ct_NMEDIT" >&6; }
  6376. else
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6378. $as_echo "no" >&6; }
  6379. fi
  6380. if test "x$ac_ct_NMEDIT" = x; then
  6381. NMEDIT=":"
  6382. else
  6383. case $cross_compiling:$ac_tool_warned in
  6384. yes:)
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6387. ac_tool_warned=yes ;;
  6388. esac
  6389. NMEDIT=$ac_ct_NMEDIT
  6390. fi
  6391. else
  6392. NMEDIT="$ac_cv_prog_NMEDIT"
  6393. fi
  6394. if test -n "$ac_tool_prefix"; then
  6395. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6396. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6398. $as_echo_n "checking for $ac_word... " >&6; }
  6399. if ${ac_cv_prog_LIPO+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. if test -n "$LIPO"; then
  6403. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6404. else
  6405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6406. for as_dir in $PATH
  6407. do
  6408. IFS=$as_save_IFS
  6409. test -z "$as_dir" && as_dir=.
  6410. for ac_exec_ext in '' $ac_executable_extensions; do
  6411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6412. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6414. break 2
  6415. fi
  6416. done
  6417. done
  6418. IFS=$as_save_IFS
  6419. fi
  6420. fi
  6421. LIPO=$ac_cv_prog_LIPO
  6422. if test -n "$LIPO"; then
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6424. $as_echo "$LIPO" >&6; }
  6425. else
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6427. $as_echo "no" >&6; }
  6428. fi
  6429. fi
  6430. if test -z "$ac_cv_prog_LIPO"; then
  6431. ac_ct_LIPO=$LIPO
  6432. # Extract the first word of "lipo", so it can be a program name with args.
  6433. set dummy lipo; ac_word=$2
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6435. $as_echo_n "checking for $ac_word... " >&6; }
  6436. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6437. $as_echo_n "(cached) " >&6
  6438. else
  6439. if test -n "$ac_ct_LIPO"; then
  6440. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6441. else
  6442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6443. for as_dir in $PATH
  6444. do
  6445. IFS=$as_save_IFS
  6446. test -z "$as_dir" && as_dir=.
  6447. for ac_exec_ext in '' $ac_executable_extensions; do
  6448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6449. ac_cv_prog_ac_ct_LIPO="lipo"
  6450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6451. break 2
  6452. fi
  6453. done
  6454. done
  6455. IFS=$as_save_IFS
  6456. fi
  6457. fi
  6458. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6459. if test -n "$ac_ct_LIPO"; then
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6461. $as_echo "$ac_ct_LIPO" >&6; }
  6462. else
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6464. $as_echo "no" >&6; }
  6465. fi
  6466. if test "x$ac_ct_LIPO" = x; then
  6467. LIPO=":"
  6468. else
  6469. case $cross_compiling:$ac_tool_warned in
  6470. yes:)
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6473. ac_tool_warned=yes ;;
  6474. esac
  6475. LIPO=$ac_ct_LIPO
  6476. fi
  6477. else
  6478. LIPO="$ac_cv_prog_LIPO"
  6479. fi
  6480. if test -n "$ac_tool_prefix"; then
  6481. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6482. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6484. $as_echo_n "checking for $ac_word... " >&6; }
  6485. if ${ac_cv_prog_OTOOL+:} false; then :
  6486. $as_echo_n "(cached) " >&6
  6487. else
  6488. if test -n "$OTOOL"; then
  6489. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6490. else
  6491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6492. for as_dir in $PATH
  6493. do
  6494. IFS=$as_save_IFS
  6495. test -z "$as_dir" && as_dir=.
  6496. for ac_exec_ext in '' $ac_executable_extensions; do
  6497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6498. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6500. break 2
  6501. fi
  6502. done
  6503. done
  6504. IFS=$as_save_IFS
  6505. fi
  6506. fi
  6507. OTOOL=$ac_cv_prog_OTOOL
  6508. if test -n "$OTOOL"; then
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6510. $as_echo "$OTOOL" >&6; }
  6511. else
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6513. $as_echo "no" >&6; }
  6514. fi
  6515. fi
  6516. if test -z "$ac_cv_prog_OTOOL"; then
  6517. ac_ct_OTOOL=$OTOOL
  6518. # Extract the first word of "otool", so it can be a program name with args.
  6519. set dummy otool; ac_word=$2
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6521. $as_echo_n "checking for $ac_word... " >&6; }
  6522. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6523. $as_echo_n "(cached) " >&6
  6524. else
  6525. if test -n "$ac_ct_OTOOL"; then
  6526. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6527. else
  6528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6529. for as_dir in $PATH
  6530. do
  6531. IFS=$as_save_IFS
  6532. test -z "$as_dir" && as_dir=.
  6533. for ac_exec_ext in '' $ac_executable_extensions; do
  6534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6535. ac_cv_prog_ac_ct_OTOOL="otool"
  6536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6537. break 2
  6538. fi
  6539. done
  6540. done
  6541. IFS=$as_save_IFS
  6542. fi
  6543. fi
  6544. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6545. if test -n "$ac_ct_OTOOL"; then
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6547. $as_echo "$ac_ct_OTOOL" >&6; }
  6548. else
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6550. $as_echo "no" >&6; }
  6551. fi
  6552. if test "x$ac_ct_OTOOL" = x; then
  6553. OTOOL=":"
  6554. else
  6555. case $cross_compiling:$ac_tool_warned in
  6556. yes:)
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6558. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6559. ac_tool_warned=yes ;;
  6560. esac
  6561. OTOOL=$ac_ct_OTOOL
  6562. fi
  6563. else
  6564. OTOOL="$ac_cv_prog_OTOOL"
  6565. fi
  6566. if test -n "$ac_tool_prefix"; then
  6567. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6568. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6570. $as_echo_n "checking for $ac_word... " >&6; }
  6571. if ${ac_cv_prog_OTOOL64+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. if test -n "$OTOOL64"; then
  6575. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6584. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. OTOOL64=$ac_cv_prog_OTOOL64
  6594. if test -n "$OTOOL64"; then
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6596. $as_echo "$OTOOL64" >&6; }
  6597. else
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. $as_echo "no" >&6; }
  6600. fi
  6601. fi
  6602. if test -z "$ac_cv_prog_OTOOL64"; then
  6603. ac_ct_OTOOL64=$OTOOL64
  6604. # Extract the first word of "otool64", so it can be a program name with args.
  6605. set dummy otool64; ac_word=$2
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. $as_echo_n "checking for $ac_word... " >&6; }
  6608. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. if test -n "$ac_ct_OTOOL64"; then
  6612. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6613. else
  6614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6615. for as_dir in $PATH
  6616. do
  6617. IFS=$as_save_IFS
  6618. test -z "$as_dir" && as_dir=.
  6619. for ac_exec_ext in '' $ac_executable_extensions; do
  6620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6621. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6623. break 2
  6624. fi
  6625. done
  6626. done
  6627. IFS=$as_save_IFS
  6628. fi
  6629. fi
  6630. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6631. if test -n "$ac_ct_OTOOL64"; then
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6633. $as_echo "$ac_ct_OTOOL64" >&6; }
  6634. else
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6636. $as_echo "no" >&6; }
  6637. fi
  6638. if test "x$ac_ct_OTOOL64" = x; then
  6639. OTOOL64=":"
  6640. else
  6641. case $cross_compiling:$ac_tool_warned in
  6642. yes:)
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6645. ac_tool_warned=yes ;;
  6646. esac
  6647. OTOOL64=$ac_ct_OTOOL64
  6648. fi
  6649. else
  6650. OTOOL64="$ac_cv_prog_OTOOL64"
  6651. fi
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6653. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6654. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. lt_cv_apple_cc_single_mod=no
  6658. if test -z "${LT_MULTI_MODULE}"; then
  6659. # By default we will add the -single_module flag. You can override
  6660. # by either setting the environment variable LT_MULTI_MODULE
  6661. # non-empty at configure time, or by adding -multi_module to the
  6662. # link flags.
  6663. rm -rf libconftest.dylib*
  6664. echo "int foo(void){return 1;}" > conftest.c
  6665. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6666. -dynamiclib -Wl,-single_module conftest.c" >&5
  6667. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6668. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6669. _lt_result=$?
  6670. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6671. lt_cv_apple_cc_single_mod=yes
  6672. else
  6673. cat conftest.err >&5
  6674. fi
  6675. rm -rf libconftest.dylib*
  6676. rm -f conftest.*
  6677. fi
  6678. fi
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6680. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6682. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6683. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6684. $as_echo_n "(cached) " >&6
  6685. else
  6686. lt_cv_ld_exported_symbols_list=no
  6687. save_LDFLAGS=$LDFLAGS
  6688. echo "_main" > conftest.sym
  6689. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end confdefs.h. */
  6692. int
  6693. main ()
  6694. {
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. if ac_fn_c_try_link "$LINENO"; then :
  6700. lt_cv_ld_exported_symbols_list=yes
  6701. else
  6702. lt_cv_ld_exported_symbols_list=no
  6703. fi
  6704. rm -f core conftest.err conftest.$ac_objext \
  6705. conftest$ac_exeext conftest.$ac_ext
  6706. LDFLAGS="$save_LDFLAGS"
  6707. fi
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6709. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6711. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6712. if ${lt_cv_ld_force_load+:} false; then :
  6713. $as_echo_n "(cached) " >&6
  6714. else
  6715. lt_cv_ld_force_load=no
  6716. cat > conftest.c << _LT_EOF
  6717. int forced_loaded() { return 2;}
  6718. _LT_EOF
  6719. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6720. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6721. echo "$AR cru libconftest.a conftest.o" >&5
  6722. $AR cru libconftest.a conftest.o 2>&5
  6723. echo "$RANLIB libconftest.a" >&5
  6724. $RANLIB libconftest.a 2>&5
  6725. cat > conftest.c << _LT_EOF
  6726. int main() { return 0;}
  6727. _LT_EOF
  6728. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6729. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6730. _lt_result=$?
  6731. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6732. lt_cv_ld_force_load=yes
  6733. else
  6734. cat conftest.err >&5
  6735. fi
  6736. rm -f conftest.err libconftest.a conftest conftest.c
  6737. rm -rf conftest.dSYM
  6738. fi
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6740. $as_echo "$lt_cv_ld_force_load" >&6; }
  6741. case $host_os in
  6742. rhapsody* | darwin1.[012])
  6743. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6744. darwin1.*)
  6745. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6746. darwin*) # darwin 5.x on
  6747. # if running on 10.5 or later, the deployment target defaults
  6748. # to the OS version, if on x86, and 10.4, the deployment
  6749. # target defaults to 10.4. Don't you love it?
  6750. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6751. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6752. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6753. 10.[012]*)
  6754. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6755. 10.*)
  6756. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6757. esac
  6758. ;;
  6759. esac
  6760. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6761. _lt_dar_single_mod='$single_module'
  6762. fi
  6763. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6764. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6765. else
  6766. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6767. fi
  6768. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6769. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6770. else
  6771. _lt_dsymutil=
  6772. fi
  6773. ;;
  6774. esac
  6775. ac_ext=c
  6776. ac_cpp='$CPP $CPPFLAGS'
  6777. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6778. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6779. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6781. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6782. # On Suns, sometimes $CPP names a directory.
  6783. if test -n "$CPP" && test -d "$CPP"; then
  6784. CPP=
  6785. fi
  6786. if test -z "$CPP"; then
  6787. if ${ac_cv_prog_CPP+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. # Double quotes because CPP needs to be expanded
  6791. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6792. do
  6793. ac_preproc_ok=false
  6794. for ac_c_preproc_warn_flag in '' yes
  6795. do
  6796. # Use a header file that comes with gcc, so configuring glibc
  6797. # with a fresh cross-compiler works.
  6798. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6799. # <limits.h> exists even on freestanding compilers.
  6800. # On the NeXT, cc -E runs the code through the compiler's parser,
  6801. # not just through cpp. "Syntax error" is here to catch this case.
  6802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6803. /* end confdefs.h. */
  6804. #ifdef __STDC__
  6805. # include <limits.h>
  6806. #else
  6807. # include <assert.h>
  6808. #endif
  6809. Syntax error
  6810. _ACEOF
  6811. if ac_fn_c_try_cpp "$LINENO"; then :
  6812. else
  6813. # Broken: fails on valid input.
  6814. continue
  6815. fi
  6816. rm -f conftest.err conftest.i conftest.$ac_ext
  6817. # OK, works on sane cases. Now check whether nonexistent headers
  6818. # can be detected and how.
  6819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6820. /* end confdefs.h. */
  6821. #include <ac_nonexistent.h>
  6822. _ACEOF
  6823. if ac_fn_c_try_cpp "$LINENO"; then :
  6824. # Broken: success on invalid input.
  6825. continue
  6826. else
  6827. # Passes both tests.
  6828. ac_preproc_ok=:
  6829. break
  6830. fi
  6831. rm -f conftest.err conftest.i conftest.$ac_ext
  6832. done
  6833. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6834. rm -f conftest.i conftest.err conftest.$ac_ext
  6835. if $ac_preproc_ok; then :
  6836. break
  6837. fi
  6838. done
  6839. ac_cv_prog_CPP=$CPP
  6840. fi
  6841. CPP=$ac_cv_prog_CPP
  6842. else
  6843. ac_cv_prog_CPP=$CPP
  6844. fi
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6846. $as_echo "$CPP" >&6; }
  6847. ac_preproc_ok=false
  6848. for ac_c_preproc_warn_flag in '' yes
  6849. do
  6850. # Use a header file that comes with gcc, so configuring glibc
  6851. # with a fresh cross-compiler works.
  6852. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6853. # <limits.h> exists even on freestanding compilers.
  6854. # On the NeXT, cc -E runs the code through the compiler's parser,
  6855. # not just through cpp. "Syntax error" is here to catch this case.
  6856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6857. /* end confdefs.h. */
  6858. #ifdef __STDC__
  6859. # include <limits.h>
  6860. #else
  6861. # include <assert.h>
  6862. #endif
  6863. Syntax error
  6864. _ACEOF
  6865. if ac_fn_c_try_cpp "$LINENO"; then :
  6866. else
  6867. # Broken: fails on valid input.
  6868. continue
  6869. fi
  6870. rm -f conftest.err conftest.i conftest.$ac_ext
  6871. # OK, works on sane cases. Now check whether nonexistent headers
  6872. # can be detected and how.
  6873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6874. /* end confdefs.h. */
  6875. #include <ac_nonexistent.h>
  6876. _ACEOF
  6877. if ac_fn_c_try_cpp "$LINENO"; then :
  6878. # Broken: success on invalid input.
  6879. continue
  6880. else
  6881. # Passes both tests.
  6882. ac_preproc_ok=:
  6883. break
  6884. fi
  6885. rm -f conftest.err conftest.i conftest.$ac_ext
  6886. done
  6887. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6888. rm -f conftest.i conftest.err conftest.$ac_ext
  6889. if $ac_preproc_ok; then :
  6890. else
  6891. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6892. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6893. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6894. See \`config.log' for more details" "$LINENO" 5; }
  6895. fi
  6896. ac_ext=c
  6897. ac_cpp='$CPP $CPPFLAGS'
  6898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6902. $as_echo_n "checking for ANSI C header files... " >&6; }
  6903. if ${ac_cv_header_stdc+:} false; then :
  6904. $as_echo_n "(cached) " >&6
  6905. else
  6906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6907. /* end confdefs.h. */
  6908. #include <stdlib.h>
  6909. #include <stdarg.h>
  6910. #include <string.h>
  6911. #include <float.h>
  6912. int
  6913. main ()
  6914. {
  6915. ;
  6916. return 0;
  6917. }
  6918. _ACEOF
  6919. if ac_fn_c_try_compile "$LINENO"; then :
  6920. ac_cv_header_stdc=yes
  6921. else
  6922. ac_cv_header_stdc=no
  6923. fi
  6924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6925. if test $ac_cv_header_stdc = yes; then
  6926. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6928. /* end confdefs.h. */
  6929. #include <string.h>
  6930. _ACEOF
  6931. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6932. $EGREP "memchr" >/dev/null 2>&1; then :
  6933. else
  6934. ac_cv_header_stdc=no
  6935. fi
  6936. rm -f conftest*
  6937. fi
  6938. if test $ac_cv_header_stdc = yes; then
  6939. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6941. /* end confdefs.h. */
  6942. #include <stdlib.h>
  6943. _ACEOF
  6944. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6945. $EGREP "free" >/dev/null 2>&1; then :
  6946. else
  6947. ac_cv_header_stdc=no
  6948. fi
  6949. rm -f conftest*
  6950. fi
  6951. if test $ac_cv_header_stdc = yes; then
  6952. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6953. if test "$cross_compiling" = yes; then :
  6954. :
  6955. else
  6956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6957. /* end confdefs.h. */
  6958. #include <ctype.h>
  6959. #include <stdlib.h>
  6960. #if ((' ' & 0x0FF) == 0x020)
  6961. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6962. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6963. #else
  6964. # define ISLOWER(c) \
  6965. (('a' <= (c) && (c) <= 'i') \
  6966. || ('j' <= (c) && (c) <= 'r') \
  6967. || ('s' <= (c) && (c) <= 'z'))
  6968. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6969. #endif
  6970. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6971. int
  6972. main ()
  6973. {
  6974. int i;
  6975. for (i = 0; i < 256; i++)
  6976. if (XOR (islower (i), ISLOWER (i))
  6977. || toupper (i) != TOUPPER (i))
  6978. return 2;
  6979. return 0;
  6980. }
  6981. _ACEOF
  6982. if ac_fn_c_try_run "$LINENO"; then :
  6983. else
  6984. ac_cv_header_stdc=no
  6985. fi
  6986. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6987. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6988. fi
  6989. fi
  6990. fi
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6992. $as_echo "$ac_cv_header_stdc" >&6; }
  6993. if test $ac_cv_header_stdc = yes; then
  6994. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6995. fi
  6996. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6997. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6998. inttypes.h stdint.h unistd.h
  6999. do :
  7000. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7001. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7002. "
  7003. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7004. cat >>confdefs.h <<_ACEOF
  7005. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7006. _ACEOF
  7007. fi
  7008. done
  7009. for ac_header in dlfcn.h
  7010. do :
  7011. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7012. "
  7013. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7014. cat >>confdefs.h <<_ACEOF
  7015. #define HAVE_DLFCN_H 1
  7016. _ACEOF
  7017. fi
  7018. done
  7019. func_stripname_cnf ()
  7020. {
  7021. case ${2} in
  7022. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7023. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7024. esac
  7025. } # func_stripname_cnf
  7026. # Set options
  7027. enable_dlopen=no
  7028. enable_win32_dll=no
  7029. # Check whether --with-pic was given.
  7030. if test "${with_pic+set}" = set; then :
  7031. withval=$with_pic; pic_mode="$withval"
  7032. else
  7033. pic_mode=default
  7034. fi
  7035. test -z "$pic_mode" && pic_mode=default
  7036. # Check whether --enable-fast-install was given.
  7037. if test "${enable_fast_install+set}" = set; then :
  7038. enableval=$enable_fast_install; p=${PACKAGE-default}
  7039. case $enableval in
  7040. yes) enable_fast_install=yes ;;
  7041. no) enable_fast_install=no ;;
  7042. *)
  7043. enable_fast_install=no
  7044. # Look at the argument we got. We use all the common list separators.
  7045. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7046. for pkg in $enableval; do
  7047. IFS="$lt_save_ifs"
  7048. if test "X$pkg" = "X$p"; then
  7049. enable_fast_install=yes
  7050. fi
  7051. done
  7052. IFS="$lt_save_ifs"
  7053. ;;
  7054. esac
  7055. else
  7056. enable_fast_install=yes
  7057. fi
  7058. # This can be used to rebuild libtool when needed
  7059. LIBTOOL_DEPS="$ltmain"
  7060. # Always use our own libtool.
  7061. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7062. test -z "$LN_S" && LN_S="ln -s"
  7063. if test -n "${ZSH_VERSION+set}" ; then
  7064. setopt NO_GLOB_SUBST
  7065. fi
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7067. $as_echo_n "checking for objdir... " >&6; }
  7068. if ${lt_cv_objdir+:} false; then :
  7069. $as_echo_n "(cached) " >&6
  7070. else
  7071. rm -f .libs 2>/dev/null
  7072. mkdir .libs 2>/dev/null
  7073. if test -d .libs; then
  7074. lt_cv_objdir=.libs
  7075. else
  7076. # MS-DOS does not allow filenames that begin with a dot.
  7077. lt_cv_objdir=_libs
  7078. fi
  7079. rmdir .libs 2>/dev/null
  7080. fi
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7082. $as_echo "$lt_cv_objdir" >&6; }
  7083. objdir=$lt_cv_objdir
  7084. cat >>confdefs.h <<_ACEOF
  7085. #define LT_OBJDIR "$lt_cv_objdir/"
  7086. _ACEOF
  7087. case $host_os in
  7088. aix3*)
  7089. # AIX sometimes has problems with the GCC collect2 program. For some
  7090. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7091. # vanish in a puff of smoke.
  7092. if test "X${COLLECT_NAMES+set}" != Xset; then
  7093. COLLECT_NAMES=
  7094. export COLLECT_NAMES
  7095. fi
  7096. ;;
  7097. esac
  7098. # Global variables:
  7099. ofile=libtool
  7100. can_build_shared=yes
  7101. # All known linkers require a `.a' archive for static linking (except MSVC,
  7102. # which needs '.lib').
  7103. libext=a
  7104. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7105. old_CC="$CC"
  7106. old_CFLAGS="$CFLAGS"
  7107. # Set sane defaults for various variables
  7108. test -z "$CC" && CC=cc
  7109. test -z "$LTCC" && LTCC=$CC
  7110. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7111. test -z "$LD" && LD=ld
  7112. test -z "$ac_objext" && ac_objext=o
  7113. for cc_temp in $compiler""; do
  7114. case $cc_temp in
  7115. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7116. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7117. \-*) ;;
  7118. *) break;;
  7119. esac
  7120. done
  7121. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7122. # Only perform the check for file, if the check method requires it
  7123. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7124. case $deplibs_check_method in
  7125. file_magic*)
  7126. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7128. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7129. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. case $MAGIC_CMD in
  7133. [\\/*] | ?:[\\/]*)
  7134. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7135. ;;
  7136. *)
  7137. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7138. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7139. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7140. for ac_dir in $ac_dummy; do
  7141. IFS="$lt_save_ifs"
  7142. test -z "$ac_dir" && ac_dir=.
  7143. if test -f $ac_dir/${ac_tool_prefix}file; then
  7144. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7145. if test -n "$file_magic_test_file"; then
  7146. case $deplibs_check_method in
  7147. "file_magic "*)
  7148. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7149. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7150. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7151. $EGREP "$file_magic_regex" > /dev/null; then
  7152. :
  7153. else
  7154. cat <<_LT_EOF 1>&2
  7155. *** Warning: the command libtool uses to detect shared libraries,
  7156. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7157. *** The result is that libtool may fail to recognize shared libraries
  7158. *** as such. This will affect the creation of libtool libraries that
  7159. *** depend on shared libraries, but programs linked with such libtool
  7160. *** libraries will work regardless of this problem. Nevertheless, you
  7161. *** may want to report the problem to your system manager and/or to
  7162. *** [email protected]
  7163. _LT_EOF
  7164. fi ;;
  7165. esac
  7166. fi
  7167. break
  7168. fi
  7169. done
  7170. IFS="$lt_save_ifs"
  7171. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7172. ;;
  7173. esac
  7174. fi
  7175. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7176. if test -n "$MAGIC_CMD"; then
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7178. $as_echo "$MAGIC_CMD" >&6; }
  7179. else
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7181. $as_echo "no" >&6; }
  7182. fi
  7183. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7184. if test -n "$ac_tool_prefix"; then
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7186. $as_echo_n "checking for file... " >&6; }
  7187. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7188. $as_echo_n "(cached) " >&6
  7189. else
  7190. case $MAGIC_CMD in
  7191. [\\/*] | ?:[\\/]*)
  7192. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7193. ;;
  7194. *)
  7195. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7196. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7197. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7198. for ac_dir in $ac_dummy; do
  7199. IFS="$lt_save_ifs"
  7200. test -z "$ac_dir" && ac_dir=.
  7201. if test -f $ac_dir/file; then
  7202. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7203. if test -n "$file_magic_test_file"; then
  7204. case $deplibs_check_method in
  7205. "file_magic "*)
  7206. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7207. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7208. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7209. $EGREP "$file_magic_regex" > /dev/null; then
  7210. :
  7211. else
  7212. cat <<_LT_EOF 1>&2
  7213. *** Warning: the command libtool uses to detect shared libraries,
  7214. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7215. *** The result is that libtool may fail to recognize shared libraries
  7216. *** as such. This will affect the creation of libtool libraries that
  7217. *** depend on shared libraries, but programs linked with such libtool
  7218. *** libraries will work regardless of this problem. Nevertheless, you
  7219. *** may want to report the problem to your system manager and/or to
  7220. *** [email protected]
  7221. _LT_EOF
  7222. fi ;;
  7223. esac
  7224. fi
  7225. break
  7226. fi
  7227. done
  7228. IFS="$lt_save_ifs"
  7229. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7230. ;;
  7231. esac
  7232. fi
  7233. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7234. if test -n "$MAGIC_CMD"; then
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7236. $as_echo "$MAGIC_CMD" >&6; }
  7237. else
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7239. $as_echo "no" >&6; }
  7240. fi
  7241. else
  7242. MAGIC_CMD=:
  7243. fi
  7244. fi
  7245. fi
  7246. ;;
  7247. esac
  7248. # Use C for the default configuration in the libtool script
  7249. lt_save_CC="$CC"
  7250. ac_ext=c
  7251. ac_cpp='$CPP $CPPFLAGS'
  7252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7253. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7254. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7255. # Source file extension for C test sources.
  7256. ac_ext=c
  7257. # Object file extension for compiled C test sources.
  7258. objext=o
  7259. objext=$objext
  7260. # Code to be used in simple compile tests
  7261. lt_simple_compile_test_code="int some_variable = 0;"
  7262. # Code to be used in simple link tests
  7263. lt_simple_link_test_code='int main(){return(0);}'
  7264. # If no C compiler was specified, use CC.
  7265. LTCC=${LTCC-"$CC"}
  7266. # If no C compiler flags were specified, use CFLAGS.
  7267. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7268. # Allow CC to be a program name with arguments.
  7269. compiler=$CC
  7270. # Save the default compiler, since it gets overwritten when the other
  7271. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7272. compiler_DEFAULT=$CC
  7273. # save warnings/boilerplate of simple test code
  7274. ac_outfile=conftest.$ac_objext
  7275. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7276. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7277. _lt_compiler_boilerplate=`cat conftest.err`
  7278. $RM conftest*
  7279. ac_outfile=conftest.$ac_objext
  7280. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7281. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7282. _lt_linker_boilerplate=`cat conftest.err`
  7283. $RM -r conftest*
  7284. ## CAVEAT EMPTOR:
  7285. ## There is no encapsulation within the following macros, do not change
  7286. ## the running order or otherwise move them around unless you know exactly
  7287. ## what you are doing...
  7288. if test -n "$compiler"; then
  7289. lt_prog_compiler_no_builtin_flag=
  7290. if test "$GCC" = yes; then
  7291. case $cc_basename in
  7292. nvcc*)
  7293. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7294. *)
  7295. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7296. esac
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7298. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7299. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7300. $as_echo_n "(cached) " >&6
  7301. else
  7302. lt_cv_prog_compiler_rtti_exceptions=no
  7303. ac_outfile=conftest.$ac_objext
  7304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7305. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7306. # Insert the option either (1) after the last *FLAGS variable, or
  7307. # (2) before a word containing "conftest.", or (3) at the end.
  7308. # Note that $ac_compile itself does not contain backslashes and begins
  7309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7310. # The option is referenced via a variable to avoid confusing sed.
  7311. lt_compile=`echo "$ac_compile" | $SED \
  7312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7314. -e 's:$: $lt_compiler_flag:'`
  7315. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7316. (eval "$lt_compile" 2>conftest.err)
  7317. ac_status=$?
  7318. cat conftest.err >&5
  7319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7320. if (exit $ac_status) && test -s "$ac_outfile"; then
  7321. # The compiler can only warn and ignore the option if not recognized
  7322. # So say no if there are warnings other than the usual output.
  7323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7324. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7325. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7326. lt_cv_prog_compiler_rtti_exceptions=yes
  7327. fi
  7328. fi
  7329. $RM conftest*
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7332. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7333. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7334. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7335. else
  7336. :
  7337. fi
  7338. fi
  7339. lt_prog_compiler_wl=
  7340. lt_prog_compiler_pic=
  7341. lt_prog_compiler_static=
  7342. if test "$GCC" = yes; then
  7343. lt_prog_compiler_wl='-Wl,'
  7344. lt_prog_compiler_static='-static'
  7345. case $host_os in
  7346. aix*)
  7347. # All AIX code is PIC.
  7348. if test "$host_cpu" = ia64; then
  7349. # AIX 5 now supports IA64 processor
  7350. lt_prog_compiler_static='-Bstatic'
  7351. fi
  7352. ;;
  7353. amigaos*)
  7354. case $host_cpu in
  7355. powerpc)
  7356. # see comment about AmigaOS4 .so support
  7357. lt_prog_compiler_pic='-fPIC'
  7358. ;;
  7359. m68k)
  7360. # FIXME: we need at least 68020 code to build shared libraries, but
  7361. # adding the `-m68020' flag to GCC prevents building anything better,
  7362. # like `-m68040'.
  7363. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7364. ;;
  7365. esac
  7366. ;;
  7367. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7368. # PIC is the default for these OSes.
  7369. ;;
  7370. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7371. # This hack is so that the source file can tell whether it is being
  7372. # built for inclusion in a dll (and should export symbols for example).
  7373. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7374. # (--disable-auto-import) libraries
  7375. lt_prog_compiler_pic='-DDLL_EXPORT'
  7376. ;;
  7377. darwin* | rhapsody*)
  7378. # PIC is the default on this platform
  7379. # Common symbols not allowed in MH_DYLIB files
  7380. lt_prog_compiler_pic='-fno-common'
  7381. ;;
  7382. haiku*)
  7383. # PIC is the default for Haiku.
  7384. # The "-static" flag exists, but is broken.
  7385. lt_prog_compiler_static=
  7386. ;;
  7387. hpux*)
  7388. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7389. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7390. # sets the default TLS model and affects inlining.
  7391. case $host_cpu in
  7392. hppa*64*)
  7393. # +Z the default
  7394. ;;
  7395. *)
  7396. lt_prog_compiler_pic='-fPIC'
  7397. ;;
  7398. esac
  7399. ;;
  7400. interix[3-9]*)
  7401. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7402. # Instead, we relocate shared libraries at runtime.
  7403. ;;
  7404. msdosdjgpp*)
  7405. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7406. # on systems that don't support them.
  7407. lt_prog_compiler_can_build_shared=no
  7408. enable_shared=no
  7409. ;;
  7410. *nto* | *qnx*)
  7411. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7412. # it will coredump.
  7413. lt_prog_compiler_pic='-fPIC -shared'
  7414. ;;
  7415. sysv4*MP*)
  7416. if test -d /usr/nec; then
  7417. lt_prog_compiler_pic=-Kconform_pic
  7418. fi
  7419. ;;
  7420. *)
  7421. lt_prog_compiler_pic='-fPIC'
  7422. ;;
  7423. esac
  7424. case $cc_basename in
  7425. nvcc*) # Cuda Compiler Driver 2.2
  7426. lt_prog_compiler_wl='-Xlinker '
  7427. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7428. ;;
  7429. esac
  7430. else
  7431. # PORTME Check for flag to pass linker flags through the system compiler.
  7432. case $host_os in
  7433. aix*)
  7434. lt_prog_compiler_wl='-Wl,'
  7435. if test "$host_cpu" = ia64; then
  7436. # AIX 5 now supports IA64 processor
  7437. lt_prog_compiler_static='-Bstatic'
  7438. else
  7439. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7440. fi
  7441. ;;
  7442. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7443. # This hack is so that the source file can tell whether it is being
  7444. # built for inclusion in a dll (and should export symbols for example).
  7445. lt_prog_compiler_pic='-DDLL_EXPORT'
  7446. ;;
  7447. hpux9* | hpux10* | hpux11*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7450. # not for PA HP-UX.
  7451. case $host_cpu in
  7452. hppa*64*|ia64*)
  7453. # +Z the default
  7454. ;;
  7455. *)
  7456. lt_prog_compiler_pic='+Z'
  7457. ;;
  7458. esac
  7459. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7460. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7461. ;;
  7462. irix5* | irix6* | nonstopux*)
  7463. lt_prog_compiler_wl='-Wl,'
  7464. # PIC (with -KPIC) is the default.
  7465. lt_prog_compiler_static='-non_shared'
  7466. ;;
  7467. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7468. case $cc_basename in
  7469. # old Intel for x86_64 which still supported -KPIC.
  7470. ecc*)
  7471. lt_prog_compiler_wl='-Wl,'
  7472. lt_prog_compiler_pic='-KPIC'
  7473. lt_prog_compiler_static='-static'
  7474. ;;
  7475. # icc used to be incompatible with GCC.
  7476. # ICC 10 doesn't accept -KPIC any more.
  7477. icc* | ifort*)
  7478. lt_prog_compiler_wl='-Wl,'
  7479. lt_prog_compiler_pic='-fPIC'
  7480. lt_prog_compiler_static='-static'
  7481. ;;
  7482. # Lahey Fortran 8.1.
  7483. lf95*)
  7484. lt_prog_compiler_wl='-Wl,'
  7485. lt_prog_compiler_pic='--shared'
  7486. lt_prog_compiler_static='--static'
  7487. ;;
  7488. nagfor*)
  7489. # NAG Fortran compiler
  7490. lt_prog_compiler_wl='-Wl,-Wl,,'
  7491. lt_prog_compiler_pic='-PIC'
  7492. lt_prog_compiler_static='-Bstatic'
  7493. ;;
  7494. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7495. # Portland Group compilers (*not* the Pentium gcc compiler,
  7496. # which looks to be a dead project)
  7497. lt_prog_compiler_wl='-Wl,'
  7498. lt_prog_compiler_pic='-fpic'
  7499. lt_prog_compiler_static='-Bstatic'
  7500. ;;
  7501. ccc*)
  7502. lt_prog_compiler_wl='-Wl,'
  7503. # All Alpha code is PIC.
  7504. lt_prog_compiler_static='-non_shared'
  7505. ;;
  7506. xl* | bgxl* | bgf* | mpixl*)
  7507. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7508. lt_prog_compiler_wl='-Wl,'
  7509. lt_prog_compiler_pic='-qpic'
  7510. lt_prog_compiler_static='-qstaticlink'
  7511. ;;
  7512. *)
  7513. case `$CC -V 2>&1 | sed 5q` in
  7514. *Sun\ F* | *Sun*Fortran*)
  7515. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. lt_prog_compiler_wl=''
  7519. ;;
  7520. *Sun\ C*)
  7521. # Sun C 5.9
  7522. lt_prog_compiler_pic='-KPIC'
  7523. lt_prog_compiler_static='-Bstatic'
  7524. lt_prog_compiler_wl='-Wl,'
  7525. ;;
  7526. esac
  7527. ;;
  7528. esac
  7529. ;;
  7530. newsos6)
  7531. lt_prog_compiler_pic='-KPIC'
  7532. lt_prog_compiler_static='-Bstatic'
  7533. ;;
  7534. *nto* | *qnx*)
  7535. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7536. # it will coredump.
  7537. lt_prog_compiler_pic='-fPIC -shared'
  7538. ;;
  7539. osf3* | osf4* | osf5*)
  7540. lt_prog_compiler_wl='-Wl,'
  7541. # All OSF/1 code is PIC.
  7542. lt_prog_compiler_static='-non_shared'
  7543. ;;
  7544. rdos*)
  7545. lt_prog_compiler_static='-non_shared'
  7546. ;;
  7547. solaris*)
  7548. lt_prog_compiler_pic='-KPIC'
  7549. lt_prog_compiler_static='-Bstatic'
  7550. case $cc_basename in
  7551. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7552. lt_prog_compiler_wl='-Qoption ld ';;
  7553. *)
  7554. lt_prog_compiler_wl='-Wl,';;
  7555. esac
  7556. ;;
  7557. sunos4*)
  7558. lt_prog_compiler_wl='-Qoption ld '
  7559. lt_prog_compiler_pic='-PIC'
  7560. lt_prog_compiler_static='-Bstatic'
  7561. ;;
  7562. sysv4 | sysv4.2uw2* | sysv4.3*)
  7563. lt_prog_compiler_wl='-Wl,'
  7564. lt_prog_compiler_pic='-KPIC'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. ;;
  7567. sysv4*MP*)
  7568. if test -d /usr/nec ;then
  7569. lt_prog_compiler_pic='-Kconform_pic'
  7570. lt_prog_compiler_static='-Bstatic'
  7571. fi
  7572. ;;
  7573. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7574. lt_prog_compiler_wl='-Wl,'
  7575. lt_prog_compiler_pic='-KPIC'
  7576. lt_prog_compiler_static='-Bstatic'
  7577. ;;
  7578. unicos*)
  7579. lt_prog_compiler_wl='-Wl,'
  7580. lt_prog_compiler_can_build_shared=no
  7581. ;;
  7582. uts4*)
  7583. lt_prog_compiler_pic='-pic'
  7584. lt_prog_compiler_static='-Bstatic'
  7585. ;;
  7586. *)
  7587. lt_prog_compiler_can_build_shared=no
  7588. ;;
  7589. esac
  7590. fi
  7591. case $host_os in
  7592. # For platforms which do not support PIC, -DPIC is meaningless:
  7593. *djgpp*)
  7594. lt_prog_compiler_pic=
  7595. ;;
  7596. *)
  7597. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7598. ;;
  7599. esac
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7601. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7602. if ${lt_cv_prog_compiler_pic+:} false; then :
  7603. $as_echo_n "(cached) " >&6
  7604. else
  7605. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7606. fi
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7608. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7609. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7610. #
  7611. # Check to make sure the PIC flag actually works.
  7612. #
  7613. if test -n "$lt_prog_compiler_pic"; then
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7615. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7616. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7617. $as_echo_n "(cached) " >&6
  7618. else
  7619. lt_cv_prog_compiler_pic_works=no
  7620. ac_outfile=conftest.$ac_objext
  7621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7622. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7623. # Insert the option either (1) after the last *FLAGS variable, or
  7624. # (2) before a word containing "conftest.", or (3) at the end.
  7625. # Note that $ac_compile itself does not contain backslashes and begins
  7626. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7627. # The option is referenced via a variable to avoid confusing sed.
  7628. lt_compile=`echo "$ac_compile" | $SED \
  7629. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7630. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7631. -e 's:$: $lt_compiler_flag:'`
  7632. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7633. (eval "$lt_compile" 2>conftest.err)
  7634. ac_status=$?
  7635. cat conftest.err >&5
  7636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7637. if (exit $ac_status) && test -s "$ac_outfile"; then
  7638. # The compiler can only warn and ignore the option if not recognized
  7639. # So say no if there are warnings other than the usual output.
  7640. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7641. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7642. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7643. lt_cv_prog_compiler_pic_works=yes
  7644. fi
  7645. fi
  7646. $RM conftest*
  7647. fi
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7649. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7650. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7651. case $lt_prog_compiler_pic in
  7652. "" | " "*) ;;
  7653. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7654. esac
  7655. else
  7656. lt_prog_compiler_pic=
  7657. lt_prog_compiler_can_build_shared=no
  7658. fi
  7659. fi
  7660. #
  7661. # Check to make sure the static flag actually works.
  7662. #
  7663. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7665. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7666. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7667. $as_echo_n "(cached) " >&6
  7668. else
  7669. lt_cv_prog_compiler_static_works=no
  7670. save_LDFLAGS="$LDFLAGS"
  7671. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7672. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7673. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7674. # The linker can only warn and ignore the option if not recognized
  7675. # So say no if there are warnings
  7676. if test -s conftest.err; then
  7677. # Append any errors to the config.log.
  7678. cat conftest.err 1>&5
  7679. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7680. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7681. if diff conftest.exp conftest.er2 >/dev/null; then
  7682. lt_cv_prog_compiler_static_works=yes
  7683. fi
  7684. else
  7685. lt_cv_prog_compiler_static_works=yes
  7686. fi
  7687. fi
  7688. $RM -r conftest*
  7689. LDFLAGS="$save_LDFLAGS"
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7692. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7693. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7694. :
  7695. else
  7696. lt_prog_compiler_static=
  7697. fi
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7699. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7700. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7701. $as_echo_n "(cached) " >&6
  7702. else
  7703. lt_cv_prog_compiler_c_o=no
  7704. $RM -r conftest 2>/dev/null
  7705. mkdir conftest
  7706. cd conftest
  7707. mkdir out
  7708. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7709. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7710. # Insert the option either (1) after the last *FLAGS variable, or
  7711. # (2) before a word containing "conftest.", or (3) at the end.
  7712. # Note that $ac_compile itself does not contain backslashes and begins
  7713. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7714. lt_compile=`echo "$ac_compile" | $SED \
  7715. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7716. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7717. -e 's:$: $lt_compiler_flag:'`
  7718. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7719. (eval "$lt_compile" 2>out/conftest.err)
  7720. ac_status=$?
  7721. cat out/conftest.err >&5
  7722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7723. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7724. then
  7725. # The compiler can only warn and ignore the option if not recognized
  7726. # So say no if there are warnings
  7727. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7728. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7729. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7730. lt_cv_prog_compiler_c_o=yes
  7731. fi
  7732. fi
  7733. chmod u+w . 2>&5
  7734. $RM conftest*
  7735. # SGI C++ compiler will create directory out/ii_files/ for
  7736. # template instantiation
  7737. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7738. $RM out/* && rmdir out
  7739. cd ..
  7740. $RM -r conftest
  7741. $RM conftest*
  7742. fi
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7744. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7746. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7747. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7748. $as_echo_n "(cached) " >&6
  7749. else
  7750. lt_cv_prog_compiler_c_o=no
  7751. $RM -r conftest 2>/dev/null
  7752. mkdir conftest
  7753. cd conftest
  7754. mkdir out
  7755. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7756. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7757. # Insert the option either (1) after the last *FLAGS variable, or
  7758. # (2) before a word containing "conftest.", or (3) at the end.
  7759. # Note that $ac_compile itself does not contain backslashes and begins
  7760. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7761. lt_compile=`echo "$ac_compile" | $SED \
  7762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7764. -e 's:$: $lt_compiler_flag:'`
  7765. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7766. (eval "$lt_compile" 2>out/conftest.err)
  7767. ac_status=$?
  7768. cat out/conftest.err >&5
  7769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7771. then
  7772. # The compiler can only warn and ignore the option if not recognized
  7773. # So say no if there are warnings
  7774. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7775. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7776. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7777. lt_cv_prog_compiler_c_o=yes
  7778. fi
  7779. fi
  7780. chmod u+w . 2>&5
  7781. $RM conftest*
  7782. # SGI C++ compiler will create directory out/ii_files/ for
  7783. # template instantiation
  7784. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7785. $RM out/* && rmdir out
  7786. cd ..
  7787. $RM -r conftest
  7788. $RM conftest*
  7789. fi
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7791. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7792. hard_links="nottested"
  7793. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7794. # do not overwrite the value of need_locks provided by the user
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7796. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7797. hard_links=yes
  7798. $RM conftest*
  7799. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7800. touch conftest.a
  7801. ln conftest.a conftest.b 2>&5 || hard_links=no
  7802. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7804. $as_echo "$hard_links" >&6; }
  7805. if test "$hard_links" = no; then
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7807. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7808. need_locks=warn
  7809. fi
  7810. else
  7811. need_locks=no
  7812. fi
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7814. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7815. runpath_var=
  7816. allow_undefined_flag=
  7817. always_export_symbols=no
  7818. archive_cmds=
  7819. archive_expsym_cmds=
  7820. compiler_needs_object=no
  7821. enable_shared_with_static_runtimes=no
  7822. export_dynamic_flag_spec=
  7823. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7824. hardcode_automatic=no
  7825. hardcode_direct=no
  7826. hardcode_direct_absolute=no
  7827. hardcode_libdir_flag_spec=
  7828. hardcode_libdir_flag_spec_ld=
  7829. hardcode_libdir_separator=
  7830. hardcode_minus_L=no
  7831. hardcode_shlibpath_var=unsupported
  7832. inherit_rpath=no
  7833. link_all_deplibs=unknown
  7834. module_cmds=
  7835. module_expsym_cmds=
  7836. old_archive_from_new_cmds=
  7837. old_archive_from_expsyms_cmds=
  7838. thread_safe_flag_spec=
  7839. whole_archive_flag_spec=
  7840. # include_expsyms should be a list of space-separated symbols to be *always*
  7841. # included in the symbol list
  7842. include_expsyms=
  7843. # exclude_expsyms can be an extended regexp of symbols to exclude
  7844. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7845. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7846. # as well as any symbol that contains `d'.
  7847. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7848. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7849. # platforms (ab)use it in PIC code, but their linkers get confused if
  7850. # the symbol is explicitly referenced. Since portable code cannot
  7851. # rely on this symbol name, it's probably fine to never include it in
  7852. # preloaded symbol tables.
  7853. # Exclude shared library initialization/finalization symbols.
  7854. extract_expsyms_cmds=
  7855. case $host_os in
  7856. cygwin* | mingw* | pw32* | cegcc*)
  7857. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7858. # When not using gcc, we currently assume that we are using
  7859. # Microsoft Visual C++.
  7860. if test "$GCC" != yes; then
  7861. with_gnu_ld=no
  7862. fi
  7863. ;;
  7864. interix*)
  7865. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7866. with_gnu_ld=yes
  7867. ;;
  7868. openbsd*)
  7869. with_gnu_ld=no
  7870. ;;
  7871. linux* | k*bsd*-gnu | gnu*)
  7872. link_all_deplibs=no
  7873. ;;
  7874. esac
  7875. ld_shlibs=yes
  7876. # On some targets, GNU ld is compatible enough with the native linker
  7877. # that we're better off using the native interface for both.
  7878. lt_use_gnu_ld_interface=no
  7879. if test "$with_gnu_ld" = yes; then
  7880. case $host_os in
  7881. aix*)
  7882. # The AIX port of GNU ld has always aspired to compatibility
  7883. # with the native linker. However, as the warning in the GNU ld
  7884. # block says, versions before 2.19.5* couldn't really create working
  7885. # shared libraries, regardless of the interface used.
  7886. case `$LD -v 2>&1` in
  7887. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7888. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7889. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7890. *)
  7891. lt_use_gnu_ld_interface=yes
  7892. ;;
  7893. esac
  7894. ;;
  7895. *)
  7896. lt_use_gnu_ld_interface=yes
  7897. ;;
  7898. esac
  7899. fi
  7900. if test "$lt_use_gnu_ld_interface" = yes; then
  7901. # If archive_cmds runs LD, not CC, wlarc should be empty
  7902. wlarc='${wl}'
  7903. # Set some defaults for GNU ld with shared library support. These
  7904. # are reset later if shared libraries are not supported. Putting them
  7905. # here allows them to be overridden if necessary.
  7906. runpath_var=LD_RUN_PATH
  7907. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7908. export_dynamic_flag_spec='${wl}--export-dynamic'
  7909. # ancient GNU ld didn't support --whole-archive et. al.
  7910. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7911. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7912. else
  7913. whole_archive_flag_spec=
  7914. fi
  7915. supports_anon_versioning=no
  7916. case `$LD -v 2>&1` in
  7917. *GNU\ gold*) supports_anon_versioning=yes ;;
  7918. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7919. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7920. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7921. *\ 2.11.*) ;; # other 2.11 versions
  7922. *) supports_anon_versioning=yes ;;
  7923. esac
  7924. # See if GNU ld supports shared libraries.
  7925. case $host_os in
  7926. aix[3-9]*)
  7927. # On AIX/PPC, the GNU linker is very broken
  7928. if test "$host_cpu" != ia64; then
  7929. ld_shlibs=no
  7930. cat <<_LT_EOF 1>&2
  7931. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7932. *** to be unable to reliably create shared libraries on AIX.
  7933. *** Therefore, libtool is disabling shared libraries support. If you
  7934. *** really care for shared libraries, you may want to install binutils
  7935. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7936. *** You will then need to restart the configuration process.
  7937. _LT_EOF
  7938. fi
  7939. ;;
  7940. amigaos*)
  7941. case $host_cpu in
  7942. powerpc)
  7943. # see comment about AmigaOS4 .so support
  7944. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7945. archive_expsym_cmds=''
  7946. ;;
  7947. m68k)
  7948. 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)'
  7949. hardcode_libdir_flag_spec='-L$libdir'
  7950. hardcode_minus_L=yes
  7951. ;;
  7952. esac
  7953. ;;
  7954. beos*)
  7955. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7956. allow_undefined_flag=unsupported
  7957. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7958. # support --undefined. This deserves some investigation. FIXME
  7959. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7960. else
  7961. ld_shlibs=no
  7962. fi
  7963. ;;
  7964. cygwin* | mingw* | pw32* | cegcc*)
  7965. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7966. # as there is no search path for DLLs.
  7967. hardcode_libdir_flag_spec='-L$libdir'
  7968. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7969. allow_undefined_flag=unsupported
  7970. always_export_symbols=no
  7971. enable_shared_with_static_runtimes=yes
  7972. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7973. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7974. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7976. # If the export-symbols file already is a .def file (1st line
  7977. # is EXPORTS), use it as is; otherwise, prepend...
  7978. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7979. cp $export_symbols $output_objdir/$soname.def;
  7980. else
  7981. echo EXPORTS > $output_objdir/$soname.def;
  7982. cat $export_symbols >> $output_objdir/$soname.def;
  7983. fi~
  7984. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7985. else
  7986. ld_shlibs=no
  7987. fi
  7988. ;;
  7989. haiku*)
  7990. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7991. link_all_deplibs=yes
  7992. ;;
  7993. interix[3-9]*)
  7994. hardcode_direct=no
  7995. hardcode_shlibpath_var=no
  7996. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7997. export_dynamic_flag_spec='${wl}-E'
  7998. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7999. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8000. # default) and relocated if they conflict, which is a slow very memory
  8001. # consuming and fragmenting process. To avoid this, we pick a random,
  8002. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8003. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8004. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8005. 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'
  8006. ;;
  8007. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8008. tmp_diet=no
  8009. if test "$host_os" = linux-dietlibc; then
  8010. case $cc_basename in
  8011. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8012. esac
  8013. fi
  8014. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8015. && test "$tmp_diet" = no
  8016. then
  8017. tmp_addflag=' $pic_flag'
  8018. tmp_sharedflag='-shared'
  8019. case $cc_basename,$host_cpu in
  8020. pgcc*) # Portland Group C compiler
  8021. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8022. tmp_addflag=' $pic_flag'
  8023. ;;
  8024. pgf77* | pgf90* | pgf95* | pgfortran*)
  8025. # Portland Group f77 and f90 compilers
  8026. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8027. tmp_addflag=' $pic_flag -Mnomain' ;;
  8028. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8029. tmp_addflag=' -i_dynamic' ;;
  8030. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8031. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8032. ifc* | ifort*) # Intel Fortran compiler
  8033. tmp_addflag=' -nofor_main' ;;
  8034. lf95*) # Lahey Fortran 8.1
  8035. whole_archive_flag_spec=
  8036. tmp_sharedflag='--shared' ;;
  8037. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8038. tmp_sharedflag='-qmkshrobj'
  8039. tmp_addflag= ;;
  8040. nvcc*) # Cuda Compiler Driver 2.2
  8041. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8042. compiler_needs_object=yes
  8043. ;;
  8044. esac
  8045. case `$CC -V 2>&1 | sed 5q` in
  8046. *Sun\ C*) # Sun C 5.9
  8047. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8048. compiler_needs_object=yes
  8049. tmp_sharedflag='-G' ;;
  8050. *Sun\ F*) # Sun Fortran 8.3
  8051. tmp_sharedflag='-G' ;;
  8052. esac
  8053. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8054. if test "x$supports_anon_versioning" = xyes; then
  8055. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8056. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8057. echo "local: *; };" >> $output_objdir/$libname.ver~
  8058. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8059. fi
  8060. case $cc_basename in
  8061. xlf* | bgf* | bgxlf* | mpixlf*)
  8062. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8063. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8064. hardcode_libdir_flag_spec=
  8065. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8066. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8067. if test "x$supports_anon_versioning" = xyes; then
  8068. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8069. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8070. echo "local: *; };" >> $output_objdir/$libname.ver~
  8071. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8072. fi
  8073. ;;
  8074. esac
  8075. else
  8076. ld_shlibs=no
  8077. fi
  8078. ;;
  8079. netbsd* | netbsdelf*-gnu)
  8080. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8081. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8082. wlarc=
  8083. else
  8084. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8085. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8086. fi
  8087. ;;
  8088. solaris*)
  8089. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8090. ld_shlibs=no
  8091. cat <<_LT_EOF 1>&2
  8092. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8093. *** create shared libraries on Solaris systems. Therefore, libtool
  8094. *** is disabling shared libraries support. We urge you to upgrade GNU
  8095. *** binutils to release 2.9.1 or newer. Another option is to modify
  8096. *** your PATH or compiler configuration so that the native linker is
  8097. *** used, and then restart.
  8098. _LT_EOF
  8099. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8100. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8101. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8102. else
  8103. ld_shlibs=no
  8104. fi
  8105. ;;
  8106. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8107. case `$LD -v 2>&1` in
  8108. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8109. ld_shlibs=no
  8110. cat <<_LT_EOF 1>&2
  8111. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8112. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8113. *** is disabling shared libraries support. We urge you to upgrade GNU
  8114. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8115. *** your PATH or compiler configuration so that the native linker is
  8116. *** used, and then restart.
  8117. _LT_EOF
  8118. ;;
  8119. *)
  8120. # For security reasons, it is highly recommended that you always
  8121. # use absolute paths for naming shared libraries, and exclude the
  8122. # DT_RUNPATH tag from executables and libraries. But doing so
  8123. # requires that you compile everything twice, which is a pain.
  8124. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8125. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8126. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8127. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8128. else
  8129. ld_shlibs=no
  8130. fi
  8131. ;;
  8132. esac
  8133. ;;
  8134. sunos4*)
  8135. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8136. wlarc=
  8137. hardcode_direct=yes
  8138. hardcode_shlibpath_var=no
  8139. ;;
  8140. *)
  8141. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8142. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8143. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8144. else
  8145. ld_shlibs=no
  8146. fi
  8147. ;;
  8148. esac
  8149. if test "$ld_shlibs" = no; then
  8150. runpath_var=
  8151. hardcode_libdir_flag_spec=
  8152. export_dynamic_flag_spec=
  8153. whole_archive_flag_spec=
  8154. fi
  8155. else
  8156. # PORTME fill in a description of your system's linker (not GNU ld)
  8157. case $host_os in
  8158. aix3*)
  8159. allow_undefined_flag=unsupported
  8160. always_export_symbols=yes
  8161. 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'
  8162. # Note: this linker hardcodes the directories in LIBPATH if there
  8163. # are no directories specified by -L.
  8164. hardcode_minus_L=yes
  8165. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8166. # Neither direct hardcoding nor static linking is supported with a
  8167. # broken collect2.
  8168. hardcode_direct=unsupported
  8169. fi
  8170. ;;
  8171. aix[4-9]*)
  8172. if test "$host_cpu" = ia64; then
  8173. # On IA64, the linker does run time linking by default, so we don't
  8174. # have to do anything special.
  8175. aix_use_runtimelinking=no
  8176. exp_sym_flag='-Bexport'
  8177. no_entry_flag=""
  8178. else
  8179. # If we're using GNU nm, then we don't want the "-C" option.
  8180. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8181. # Also, AIX nm treats weak defined symbols like other global
  8182. # defined symbols, whereas GNU nm marks them as "W".
  8183. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8184. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8185. else
  8186. 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'
  8187. fi
  8188. aix_use_runtimelinking=no
  8189. # Test if we are trying to use run time linking or normal
  8190. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8191. # need to do runtime linking.
  8192. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8193. for ld_flag in $LDFLAGS; do
  8194. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8195. aix_use_runtimelinking=yes
  8196. break
  8197. fi
  8198. done
  8199. ;;
  8200. esac
  8201. exp_sym_flag='-bexport'
  8202. no_entry_flag='-bnoentry'
  8203. fi
  8204. # When large executables or shared objects are built, AIX ld can
  8205. # have problems creating the table of contents. If linking a library
  8206. # or program results in "error TOC overflow" add -mminimal-toc to
  8207. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8208. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8209. archive_cmds=''
  8210. hardcode_direct=yes
  8211. hardcode_direct_absolute=yes
  8212. hardcode_libdir_separator=':'
  8213. link_all_deplibs=yes
  8214. file_list_spec='${wl}-f,'
  8215. if test "$GCC" = yes; then
  8216. case $host_os in aix4.[012]|aix4.[012].*)
  8217. # We only want to do this on AIX 4.2 and lower, the check
  8218. # below for broken collect2 doesn't work under 4.3+
  8219. collect2name=`${CC} -print-prog-name=collect2`
  8220. if test -f "$collect2name" &&
  8221. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8222. then
  8223. # We have reworked collect2
  8224. :
  8225. else
  8226. # We have old collect2
  8227. hardcode_direct=unsupported
  8228. # It fails to find uninstalled libraries when the uninstalled
  8229. # path is not listed in the libpath. Setting hardcode_minus_L
  8230. # to unsupported forces relinking
  8231. hardcode_minus_L=yes
  8232. hardcode_libdir_flag_spec='-L$libdir'
  8233. hardcode_libdir_separator=
  8234. fi
  8235. ;;
  8236. esac
  8237. shared_flag='-shared'
  8238. if test "$aix_use_runtimelinking" = yes; then
  8239. shared_flag="$shared_flag "'${wl}-G'
  8240. fi
  8241. link_all_deplibs=no
  8242. else
  8243. # not using gcc
  8244. if test "$host_cpu" = ia64; then
  8245. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8246. # chokes on -Wl,-G. The following line is correct:
  8247. shared_flag='-G'
  8248. else
  8249. if test "$aix_use_runtimelinking" = yes; then
  8250. shared_flag='${wl}-G'
  8251. else
  8252. shared_flag='${wl}-bM:SRE'
  8253. fi
  8254. fi
  8255. fi
  8256. export_dynamic_flag_spec='${wl}-bexpall'
  8257. # It seems that -bexpall does not export symbols beginning with
  8258. # underscore (_), so it is better to generate a list of symbols to export.
  8259. always_export_symbols=yes
  8260. if test "$aix_use_runtimelinking" = yes; then
  8261. # Warning - without using the other runtime loading flags (-brtl),
  8262. # -berok will link without error, but may produce a broken library.
  8263. allow_undefined_flag='-berok'
  8264. # Determine the default libpath from the value encoded in an
  8265. # empty executable.
  8266. if test "${lt_cv_aix_libpath+set}" = set; then
  8267. aix_libpath=$lt_cv_aix_libpath
  8268. else
  8269. if ${lt_cv_aix_libpath_+:} false; then :
  8270. $as_echo_n "(cached) " >&6
  8271. else
  8272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8273. /* end confdefs.h. */
  8274. int
  8275. main ()
  8276. {
  8277. ;
  8278. return 0;
  8279. }
  8280. _ACEOF
  8281. if ac_fn_c_try_link "$LINENO"; then :
  8282. lt_aix_libpath_sed='
  8283. /Import File Strings/,/^$/ {
  8284. /^0/ {
  8285. s/^0 *\([^ ]*\) *$/\1/
  8286. p
  8287. }
  8288. }'
  8289. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8290. # Check for a 64-bit object if we didn't find anything.
  8291. if test -z "$lt_cv_aix_libpath_"; then
  8292. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8293. fi
  8294. fi
  8295. rm -f core conftest.err conftest.$ac_objext \
  8296. conftest$ac_exeext conftest.$ac_ext
  8297. if test -z "$lt_cv_aix_libpath_"; then
  8298. lt_cv_aix_libpath_="/usr/lib:/lib"
  8299. fi
  8300. fi
  8301. aix_libpath=$lt_cv_aix_libpath_
  8302. fi
  8303. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8304. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8305. else
  8306. if test "$host_cpu" = ia64; then
  8307. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8308. allow_undefined_flag="-z nodefs"
  8309. 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"
  8310. else
  8311. # Determine the default libpath from the value encoded in an
  8312. # empty executable.
  8313. if test "${lt_cv_aix_libpath+set}" = set; then
  8314. aix_libpath=$lt_cv_aix_libpath
  8315. else
  8316. if ${lt_cv_aix_libpath_+:} false; then :
  8317. $as_echo_n "(cached) " >&6
  8318. else
  8319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8320. /* end confdefs.h. */
  8321. int
  8322. main ()
  8323. {
  8324. ;
  8325. return 0;
  8326. }
  8327. _ACEOF
  8328. if ac_fn_c_try_link "$LINENO"; then :
  8329. lt_aix_libpath_sed='
  8330. /Import File Strings/,/^$/ {
  8331. /^0/ {
  8332. s/^0 *\([^ ]*\) *$/\1/
  8333. p
  8334. }
  8335. }'
  8336. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8337. # Check for a 64-bit object if we didn't find anything.
  8338. if test -z "$lt_cv_aix_libpath_"; then
  8339. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8340. fi
  8341. fi
  8342. rm -f core conftest.err conftest.$ac_objext \
  8343. conftest$ac_exeext conftest.$ac_ext
  8344. if test -z "$lt_cv_aix_libpath_"; then
  8345. lt_cv_aix_libpath_="/usr/lib:/lib"
  8346. fi
  8347. fi
  8348. aix_libpath=$lt_cv_aix_libpath_
  8349. fi
  8350. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8351. # Warning - without using the other run time loading flags,
  8352. # -berok will link without error, but may produce a broken library.
  8353. no_undefined_flag=' ${wl}-bernotok'
  8354. allow_undefined_flag=' ${wl}-berok'
  8355. if test "$with_gnu_ld" = yes; then
  8356. # We only use this code for GNU lds that support --whole-archive.
  8357. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8358. else
  8359. # Exported symbols can be pulled into shared objects from archives
  8360. whole_archive_flag_spec='$convenience'
  8361. fi
  8362. archive_cmds_need_lc=yes
  8363. # This is similar to how AIX traditionally builds its shared libraries.
  8364. 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'
  8365. fi
  8366. fi
  8367. ;;
  8368. amigaos*)
  8369. case $host_cpu in
  8370. powerpc)
  8371. # see comment about AmigaOS4 .so support
  8372. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8373. archive_expsym_cmds=''
  8374. ;;
  8375. m68k)
  8376. 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)'
  8377. hardcode_libdir_flag_spec='-L$libdir'
  8378. hardcode_minus_L=yes
  8379. ;;
  8380. esac
  8381. ;;
  8382. bsdi[45]*)
  8383. export_dynamic_flag_spec=-rdynamic
  8384. ;;
  8385. cygwin* | mingw* | pw32* | cegcc*)
  8386. # When not using gcc, we currently assume that we are using
  8387. # Microsoft Visual C++.
  8388. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8389. # no search path for DLLs.
  8390. case $cc_basename in
  8391. cl*)
  8392. # Native MSVC
  8393. hardcode_libdir_flag_spec=' '
  8394. allow_undefined_flag=unsupported
  8395. always_export_symbols=yes
  8396. file_list_spec='@'
  8397. # Tell ltmain to make .lib files, not .a files.
  8398. libext=lib
  8399. # Tell ltmain to make .dll files, not .so files.
  8400. shrext_cmds=".dll"
  8401. # FIXME: Setting linknames here is a bad hack.
  8402. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8403. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8404. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8405. else
  8406. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8407. fi~
  8408. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8409. linknames='
  8410. # The linker will not automatically build a static lib if we build a DLL.
  8411. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8412. enable_shared_with_static_runtimes=yes
  8413. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8414. # Don't use ranlib
  8415. old_postinstall_cmds='chmod 644 $oldlib'
  8416. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8417. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8418. case $lt_outputfile in
  8419. *.exe|*.EXE) ;;
  8420. *)
  8421. lt_outputfile="$lt_outputfile.exe"
  8422. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8423. ;;
  8424. esac~
  8425. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8426. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8427. $RM "$lt_outputfile.manifest";
  8428. fi'
  8429. ;;
  8430. *)
  8431. # Assume MSVC wrapper
  8432. hardcode_libdir_flag_spec=' '
  8433. allow_undefined_flag=unsupported
  8434. # Tell ltmain to make .lib files, not .a files.
  8435. libext=lib
  8436. # Tell ltmain to make .dll files, not .so files.
  8437. shrext_cmds=".dll"
  8438. # FIXME: Setting linknames here is a bad hack.
  8439. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8440. # The linker will automatically build a .lib file if we build a DLL.
  8441. old_archive_from_new_cmds='true'
  8442. # FIXME: Should let the user specify the lib program.
  8443. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8444. enable_shared_with_static_runtimes=yes
  8445. ;;
  8446. esac
  8447. ;;
  8448. darwin* | rhapsody*)
  8449. archive_cmds_need_lc=no
  8450. hardcode_direct=no
  8451. hardcode_automatic=yes
  8452. hardcode_shlibpath_var=unsupported
  8453. if test "$lt_cv_ld_force_load" = "yes"; then
  8454. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8455. else
  8456. whole_archive_flag_spec=''
  8457. fi
  8458. link_all_deplibs=yes
  8459. allow_undefined_flag="$_lt_dar_allow_undefined"
  8460. case $cc_basename in
  8461. ifort*) _lt_dar_can_shared=yes ;;
  8462. *) _lt_dar_can_shared=$GCC ;;
  8463. esac
  8464. if test "$_lt_dar_can_shared" = "yes"; then
  8465. output_verbose_link_cmd=func_echo_all
  8466. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8467. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8468. 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}"
  8469. 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}"
  8470. else
  8471. ld_shlibs=no
  8472. fi
  8473. ;;
  8474. dgux*)
  8475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8476. hardcode_libdir_flag_spec='-L$libdir'
  8477. hardcode_shlibpath_var=no
  8478. ;;
  8479. freebsd1*)
  8480. ld_shlibs=no
  8481. ;;
  8482. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8483. # support. Future versions do this automatically, but an explicit c++rt0.o
  8484. # does not break anything, and helps significantly (at the cost of a little
  8485. # extra space).
  8486. freebsd2.2*)
  8487. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8488. hardcode_libdir_flag_spec='-R$libdir'
  8489. hardcode_direct=yes
  8490. hardcode_shlibpath_var=no
  8491. ;;
  8492. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8493. freebsd2*)
  8494. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8495. hardcode_direct=yes
  8496. hardcode_minus_L=yes
  8497. hardcode_shlibpath_var=no
  8498. ;;
  8499. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8500. freebsd* | dragonfly*)
  8501. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8502. hardcode_libdir_flag_spec='-R$libdir'
  8503. hardcode_direct=yes
  8504. hardcode_shlibpath_var=no
  8505. ;;
  8506. hpux9*)
  8507. if test "$GCC" = yes; then
  8508. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8509. else
  8510. 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'
  8511. fi
  8512. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8513. hardcode_libdir_separator=:
  8514. hardcode_direct=yes
  8515. # hardcode_minus_L: Not really in the search PATH,
  8516. # but as the default location of the library.
  8517. hardcode_minus_L=yes
  8518. export_dynamic_flag_spec='${wl}-E'
  8519. ;;
  8520. hpux10*)
  8521. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8522. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8523. else
  8524. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8525. fi
  8526. if test "$with_gnu_ld" = no; then
  8527. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8528. hardcode_libdir_flag_spec_ld='+b $libdir'
  8529. hardcode_libdir_separator=:
  8530. hardcode_direct=yes
  8531. hardcode_direct_absolute=yes
  8532. export_dynamic_flag_spec='${wl}-E'
  8533. # hardcode_minus_L: Not really in the search PATH,
  8534. # but as the default location of the library.
  8535. hardcode_minus_L=yes
  8536. fi
  8537. ;;
  8538. hpux11*)
  8539. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8540. case $host_cpu in
  8541. hppa*64*)
  8542. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. ;;
  8544. ia64*)
  8545. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8546. ;;
  8547. *)
  8548. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8549. ;;
  8550. esac
  8551. else
  8552. case $host_cpu in
  8553. hppa*64*)
  8554. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8555. ;;
  8556. ia64*)
  8557. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8558. ;;
  8559. *)
  8560. # Older versions of the 11.00 compiler do not understand -b yet
  8561. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8563. $as_echo_n "checking if $CC understands -b... " >&6; }
  8564. if ${lt_cv_prog_compiler__b+:} false; then :
  8565. $as_echo_n "(cached) " >&6
  8566. else
  8567. lt_cv_prog_compiler__b=no
  8568. save_LDFLAGS="$LDFLAGS"
  8569. LDFLAGS="$LDFLAGS -b"
  8570. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8571. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8572. # The linker can only warn and ignore the option if not recognized
  8573. # So say no if there are warnings
  8574. if test -s conftest.err; then
  8575. # Append any errors to the config.log.
  8576. cat conftest.err 1>&5
  8577. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8578. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8579. if diff conftest.exp conftest.er2 >/dev/null; then
  8580. lt_cv_prog_compiler__b=yes
  8581. fi
  8582. else
  8583. lt_cv_prog_compiler__b=yes
  8584. fi
  8585. fi
  8586. $RM -r conftest*
  8587. LDFLAGS="$save_LDFLAGS"
  8588. fi
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8590. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8591. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8592. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8593. else
  8594. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8595. fi
  8596. ;;
  8597. esac
  8598. fi
  8599. if test "$with_gnu_ld" = no; then
  8600. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8601. hardcode_libdir_separator=:
  8602. case $host_cpu in
  8603. hppa*64*|ia64*)
  8604. hardcode_direct=no
  8605. hardcode_shlibpath_var=no
  8606. ;;
  8607. *)
  8608. hardcode_direct=yes
  8609. hardcode_direct_absolute=yes
  8610. export_dynamic_flag_spec='${wl}-E'
  8611. # hardcode_minus_L: Not really in the search PATH,
  8612. # but as the default location of the library.
  8613. hardcode_minus_L=yes
  8614. ;;
  8615. esac
  8616. fi
  8617. ;;
  8618. irix5* | irix6* | nonstopux*)
  8619. if test "$GCC" = yes; then
  8620. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8621. # Try to use the -exported_symbol ld option, if it does not
  8622. # work, assume that -exports_file does not work either and
  8623. # implicitly export all symbols.
  8624. # This should be the same for all languages, so no per-tag cache variable.
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8626. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8627. if ${lt_cv_irix_exported_symbol+:} false; then :
  8628. $as_echo_n "(cached) " >&6
  8629. else
  8630. save_LDFLAGS="$LDFLAGS"
  8631. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8633. /* end confdefs.h. */
  8634. int foo (void) { return 0; }
  8635. _ACEOF
  8636. if ac_fn_c_try_link "$LINENO"; then :
  8637. lt_cv_irix_exported_symbol=yes
  8638. else
  8639. lt_cv_irix_exported_symbol=no
  8640. fi
  8641. rm -f core conftest.err conftest.$ac_objext \
  8642. conftest$ac_exeext conftest.$ac_ext
  8643. LDFLAGS="$save_LDFLAGS"
  8644. fi
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8646. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8647. if test "$lt_cv_irix_exported_symbol" = yes; then
  8648. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8649. fi
  8650. else
  8651. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8652. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8653. fi
  8654. archive_cmds_need_lc='no'
  8655. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8656. hardcode_libdir_separator=:
  8657. inherit_rpath=yes
  8658. link_all_deplibs=yes
  8659. ;;
  8660. netbsd* | netbsdelf*-gnu)
  8661. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8662. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8663. else
  8664. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8665. fi
  8666. hardcode_libdir_flag_spec='-R$libdir'
  8667. hardcode_direct=yes
  8668. hardcode_shlibpath_var=no
  8669. ;;
  8670. newsos6)
  8671. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8672. hardcode_direct=yes
  8673. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8674. hardcode_libdir_separator=:
  8675. hardcode_shlibpath_var=no
  8676. ;;
  8677. *nto* | *qnx*)
  8678. ;;
  8679. openbsd*)
  8680. if test -f /usr/libexec/ld.so; then
  8681. hardcode_direct=yes
  8682. hardcode_shlibpath_var=no
  8683. hardcode_direct_absolute=yes
  8684. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8685. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8686. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8687. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8688. export_dynamic_flag_spec='${wl}-E'
  8689. else
  8690. case $host_os in
  8691. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8692. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8693. hardcode_libdir_flag_spec='-R$libdir'
  8694. ;;
  8695. *)
  8696. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8697. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8698. ;;
  8699. esac
  8700. fi
  8701. else
  8702. ld_shlibs=no
  8703. fi
  8704. ;;
  8705. os2*)
  8706. hardcode_libdir_flag_spec='-L$libdir'
  8707. hardcode_minus_L=yes
  8708. allow_undefined_flag=unsupported
  8709. 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'
  8710. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8711. ;;
  8712. osf3*)
  8713. if test "$GCC" = yes; then
  8714. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8715. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8716. else
  8717. allow_undefined_flag=' -expect_unresolved \*'
  8718. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8719. fi
  8720. archive_cmds_need_lc='no'
  8721. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8722. hardcode_libdir_separator=:
  8723. ;;
  8724. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8725. if test "$GCC" = yes; then
  8726. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8727. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8728. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8729. else
  8730. allow_undefined_flag=' -expect_unresolved \*'
  8731. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8732. 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~
  8733. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8734. # Both c and cxx compiler support -rpath directly
  8735. hardcode_libdir_flag_spec='-rpath $libdir'
  8736. fi
  8737. archive_cmds_need_lc='no'
  8738. hardcode_libdir_separator=:
  8739. ;;
  8740. solaris*)
  8741. no_undefined_flag=' -z defs'
  8742. if test "$GCC" = yes; then
  8743. wlarc='${wl}'
  8744. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8745. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8746. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8747. else
  8748. case `$CC -V 2>&1` in
  8749. *"Compilers 5.0"*)
  8750. wlarc=''
  8751. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8752. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8753. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8754. ;;
  8755. *)
  8756. wlarc='${wl}'
  8757. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8758. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8759. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8760. ;;
  8761. esac
  8762. fi
  8763. hardcode_libdir_flag_spec='-R$libdir'
  8764. hardcode_shlibpath_var=no
  8765. case $host_os in
  8766. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8767. *)
  8768. # The compiler driver will combine and reorder linker options,
  8769. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8770. # but is careful enough not to reorder.
  8771. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8772. if test "$GCC" = yes; then
  8773. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8774. else
  8775. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8776. fi
  8777. ;;
  8778. esac
  8779. link_all_deplibs=yes
  8780. ;;
  8781. sunos4*)
  8782. if test "x$host_vendor" = xsequent; then
  8783. # Use $CC to link under sequent, because it throws in some extra .o
  8784. # files that make .init and .fini sections work.
  8785. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8786. else
  8787. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8788. fi
  8789. hardcode_libdir_flag_spec='-L$libdir'
  8790. hardcode_direct=yes
  8791. hardcode_minus_L=yes
  8792. hardcode_shlibpath_var=no
  8793. ;;
  8794. sysv4)
  8795. case $host_vendor in
  8796. sni)
  8797. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8798. hardcode_direct=yes # is this really true???
  8799. ;;
  8800. siemens)
  8801. ## LD is ld it makes a PLAMLIB
  8802. ## CC just makes a GrossModule.
  8803. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8804. reload_cmds='$CC -r -o $output$reload_objs'
  8805. hardcode_direct=no
  8806. ;;
  8807. motorola)
  8808. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8809. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8810. ;;
  8811. esac
  8812. runpath_var='LD_RUN_PATH'
  8813. hardcode_shlibpath_var=no
  8814. ;;
  8815. sysv4.3*)
  8816. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8817. hardcode_shlibpath_var=no
  8818. export_dynamic_flag_spec='-Bexport'
  8819. ;;
  8820. sysv4*MP*)
  8821. if test -d /usr/nec; then
  8822. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8823. hardcode_shlibpath_var=no
  8824. runpath_var=LD_RUN_PATH
  8825. hardcode_runpath_var=yes
  8826. ld_shlibs=yes
  8827. fi
  8828. ;;
  8829. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8830. no_undefined_flag='${wl}-z,text'
  8831. archive_cmds_need_lc=no
  8832. hardcode_shlibpath_var=no
  8833. runpath_var='LD_RUN_PATH'
  8834. if test "$GCC" = yes; then
  8835. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8836. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8837. else
  8838. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8839. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. fi
  8841. ;;
  8842. sysv5* | sco3.2v5* | sco5v6*)
  8843. # Note: We can NOT use -z defs as we might desire, because we do not
  8844. # link with -lc, and that would cause any symbols used from libc to
  8845. # always be unresolved, which means just about no library would
  8846. # ever link correctly. If we're not using GNU ld we use -z text
  8847. # though, which does catch some bad symbols but isn't as heavy-handed
  8848. # as -z defs.
  8849. no_undefined_flag='${wl}-z,text'
  8850. allow_undefined_flag='${wl}-z,nodefs'
  8851. archive_cmds_need_lc=no
  8852. hardcode_shlibpath_var=no
  8853. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8854. hardcode_libdir_separator=':'
  8855. link_all_deplibs=yes
  8856. export_dynamic_flag_spec='${wl}-Bexport'
  8857. runpath_var='LD_RUN_PATH'
  8858. if test "$GCC" = yes; then
  8859. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8860. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8861. else
  8862. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8863. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8864. fi
  8865. ;;
  8866. uts4*)
  8867. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8868. hardcode_libdir_flag_spec='-L$libdir'
  8869. hardcode_shlibpath_var=no
  8870. ;;
  8871. *)
  8872. ld_shlibs=no
  8873. ;;
  8874. esac
  8875. if test x$host_vendor = xsni; then
  8876. case $host in
  8877. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8878. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8879. ;;
  8880. esac
  8881. fi
  8882. fi
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8884. $as_echo "$ld_shlibs" >&6; }
  8885. test "$ld_shlibs" = no && can_build_shared=no
  8886. with_gnu_ld=$with_gnu_ld
  8887. #
  8888. # Do we need to explicitly link libc?
  8889. #
  8890. case "x$archive_cmds_need_lc" in
  8891. x|xyes)
  8892. # Assume -lc should be added
  8893. archive_cmds_need_lc=yes
  8894. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8895. case $archive_cmds in
  8896. *'~'*)
  8897. # FIXME: we may have to deal with multi-command sequences.
  8898. ;;
  8899. '$CC '*)
  8900. # Test whether the compiler implicitly links with -lc since on some
  8901. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8902. # to ld, don't add -lc before -lgcc.
  8903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8904. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8905. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8906. $as_echo_n "(cached) " >&6
  8907. else
  8908. $RM conftest*
  8909. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8910. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8911. (eval $ac_compile) 2>&5
  8912. ac_status=$?
  8913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8914. test $ac_status = 0; } 2>conftest.err; then
  8915. soname=conftest
  8916. lib=conftest
  8917. libobjs=conftest.$ac_objext
  8918. deplibs=
  8919. wl=$lt_prog_compiler_wl
  8920. pic_flag=$lt_prog_compiler_pic
  8921. compiler_flags=-v
  8922. linker_flags=-v
  8923. verstring=
  8924. output_objdir=.
  8925. libname=conftest
  8926. lt_save_allow_undefined_flag=$allow_undefined_flag
  8927. allow_undefined_flag=
  8928. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8929. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8930. ac_status=$?
  8931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8932. test $ac_status = 0; }
  8933. then
  8934. lt_cv_archive_cmds_need_lc=no
  8935. else
  8936. lt_cv_archive_cmds_need_lc=yes
  8937. fi
  8938. allow_undefined_flag=$lt_save_allow_undefined_flag
  8939. else
  8940. cat conftest.err 1>&5
  8941. fi
  8942. $RM conftest*
  8943. fi
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8945. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8946. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8947. ;;
  8948. esac
  8949. fi
  8950. ;;
  8951. esac
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8953. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8954. if test "$GCC" = yes; then
  8955. case $host_os in
  8956. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8957. *) lt_awk_arg="/^libraries:/" ;;
  8958. esac
  8959. case $host_os in
  8960. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8961. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8962. esac
  8963. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8964. case $lt_search_path_spec in
  8965. *\;*)
  8966. # if the path contains ";" then we assume it to be the separator
  8967. # otherwise default to the standard path separator (i.e. ":") - it is
  8968. # assumed that no part of a normal pathname contains ";" but that should
  8969. # okay in the real world where ";" in dirpaths is itself problematic.
  8970. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8971. ;;
  8972. *)
  8973. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8974. ;;
  8975. esac
  8976. # Ok, now we have the path, separated by spaces, we can step through it
  8977. # and add multilib dir if necessary.
  8978. lt_tmp_lt_search_path_spec=
  8979. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8980. for lt_sys_path in $lt_search_path_spec; do
  8981. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8982. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8983. else
  8984. test -d "$lt_sys_path" && \
  8985. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8986. fi
  8987. done
  8988. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8989. BEGIN {RS=" "; FS="/|\n";} {
  8990. lt_foo="";
  8991. lt_count=0;
  8992. for (lt_i = NF; lt_i > 0; lt_i--) {
  8993. if ($lt_i != "" && $lt_i != ".") {
  8994. if ($lt_i == "..") {
  8995. lt_count++;
  8996. } else {
  8997. if (lt_count == 0) {
  8998. lt_foo="/" $lt_i lt_foo;
  8999. } else {
  9000. lt_count--;
  9001. }
  9002. }
  9003. }
  9004. }
  9005. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9006. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9007. }'`
  9008. # AWK program above erroneously prepends '/' to C:/dos/paths
  9009. # for these hosts.
  9010. case $host_os in
  9011. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9012. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9013. esac
  9014. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9015. else
  9016. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9017. fi
  9018. library_names_spec=
  9019. libname_spec='lib$name'
  9020. soname_spec=
  9021. shrext_cmds=".so"
  9022. postinstall_cmds=
  9023. postuninstall_cmds=
  9024. finish_cmds=
  9025. finish_eval=
  9026. shlibpath_var=
  9027. shlibpath_overrides_runpath=unknown
  9028. version_type=none
  9029. dynamic_linker="$host_os ld.so"
  9030. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9031. need_lib_prefix=unknown
  9032. hardcode_into_libs=no
  9033. # when you set need_version to no, make sure it does not cause -set_version
  9034. # flags to be left without arguments
  9035. need_version=unknown
  9036. case $host_os in
  9037. aix3*)
  9038. version_type=linux
  9039. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9040. shlibpath_var=LIBPATH
  9041. # AIX 3 has no versioning support, so we append a major version to the name.
  9042. soname_spec='${libname}${release}${shared_ext}$major'
  9043. ;;
  9044. aix[4-9]*)
  9045. version_type=linux
  9046. need_lib_prefix=no
  9047. need_version=no
  9048. hardcode_into_libs=yes
  9049. if test "$host_cpu" = ia64; then
  9050. # AIX 5 supports IA64
  9051. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9052. shlibpath_var=LD_LIBRARY_PATH
  9053. else
  9054. # With GCC up to 2.95.x, collect2 would create an import file
  9055. # for dependence libraries. The import file would start with
  9056. # the line `#! .'. This would cause the generated library to
  9057. # depend on `.', always an invalid library. This was fixed in
  9058. # development snapshots of GCC prior to 3.0.
  9059. case $host_os in
  9060. aix4 | aix4.[01] | aix4.[01].*)
  9061. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9062. echo ' yes '
  9063. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9064. :
  9065. else
  9066. can_build_shared=no
  9067. fi
  9068. ;;
  9069. esac
  9070. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9071. # soname into executable. Probably we can add versioning support to
  9072. # collect2, so additional links can be useful in future.
  9073. if test "$aix_use_runtimelinking" = yes; then
  9074. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9075. # instead of lib<name>.a to let people know that these are not
  9076. # typical AIX shared libraries.
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9078. else
  9079. # We preserve .a as extension for shared libraries through AIX4.2
  9080. # and later when we are not doing run time linking.
  9081. library_names_spec='${libname}${release}.a $libname.a'
  9082. soname_spec='${libname}${release}${shared_ext}$major'
  9083. fi
  9084. shlibpath_var=LIBPATH
  9085. fi
  9086. ;;
  9087. amigaos*)
  9088. case $host_cpu in
  9089. powerpc)
  9090. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9091. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9093. ;;
  9094. m68k)
  9095. library_names_spec='$libname.ixlibrary $libname.a'
  9096. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9097. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9098. ;;
  9099. esac
  9100. ;;
  9101. beos*)
  9102. library_names_spec='${libname}${shared_ext}'
  9103. dynamic_linker="$host_os ld.so"
  9104. shlibpath_var=LIBRARY_PATH
  9105. ;;
  9106. bsdi[45]*)
  9107. version_type=linux
  9108. need_version=no
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9110. soname_spec='${libname}${release}${shared_ext}$major'
  9111. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9112. shlibpath_var=LD_LIBRARY_PATH
  9113. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9114. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9115. # the default ld.so.conf also contains /usr/contrib/lib and
  9116. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9117. # libtool to hard-code these into programs
  9118. ;;
  9119. cygwin* | mingw* | pw32* | cegcc*)
  9120. version_type=windows
  9121. shrext_cmds=".dll"
  9122. need_version=no
  9123. need_lib_prefix=no
  9124. case $GCC,$cc_basename in
  9125. yes,*)
  9126. # gcc
  9127. library_names_spec='$libname.dll.a'
  9128. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9129. postinstall_cmds='base_file=`basename \${file}`~
  9130. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9131. dldir=$destdir/`dirname \$dlpath`~
  9132. test -d \$dldir || mkdir -p \$dldir~
  9133. $install_prog $dir/$dlname \$dldir/$dlname~
  9134. chmod a+x \$dldir/$dlname~
  9135. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9136. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9137. fi'
  9138. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9139. dlpath=$dir/\$dldll~
  9140. $RM \$dlpath'
  9141. shlibpath_overrides_runpath=yes
  9142. case $host_os in
  9143. cygwin*)
  9144. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9145. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9146. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9147. ;;
  9148. mingw* | cegcc*)
  9149. # MinGW DLLs use traditional 'lib' prefix
  9150. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9151. ;;
  9152. pw32*)
  9153. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9154. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9155. ;;
  9156. esac
  9157. dynamic_linker='Win32 ld.exe'
  9158. ;;
  9159. *,cl*)
  9160. # Native MSVC
  9161. libname_spec='$name'
  9162. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9163. library_names_spec='${libname}.dll.lib'
  9164. case $build_os in
  9165. mingw*)
  9166. sys_lib_search_path_spec=
  9167. lt_save_ifs=$IFS
  9168. IFS=';'
  9169. for lt_path in $LIB
  9170. do
  9171. IFS=$lt_save_ifs
  9172. # Let DOS variable expansion print the short 8.3 style file name.
  9173. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9174. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9175. done
  9176. IFS=$lt_save_ifs
  9177. # Convert to MSYS style.
  9178. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9179. ;;
  9180. cygwin*)
  9181. # Convert to unix form, then to dos form, then back to unix form
  9182. # but this time dos style (no spaces!) so that the unix form looks
  9183. # like /cygdrive/c/PROGRA~1:/cygdr...
  9184. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9185. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9186. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9187. ;;
  9188. *)
  9189. sys_lib_search_path_spec="$LIB"
  9190. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9191. # It is most probably a Windows format PATH.
  9192. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9193. else
  9194. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9195. fi
  9196. # FIXME: find the short name or the path components, as spaces are
  9197. # common. (e.g. "Program Files" -> "PROGRA~1")
  9198. ;;
  9199. esac
  9200. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9201. postinstall_cmds='base_file=`basename \${file}`~
  9202. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9203. dldir=$destdir/`dirname \$dlpath`~
  9204. test -d \$dldir || mkdir -p \$dldir~
  9205. $install_prog $dir/$dlname \$dldir/$dlname'
  9206. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9207. dlpath=$dir/\$dldll~
  9208. $RM \$dlpath'
  9209. shlibpath_overrides_runpath=yes
  9210. dynamic_linker='Win32 link.exe'
  9211. ;;
  9212. *)
  9213. # Assume MSVC wrapper
  9214. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9215. dynamic_linker='Win32 ld.exe'
  9216. ;;
  9217. esac
  9218. # FIXME: first we should search . and the directory the executable is in
  9219. shlibpath_var=PATH
  9220. ;;
  9221. darwin* | rhapsody*)
  9222. dynamic_linker="$host_os dyld"
  9223. version_type=darwin
  9224. need_lib_prefix=no
  9225. need_version=no
  9226. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9227. soname_spec='${libname}${release}${major}$shared_ext'
  9228. shlibpath_overrides_runpath=yes
  9229. shlibpath_var=DYLD_LIBRARY_PATH
  9230. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9231. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9232. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9233. ;;
  9234. dgux*)
  9235. version_type=linux
  9236. need_lib_prefix=no
  9237. need_version=no
  9238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9239. soname_spec='${libname}${release}${shared_ext}$major'
  9240. shlibpath_var=LD_LIBRARY_PATH
  9241. ;;
  9242. freebsd1*)
  9243. dynamic_linker=no
  9244. ;;
  9245. freebsd* | dragonfly*)
  9246. # DragonFly does not have aout. When/if they implement a new
  9247. # versioning mechanism, adjust this.
  9248. if test -x /usr/bin/objformat; then
  9249. objformat=`/usr/bin/objformat`
  9250. else
  9251. case $host_os in
  9252. freebsd[123]*) objformat=aout ;;
  9253. *) objformat=elf ;;
  9254. esac
  9255. fi
  9256. version_type=freebsd-$objformat
  9257. case $version_type in
  9258. freebsd-elf*)
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9260. need_version=no
  9261. need_lib_prefix=no
  9262. ;;
  9263. freebsd-*)
  9264. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9265. need_version=yes
  9266. ;;
  9267. esac
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. case $host_os in
  9270. freebsd2*)
  9271. shlibpath_overrides_runpath=yes
  9272. ;;
  9273. freebsd3.[01]* | freebsdelf3.[01]*)
  9274. shlibpath_overrides_runpath=yes
  9275. hardcode_into_libs=yes
  9276. ;;
  9277. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9278. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9279. shlibpath_overrides_runpath=no
  9280. hardcode_into_libs=yes
  9281. ;;
  9282. *) # from 4.6 on, and DragonFly
  9283. shlibpath_overrides_runpath=yes
  9284. hardcode_into_libs=yes
  9285. ;;
  9286. esac
  9287. ;;
  9288. gnu*)
  9289. version_type=linux
  9290. need_lib_prefix=no
  9291. need_version=no
  9292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9293. soname_spec='${libname}${release}${shared_ext}$major'
  9294. shlibpath_var=LD_LIBRARY_PATH
  9295. shlibpath_overrides_runpath=no
  9296. hardcode_into_libs=yes
  9297. ;;
  9298. haiku*)
  9299. version_type=linux
  9300. need_lib_prefix=no
  9301. need_version=no
  9302. dynamic_linker="$host_os runtime_loader"
  9303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9304. soname_spec='${libname}${release}${shared_ext}$major'
  9305. shlibpath_var=LIBRARY_PATH
  9306. shlibpath_overrides_runpath=yes
  9307. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9308. hardcode_into_libs=yes
  9309. ;;
  9310. hpux9* | hpux10* | hpux11*)
  9311. # Give a soname corresponding to the major version so that dld.sl refuses to
  9312. # link against other versions.
  9313. version_type=sunos
  9314. need_lib_prefix=no
  9315. need_version=no
  9316. case $host_cpu in
  9317. ia64*)
  9318. shrext_cmds='.so'
  9319. hardcode_into_libs=yes
  9320. dynamic_linker="$host_os dld.so"
  9321. shlibpath_var=LD_LIBRARY_PATH
  9322. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9324. soname_spec='${libname}${release}${shared_ext}$major'
  9325. if test "X$HPUX_IA64_MODE" = X32; then
  9326. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9327. else
  9328. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9329. fi
  9330. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9331. ;;
  9332. hppa*64*)
  9333. shrext_cmds='.sl'
  9334. hardcode_into_libs=yes
  9335. dynamic_linker="$host_os dld.sl"
  9336. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9337. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9339. soname_spec='${libname}${release}${shared_ext}$major'
  9340. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9341. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9342. ;;
  9343. *)
  9344. shrext_cmds='.sl'
  9345. dynamic_linker="$host_os dld.sl"
  9346. shlibpath_var=SHLIB_PATH
  9347. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9349. soname_spec='${libname}${release}${shared_ext}$major'
  9350. ;;
  9351. esac
  9352. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9353. postinstall_cmds='chmod 555 $lib'
  9354. # or fails outright, so override atomically:
  9355. install_override_mode=555
  9356. ;;
  9357. interix[3-9]*)
  9358. version_type=linux
  9359. need_lib_prefix=no
  9360. need_version=no
  9361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9362. soname_spec='${libname}${release}${shared_ext}$major'
  9363. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9364. shlibpath_var=LD_LIBRARY_PATH
  9365. shlibpath_overrides_runpath=no
  9366. hardcode_into_libs=yes
  9367. ;;
  9368. irix5* | irix6* | nonstopux*)
  9369. case $host_os in
  9370. nonstopux*) version_type=nonstopux ;;
  9371. *)
  9372. if test "$lt_cv_prog_gnu_ld" = yes; then
  9373. version_type=linux
  9374. else
  9375. version_type=irix
  9376. fi ;;
  9377. esac
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. soname_spec='${libname}${release}${shared_ext}$major'
  9381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9382. case $host_os in
  9383. irix5* | nonstopux*)
  9384. libsuff= shlibsuff=
  9385. ;;
  9386. *)
  9387. case $LD in # libtool.m4 will add one of these switches to LD
  9388. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9389. libsuff= shlibsuff= libmagic=32-bit;;
  9390. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9391. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9392. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9393. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9394. *) libsuff= shlibsuff= libmagic=never-match;;
  9395. esac
  9396. ;;
  9397. esac
  9398. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9399. shlibpath_overrides_runpath=no
  9400. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9401. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9402. hardcode_into_libs=yes
  9403. ;;
  9404. # No shared lib support for Linux oldld, aout, or coff.
  9405. linux*oldld* | linux*aout* | linux*coff*)
  9406. dynamic_linker=no
  9407. ;;
  9408. # This must be Linux ELF.
  9409. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9410. version_type=linux
  9411. need_lib_prefix=no
  9412. need_version=no
  9413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9414. soname_spec='${libname}${release}${shared_ext}$major'
  9415. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9416. shlibpath_var=LD_LIBRARY_PATH
  9417. shlibpath_overrides_runpath=no
  9418. # Some binutils ld are patched to set DT_RUNPATH
  9419. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9420. $as_echo_n "(cached) " >&6
  9421. else
  9422. lt_cv_shlibpath_overrides_runpath=no
  9423. save_LDFLAGS=$LDFLAGS
  9424. save_libdir=$libdir
  9425. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9426. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9428. /* end confdefs.h. */
  9429. int
  9430. main ()
  9431. {
  9432. ;
  9433. return 0;
  9434. }
  9435. _ACEOF
  9436. if ac_fn_c_try_link "$LINENO"; then :
  9437. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9438. lt_cv_shlibpath_overrides_runpath=yes
  9439. fi
  9440. fi
  9441. rm -f core conftest.err conftest.$ac_objext \
  9442. conftest$ac_exeext conftest.$ac_ext
  9443. LDFLAGS=$save_LDFLAGS
  9444. libdir=$save_libdir
  9445. fi
  9446. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9447. # This implies no fast_install, which is unacceptable.
  9448. # Some rework will be needed to allow for fast_install
  9449. # before this can be enabled.
  9450. hardcode_into_libs=yes
  9451. # Append ld.so.conf contents to the search path
  9452. if test -f /etc/ld.so.conf; then
  9453. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9454. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9455. fi
  9456. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9457. # powerpc, because MkLinux only supported shared libraries with the
  9458. # GNU dynamic linker. Since this was broken with cross compilers,
  9459. # most powerpc-linux boxes support dynamic linking these days and
  9460. # people can always --disable-shared, the test was removed, and we
  9461. # assume the GNU/Linux dynamic linker is in use.
  9462. dynamic_linker='GNU/Linux ld.so'
  9463. ;;
  9464. netbsdelf*-gnu)
  9465. version_type=linux
  9466. need_lib_prefix=no
  9467. need_version=no
  9468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9469. soname_spec='${libname}${release}${shared_ext}$major'
  9470. shlibpath_var=LD_LIBRARY_PATH
  9471. shlibpath_overrides_runpath=no
  9472. hardcode_into_libs=yes
  9473. dynamic_linker='NetBSD ld.elf_so'
  9474. ;;
  9475. netbsd*)
  9476. version_type=sunos
  9477. need_lib_prefix=no
  9478. need_version=no
  9479. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9481. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9482. dynamic_linker='NetBSD (a.out) ld.so'
  9483. else
  9484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9485. soname_spec='${libname}${release}${shared_ext}$major'
  9486. dynamic_linker='NetBSD ld.elf_so'
  9487. fi
  9488. shlibpath_var=LD_LIBRARY_PATH
  9489. shlibpath_overrides_runpath=yes
  9490. hardcode_into_libs=yes
  9491. ;;
  9492. newsos6)
  9493. version_type=linux
  9494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9495. shlibpath_var=LD_LIBRARY_PATH
  9496. shlibpath_overrides_runpath=yes
  9497. ;;
  9498. *nto* | *qnx*)
  9499. version_type=qnx
  9500. need_lib_prefix=no
  9501. need_version=no
  9502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9503. soname_spec='${libname}${release}${shared_ext}$major'
  9504. shlibpath_var=LD_LIBRARY_PATH
  9505. shlibpath_overrides_runpath=no
  9506. hardcode_into_libs=yes
  9507. dynamic_linker='ldqnx.so'
  9508. ;;
  9509. openbsd*)
  9510. version_type=sunos
  9511. sys_lib_dlsearch_path_spec="/usr/lib"
  9512. need_lib_prefix=no
  9513. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9514. case $host_os in
  9515. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9516. *) need_version=no ;;
  9517. esac
  9518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9519. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9520. shlibpath_var=LD_LIBRARY_PATH
  9521. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9522. case $host_os in
  9523. openbsd2.[89] | openbsd2.[89].*)
  9524. shlibpath_overrides_runpath=no
  9525. ;;
  9526. *)
  9527. shlibpath_overrides_runpath=yes
  9528. ;;
  9529. esac
  9530. else
  9531. shlibpath_overrides_runpath=yes
  9532. fi
  9533. ;;
  9534. os2*)
  9535. libname_spec='$name'
  9536. shrext_cmds=".dll"
  9537. need_lib_prefix=no
  9538. library_names_spec='$libname${shared_ext} $libname.a'
  9539. dynamic_linker='OS/2 ld.exe'
  9540. shlibpath_var=LIBPATH
  9541. ;;
  9542. osf3* | osf4* | osf5*)
  9543. version_type=osf
  9544. need_lib_prefix=no
  9545. need_version=no
  9546. soname_spec='${libname}${release}${shared_ext}$major'
  9547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9548. shlibpath_var=LD_LIBRARY_PATH
  9549. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9550. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9551. ;;
  9552. rdos*)
  9553. dynamic_linker=no
  9554. ;;
  9555. solaris*)
  9556. version_type=linux
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9560. soname_spec='${libname}${release}${shared_ext}$major'
  9561. shlibpath_var=LD_LIBRARY_PATH
  9562. shlibpath_overrides_runpath=yes
  9563. hardcode_into_libs=yes
  9564. # ldd complains unless libraries are executable
  9565. postinstall_cmds='chmod +x $lib'
  9566. ;;
  9567. sunos4*)
  9568. version_type=sunos
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9570. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9571. shlibpath_var=LD_LIBRARY_PATH
  9572. shlibpath_overrides_runpath=yes
  9573. if test "$with_gnu_ld" = yes; then
  9574. need_lib_prefix=no
  9575. fi
  9576. need_version=yes
  9577. ;;
  9578. sysv4 | sysv4.3*)
  9579. version_type=linux
  9580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9581. soname_spec='${libname}${release}${shared_ext}$major'
  9582. shlibpath_var=LD_LIBRARY_PATH
  9583. case $host_vendor in
  9584. sni)
  9585. shlibpath_overrides_runpath=no
  9586. need_lib_prefix=no
  9587. runpath_var=LD_RUN_PATH
  9588. ;;
  9589. siemens)
  9590. need_lib_prefix=no
  9591. ;;
  9592. motorola)
  9593. need_lib_prefix=no
  9594. need_version=no
  9595. shlibpath_overrides_runpath=no
  9596. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9597. ;;
  9598. esac
  9599. ;;
  9600. sysv4*MP*)
  9601. if test -d /usr/nec ;then
  9602. version_type=linux
  9603. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9604. soname_spec='$libname${shared_ext}.$major'
  9605. shlibpath_var=LD_LIBRARY_PATH
  9606. fi
  9607. ;;
  9608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9609. version_type=freebsd-elf
  9610. need_lib_prefix=no
  9611. need_version=no
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9613. soname_spec='${libname}${release}${shared_ext}$major'
  9614. shlibpath_var=LD_LIBRARY_PATH
  9615. shlibpath_overrides_runpath=yes
  9616. hardcode_into_libs=yes
  9617. if test "$with_gnu_ld" = yes; then
  9618. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9619. else
  9620. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9621. case $host_os in
  9622. sco3.2v5*)
  9623. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9624. ;;
  9625. esac
  9626. fi
  9627. sys_lib_dlsearch_path_spec='/usr/lib'
  9628. ;;
  9629. tpf*)
  9630. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9631. version_type=linux
  9632. need_lib_prefix=no
  9633. need_version=no
  9634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. shlibpath_overrides_runpath=no
  9637. hardcode_into_libs=yes
  9638. ;;
  9639. uts4*)
  9640. version_type=linux
  9641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9642. soname_spec='${libname}${release}${shared_ext}$major'
  9643. shlibpath_var=LD_LIBRARY_PATH
  9644. ;;
  9645. *)
  9646. dynamic_linker=no
  9647. ;;
  9648. esac
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9650. $as_echo "$dynamic_linker" >&6; }
  9651. test "$dynamic_linker" = no && can_build_shared=no
  9652. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9653. if test "$GCC" = yes; then
  9654. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9655. fi
  9656. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9657. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9658. fi
  9659. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9660. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9661. fi
  9662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9663. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9664. hardcode_action=
  9665. if test -n "$hardcode_libdir_flag_spec" ||
  9666. test -n "$runpath_var" ||
  9667. test "X$hardcode_automatic" = "Xyes" ; then
  9668. # We can hardcode non-existent directories.
  9669. if test "$hardcode_direct" != no &&
  9670. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9671. # have to relink, otherwise we might link with an installed library
  9672. # when we should be linking with a yet-to-be-installed one
  9673. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9674. test "$hardcode_minus_L" != no; then
  9675. # Linking always hardcodes the temporary library directory.
  9676. hardcode_action=relink
  9677. else
  9678. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9679. hardcode_action=immediate
  9680. fi
  9681. else
  9682. # We cannot hardcode anything, or else we can only hardcode existing
  9683. # directories.
  9684. hardcode_action=unsupported
  9685. fi
  9686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9687. $as_echo "$hardcode_action" >&6; }
  9688. if test "$hardcode_action" = relink ||
  9689. test "$inherit_rpath" = yes; then
  9690. # Fast installation is not supported
  9691. enable_fast_install=no
  9692. elif test "$shlibpath_overrides_runpath" = yes ||
  9693. test "$enable_shared" = no; then
  9694. # Fast installation is not necessary
  9695. enable_fast_install=needless
  9696. fi
  9697. if test "x$enable_dlopen" != xyes; then
  9698. enable_dlopen=unknown
  9699. enable_dlopen_self=unknown
  9700. enable_dlopen_self_static=unknown
  9701. else
  9702. lt_cv_dlopen=no
  9703. lt_cv_dlopen_libs=
  9704. case $host_os in
  9705. beos*)
  9706. lt_cv_dlopen="load_add_on"
  9707. lt_cv_dlopen_libs=
  9708. lt_cv_dlopen_self=yes
  9709. ;;
  9710. mingw* | pw32* | cegcc*)
  9711. lt_cv_dlopen="LoadLibrary"
  9712. lt_cv_dlopen_libs=
  9713. ;;
  9714. cygwin*)
  9715. lt_cv_dlopen="dlopen"
  9716. lt_cv_dlopen_libs=
  9717. ;;
  9718. darwin*)
  9719. # if libdl is installed we need to link against it
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9721. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9722. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9723. $as_echo_n "(cached) " >&6
  9724. else
  9725. ac_check_lib_save_LIBS=$LIBS
  9726. LIBS="-ldl $LIBS"
  9727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9728. /* end confdefs.h. */
  9729. /* Override any GCC internal prototype to avoid an error.
  9730. Use char because int might match the return type of a GCC
  9731. builtin and then its argument prototype would still apply. */
  9732. #ifdef __cplusplus
  9733. extern "C"
  9734. #endif
  9735. char dlopen ();
  9736. int
  9737. main ()
  9738. {
  9739. return dlopen ();
  9740. ;
  9741. return 0;
  9742. }
  9743. _ACEOF
  9744. if ac_fn_c_try_link "$LINENO"; then :
  9745. ac_cv_lib_dl_dlopen=yes
  9746. else
  9747. ac_cv_lib_dl_dlopen=no
  9748. fi
  9749. rm -f core conftest.err conftest.$ac_objext \
  9750. conftest$ac_exeext conftest.$ac_ext
  9751. LIBS=$ac_check_lib_save_LIBS
  9752. fi
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9754. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9755. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9756. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9757. else
  9758. lt_cv_dlopen="dyld"
  9759. lt_cv_dlopen_libs=
  9760. lt_cv_dlopen_self=yes
  9761. fi
  9762. ;;
  9763. *)
  9764. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9765. if test "x$ac_cv_func_shl_load" = xyes; then :
  9766. lt_cv_dlopen="shl_load"
  9767. else
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9769. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9770. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9771. $as_echo_n "(cached) " >&6
  9772. else
  9773. ac_check_lib_save_LIBS=$LIBS
  9774. LIBS="-ldld $LIBS"
  9775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9776. /* end confdefs.h. */
  9777. /* Override any GCC internal prototype to avoid an error.
  9778. Use char because int might match the return type of a GCC
  9779. builtin and then its argument prototype would still apply. */
  9780. #ifdef __cplusplus
  9781. extern "C"
  9782. #endif
  9783. char shl_load ();
  9784. int
  9785. main ()
  9786. {
  9787. return shl_load ();
  9788. ;
  9789. return 0;
  9790. }
  9791. _ACEOF
  9792. if ac_fn_c_try_link "$LINENO"; then :
  9793. ac_cv_lib_dld_shl_load=yes
  9794. else
  9795. ac_cv_lib_dld_shl_load=no
  9796. fi
  9797. rm -f core conftest.err conftest.$ac_objext \
  9798. conftest$ac_exeext conftest.$ac_ext
  9799. LIBS=$ac_check_lib_save_LIBS
  9800. fi
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9802. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9803. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9804. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9805. else
  9806. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9807. if test "x$ac_cv_func_dlopen" = xyes; then :
  9808. lt_cv_dlopen="dlopen"
  9809. else
  9810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9811. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9812. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9813. $as_echo_n "(cached) " >&6
  9814. else
  9815. ac_check_lib_save_LIBS=$LIBS
  9816. LIBS="-ldl $LIBS"
  9817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9818. /* end confdefs.h. */
  9819. /* Override any GCC internal prototype to avoid an error.
  9820. Use char because int might match the return type of a GCC
  9821. builtin and then its argument prototype would still apply. */
  9822. #ifdef __cplusplus
  9823. extern "C"
  9824. #endif
  9825. char dlopen ();
  9826. int
  9827. main ()
  9828. {
  9829. return dlopen ();
  9830. ;
  9831. return 0;
  9832. }
  9833. _ACEOF
  9834. if ac_fn_c_try_link "$LINENO"; then :
  9835. ac_cv_lib_dl_dlopen=yes
  9836. else
  9837. ac_cv_lib_dl_dlopen=no
  9838. fi
  9839. rm -f core conftest.err conftest.$ac_objext \
  9840. conftest$ac_exeext conftest.$ac_ext
  9841. LIBS=$ac_check_lib_save_LIBS
  9842. fi
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9844. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9845. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9846. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9847. else
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9849. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9850. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. ac_check_lib_save_LIBS=$LIBS
  9854. LIBS="-lsvld $LIBS"
  9855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9856. /* end confdefs.h. */
  9857. /* Override any GCC internal prototype to avoid an error.
  9858. Use char because int might match the return type of a GCC
  9859. builtin and then its argument prototype would still apply. */
  9860. #ifdef __cplusplus
  9861. extern "C"
  9862. #endif
  9863. char dlopen ();
  9864. int
  9865. main ()
  9866. {
  9867. return dlopen ();
  9868. ;
  9869. return 0;
  9870. }
  9871. _ACEOF
  9872. if ac_fn_c_try_link "$LINENO"; then :
  9873. ac_cv_lib_svld_dlopen=yes
  9874. else
  9875. ac_cv_lib_svld_dlopen=no
  9876. fi
  9877. rm -f core conftest.err conftest.$ac_objext \
  9878. conftest$ac_exeext conftest.$ac_ext
  9879. LIBS=$ac_check_lib_save_LIBS
  9880. fi
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9882. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9883. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9884. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9885. else
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9887. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9888. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9889. $as_echo_n "(cached) " >&6
  9890. else
  9891. ac_check_lib_save_LIBS=$LIBS
  9892. LIBS="-ldld $LIBS"
  9893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9894. /* end confdefs.h. */
  9895. /* Override any GCC internal prototype to avoid an error.
  9896. Use char because int might match the return type of a GCC
  9897. builtin and then its argument prototype would still apply. */
  9898. #ifdef __cplusplus
  9899. extern "C"
  9900. #endif
  9901. char dld_link ();
  9902. int
  9903. main ()
  9904. {
  9905. return dld_link ();
  9906. ;
  9907. return 0;
  9908. }
  9909. _ACEOF
  9910. if ac_fn_c_try_link "$LINENO"; then :
  9911. ac_cv_lib_dld_dld_link=yes
  9912. else
  9913. ac_cv_lib_dld_dld_link=no
  9914. fi
  9915. rm -f core conftest.err conftest.$ac_objext \
  9916. conftest$ac_exeext conftest.$ac_ext
  9917. LIBS=$ac_check_lib_save_LIBS
  9918. fi
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9920. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9921. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9922. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9923. fi
  9924. fi
  9925. fi
  9926. fi
  9927. fi
  9928. fi
  9929. ;;
  9930. esac
  9931. if test "x$lt_cv_dlopen" != xno; then
  9932. enable_dlopen=yes
  9933. else
  9934. enable_dlopen=no
  9935. fi
  9936. case $lt_cv_dlopen in
  9937. dlopen)
  9938. save_CPPFLAGS="$CPPFLAGS"
  9939. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9940. save_LDFLAGS="$LDFLAGS"
  9941. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9942. save_LIBS="$LIBS"
  9943. LIBS="$lt_cv_dlopen_libs $LIBS"
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9945. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9946. if ${lt_cv_dlopen_self+:} false; then :
  9947. $as_echo_n "(cached) " >&6
  9948. else
  9949. if test "$cross_compiling" = yes; then :
  9950. lt_cv_dlopen_self=cross
  9951. else
  9952. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9953. lt_status=$lt_dlunknown
  9954. cat > conftest.$ac_ext <<_LT_EOF
  9955. #line $LINENO "configure"
  9956. #include "confdefs.h"
  9957. #if HAVE_DLFCN_H
  9958. #include <dlfcn.h>
  9959. #endif
  9960. #include <stdio.h>
  9961. #ifdef RTLD_GLOBAL
  9962. # define LT_DLGLOBAL RTLD_GLOBAL
  9963. #else
  9964. # ifdef DL_GLOBAL
  9965. # define LT_DLGLOBAL DL_GLOBAL
  9966. # else
  9967. # define LT_DLGLOBAL 0
  9968. # endif
  9969. #endif
  9970. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9971. find out it does not work in some platform. */
  9972. #ifndef LT_DLLAZY_OR_NOW
  9973. # ifdef RTLD_LAZY
  9974. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9975. # else
  9976. # ifdef DL_LAZY
  9977. # define LT_DLLAZY_OR_NOW DL_LAZY
  9978. # else
  9979. # ifdef RTLD_NOW
  9980. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9981. # else
  9982. # ifdef DL_NOW
  9983. # define LT_DLLAZY_OR_NOW DL_NOW
  9984. # else
  9985. # define LT_DLLAZY_OR_NOW 0
  9986. # endif
  9987. # endif
  9988. # endif
  9989. # endif
  9990. #endif
  9991. /* When -fvisbility=hidden is used, assume the code has been annotated
  9992. correspondingly for the symbols needed. */
  9993. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9994. int fnord () __attribute__((visibility("default")));
  9995. #endif
  9996. int fnord () { return 42; }
  9997. int main ()
  9998. {
  9999. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10000. int status = $lt_dlunknown;
  10001. if (self)
  10002. {
  10003. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10004. else
  10005. {
  10006. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10007. else puts (dlerror ());
  10008. }
  10009. /* dlclose (self); */
  10010. }
  10011. else
  10012. puts (dlerror ());
  10013. return status;
  10014. }
  10015. _LT_EOF
  10016. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10017. (eval $ac_link) 2>&5
  10018. ac_status=$?
  10019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10020. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10021. (./conftest; exit; ) >&5 2>/dev/null
  10022. lt_status=$?
  10023. case x$lt_status in
  10024. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10025. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10026. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10027. esac
  10028. else :
  10029. # compilation failed
  10030. lt_cv_dlopen_self=no
  10031. fi
  10032. fi
  10033. rm -fr conftest*
  10034. fi
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10036. $as_echo "$lt_cv_dlopen_self" >&6; }
  10037. if test "x$lt_cv_dlopen_self" = xyes; then
  10038. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10040. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10041. if ${lt_cv_dlopen_self_static+:} false; then :
  10042. $as_echo_n "(cached) " >&6
  10043. else
  10044. if test "$cross_compiling" = yes; then :
  10045. lt_cv_dlopen_self_static=cross
  10046. else
  10047. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10048. lt_status=$lt_dlunknown
  10049. cat > conftest.$ac_ext <<_LT_EOF
  10050. #line $LINENO "configure"
  10051. #include "confdefs.h"
  10052. #if HAVE_DLFCN_H
  10053. #include <dlfcn.h>
  10054. #endif
  10055. #include <stdio.h>
  10056. #ifdef RTLD_GLOBAL
  10057. # define LT_DLGLOBAL RTLD_GLOBAL
  10058. #else
  10059. # ifdef DL_GLOBAL
  10060. # define LT_DLGLOBAL DL_GLOBAL
  10061. # else
  10062. # define LT_DLGLOBAL 0
  10063. # endif
  10064. #endif
  10065. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10066. find out it does not work in some platform. */
  10067. #ifndef LT_DLLAZY_OR_NOW
  10068. # ifdef RTLD_LAZY
  10069. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10070. # else
  10071. # ifdef DL_LAZY
  10072. # define LT_DLLAZY_OR_NOW DL_LAZY
  10073. # else
  10074. # ifdef RTLD_NOW
  10075. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10076. # else
  10077. # ifdef DL_NOW
  10078. # define LT_DLLAZY_OR_NOW DL_NOW
  10079. # else
  10080. # define LT_DLLAZY_OR_NOW 0
  10081. # endif
  10082. # endif
  10083. # endif
  10084. # endif
  10085. #endif
  10086. /* When -fvisbility=hidden is used, assume the code has been annotated
  10087. correspondingly for the symbols needed. */
  10088. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10089. int fnord () __attribute__((visibility("default")));
  10090. #endif
  10091. int fnord () { return 42; }
  10092. int main ()
  10093. {
  10094. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10095. int status = $lt_dlunknown;
  10096. if (self)
  10097. {
  10098. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10099. else
  10100. {
  10101. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10102. else puts (dlerror ());
  10103. }
  10104. /* dlclose (self); */
  10105. }
  10106. else
  10107. puts (dlerror ());
  10108. return status;
  10109. }
  10110. _LT_EOF
  10111. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10112. (eval $ac_link) 2>&5
  10113. ac_status=$?
  10114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10115. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10116. (./conftest; exit; ) >&5 2>/dev/null
  10117. lt_status=$?
  10118. case x$lt_status in
  10119. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10120. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10121. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10122. esac
  10123. else :
  10124. # compilation failed
  10125. lt_cv_dlopen_self_static=no
  10126. fi
  10127. fi
  10128. rm -fr conftest*
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10131. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10132. fi
  10133. CPPFLAGS="$save_CPPFLAGS"
  10134. LDFLAGS="$save_LDFLAGS"
  10135. LIBS="$save_LIBS"
  10136. ;;
  10137. esac
  10138. case $lt_cv_dlopen_self in
  10139. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10140. *) enable_dlopen_self=unknown ;;
  10141. esac
  10142. case $lt_cv_dlopen_self_static in
  10143. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10144. *) enable_dlopen_self_static=unknown ;;
  10145. esac
  10146. fi
  10147. striplib=
  10148. old_striplib=
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10150. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10151. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10152. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10153. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10155. $as_echo "yes" >&6; }
  10156. else
  10157. # FIXME - insert some real tests, host_os isn't really good enough
  10158. case $host_os in
  10159. darwin*)
  10160. if test -n "$STRIP" ; then
  10161. striplib="$STRIP -x"
  10162. old_striplib="$STRIP -S"
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10164. $as_echo "yes" >&6; }
  10165. else
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10167. $as_echo "no" >&6; }
  10168. fi
  10169. ;;
  10170. *)
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10172. $as_echo "no" >&6; }
  10173. ;;
  10174. esac
  10175. fi
  10176. # Report which library types will actually be built
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10178. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10180. $as_echo "$can_build_shared" >&6; }
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10182. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10183. test "$can_build_shared" = "no" && enable_shared=no
  10184. # On AIX, shared libraries and static libraries use the same namespace, and
  10185. # are all built from PIC.
  10186. case $host_os in
  10187. aix3*)
  10188. test "$enable_shared" = yes && enable_static=no
  10189. if test -n "$RANLIB"; then
  10190. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10191. postinstall_cmds='$RANLIB $lib'
  10192. fi
  10193. ;;
  10194. aix[4-9]*)
  10195. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10196. test "$enable_shared" = yes && enable_static=no
  10197. fi
  10198. ;;
  10199. esac
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10201. $as_echo "$enable_shared" >&6; }
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10203. $as_echo_n "checking whether to build static libraries... " >&6; }
  10204. # Make sure either enable_shared or enable_static is yes.
  10205. test "$enable_shared" = yes || enable_static=yes
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10207. $as_echo "$enable_static" >&6; }
  10208. fi
  10209. ac_ext=cpp
  10210. ac_cpp='$CXXCPP $CPPFLAGS'
  10211. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10212. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10213. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10214. CC="$lt_save_CC"
  10215. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10216. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10217. (test "X$CXX" != "Xg++"))) ; then
  10218. ac_ext=cpp
  10219. ac_cpp='$CXXCPP $CPPFLAGS'
  10220. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10221. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10222. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10224. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10225. if test -z "$CXXCPP"; then
  10226. if ${ac_cv_prog_CXXCPP+:} false; then :
  10227. $as_echo_n "(cached) " >&6
  10228. else
  10229. # Double quotes because CXXCPP needs to be expanded
  10230. for CXXCPP in "$CXX -E" "/lib/cpp"
  10231. do
  10232. ac_preproc_ok=false
  10233. for ac_cxx_preproc_warn_flag in '' yes
  10234. do
  10235. # Use a header file that comes with gcc, so configuring glibc
  10236. # with a fresh cross-compiler works.
  10237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10238. # <limits.h> exists even on freestanding compilers.
  10239. # On the NeXT, cc -E runs the code through the compiler's parser,
  10240. # not just through cpp. "Syntax error" is here to catch this case.
  10241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10242. /* end confdefs.h. */
  10243. #ifdef __STDC__
  10244. # include <limits.h>
  10245. #else
  10246. # include <assert.h>
  10247. #endif
  10248. Syntax error
  10249. _ACEOF
  10250. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10251. else
  10252. # Broken: fails on valid input.
  10253. continue
  10254. fi
  10255. rm -f conftest.err conftest.i conftest.$ac_ext
  10256. # OK, works on sane cases. Now check whether nonexistent headers
  10257. # can be detected and how.
  10258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10259. /* end confdefs.h. */
  10260. #include <ac_nonexistent.h>
  10261. _ACEOF
  10262. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10263. # Broken: success on invalid input.
  10264. continue
  10265. else
  10266. # Passes both tests.
  10267. ac_preproc_ok=:
  10268. break
  10269. fi
  10270. rm -f conftest.err conftest.i conftest.$ac_ext
  10271. done
  10272. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10273. rm -f conftest.i conftest.err conftest.$ac_ext
  10274. if $ac_preproc_ok; then :
  10275. break
  10276. fi
  10277. done
  10278. ac_cv_prog_CXXCPP=$CXXCPP
  10279. fi
  10280. CXXCPP=$ac_cv_prog_CXXCPP
  10281. else
  10282. ac_cv_prog_CXXCPP=$CXXCPP
  10283. fi
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10285. $as_echo "$CXXCPP" >&6; }
  10286. ac_preproc_ok=false
  10287. for ac_cxx_preproc_warn_flag in '' yes
  10288. do
  10289. # Use a header file that comes with gcc, so configuring glibc
  10290. # with a fresh cross-compiler works.
  10291. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10292. # <limits.h> exists even on freestanding compilers.
  10293. # On the NeXT, cc -E runs the code through the compiler's parser,
  10294. # not just through cpp. "Syntax error" is here to catch this case.
  10295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10296. /* end confdefs.h. */
  10297. #ifdef __STDC__
  10298. # include <limits.h>
  10299. #else
  10300. # include <assert.h>
  10301. #endif
  10302. Syntax error
  10303. _ACEOF
  10304. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10305. else
  10306. # Broken: fails on valid input.
  10307. continue
  10308. fi
  10309. rm -f conftest.err conftest.i conftest.$ac_ext
  10310. # OK, works on sane cases. Now check whether nonexistent headers
  10311. # can be detected and how.
  10312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10313. /* end confdefs.h. */
  10314. #include <ac_nonexistent.h>
  10315. _ACEOF
  10316. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10317. # Broken: success on invalid input.
  10318. continue
  10319. else
  10320. # Passes both tests.
  10321. ac_preproc_ok=:
  10322. break
  10323. fi
  10324. rm -f conftest.err conftest.i conftest.$ac_ext
  10325. done
  10326. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10327. rm -f conftest.i conftest.err conftest.$ac_ext
  10328. if $ac_preproc_ok; then :
  10329. else
  10330. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10331. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10332. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10333. See \`config.log' for more details" "$LINENO" 5; }
  10334. fi
  10335. ac_ext=cpp
  10336. ac_cpp='$CXXCPP $CPPFLAGS'
  10337. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10338. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10339. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10340. else
  10341. _lt_caught_CXX_error=yes
  10342. fi
  10343. ac_ext=cpp
  10344. ac_cpp='$CXXCPP $CPPFLAGS'
  10345. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10346. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10347. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10348. archive_cmds_need_lc_CXX=no
  10349. allow_undefined_flag_CXX=
  10350. always_export_symbols_CXX=no
  10351. archive_expsym_cmds_CXX=
  10352. compiler_needs_object_CXX=no
  10353. export_dynamic_flag_spec_CXX=
  10354. hardcode_direct_CXX=no
  10355. hardcode_direct_absolute_CXX=no
  10356. hardcode_libdir_flag_spec_CXX=
  10357. hardcode_libdir_flag_spec_ld_CXX=
  10358. hardcode_libdir_separator_CXX=
  10359. hardcode_minus_L_CXX=no
  10360. hardcode_shlibpath_var_CXX=unsupported
  10361. hardcode_automatic_CXX=no
  10362. inherit_rpath_CXX=no
  10363. module_cmds_CXX=
  10364. module_expsym_cmds_CXX=
  10365. link_all_deplibs_CXX=unknown
  10366. old_archive_cmds_CXX=$old_archive_cmds
  10367. reload_flag_CXX=$reload_flag
  10368. reload_cmds_CXX=$reload_cmds
  10369. no_undefined_flag_CXX=
  10370. whole_archive_flag_spec_CXX=
  10371. enable_shared_with_static_runtimes_CXX=no
  10372. # Source file extension for C++ test sources.
  10373. ac_ext=cpp
  10374. # Object file extension for compiled C++ test sources.
  10375. objext=o
  10376. objext_CXX=$objext
  10377. # No sense in running all these tests if we already determined that
  10378. # the CXX compiler isn't working. Some variables (like enable_shared)
  10379. # are currently assumed to apply to all compilers on this platform,
  10380. # and will be corrupted by setting them based on a non-working compiler.
  10381. if test "$_lt_caught_CXX_error" != yes; then
  10382. # Code to be used in simple compile tests
  10383. lt_simple_compile_test_code="int some_variable = 0;"
  10384. # Code to be used in simple link tests
  10385. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10386. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10387. # If no C compiler was specified, use CC.
  10388. LTCC=${LTCC-"$CC"}
  10389. # If no C compiler flags were specified, use CFLAGS.
  10390. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10391. # Allow CC to be a program name with arguments.
  10392. compiler=$CC
  10393. # save warnings/boilerplate of simple test code
  10394. ac_outfile=conftest.$ac_objext
  10395. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10396. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10397. _lt_compiler_boilerplate=`cat conftest.err`
  10398. $RM conftest*
  10399. ac_outfile=conftest.$ac_objext
  10400. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10401. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10402. _lt_linker_boilerplate=`cat conftest.err`
  10403. $RM -r conftest*
  10404. # Allow CC to be a program name with arguments.
  10405. lt_save_CC=$CC
  10406. lt_save_CFLAGS=$CFLAGS
  10407. lt_save_LD=$LD
  10408. lt_save_GCC=$GCC
  10409. GCC=$GXX
  10410. lt_save_with_gnu_ld=$with_gnu_ld
  10411. lt_save_path_LD=$lt_cv_path_LD
  10412. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10413. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10414. else
  10415. $as_unset lt_cv_prog_gnu_ld
  10416. fi
  10417. if test -n "${lt_cv_path_LDCXX+set}"; then
  10418. lt_cv_path_LD=$lt_cv_path_LDCXX
  10419. else
  10420. $as_unset lt_cv_path_LD
  10421. fi
  10422. test -z "${LDCXX+set}" || LD=$LDCXX
  10423. CC=${CXX-"c++"}
  10424. CFLAGS=$CXXFLAGS
  10425. compiler=$CC
  10426. compiler_CXX=$CC
  10427. for cc_temp in $compiler""; do
  10428. case $cc_temp in
  10429. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10430. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10431. \-*) ;;
  10432. *) break;;
  10433. esac
  10434. done
  10435. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10436. if test -n "$compiler"; then
  10437. # We don't want -fno-exception when compiling C++ code, so set the
  10438. # no_builtin_flag separately
  10439. if test "$GXX" = yes; then
  10440. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10441. else
  10442. lt_prog_compiler_no_builtin_flag_CXX=
  10443. fi
  10444. if test "$GXX" = yes; then
  10445. # Set up default GNU C++ configuration
  10446. # Check whether --with-gnu-ld was given.
  10447. if test "${with_gnu_ld+set}" = set; then :
  10448. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10449. else
  10450. with_gnu_ld=no
  10451. fi
  10452. ac_prog=ld
  10453. if test "$GCC" = yes; then
  10454. # Check if gcc -print-prog-name=ld gives a path.
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10456. $as_echo_n "checking for ld used by $CC... " >&6; }
  10457. case $host in
  10458. *-*-mingw*)
  10459. # gcc leaves a trailing carriage return which upsets mingw
  10460. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10461. *)
  10462. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10463. esac
  10464. case $ac_prog in
  10465. # Accept absolute paths.
  10466. [\\/]* | ?:[\\/]*)
  10467. re_direlt='/[^/][^/]*/\.\./'
  10468. # Canonicalize the pathname of ld
  10469. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10470. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10471. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10472. done
  10473. test -z "$LD" && LD="$ac_prog"
  10474. ;;
  10475. "")
  10476. # If it fails, then pretend we aren't using GCC.
  10477. ac_prog=ld
  10478. ;;
  10479. *)
  10480. # If it is relative, then search for the first ld in PATH.
  10481. with_gnu_ld=unknown
  10482. ;;
  10483. esac
  10484. elif test "$with_gnu_ld" = yes; then
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10486. $as_echo_n "checking for GNU ld... " >&6; }
  10487. else
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10489. $as_echo_n "checking for non-GNU ld... " >&6; }
  10490. fi
  10491. if ${lt_cv_path_LD+:} false; then :
  10492. $as_echo_n "(cached) " >&6
  10493. else
  10494. if test -z "$LD"; then
  10495. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10496. for ac_dir in $PATH; do
  10497. IFS="$lt_save_ifs"
  10498. test -z "$ac_dir" && ac_dir=.
  10499. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10500. lt_cv_path_LD="$ac_dir/$ac_prog"
  10501. # Check to see if the program is GNU ld. I'd rather use --version,
  10502. # but apparently some variants of GNU ld only accept -v.
  10503. # Break only if it was the GNU/non-GNU ld that we prefer.
  10504. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10505. *GNU* | *'with BFD'*)
  10506. test "$with_gnu_ld" != no && break
  10507. ;;
  10508. *)
  10509. test "$with_gnu_ld" != yes && break
  10510. ;;
  10511. esac
  10512. fi
  10513. done
  10514. IFS="$lt_save_ifs"
  10515. else
  10516. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10517. fi
  10518. fi
  10519. LD="$lt_cv_path_LD"
  10520. if test -n "$LD"; then
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10522. $as_echo "$LD" >&6; }
  10523. else
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10525. $as_echo "no" >&6; }
  10526. fi
  10527. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10529. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10530. if ${lt_cv_prog_gnu_ld+:} false; then :
  10531. $as_echo_n "(cached) " >&6
  10532. else
  10533. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10534. case `$LD -v 2>&1 </dev/null` in
  10535. *GNU* | *'with BFD'*)
  10536. lt_cv_prog_gnu_ld=yes
  10537. ;;
  10538. *)
  10539. lt_cv_prog_gnu_ld=no
  10540. ;;
  10541. esac
  10542. fi
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10544. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10545. with_gnu_ld=$lt_cv_prog_gnu_ld
  10546. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10547. # archiving commands below assume that GNU ld is being used.
  10548. if test "$with_gnu_ld" = yes; then
  10549. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10550. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10551. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10552. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10553. # If archive_cmds runs LD, not CC, wlarc should be empty
  10554. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10555. # investigate it a little bit more. (MM)
  10556. wlarc='${wl}'
  10557. # ancient GNU ld didn't support --whole-archive et. al.
  10558. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10559. $GREP 'no-whole-archive' > /dev/null; then
  10560. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10561. else
  10562. whole_archive_flag_spec_CXX=
  10563. fi
  10564. else
  10565. with_gnu_ld=no
  10566. wlarc=
  10567. # A generic and very simple default shared library creation
  10568. # command for GNU C++ for the case where it uses the native
  10569. # linker, instead of GNU ld. If possible, this setting should
  10570. # overridden to take advantage of the native linker features on
  10571. # the platform it is being used on.
  10572. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10573. fi
  10574. # Commands to make compiler produce verbose output that lists
  10575. # what "hidden" libraries, object files and flags are used when
  10576. # linking a shared library.
  10577. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10578. else
  10579. GXX=no
  10580. with_gnu_ld=no
  10581. wlarc=
  10582. fi
  10583. # PORTME: fill in a description of your system's C++ link characteristics
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10585. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10586. ld_shlibs_CXX=yes
  10587. case $host_os in
  10588. aix3*)
  10589. # FIXME: insert proper C++ library support
  10590. ld_shlibs_CXX=no
  10591. ;;
  10592. aix[4-9]*)
  10593. if test "$host_cpu" = ia64; then
  10594. # On IA64, the linker does run time linking by default, so we don't
  10595. # have to do anything special.
  10596. aix_use_runtimelinking=no
  10597. exp_sym_flag='-Bexport'
  10598. no_entry_flag=""
  10599. else
  10600. aix_use_runtimelinking=no
  10601. # Test if we are trying to use run time linking or normal
  10602. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10603. # need to do runtime linking.
  10604. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10605. for ld_flag in $LDFLAGS; do
  10606. case $ld_flag in
  10607. *-brtl*)
  10608. aix_use_runtimelinking=yes
  10609. break
  10610. ;;
  10611. esac
  10612. done
  10613. ;;
  10614. esac
  10615. exp_sym_flag='-bexport'
  10616. no_entry_flag='-bnoentry'
  10617. fi
  10618. # When large executables or shared objects are built, AIX ld can
  10619. # have problems creating the table of contents. If linking a library
  10620. # or program results in "error TOC overflow" add -mminimal-toc to
  10621. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10622. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10623. archive_cmds_CXX=''
  10624. hardcode_direct_CXX=yes
  10625. hardcode_direct_absolute_CXX=yes
  10626. hardcode_libdir_separator_CXX=':'
  10627. link_all_deplibs_CXX=yes
  10628. file_list_spec_CXX='${wl}-f,'
  10629. if test "$GXX" = yes; then
  10630. case $host_os in aix4.[012]|aix4.[012].*)
  10631. # We only want to do this on AIX 4.2 and lower, the check
  10632. # below for broken collect2 doesn't work under 4.3+
  10633. collect2name=`${CC} -print-prog-name=collect2`
  10634. if test -f "$collect2name" &&
  10635. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10636. then
  10637. # We have reworked collect2
  10638. :
  10639. else
  10640. # We have old collect2
  10641. hardcode_direct_CXX=unsupported
  10642. # It fails to find uninstalled libraries when the uninstalled
  10643. # path is not listed in the libpath. Setting hardcode_minus_L
  10644. # to unsupported forces relinking
  10645. hardcode_minus_L_CXX=yes
  10646. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10647. hardcode_libdir_separator_CXX=
  10648. fi
  10649. esac
  10650. shared_flag='-shared'
  10651. if test "$aix_use_runtimelinking" = yes; then
  10652. shared_flag="$shared_flag "'${wl}-G'
  10653. fi
  10654. else
  10655. # not using gcc
  10656. if test "$host_cpu" = ia64; then
  10657. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10658. # chokes on -Wl,-G. The following line is correct:
  10659. shared_flag='-G'
  10660. else
  10661. if test "$aix_use_runtimelinking" = yes; then
  10662. shared_flag='${wl}-G'
  10663. else
  10664. shared_flag='${wl}-bM:SRE'
  10665. fi
  10666. fi
  10667. fi
  10668. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10669. # It seems that -bexpall does not export symbols beginning with
  10670. # underscore (_), so it is better to generate a list of symbols to
  10671. # export.
  10672. always_export_symbols_CXX=yes
  10673. if test "$aix_use_runtimelinking" = yes; then
  10674. # Warning - without using the other runtime loading flags (-brtl),
  10675. # -berok will link without error, but may produce a broken library.
  10676. allow_undefined_flag_CXX='-berok'
  10677. # Determine the default libpath from the value encoded in an empty
  10678. # executable.
  10679. if test "${lt_cv_aix_libpath+set}" = set; then
  10680. aix_libpath=$lt_cv_aix_libpath
  10681. else
  10682. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10683. $as_echo_n "(cached) " >&6
  10684. else
  10685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10686. /* end confdefs.h. */
  10687. int
  10688. main ()
  10689. {
  10690. ;
  10691. return 0;
  10692. }
  10693. _ACEOF
  10694. if ac_fn_cxx_try_link "$LINENO"; then :
  10695. lt_aix_libpath_sed='
  10696. /Import File Strings/,/^$/ {
  10697. /^0/ {
  10698. s/^0 *\([^ ]*\) *$/\1/
  10699. p
  10700. }
  10701. }'
  10702. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10703. # Check for a 64-bit object if we didn't find anything.
  10704. if test -z "$lt_cv_aix_libpath__CXX"; then
  10705. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10706. fi
  10707. fi
  10708. rm -f core conftest.err conftest.$ac_objext \
  10709. conftest$ac_exeext conftest.$ac_ext
  10710. if test -z "$lt_cv_aix_libpath__CXX"; then
  10711. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10712. fi
  10713. fi
  10714. aix_libpath=$lt_cv_aix_libpath__CXX
  10715. fi
  10716. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10717. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10718. else
  10719. if test "$host_cpu" = ia64; then
  10720. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10721. allow_undefined_flag_CXX="-z nodefs"
  10722. 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"
  10723. else
  10724. # Determine the default libpath from the value encoded in an
  10725. # empty executable.
  10726. if test "${lt_cv_aix_libpath+set}" = set; then
  10727. aix_libpath=$lt_cv_aix_libpath
  10728. else
  10729. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10733. /* end confdefs.h. */
  10734. int
  10735. main ()
  10736. {
  10737. ;
  10738. return 0;
  10739. }
  10740. _ACEOF
  10741. if ac_fn_cxx_try_link "$LINENO"; then :
  10742. lt_aix_libpath_sed='
  10743. /Import File Strings/,/^$/ {
  10744. /^0/ {
  10745. s/^0 *\([^ ]*\) *$/\1/
  10746. p
  10747. }
  10748. }'
  10749. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10750. # Check for a 64-bit object if we didn't find anything.
  10751. if test -z "$lt_cv_aix_libpath__CXX"; then
  10752. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10753. fi
  10754. fi
  10755. rm -f core conftest.err conftest.$ac_objext \
  10756. conftest$ac_exeext conftest.$ac_ext
  10757. if test -z "$lt_cv_aix_libpath__CXX"; then
  10758. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10759. fi
  10760. fi
  10761. aix_libpath=$lt_cv_aix_libpath__CXX
  10762. fi
  10763. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10764. # Warning - without using the other run time loading flags,
  10765. # -berok will link without error, but may produce a broken library.
  10766. no_undefined_flag_CXX=' ${wl}-bernotok'
  10767. allow_undefined_flag_CXX=' ${wl}-berok'
  10768. if test "$with_gnu_ld" = yes; then
  10769. # We only use this code for GNU lds that support --whole-archive.
  10770. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10771. else
  10772. # Exported symbols can be pulled into shared objects from archives
  10773. whole_archive_flag_spec_CXX='$convenience'
  10774. fi
  10775. archive_cmds_need_lc_CXX=yes
  10776. # This is similar to how AIX traditionally builds its shared
  10777. # libraries.
  10778. 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'
  10779. fi
  10780. fi
  10781. ;;
  10782. beos*)
  10783. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10784. allow_undefined_flag_CXX=unsupported
  10785. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10786. # support --undefined. This deserves some investigation. FIXME
  10787. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10788. else
  10789. ld_shlibs_CXX=no
  10790. fi
  10791. ;;
  10792. chorus*)
  10793. case $cc_basename in
  10794. *)
  10795. # FIXME: insert proper C++ library support
  10796. ld_shlibs_CXX=no
  10797. ;;
  10798. esac
  10799. ;;
  10800. cygwin* | mingw* | pw32* | cegcc*)
  10801. case $GXX,$cc_basename in
  10802. ,cl* | no,cl*)
  10803. # Native MSVC
  10804. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10805. # no search path for DLLs.
  10806. hardcode_libdir_flag_spec_CXX=' '
  10807. allow_undefined_flag_CXX=unsupported
  10808. always_export_symbols_CXX=yes
  10809. file_list_spec_CXX='@'
  10810. # Tell ltmain to make .lib files, not .a files.
  10811. libext=lib
  10812. # Tell ltmain to make .dll files, not .so files.
  10813. shrext_cmds=".dll"
  10814. # FIXME: Setting linknames here is a bad hack.
  10815. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10816. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10817. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10818. else
  10819. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10820. fi~
  10821. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10822. linknames='
  10823. # The linker will not automatically build a static lib if we build a DLL.
  10824. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10825. enable_shared_with_static_runtimes_CXX=yes
  10826. # Don't use ranlib
  10827. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10828. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10829. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10830. case $lt_outputfile in
  10831. *.exe|*.EXE) ;;
  10832. *)
  10833. lt_outputfile="$lt_outputfile.exe"
  10834. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10835. ;;
  10836. esac~
  10837. func_to_tool_file "$lt_outputfile"~
  10838. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10839. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10840. $RM "$lt_outputfile.manifest";
  10841. fi'
  10842. ;;
  10843. *)
  10844. # g++
  10845. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10846. # as there is no search path for DLLs.
  10847. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10848. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10849. allow_undefined_flag_CXX=unsupported
  10850. always_export_symbols_CXX=no
  10851. enable_shared_with_static_runtimes_CXX=yes
  10852. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10853. 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'
  10854. # If the export-symbols file already is a .def file (1st line
  10855. # is EXPORTS), use it as is; otherwise, prepend...
  10856. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10857. cp $export_symbols $output_objdir/$soname.def;
  10858. else
  10859. echo EXPORTS > $output_objdir/$soname.def;
  10860. cat $export_symbols >> $output_objdir/$soname.def;
  10861. fi~
  10862. $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'
  10863. else
  10864. ld_shlibs_CXX=no
  10865. fi
  10866. ;;
  10867. esac
  10868. ;;
  10869. darwin* | rhapsody*)
  10870. archive_cmds_need_lc_CXX=no
  10871. hardcode_direct_CXX=no
  10872. hardcode_automatic_CXX=yes
  10873. hardcode_shlibpath_var_CXX=unsupported
  10874. if test "$lt_cv_ld_force_load" = "yes"; then
  10875. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10876. else
  10877. whole_archive_flag_spec_CXX=''
  10878. fi
  10879. link_all_deplibs_CXX=yes
  10880. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10881. case $cc_basename in
  10882. ifort*) _lt_dar_can_shared=yes ;;
  10883. *) _lt_dar_can_shared=$GCC ;;
  10884. esac
  10885. if test "$_lt_dar_can_shared" = "yes"; then
  10886. output_verbose_link_cmd=func_echo_all
  10887. 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}"
  10888. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10889. 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}"
  10890. 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}"
  10891. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10892. 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}"
  10893. 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}"
  10894. fi
  10895. else
  10896. ld_shlibs_CXX=no
  10897. fi
  10898. ;;
  10899. dgux*)
  10900. case $cc_basename in
  10901. ec++*)
  10902. # FIXME: insert proper C++ library support
  10903. ld_shlibs_CXX=no
  10904. ;;
  10905. ghcx*)
  10906. # Green Hills C++ Compiler
  10907. # FIXME: insert proper C++ library support
  10908. ld_shlibs_CXX=no
  10909. ;;
  10910. *)
  10911. # FIXME: insert proper C++ library support
  10912. ld_shlibs_CXX=no
  10913. ;;
  10914. esac
  10915. ;;
  10916. freebsd[12]*)
  10917. # C++ shared libraries reported to be fairly broken before
  10918. # switch to ELF
  10919. ld_shlibs_CXX=no
  10920. ;;
  10921. freebsd-elf*)
  10922. archive_cmds_need_lc_CXX=no
  10923. ;;
  10924. freebsd* | dragonfly*)
  10925. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10926. # conventions
  10927. ld_shlibs_CXX=yes
  10928. ;;
  10929. gnu*)
  10930. ;;
  10931. haiku*)
  10932. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10933. link_all_deplibs_CXX=yes
  10934. ;;
  10935. hpux9*)
  10936. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10937. hardcode_libdir_separator_CXX=:
  10938. export_dynamic_flag_spec_CXX='${wl}-E'
  10939. hardcode_direct_CXX=yes
  10940. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10941. # but as the default
  10942. # location of the library.
  10943. case $cc_basename in
  10944. CC*)
  10945. # FIXME: insert proper C++ library support
  10946. ld_shlibs_CXX=no
  10947. ;;
  10948. aCC*)
  10949. 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'
  10950. # Commands to make compiler produce verbose output that lists
  10951. # what "hidden" libraries, object files and flags are used when
  10952. # linking a shared library.
  10953. #
  10954. # There doesn't appear to be a way to prevent this compiler from
  10955. # explicitly linking system object files so we need to strip them
  10956. # from the output so that they don't get included in the library
  10957. # dependencies.
  10958. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10959. ;;
  10960. *)
  10961. if test "$GXX" = yes; then
  10962. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10963. else
  10964. # FIXME: insert proper C++ library support
  10965. ld_shlibs_CXX=no
  10966. fi
  10967. ;;
  10968. esac
  10969. ;;
  10970. hpux10*|hpux11*)
  10971. if test $with_gnu_ld = no; then
  10972. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10973. hardcode_libdir_separator_CXX=:
  10974. case $host_cpu in
  10975. hppa*64*|ia64*)
  10976. ;;
  10977. *)
  10978. export_dynamic_flag_spec_CXX='${wl}-E'
  10979. ;;
  10980. esac
  10981. fi
  10982. case $host_cpu in
  10983. hppa*64*|ia64*)
  10984. hardcode_direct_CXX=no
  10985. hardcode_shlibpath_var_CXX=no
  10986. ;;
  10987. *)
  10988. hardcode_direct_CXX=yes
  10989. hardcode_direct_absolute_CXX=yes
  10990. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10991. # but as the default
  10992. # location of the library.
  10993. ;;
  10994. esac
  10995. case $cc_basename in
  10996. CC*)
  10997. # FIXME: insert proper C++ library support
  10998. ld_shlibs_CXX=no
  10999. ;;
  11000. aCC*)
  11001. case $host_cpu in
  11002. hppa*64*)
  11003. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11004. ;;
  11005. ia64*)
  11006. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11007. ;;
  11008. *)
  11009. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11010. ;;
  11011. esac
  11012. # Commands to make compiler produce verbose output that lists
  11013. # what "hidden" libraries, object files and flags are used when
  11014. # linking a shared library.
  11015. #
  11016. # There doesn't appear to be a way to prevent this compiler from
  11017. # explicitly linking system object files so we need to strip them
  11018. # from the output so that they don't get included in the library
  11019. # dependencies.
  11020. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11021. ;;
  11022. *)
  11023. if test "$GXX" = yes; then
  11024. if test $with_gnu_ld = no; then
  11025. case $host_cpu in
  11026. hppa*64*)
  11027. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11028. ;;
  11029. ia64*)
  11030. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11031. ;;
  11032. *)
  11033. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11034. ;;
  11035. esac
  11036. fi
  11037. else
  11038. # FIXME: insert proper C++ library support
  11039. ld_shlibs_CXX=no
  11040. fi
  11041. ;;
  11042. esac
  11043. ;;
  11044. interix[3-9]*)
  11045. hardcode_direct_CXX=no
  11046. hardcode_shlibpath_var_CXX=no
  11047. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11048. export_dynamic_flag_spec_CXX='${wl}-E'
  11049. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11050. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11051. # default) and relocated if they conflict, which is a slow very memory
  11052. # consuming and fragmenting process. To avoid this, we pick a random,
  11053. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11054. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11055. 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'
  11056. 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'
  11057. ;;
  11058. irix5* | irix6*)
  11059. case $cc_basename in
  11060. CC*)
  11061. # SGI C++
  11062. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11063. # Archives containing C++ object files must be created using
  11064. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11065. # necessary to make sure instantiated templates are included
  11066. # in the archive.
  11067. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11068. ;;
  11069. *)
  11070. if test "$GXX" = yes; then
  11071. if test "$with_gnu_ld" = no; then
  11072. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11073. else
  11074. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11075. fi
  11076. fi
  11077. link_all_deplibs_CXX=yes
  11078. ;;
  11079. esac
  11080. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11081. hardcode_libdir_separator_CXX=:
  11082. inherit_rpath_CXX=yes
  11083. ;;
  11084. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11085. case $cc_basename in
  11086. KCC*)
  11087. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11088. # KCC will only create a shared library if the output file
  11089. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11090. # to its proper name (with version) after linking.
  11091. 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'
  11092. 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'
  11093. # Commands to make compiler produce verbose output that lists
  11094. # what "hidden" libraries, object files and flags are used when
  11095. # linking a shared library.
  11096. #
  11097. # There doesn't appear to be a way to prevent this compiler from
  11098. # explicitly linking system object files so we need to strip them
  11099. # from the output so that they don't get included in the library
  11100. # dependencies.
  11101. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11102. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11103. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11104. # Archives containing C++ object files must be created using
  11105. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11106. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11107. ;;
  11108. icpc* | ecpc* )
  11109. # Intel C++
  11110. with_gnu_ld=yes
  11111. # version 8.0 and above of icpc choke on multiply defined symbols
  11112. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11113. # earlier do not add the objects themselves.
  11114. case `$CC -V 2>&1` in
  11115. *"Version 7."*)
  11116. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11117. 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'
  11118. ;;
  11119. *) # Version 8.0 or newer
  11120. tmp_idyn=
  11121. case $host_cpu in
  11122. ia64*) tmp_idyn=' -i_dynamic';;
  11123. esac
  11124. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11125. 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'
  11126. ;;
  11127. esac
  11128. archive_cmds_need_lc_CXX=no
  11129. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11130. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11131. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11132. ;;
  11133. pgCC* | pgcpp*)
  11134. # Portland Group C++ compiler
  11135. case `$CC -V` in
  11136. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11137. prelink_cmds_CXX='tpldir=Template.dir~
  11138. rm -rf $tpldir~
  11139. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11140. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11141. old_archive_cmds_CXX='tpldir=Template.dir~
  11142. rm -rf $tpldir~
  11143. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11144. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11145. $RANLIB $oldlib'
  11146. archive_cmds_CXX='tpldir=Template.dir~
  11147. rm -rf $tpldir~
  11148. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11149. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11150. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11151. rm -rf $tpldir~
  11152. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11153. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11154. ;;
  11155. *) # Version 6 and above use weak symbols
  11156. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11157. 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'
  11158. ;;
  11159. esac
  11160. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11161. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11162. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11163. ;;
  11164. cxx*)
  11165. # Compaq C++
  11166. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11167. 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'
  11168. runpath_var=LD_RUN_PATH
  11169. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11170. hardcode_libdir_separator_CXX=:
  11171. # Commands to make compiler produce verbose output that lists
  11172. # what "hidden" libraries, object files and flags are used when
  11173. # linking a shared library.
  11174. #
  11175. # There doesn't appear to be a way to prevent this compiler from
  11176. # explicitly linking system object files so we need to strip them
  11177. # from the output so that they don't get included in the library
  11178. # dependencies.
  11179. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11180. ;;
  11181. xl* | mpixl* | bgxl*)
  11182. # IBM XL 8.0 on PPC, with GNU ld
  11183. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11184. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11185. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11186. if test "x$supports_anon_versioning" = xyes; then
  11187. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11188. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11189. echo "local: *; };" >> $output_objdir/$libname.ver~
  11190. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11191. fi
  11192. ;;
  11193. *)
  11194. case `$CC -V 2>&1 | sed 5q` in
  11195. *Sun\ C*)
  11196. # Sun C++ 5.9
  11197. no_undefined_flag_CXX=' -zdefs'
  11198. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11199. 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'
  11200. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11201. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11202. compiler_needs_object_CXX=yes
  11203. # Not sure whether something based on
  11204. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11205. # would be better.
  11206. output_verbose_link_cmd='func_echo_all'
  11207. # Archives containing C++ object files must be created using
  11208. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11209. # necessary to make sure instantiated templates are included
  11210. # in the archive.
  11211. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11212. ;;
  11213. esac
  11214. ;;
  11215. esac
  11216. ;;
  11217. lynxos*)
  11218. # FIXME: insert proper C++ library support
  11219. ld_shlibs_CXX=no
  11220. ;;
  11221. m88k*)
  11222. # FIXME: insert proper C++ library support
  11223. ld_shlibs_CXX=no
  11224. ;;
  11225. mvs*)
  11226. case $cc_basename in
  11227. cxx*)
  11228. # FIXME: insert proper C++ library support
  11229. ld_shlibs_CXX=no
  11230. ;;
  11231. *)
  11232. # FIXME: insert proper C++ library support
  11233. ld_shlibs_CXX=no
  11234. ;;
  11235. esac
  11236. ;;
  11237. netbsd*)
  11238. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11239. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11240. wlarc=
  11241. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11242. hardcode_direct_CXX=yes
  11243. hardcode_shlibpath_var_CXX=no
  11244. fi
  11245. # Workaround some broken pre-1.5 toolchains
  11246. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11247. ;;
  11248. *nto* | *qnx*)
  11249. ld_shlibs_CXX=yes
  11250. ;;
  11251. openbsd2*)
  11252. # C++ shared libraries are fairly broken
  11253. ld_shlibs_CXX=no
  11254. ;;
  11255. openbsd*)
  11256. if test -f /usr/libexec/ld.so; then
  11257. hardcode_direct_CXX=yes
  11258. hardcode_shlibpath_var_CXX=no
  11259. hardcode_direct_absolute_CXX=yes
  11260. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11261. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11262. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11263. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11264. export_dynamic_flag_spec_CXX='${wl}-E'
  11265. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11266. fi
  11267. output_verbose_link_cmd=func_echo_all
  11268. else
  11269. ld_shlibs_CXX=no
  11270. fi
  11271. ;;
  11272. osf3* | osf4* | osf5*)
  11273. case $cc_basename in
  11274. KCC*)
  11275. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11276. # KCC will only create a shared library if the output file
  11277. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11278. # to its proper name (with version) after linking.
  11279. 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'
  11280. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11281. hardcode_libdir_separator_CXX=:
  11282. # Archives containing C++ object files must be created using
  11283. # the KAI C++ compiler.
  11284. case $host in
  11285. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11286. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11287. esac
  11288. ;;
  11289. RCC*)
  11290. # Rational C++ 2.4.1
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. ;;
  11294. cxx*)
  11295. case $host in
  11296. osf3*)
  11297. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11298. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11299. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11300. ;;
  11301. *)
  11302. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11303. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11304. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11305. echo "-hidden">> $lib.exp~
  11306. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11307. $RM $lib.exp'
  11308. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11309. ;;
  11310. esac
  11311. hardcode_libdir_separator_CXX=:
  11312. # Commands to make compiler produce verbose output that lists
  11313. # what "hidden" libraries, object files and flags are used when
  11314. # linking a shared library.
  11315. #
  11316. # There doesn't appear to be a way to prevent this compiler from
  11317. # explicitly linking system object files so we need to strip them
  11318. # from the output so that they don't get included in the library
  11319. # dependencies.
  11320. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11321. ;;
  11322. *)
  11323. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11324. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11325. case $host in
  11326. osf3*)
  11327. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11328. ;;
  11329. *)
  11330. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11331. ;;
  11332. esac
  11333. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11334. hardcode_libdir_separator_CXX=:
  11335. # Commands to make compiler produce verbose output that lists
  11336. # what "hidden" libraries, object files and flags are used when
  11337. # linking a shared library.
  11338. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11339. else
  11340. # FIXME: insert proper C++ library support
  11341. ld_shlibs_CXX=no
  11342. fi
  11343. ;;
  11344. esac
  11345. ;;
  11346. psos*)
  11347. # FIXME: insert proper C++ library support
  11348. ld_shlibs_CXX=no
  11349. ;;
  11350. sunos4*)
  11351. case $cc_basename in
  11352. CC*)
  11353. # Sun C++ 4.x
  11354. # FIXME: insert proper C++ library support
  11355. ld_shlibs_CXX=no
  11356. ;;
  11357. lcc*)
  11358. # Lucid
  11359. # FIXME: insert proper C++ library support
  11360. ld_shlibs_CXX=no
  11361. ;;
  11362. *)
  11363. # FIXME: insert proper C++ library support
  11364. ld_shlibs_CXX=no
  11365. ;;
  11366. esac
  11367. ;;
  11368. solaris*)
  11369. case $cc_basename in
  11370. CC* | sunCC*)
  11371. # Sun C++ 4.2, 5.x and Centerline C++
  11372. archive_cmds_need_lc_CXX=yes
  11373. no_undefined_flag_CXX=' -zdefs'
  11374. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11375. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11376. $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'
  11377. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11378. hardcode_shlibpath_var_CXX=no
  11379. case $host_os in
  11380. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11381. *)
  11382. # The compiler driver will combine and reorder linker options,
  11383. # but understands `-z linker_flag'.
  11384. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11385. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11386. ;;
  11387. esac
  11388. link_all_deplibs_CXX=yes
  11389. output_verbose_link_cmd='func_echo_all'
  11390. # Archives containing C++ object files must be created using
  11391. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11392. # necessary to make sure instantiated templates are included
  11393. # in the archive.
  11394. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11395. ;;
  11396. gcx*)
  11397. # Green Hills C++ Compiler
  11398. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11399. # The C++ compiler must be used to create the archive.
  11400. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11401. ;;
  11402. *)
  11403. # GNU C++ compiler with Solaris linker
  11404. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11405. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11406. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11407. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11408. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11409. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11410. # Commands to make compiler produce verbose output that lists
  11411. # what "hidden" libraries, object files and flags are used when
  11412. # linking a shared library.
  11413. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11414. else
  11415. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11416. # platform.
  11417. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11418. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11419. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11420. # Commands to make compiler produce verbose output that lists
  11421. # what "hidden" libraries, object files and flags are used when
  11422. # linking a shared library.
  11423. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11424. fi
  11425. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11426. case $host_os in
  11427. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11428. *)
  11429. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11430. ;;
  11431. esac
  11432. fi
  11433. ;;
  11434. esac
  11435. ;;
  11436. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11437. no_undefined_flag_CXX='${wl}-z,text'
  11438. archive_cmds_need_lc_CXX=no
  11439. hardcode_shlibpath_var_CXX=no
  11440. runpath_var='LD_RUN_PATH'
  11441. case $cc_basename in
  11442. CC*)
  11443. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11444. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11445. ;;
  11446. *)
  11447. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11448. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11449. ;;
  11450. esac
  11451. ;;
  11452. sysv5* | sco3.2v5* | sco5v6*)
  11453. # Note: We can NOT use -z defs as we might desire, because we do not
  11454. # link with -lc, and that would cause any symbols used from libc to
  11455. # always be unresolved, which means just about no library would
  11456. # ever link correctly. If we're not using GNU ld we use -z text
  11457. # though, which does catch some bad symbols but isn't as heavy-handed
  11458. # as -z defs.
  11459. no_undefined_flag_CXX='${wl}-z,text'
  11460. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11461. archive_cmds_need_lc_CXX=no
  11462. hardcode_shlibpath_var_CXX=no
  11463. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11464. hardcode_libdir_separator_CXX=':'
  11465. link_all_deplibs_CXX=yes
  11466. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11467. runpath_var='LD_RUN_PATH'
  11468. case $cc_basename in
  11469. CC*)
  11470. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11471. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11472. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11473. '"$old_archive_cmds_CXX"
  11474. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11475. '"$reload_cmds_CXX"
  11476. ;;
  11477. *)
  11478. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11479. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11480. ;;
  11481. esac
  11482. ;;
  11483. tandem*)
  11484. case $cc_basename in
  11485. NCC*)
  11486. # NonStop-UX NCC 3.20
  11487. # FIXME: insert proper C++ library support
  11488. ld_shlibs_CXX=no
  11489. ;;
  11490. *)
  11491. # FIXME: insert proper C++ library support
  11492. ld_shlibs_CXX=no
  11493. ;;
  11494. esac
  11495. ;;
  11496. vxworks*)
  11497. # FIXME: insert proper C++ library support
  11498. ld_shlibs_CXX=no
  11499. ;;
  11500. *)
  11501. # FIXME: insert proper C++ library support
  11502. ld_shlibs_CXX=no
  11503. ;;
  11504. esac
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11506. $as_echo "$ld_shlibs_CXX" >&6; }
  11507. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11508. GCC_CXX="$GXX"
  11509. LD_CXX="$LD"
  11510. ## CAVEAT EMPTOR:
  11511. ## There is no encapsulation within the following macros, do not change
  11512. ## the running order or otherwise move them around unless you know exactly
  11513. ## what you are doing...
  11514. # Dependencies to place before and after the object being linked:
  11515. predep_objects_CXX=
  11516. postdep_objects_CXX=
  11517. predeps_CXX=
  11518. postdeps_CXX=
  11519. compiler_lib_search_path_CXX=
  11520. cat > conftest.$ac_ext <<_LT_EOF
  11521. class Foo
  11522. {
  11523. public:
  11524. Foo (void) { a = 0; }
  11525. private:
  11526. int a;
  11527. };
  11528. _LT_EOF
  11529. _lt_libdeps_save_CFLAGS=$CFLAGS
  11530. case "$CC $CFLAGS " in #(
  11531. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11532. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11533. esac
  11534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11535. (eval $ac_compile) 2>&5
  11536. ac_status=$?
  11537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11538. test $ac_status = 0; }; then
  11539. # Parse the compiler output and extract the necessary
  11540. # objects, libraries and library flags.
  11541. # Sentinel used to keep track of whether or not we are before
  11542. # the conftest object file.
  11543. pre_test_object_deps_done=no
  11544. for p in `eval "$output_verbose_link_cmd"`; do
  11545. case ${prev}${p} in
  11546. -L* | -R* | -l*)
  11547. # Some compilers place space between "-{L,R}" and the path.
  11548. # Remove the space.
  11549. if test $p = "-L" ||
  11550. test $p = "-R"; then
  11551. prev=$p
  11552. continue
  11553. fi
  11554. # Expand the sysroot to ease extracting the directories later.
  11555. if test -z "$prev"; then
  11556. case $p in
  11557. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11558. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11559. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11560. esac
  11561. fi
  11562. case $p in
  11563. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11564. esac
  11565. if test "$pre_test_object_deps_done" = no; then
  11566. case ${prev} in
  11567. -L | -R)
  11568. # Internal compiler library paths should come after those
  11569. # provided the user. The postdeps already come after the
  11570. # user supplied libs so there is no need to process them.
  11571. if test -z "$compiler_lib_search_path_CXX"; then
  11572. compiler_lib_search_path_CXX="${prev}${p}"
  11573. else
  11574. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11575. fi
  11576. ;;
  11577. # The "-l" case would never come before the object being
  11578. # linked, so don't bother handling this case.
  11579. esac
  11580. else
  11581. if test -z "$postdeps_CXX"; then
  11582. postdeps_CXX="${prev}${p}"
  11583. else
  11584. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11585. fi
  11586. fi
  11587. prev=
  11588. ;;
  11589. *.lto.$objext) ;; # Ignore GCC LTO objects
  11590. *.$objext)
  11591. # This assumes that the test object file only shows up
  11592. # once in the compiler output.
  11593. if test "$p" = "conftest.$objext"; then
  11594. pre_test_object_deps_done=yes
  11595. continue
  11596. fi
  11597. if test "$pre_test_object_deps_done" = no; then
  11598. if test -z "$predep_objects_CXX"; then
  11599. predep_objects_CXX="$p"
  11600. else
  11601. predep_objects_CXX="$predep_objects_CXX $p"
  11602. fi
  11603. else
  11604. if test -z "$postdep_objects_CXX"; then
  11605. postdep_objects_CXX="$p"
  11606. else
  11607. postdep_objects_CXX="$postdep_objects_CXX $p"
  11608. fi
  11609. fi
  11610. ;;
  11611. *) ;; # Ignore the rest.
  11612. esac
  11613. done
  11614. # Clean up.
  11615. rm -f a.out a.exe
  11616. else
  11617. echo "libtool.m4: error: problem compiling CXX test program"
  11618. fi
  11619. $RM -f confest.$objext
  11620. CFLAGS=$_lt_libdeps_save_CFLAGS
  11621. # PORTME: override above test on systems where it is broken
  11622. case $host_os in
  11623. interix[3-9]*)
  11624. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11625. # hack all around it, let's just trust "g++" to DTRT.
  11626. predep_objects_CXX=
  11627. postdep_objects_CXX=
  11628. postdeps_CXX=
  11629. ;;
  11630. linux*)
  11631. case `$CC -V 2>&1 | sed 5q` in
  11632. *Sun\ C*)
  11633. # Sun C++ 5.9
  11634. # The more standards-conforming stlport4 library is
  11635. # incompatible with the Cstd library. Avoid specifying
  11636. # it if it's in CXXFLAGS. Ignore libCrun as
  11637. # -library=stlport4 depends on it.
  11638. case " $CXX $CXXFLAGS " in
  11639. *" -library=stlport4 "*)
  11640. solaris_use_stlport4=yes
  11641. ;;
  11642. esac
  11643. if test "$solaris_use_stlport4" != yes; then
  11644. postdeps_CXX='-library=Cstd -library=Crun'
  11645. fi
  11646. ;;
  11647. esac
  11648. ;;
  11649. solaris*)
  11650. case $cc_basename in
  11651. CC* | sunCC*)
  11652. # The more standards-conforming stlport4 library is
  11653. # incompatible with the Cstd library. Avoid specifying
  11654. # it if it's in CXXFLAGS. Ignore libCrun as
  11655. # -library=stlport4 depends on it.
  11656. case " $CXX $CXXFLAGS " in
  11657. *" -library=stlport4 "*)
  11658. solaris_use_stlport4=yes
  11659. ;;
  11660. esac
  11661. # Adding this requires a known-good setup of shared libraries for
  11662. # Sun compiler versions before 5.6, else PIC objects from an old
  11663. # archive will be linked into the output, leading to subtle bugs.
  11664. if test "$solaris_use_stlport4" != yes; then
  11665. postdeps_CXX='-library=Cstd -library=Crun'
  11666. fi
  11667. ;;
  11668. esac
  11669. ;;
  11670. esac
  11671. case " $postdeps_CXX " in
  11672. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11673. esac
  11674. compiler_lib_search_dirs_CXX=
  11675. if test -n "${compiler_lib_search_path_CXX}"; then
  11676. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11677. fi
  11678. lt_prog_compiler_wl_CXX=
  11679. lt_prog_compiler_pic_CXX=
  11680. lt_prog_compiler_static_CXX=
  11681. # C++ specific cases for pic, static, wl, etc.
  11682. if test "$GXX" = yes; then
  11683. lt_prog_compiler_wl_CXX='-Wl,'
  11684. lt_prog_compiler_static_CXX='-static'
  11685. case $host_os in
  11686. aix*)
  11687. # All AIX code is PIC.
  11688. if test "$host_cpu" = ia64; then
  11689. # AIX 5 now supports IA64 processor
  11690. lt_prog_compiler_static_CXX='-Bstatic'
  11691. fi
  11692. ;;
  11693. amigaos*)
  11694. case $host_cpu in
  11695. powerpc)
  11696. # see comment about AmigaOS4 .so support
  11697. lt_prog_compiler_pic_CXX='-fPIC'
  11698. ;;
  11699. m68k)
  11700. # FIXME: we need at least 68020 code to build shared libraries, but
  11701. # adding the `-m68020' flag to GCC prevents building anything better,
  11702. # like `-m68040'.
  11703. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11704. ;;
  11705. esac
  11706. ;;
  11707. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11708. # PIC is the default for these OSes.
  11709. ;;
  11710. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11711. # This hack is so that the source file can tell whether it is being
  11712. # built for inclusion in a dll (and should export symbols for example).
  11713. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11714. # (--disable-auto-import) libraries
  11715. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11716. ;;
  11717. darwin* | rhapsody*)
  11718. # PIC is the default on this platform
  11719. # Common symbols not allowed in MH_DYLIB files
  11720. lt_prog_compiler_pic_CXX='-fno-common'
  11721. ;;
  11722. *djgpp*)
  11723. # DJGPP does not support shared libraries at all
  11724. lt_prog_compiler_pic_CXX=
  11725. ;;
  11726. haiku*)
  11727. # PIC is the default for Haiku.
  11728. # The "-static" flag exists, but is broken.
  11729. lt_prog_compiler_static_CXX=
  11730. ;;
  11731. interix[3-9]*)
  11732. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11733. # Instead, we relocate shared libraries at runtime.
  11734. ;;
  11735. sysv4*MP*)
  11736. if test -d /usr/nec; then
  11737. lt_prog_compiler_pic_CXX=-Kconform_pic
  11738. fi
  11739. ;;
  11740. hpux*)
  11741. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11742. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11743. # sets the default TLS model and affects inlining.
  11744. case $host_cpu in
  11745. hppa*64*)
  11746. ;;
  11747. *)
  11748. lt_prog_compiler_pic_CXX='-fPIC'
  11749. ;;
  11750. esac
  11751. ;;
  11752. *qnx* | *nto*)
  11753. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11754. # it will coredump.
  11755. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11756. ;;
  11757. *)
  11758. lt_prog_compiler_pic_CXX='-fPIC'
  11759. ;;
  11760. esac
  11761. else
  11762. case $host_os in
  11763. aix[4-9]*)
  11764. # All AIX code is PIC.
  11765. if test "$host_cpu" = ia64; then
  11766. # AIX 5 now supports IA64 processor
  11767. lt_prog_compiler_static_CXX='-Bstatic'
  11768. else
  11769. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11770. fi
  11771. ;;
  11772. chorus*)
  11773. case $cc_basename in
  11774. cxch68*)
  11775. # Green Hills C++ Compiler
  11776. # _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"
  11777. ;;
  11778. esac
  11779. ;;
  11780. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11781. # This hack is so that the source file can tell whether it is being
  11782. # built for inclusion in a dll (and should export symbols for example).
  11783. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11784. ;;
  11785. dgux*)
  11786. case $cc_basename in
  11787. ec++*)
  11788. lt_prog_compiler_pic_CXX='-KPIC'
  11789. ;;
  11790. ghcx*)
  11791. # Green Hills C++ Compiler
  11792. lt_prog_compiler_pic_CXX='-pic'
  11793. ;;
  11794. *)
  11795. ;;
  11796. esac
  11797. ;;
  11798. freebsd* | dragonfly*)
  11799. # FreeBSD uses GNU C++
  11800. ;;
  11801. hpux9* | hpux10* | hpux11*)
  11802. case $cc_basename in
  11803. CC*)
  11804. lt_prog_compiler_wl_CXX='-Wl,'
  11805. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11806. if test "$host_cpu" != ia64; then
  11807. lt_prog_compiler_pic_CXX='+Z'
  11808. fi
  11809. ;;
  11810. aCC*)
  11811. lt_prog_compiler_wl_CXX='-Wl,'
  11812. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11813. case $host_cpu in
  11814. hppa*64*|ia64*)
  11815. # +Z the default
  11816. ;;
  11817. *)
  11818. lt_prog_compiler_pic_CXX='+Z'
  11819. ;;
  11820. esac
  11821. ;;
  11822. *)
  11823. ;;
  11824. esac
  11825. ;;
  11826. interix*)
  11827. # This is c89, which is MS Visual C++ (no shared libs)
  11828. # Anyone wants to do a port?
  11829. ;;
  11830. irix5* | irix6* | nonstopux*)
  11831. case $cc_basename in
  11832. CC*)
  11833. lt_prog_compiler_wl_CXX='-Wl,'
  11834. lt_prog_compiler_static_CXX='-non_shared'
  11835. # CC pic flag -KPIC is the default.
  11836. ;;
  11837. *)
  11838. ;;
  11839. esac
  11840. ;;
  11841. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11842. case $cc_basename in
  11843. KCC*)
  11844. # KAI C++ Compiler
  11845. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11846. lt_prog_compiler_pic_CXX='-fPIC'
  11847. ;;
  11848. ecpc* )
  11849. # old Intel C++ for x86_64 which still supported -KPIC.
  11850. lt_prog_compiler_wl_CXX='-Wl,'
  11851. lt_prog_compiler_pic_CXX='-KPIC'
  11852. lt_prog_compiler_static_CXX='-static'
  11853. ;;
  11854. icpc* )
  11855. # Intel C++, used to be incompatible with GCC.
  11856. # ICC 10 doesn't accept -KPIC any more.
  11857. lt_prog_compiler_wl_CXX='-Wl,'
  11858. lt_prog_compiler_pic_CXX='-fPIC'
  11859. lt_prog_compiler_static_CXX='-static'
  11860. ;;
  11861. pgCC* | pgcpp*)
  11862. # Portland Group C++ compiler
  11863. lt_prog_compiler_wl_CXX='-Wl,'
  11864. lt_prog_compiler_pic_CXX='-fpic'
  11865. lt_prog_compiler_static_CXX='-Bstatic'
  11866. ;;
  11867. cxx*)
  11868. # Compaq C++
  11869. # Make sure the PIC flag is empty. It appears that all Alpha
  11870. # Linux and Compaq Tru64 Unix objects are PIC.
  11871. lt_prog_compiler_pic_CXX=
  11872. lt_prog_compiler_static_CXX='-non_shared'
  11873. ;;
  11874. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11875. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11876. lt_prog_compiler_wl_CXX='-Wl,'
  11877. lt_prog_compiler_pic_CXX='-qpic'
  11878. lt_prog_compiler_static_CXX='-qstaticlink'
  11879. ;;
  11880. *)
  11881. case `$CC -V 2>&1 | sed 5q` in
  11882. *Sun\ C*)
  11883. # Sun C++ 5.9
  11884. lt_prog_compiler_pic_CXX='-KPIC'
  11885. lt_prog_compiler_static_CXX='-Bstatic'
  11886. lt_prog_compiler_wl_CXX='-Qoption ld '
  11887. ;;
  11888. esac
  11889. ;;
  11890. esac
  11891. ;;
  11892. lynxos*)
  11893. ;;
  11894. m88k*)
  11895. ;;
  11896. mvs*)
  11897. case $cc_basename in
  11898. cxx*)
  11899. lt_prog_compiler_pic_CXX='-W c,exportall'
  11900. ;;
  11901. *)
  11902. ;;
  11903. esac
  11904. ;;
  11905. netbsd* | netbsdelf*-gnu)
  11906. ;;
  11907. *qnx* | *nto*)
  11908. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11909. # it will coredump.
  11910. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11911. ;;
  11912. osf3* | osf4* | osf5*)
  11913. case $cc_basename in
  11914. KCC*)
  11915. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11916. ;;
  11917. RCC*)
  11918. # Rational C++ 2.4.1
  11919. lt_prog_compiler_pic_CXX='-pic'
  11920. ;;
  11921. cxx*)
  11922. # Digital/Compaq C++
  11923. lt_prog_compiler_wl_CXX='-Wl,'
  11924. # Make sure the PIC flag is empty. It appears that all Alpha
  11925. # Linux and Compaq Tru64 Unix objects are PIC.
  11926. lt_prog_compiler_pic_CXX=
  11927. lt_prog_compiler_static_CXX='-non_shared'
  11928. ;;
  11929. *)
  11930. ;;
  11931. esac
  11932. ;;
  11933. psos*)
  11934. ;;
  11935. solaris*)
  11936. case $cc_basename in
  11937. CC* | sunCC*)
  11938. # Sun C++ 4.2, 5.x and Centerline C++
  11939. lt_prog_compiler_pic_CXX='-KPIC'
  11940. lt_prog_compiler_static_CXX='-Bstatic'
  11941. lt_prog_compiler_wl_CXX='-Qoption ld '
  11942. ;;
  11943. gcx*)
  11944. # Green Hills C++ Compiler
  11945. lt_prog_compiler_pic_CXX='-PIC'
  11946. ;;
  11947. *)
  11948. ;;
  11949. esac
  11950. ;;
  11951. sunos4*)
  11952. case $cc_basename in
  11953. CC*)
  11954. # Sun C++ 4.x
  11955. lt_prog_compiler_pic_CXX='-pic'
  11956. lt_prog_compiler_static_CXX='-Bstatic'
  11957. ;;
  11958. lcc*)
  11959. # Lucid
  11960. lt_prog_compiler_pic_CXX='-pic'
  11961. ;;
  11962. *)
  11963. ;;
  11964. esac
  11965. ;;
  11966. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11967. case $cc_basename in
  11968. CC*)
  11969. lt_prog_compiler_wl_CXX='-Wl,'
  11970. lt_prog_compiler_pic_CXX='-KPIC'
  11971. lt_prog_compiler_static_CXX='-Bstatic'
  11972. ;;
  11973. esac
  11974. ;;
  11975. tandem*)
  11976. case $cc_basename in
  11977. NCC*)
  11978. # NonStop-UX NCC 3.20
  11979. lt_prog_compiler_pic_CXX='-KPIC'
  11980. ;;
  11981. *)
  11982. ;;
  11983. esac
  11984. ;;
  11985. vxworks*)
  11986. ;;
  11987. *)
  11988. lt_prog_compiler_can_build_shared_CXX=no
  11989. ;;
  11990. esac
  11991. fi
  11992. case $host_os in
  11993. # For platforms which do not support PIC, -DPIC is meaningless:
  11994. *djgpp*)
  11995. lt_prog_compiler_pic_CXX=
  11996. ;;
  11997. *)
  11998. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11999. ;;
  12000. esac
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12002. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12003. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12004. $as_echo_n "(cached) " >&6
  12005. else
  12006. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12007. fi
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12009. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12010. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12011. #
  12012. # Check to make sure the PIC flag actually works.
  12013. #
  12014. if test -n "$lt_prog_compiler_pic_CXX"; then
  12015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12016. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12017. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12018. $as_echo_n "(cached) " >&6
  12019. else
  12020. lt_cv_prog_compiler_pic_works_CXX=no
  12021. ac_outfile=conftest.$ac_objext
  12022. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12023. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12024. # Insert the option either (1) after the last *FLAGS variable, or
  12025. # (2) before a word containing "conftest.", or (3) at the end.
  12026. # Note that $ac_compile itself does not contain backslashes and begins
  12027. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12028. # The option is referenced via a variable to avoid confusing sed.
  12029. lt_compile=`echo "$ac_compile" | $SED \
  12030. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12031. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12032. -e 's:$: $lt_compiler_flag:'`
  12033. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12034. (eval "$lt_compile" 2>conftest.err)
  12035. ac_status=$?
  12036. cat conftest.err >&5
  12037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12038. if (exit $ac_status) && test -s "$ac_outfile"; then
  12039. # The compiler can only warn and ignore the option if not recognized
  12040. # So say no if there are warnings other than the usual output.
  12041. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12042. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12043. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12044. lt_cv_prog_compiler_pic_works_CXX=yes
  12045. fi
  12046. fi
  12047. $RM conftest*
  12048. fi
  12049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12050. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12051. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12052. case $lt_prog_compiler_pic_CXX in
  12053. "" | " "*) ;;
  12054. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12055. esac
  12056. else
  12057. lt_prog_compiler_pic_CXX=
  12058. lt_prog_compiler_can_build_shared_CXX=no
  12059. fi
  12060. fi
  12061. #
  12062. # Check to make sure the static flag actually works.
  12063. #
  12064. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12066. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12067. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12068. $as_echo_n "(cached) " >&6
  12069. else
  12070. lt_cv_prog_compiler_static_works_CXX=no
  12071. save_LDFLAGS="$LDFLAGS"
  12072. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12073. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12074. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12075. # The linker can only warn and ignore the option if not recognized
  12076. # So say no if there are warnings
  12077. if test -s conftest.err; then
  12078. # Append any errors to the config.log.
  12079. cat conftest.err 1>&5
  12080. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12081. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12082. if diff conftest.exp conftest.er2 >/dev/null; then
  12083. lt_cv_prog_compiler_static_works_CXX=yes
  12084. fi
  12085. else
  12086. lt_cv_prog_compiler_static_works_CXX=yes
  12087. fi
  12088. fi
  12089. $RM -r conftest*
  12090. LDFLAGS="$save_LDFLAGS"
  12091. fi
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12093. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12094. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12095. :
  12096. else
  12097. lt_prog_compiler_static_CXX=
  12098. fi
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12100. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12101. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12102. $as_echo_n "(cached) " >&6
  12103. else
  12104. lt_cv_prog_compiler_c_o_CXX=no
  12105. $RM -r conftest 2>/dev/null
  12106. mkdir conftest
  12107. cd conftest
  12108. mkdir out
  12109. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12110. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12111. # Insert the option either (1) after the last *FLAGS variable, or
  12112. # (2) before a word containing "conftest.", or (3) at the end.
  12113. # Note that $ac_compile itself does not contain backslashes and begins
  12114. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12115. lt_compile=`echo "$ac_compile" | $SED \
  12116. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12117. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12118. -e 's:$: $lt_compiler_flag:'`
  12119. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12120. (eval "$lt_compile" 2>out/conftest.err)
  12121. ac_status=$?
  12122. cat out/conftest.err >&5
  12123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12124. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12125. then
  12126. # The compiler can only warn and ignore the option if not recognized
  12127. # So say no if there are warnings
  12128. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12129. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12130. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12131. lt_cv_prog_compiler_c_o_CXX=yes
  12132. fi
  12133. fi
  12134. chmod u+w . 2>&5
  12135. $RM conftest*
  12136. # SGI C++ compiler will create directory out/ii_files/ for
  12137. # template instantiation
  12138. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12139. $RM out/* && rmdir out
  12140. cd ..
  12141. $RM -r conftest
  12142. $RM conftest*
  12143. fi
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12145. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12147. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12148. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12149. $as_echo_n "(cached) " >&6
  12150. else
  12151. lt_cv_prog_compiler_c_o_CXX=no
  12152. $RM -r conftest 2>/dev/null
  12153. mkdir conftest
  12154. cd conftest
  12155. mkdir out
  12156. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12157. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12158. # Insert the option either (1) after the last *FLAGS variable, or
  12159. # (2) before a word containing "conftest.", or (3) at the end.
  12160. # Note that $ac_compile itself does not contain backslashes and begins
  12161. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12162. lt_compile=`echo "$ac_compile" | $SED \
  12163. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12164. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12165. -e 's:$: $lt_compiler_flag:'`
  12166. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12167. (eval "$lt_compile" 2>out/conftest.err)
  12168. ac_status=$?
  12169. cat out/conftest.err >&5
  12170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12171. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12172. then
  12173. # The compiler can only warn and ignore the option if not recognized
  12174. # So say no if there are warnings
  12175. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12176. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12177. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12178. lt_cv_prog_compiler_c_o_CXX=yes
  12179. fi
  12180. fi
  12181. chmod u+w . 2>&5
  12182. $RM conftest*
  12183. # SGI C++ compiler will create directory out/ii_files/ for
  12184. # template instantiation
  12185. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12186. $RM out/* && rmdir out
  12187. cd ..
  12188. $RM -r conftest
  12189. $RM conftest*
  12190. fi
  12191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12192. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12193. hard_links="nottested"
  12194. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12195. # do not overwrite the value of need_locks provided by the user
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12197. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12198. hard_links=yes
  12199. $RM conftest*
  12200. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12201. touch conftest.a
  12202. ln conftest.a conftest.b 2>&5 || hard_links=no
  12203. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12205. $as_echo "$hard_links" >&6; }
  12206. if test "$hard_links" = no; then
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12208. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12209. need_locks=warn
  12210. fi
  12211. else
  12212. need_locks=no
  12213. fi
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12215. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12216. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12217. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12218. case $host_os in
  12219. aix[4-9]*)
  12220. # If we're using GNU nm, then we don't want the "-C" option.
  12221. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12222. # Also, AIX nm treats weak defined symbols like other global defined
  12223. # symbols, whereas GNU nm marks them as "W".
  12224. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12225. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12226. else
  12227. 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'
  12228. fi
  12229. ;;
  12230. pw32*)
  12231. export_symbols_cmds_CXX="$ltdll_cmds"
  12232. ;;
  12233. cygwin* | mingw* | cegcc*)
  12234. case $cc_basename in
  12235. cl*) ;;
  12236. *)
  12237. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12238. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12239. ;;
  12240. esac
  12241. ;;
  12242. linux* | k*bsd*-gnu | gnu*)
  12243. link_all_deplibs_CXX=no
  12244. ;;
  12245. *)
  12246. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12247. ;;
  12248. esac
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12250. $as_echo "$ld_shlibs_CXX" >&6; }
  12251. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12252. with_gnu_ld_CXX=$with_gnu_ld
  12253. #
  12254. # Do we need to explicitly link libc?
  12255. #
  12256. case "x$archive_cmds_need_lc_CXX" in
  12257. x|xyes)
  12258. # Assume -lc should be added
  12259. archive_cmds_need_lc_CXX=yes
  12260. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12261. case $archive_cmds_CXX in
  12262. *'~'*)
  12263. # FIXME: we may have to deal with multi-command sequences.
  12264. ;;
  12265. '$CC '*)
  12266. # Test whether the compiler implicitly links with -lc since on some
  12267. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12268. # to ld, don't add -lc before -lgcc.
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12270. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12271. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12272. $as_echo_n "(cached) " >&6
  12273. else
  12274. $RM conftest*
  12275. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12277. (eval $ac_compile) 2>&5
  12278. ac_status=$?
  12279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12280. test $ac_status = 0; } 2>conftest.err; then
  12281. soname=conftest
  12282. lib=conftest
  12283. libobjs=conftest.$ac_objext
  12284. deplibs=
  12285. wl=$lt_prog_compiler_wl_CXX
  12286. pic_flag=$lt_prog_compiler_pic_CXX
  12287. compiler_flags=-v
  12288. linker_flags=-v
  12289. verstring=
  12290. output_objdir=.
  12291. libname=conftest
  12292. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12293. allow_undefined_flag_CXX=
  12294. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12295. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12296. ac_status=$?
  12297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12298. test $ac_status = 0; }
  12299. then
  12300. lt_cv_archive_cmds_need_lc_CXX=no
  12301. else
  12302. lt_cv_archive_cmds_need_lc_CXX=yes
  12303. fi
  12304. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12305. else
  12306. cat conftest.err 1>&5
  12307. fi
  12308. $RM conftest*
  12309. fi
  12310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12311. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12312. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12313. ;;
  12314. esac
  12315. fi
  12316. ;;
  12317. esac
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12319. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12320. library_names_spec=
  12321. libname_spec='lib$name'
  12322. soname_spec=
  12323. shrext_cmds=".so"
  12324. postinstall_cmds=
  12325. postuninstall_cmds=
  12326. finish_cmds=
  12327. finish_eval=
  12328. shlibpath_var=
  12329. shlibpath_overrides_runpath=unknown
  12330. version_type=none
  12331. dynamic_linker="$host_os ld.so"
  12332. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12333. need_lib_prefix=unknown
  12334. hardcode_into_libs=no
  12335. # when you set need_version to no, make sure it does not cause -set_version
  12336. # flags to be left without arguments
  12337. need_version=unknown
  12338. case $host_os in
  12339. aix3*)
  12340. version_type=linux
  12341. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12342. shlibpath_var=LIBPATH
  12343. # AIX 3 has no versioning support, so we append a major version to the name.
  12344. soname_spec='${libname}${release}${shared_ext}$major'
  12345. ;;
  12346. aix[4-9]*)
  12347. version_type=linux
  12348. need_lib_prefix=no
  12349. need_version=no
  12350. hardcode_into_libs=yes
  12351. if test "$host_cpu" = ia64; then
  12352. # AIX 5 supports IA64
  12353. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12354. shlibpath_var=LD_LIBRARY_PATH
  12355. else
  12356. # With GCC up to 2.95.x, collect2 would create an import file
  12357. # for dependence libraries. The import file would start with
  12358. # the line `#! .'. This would cause the generated library to
  12359. # depend on `.', always an invalid library. This was fixed in
  12360. # development snapshots of GCC prior to 3.0.
  12361. case $host_os in
  12362. aix4 | aix4.[01] | aix4.[01].*)
  12363. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12364. echo ' yes '
  12365. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12366. :
  12367. else
  12368. can_build_shared=no
  12369. fi
  12370. ;;
  12371. esac
  12372. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12373. # soname into executable. Probably we can add versioning support to
  12374. # collect2, so additional links can be useful in future.
  12375. if test "$aix_use_runtimelinking" = yes; then
  12376. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12377. # instead of lib<name>.a to let people know that these are not
  12378. # typical AIX shared libraries.
  12379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12380. else
  12381. # We preserve .a as extension for shared libraries through AIX4.2
  12382. # and later when we are not doing run time linking.
  12383. library_names_spec='${libname}${release}.a $libname.a'
  12384. soname_spec='${libname}${release}${shared_ext}$major'
  12385. fi
  12386. shlibpath_var=LIBPATH
  12387. fi
  12388. ;;
  12389. amigaos*)
  12390. case $host_cpu in
  12391. powerpc)
  12392. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12393. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12395. ;;
  12396. m68k)
  12397. library_names_spec='$libname.ixlibrary $libname.a'
  12398. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12399. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12400. ;;
  12401. esac
  12402. ;;
  12403. beos*)
  12404. library_names_spec='${libname}${shared_ext}'
  12405. dynamic_linker="$host_os ld.so"
  12406. shlibpath_var=LIBRARY_PATH
  12407. ;;
  12408. bsdi[45]*)
  12409. version_type=linux
  12410. need_version=no
  12411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12412. soname_spec='${libname}${release}${shared_ext}$major'
  12413. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12414. shlibpath_var=LD_LIBRARY_PATH
  12415. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12416. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12417. # the default ld.so.conf also contains /usr/contrib/lib and
  12418. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12419. # libtool to hard-code these into programs
  12420. ;;
  12421. cygwin* | mingw* | pw32* | cegcc*)
  12422. version_type=windows
  12423. shrext_cmds=".dll"
  12424. need_version=no
  12425. need_lib_prefix=no
  12426. case $GCC,$cc_basename in
  12427. yes,*)
  12428. # gcc
  12429. library_names_spec='$libname.dll.a'
  12430. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12431. postinstall_cmds='base_file=`basename \${file}`~
  12432. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12433. dldir=$destdir/`dirname \$dlpath`~
  12434. test -d \$dldir || mkdir -p \$dldir~
  12435. $install_prog $dir/$dlname \$dldir/$dlname~
  12436. chmod a+x \$dldir/$dlname~
  12437. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12438. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12439. fi'
  12440. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12441. dlpath=$dir/\$dldll~
  12442. $RM \$dlpath'
  12443. shlibpath_overrides_runpath=yes
  12444. case $host_os in
  12445. cygwin*)
  12446. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12447. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12448. ;;
  12449. mingw* | cegcc*)
  12450. # MinGW DLLs use traditional 'lib' prefix
  12451. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12452. ;;
  12453. pw32*)
  12454. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12455. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12456. ;;
  12457. esac
  12458. dynamic_linker='Win32 ld.exe'
  12459. ;;
  12460. *,cl*)
  12461. # Native MSVC
  12462. libname_spec='$name'
  12463. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12464. library_names_spec='${libname}.dll.lib'
  12465. case $build_os in
  12466. mingw*)
  12467. sys_lib_search_path_spec=
  12468. lt_save_ifs=$IFS
  12469. IFS=';'
  12470. for lt_path in $LIB
  12471. do
  12472. IFS=$lt_save_ifs
  12473. # Let DOS variable expansion print the short 8.3 style file name.
  12474. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12475. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12476. done
  12477. IFS=$lt_save_ifs
  12478. # Convert to MSYS style.
  12479. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12480. ;;
  12481. cygwin*)
  12482. # Convert to unix form, then to dos form, then back to unix form
  12483. # but this time dos style (no spaces!) so that the unix form looks
  12484. # like /cygdrive/c/PROGRA~1:/cygdr...
  12485. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12486. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12487. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12488. ;;
  12489. *)
  12490. sys_lib_search_path_spec="$LIB"
  12491. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12492. # It is most probably a Windows format PATH.
  12493. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12494. else
  12495. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12496. fi
  12497. # FIXME: find the short name or the path components, as spaces are
  12498. # common. (e.g. "Program Files" -> "PROGRA~1")
  12499. ;;
  12500. esac
  12501. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12502. postinstall_cmds='base_file=`basename \${file}`~
  12503. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12504. dldir=$destdir/`dirname \$dlpath`~
  12505. test -d \$dldir || mkdir -p \$dldir~
  12506. $install_prog $dir/$dlname \$dldir/$dlname'
  12507. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12508. dlpath=$dir/\$dldll~
  12509. $RM \$dlpath'
  12510. shlibpath_overrides_runpath=yes
  12511. dynamic_linker='Win32 link.exe'
  12512. ;;
  12513. *)
  12514. # Assume MSVC wrapper
  12515. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12516. dynamic_linker='Win32 ld.exe'
  12517. ;;
  12518. esac
  12519. # FIXME: first we should search . and the directory the executable is in
  12520. shlibpath_var=PATH
  12521. ;;
  12522. darwin* | rhapsody*)
  12523. dynamic_linker="$host_os dyld"
  12524. version_type=darwin
  12525. need_lib_prefix=no
  12526. need_version=no
  12527. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12528. soname_spec='${libname}${release}${major}$shared_ext'
  12529. shlibpath_overrides_runpath=yes
  12530. shlibpath_var=DYLD_LIBRARY_PATH
  12531. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12532. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12533. ;;
  12534. dgux*)
  12535. version_type=linux
  12536. need_lib_prefix=no
  12537. need_version=no
  12538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12539. soname_spec='${libname}${release}${shared_ext}$major'
  12540. shlibpath_var=LD_LIBRARY_PATH
  12541. ;;
  12542. freebsd1*)
  12543. dynamic_linker=no
  12544. ;;
  12545. freebsd* | dragonfly*)
  12546. # DragonFly does not have aout. When/if they implement a new
  12547. # versioning mechanism, adjust this.
  12548. if test -x /usr/bin/objformat; then
  12549. objformat=`/usr/bin/objformat`
  12550. else
  12551. case $host_os in
  12552. freebsd[123]*) objformat=aout ;;
  12553. *) objformat=elf ;;
  12554. esac
  12555. fi
  12556. version_type=freebsd-$objformat
  12557. case $version_type in
  12558. freebsd-elf*)
  12559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12560. need_version=no
  12561. need_lib_prefix=no
  12562. ;;
  12563. freebsd-*)
  12564. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12565. need_version=yes
  12566. ;;
  12567. esac
  12568. shlibpath_var=LD_LIBRARY_PATH
  12569. case $host_os in
  12570. freebsd2*)
  12571. shlibpath_overrides_runpath=yes
  12572. ;;
  12573. freebsd3.[01]* | freebsdelf3.[01]*)
  12574. shlibpath_overrides_runpath=yes
  12575. hardcode_into_libs=yes
  12576. ;;
  12577. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12578. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12579. shlibpath_overrides_runpath=no
  12580. hardcode_into_libs=yes
  12581. ;;
  12582. *) # from 4.6 on, and DragonFly
  12583. shlibpath_overrides_runpath=yes
  12584. hardcode_into_libs=yes
  12585. ;;
  12586. esac
  12587. ;;
  12588. gnu*)
  12589. version_type=linux
  12590. need_lib_prefix=no
  12591. need_version=no
  12592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12593. soname_spec='${libname}${release}${shared_ext}$major'
  12594. shlibpath_var=LD_LIBRARY_PATH
  12595. shlibpath_overrides_runpath=no
  12596. hardcode_into_libs=yes
  12597. ;;
  12598. haiku*)
  12599. version_type=linux
  12600. need_lib_prefix=no
  12601. need_version=no
  12602. dynamic_linker="$host_os runtime_loader"
  12603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12604. soname_spec='${libname}${release}${shared_ext}$major'
  12605. shlibpath_var=LIBRARY_PATH
  12606. shlibpath_overrides_runpath=yes
  12607. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12608. hardcode_into_libs=yes
  12609. ;;
  12610. hpux9* | hpux10* | hpux11*)
  12611. # Give a soname corresponding to the major version so that dld.sl refuses to
  12612. # link against other versions.
  12613. version_type=sunos
  12614. need_lib_prefix=no
  12615. need_version=no
  12616. case $host_cpu in
  12617. ia64*)
  12618. shrext_cmds='.so'
  12619. hardcode_into_libs=yes
  12620. dynamic_linker="$host_os dld.so"
  12621. shlibpath_var=LD_LIBRARY_PATH
  12622. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12624. soname_spec='${libname}${release}${shared_ext}$major'
  12625. if test "X$HPUX_IA64_MODE" = X32; then
  12626. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12627. else
  12628. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12629. fi
  12630. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12631. ;;
  12632. hppa*64*)
  12633. shrext_cmds='.sl'
  12634. hardcode_into_libs=yes
  12635. dynamic_linker="$host_os dld.sl"
  12636. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12637. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12639. soname_spec='${libname}${release}${shared_ext}$major'
  12640. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12641. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12642. ;;
  12643. *)
  12644. shrext_cmds='.sl'
  12645. dynamic_linker="$host_os dld.sl"
  12646. shlibpath_var=SHLIB_PATH
  12647. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12649. soname_spec='${libname}${release}${shared_ext}$major'
  12650. ;;
  12651. esac
  12652. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12653. postinstall_cmds='chmod 555 $lib'
  12654. # or fails outright, so override atomically:
  12655. install_override_mode=555
  12656. ;;
  12657. interix[3-9]*)
  12658. version_type=linux
  12659. need_lib_prefix=no
  12660. need_version=no
  12661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12662. soname_spec='${libname}${release}${shared_ext}$major'
  12663. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12664. shlibpath_var=LD_LIBRARY_PATH
  12665. shlibpath_overrides_runpath=no
  12666. hardcode_into_libs=yes
  12667. ;;
  12668. irix5* | irix6* | nonstopux*)
  12669. case $host_os in
  12670. nonstopux*) version_type=nonstopux ;;
  12671. *)
  12672. if test "$lt_cv_prog_gnu_ld" = yes; then
  12673. version_type=linux
  12674. else
  12675. version_type=irix
  12676. fi ;;
  12677. esac
  12678. need_lib_prefix=no
  12679. need_version=no
  12680. soname_spec='${libname}${release}${shared_ext}$major'
  12681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12682. case $host_os in
  12683. irix5* | nonstopux*)
  12684. libsuff= shlibsuff=
  12685. ;;
  12686. *)
  12687. case $LD in # libtool.m4 will add one of these switches to LD
  12688. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12689. libsuff= shlibsuff= libmagic=32-bit;;
  12690. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12691. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12692. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12693. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12694. *) libsuff= shlibsuff= libmagic=never-match;;
  12695. esac
  12696. ;;
  12697. esac
  12698. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12699. shlibpath_overrides_runpath=no
  12700. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12701. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12702. hardcode_into_libs=yes
  12703. ;;
  12704. # No shared lib support for Linux oldld, aout, or coff.
  12705. linux*oldld* | linux*aout* | linux*coff*)
  12706. dynamic_linker=no
  12707. ;;
  12708. # This must be Linux ELF.
  12709. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12710. version_type=linux
  12711. need_lib_prefix=no
  12712. need_version=no
  12713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12714. soname_spec='${libname}${release}${shared_ext}$major'
  12715. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12716. shlibpath_var=LD_LIBRARY_PATH
  12717. shlibpath_overrides_runpath=no
  12718. # Some binutils ld are patched to set DT_RUNPATH
  12719. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12720. $as_echo_n "(cached) " >&6
  12721. else
  12722. lt_cv_shlibpath_overrides_runpath=no
  12723. save_LDFLAGS=$LDFLAGS
  12724. save_libdir=$libdir
  12725. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12726. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12728. /* end confdefs.h. */
  12729. int
  12730. main ()
  12731. {
  12732. ;
  12733. return 0;
  12734. }
  12735. _ACEOF
  12736. if ac_fn_cxx_try_link "$LINENO"; then :
  12737. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12738. lt_cv_shlibpath_overrides_runpath=yes
  12739. fi
  12740. fi
  12741. rm -f core conftest.err conftest.$ac_objext \
  12742. conftest$ac_exeext conftest.$ac_ext
  12743. LDFLAGS=$save_LDFLAGS
  12744. libdir=$save_libdir
  12745. fi
  12746. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12747. # This implies no fast_install, which is unacceptable.
  12748. # Some rework will be needed to allow for fast_install
  12749. # before this can be enabled.
  12750. hardcode_into_libs=yes
  12751. # Append ld.so.conf contents to the search path
  12752. if test -f /etc/ld.so.conf; then
  12753. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12754. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12755. fi
  12756. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12757. # powerpc, because MkLinux only supported shared libraries with the
  12758. # GNU dynamic linker. Since this was broken with cross compilers,
  12759. # most powerpc-linux boxes support dynamic linking these days and
  12760. # people can always --disable-shared, the test was removed, and we
  12761. # assume the GNU/Linux dynamic linker is in use.
  12762. dynamic_linker='GNU/Linux ld.so'
  12763. ;;
  12764. netbsdelf*-gnu)
  12765. version_type=linux
  12766. need_lib_prefix=no
  12767. need_version=no
  12768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12769. soname_spec='${libname}${release}${shared_ext}$major'
  12770. shlibpath_var=LD_LIBRARY_PATH
  12771. shlibpath_overrides_runpath=no
  12772. hardcode_into_libs=yes
  12773. dynamic_linker='NetBSD ld.elf_so'
  12774. ;;
  12775. netbsd*)
  12776. version_type=sunos
  12777. need_lib_prefix=no
  12778. need_version=no
  12779. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12781. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12782. dynamic_linker='NetBSD (a.out) ld.so'
  12783. else
  12784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12785. soname_spec='${libname}${release}${shared_ext}$major'
  12786. dynamic_linker='NetBSD ld.elf_so'
  12787. fi
  12788. shlibpath_var=LD_LIBRARY_PATH
  12789. shlibpath_overrides_runpath=yes
  12790. hardcode_into_libs=yes
  12791. ;;
  12792. newsos6)
  12793. version_type=linux
  12794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12795. shlibpath_var=LD_LIBRARY_PATH
  12796. shlibpath_overrides_runpath=yes
  12797. ;;
  12798. *nto* | *qnx*)
  12799. version_type=qnx
  12800. need_lib_prefix=no
  12801. need_version=no
  12802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12803. soname_spec='${libname}${release}${shared_ext}$major'
  12804. shlibpath_var=LD_LIBRARY_PATH
  12805. shlibpath_overrides_runpath=no
  12806. hardcode_into_libs=yes
  12807. dynamic_linker='ldqnx.so'
  12808. ;;
  12809. openbsd*)
  12810. version_type=sunos
  12811. sys_lib_dlsearch_path_spec="/usr/lib"
  12812. need_lib_prefix=no
  12813. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12814. case $host_os in
  12815. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12816. *) need_version=no ;;
  12817. esac
  12818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12819. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12820. shlibpath_var=LD_LIBRARY_PATH
  12821. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12822. case $host_os in
  12823. openbsd2.[89] | openbsd2.[89].*)
  12824. shlibpath_overrides_runpath=no
  12825. ;;
  12826. *)
  12827. shlibpath_overrides_runpath=yes
  12828. ;;
  12829. esac
  12830. else
  12831. shlibpath_overrides_runpath=yes
  12832. fi
  12833. ;;
  12834. os2*)
  12835. libname_spec='$name'
  12836. shrext_cmds=".dll"
  12837. need_lib_prefix=no
  12838. library_names_spec='$libname${shared_ext} $libname.a'
  12839. dynamic_linker='OS/2 ld.exe'
  12840. shlibpath_var=LIBPATH
  12841. ;;
  12842. osf3* | osf4* | osf5*)
  12843. version_type=osf
  12844. need_lib_prefix=no
  12845. need_version=no
  12846. soname_spec='${libname}${release}${shared_ext}$major'
  12847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12848. shlibpath_var=LD_LIBRARY_PATH
  12849. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12850. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12851. ;;
  12852. rdos*)
  12853. dynamic_linker=no
  12854. ;;
  12855. solaris*)
  12856. version_type=linux
  12857. need_lib_prefix=no
  12858. need_version=no
  12859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12860. soname_spec='${libname}${release}${shared_ext}$major'
  12861. shlibpath_var=LD_LIBRARY_PATH
  12862. shlibpath_overrides_runpath=yes
  12863. hardcode_into_libs=yes
  12864. # ldd complains unless libraries are executable
  12865. postinstall_cmds='chmod +x $lib'
  12866. ;;
  12867. sunos4*)
  12868. version_type=sunos
  12869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12870. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12871. shlibpath_var=LD_LIBRARY_PATH
  12872. shlibpath_overrides_runpath=yes
  12873. if test "$with_gnu_ld" = yes; then
  12874. need_lib_prefix=no
  12875. fi
  12876. need_version=yes
  12877. ;;
  12878. sysv4 | sysv4.3*)
  12879. version_type=linux
  12880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12881. soname_spec='${libname}${release}${shared_ext}$major'
  12882. shlibpath_var=LD_LIBRARY_PATH
  12883. case $host_vendor in
  12884. sni)
  12885. shlibpath_overrides_runpath=no
  12886. need_lib_prefix=no
  12887. runpath_var=LD_RUN_PATH
  12888. ;;
  12889. siemens)
  12890. need_lib_prefix=no
  12891. ;;
  12892. motorola)
  12893. need_lib_prefix=no
  12894. need_version=no
  12895. shlibpath_overrides_runpath=no
  12896. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12897. ;;
  12898. esac
  12899. ;;
  12900. sysv4*MP*)
  12901. if test -d /usr/nec ;then
  12902. version_type=linux
  12903. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12904. soname_spec='$libname${shared_ext}.$major'
  12905. shlibpath_var=LD_LIBRARY_PATH
  12906. fi
  12907. ;;
  12908. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12909. version_type=freebsd-elf
  12910. need_lib_prefix=no
  12911. need_version=no
  12912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12913. soname_spec='${libname}${release}${shared_ext}$major'
  12914. shlibpath_var=LD_LIBRARY_PATH
  12915. shlibpath_overrides_runpath=yes
  12916. hardcode_into_libs=yes
  12917. if test "$with_gnu_ld" = yes; then
  12918. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12919. else
  12920. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12921. case $host_os in
  12922. sco3.2v5*)
  12923. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12924. ;;
  12925. esac
  12926. fi
  12927. sys_lib_dlsearch_path_spec='/usr/lib'
  12928. ;;
  12929. tpf*)
  12930. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12931. version_type=linux
  12932. need_lib_prefix=no
  12933. need_version=no
  12934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12935. shlibpath_var=LD_LIBRARY_PATH
  12936. shlibpath_overrides_runpath=no
  12937. hardcode_into_libs=yes
  12938. ;;
  12939. uts4*)
  12940. version_type=linux
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. shlibpath_var=LD_LIBRARY_PATH
  12944. ;;
  12945. *)
  12946. dynamic_linker=no
  12947. ;;
  12948. esac
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12950. $as_echo "$dynamic_linker" >&6; }
  12951. test "$dynamic_linker" = no && can_build_shared=no
  12952. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12953. if test "$GCC" = yes; then
  12954. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12955. fi
  12956. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12957. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12958. fi
  12959. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12960. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12961. fi
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12963. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12964. hardcode_action_CXX=
  12965. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12966. test -n "$runpath_var_CXX" ||
  12967. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12968. # We can hardcode non-existent directories.
  12969. if test "$hardcode_direct_CXX" != no &&
  12970. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12971. # have to relink, otherwise we might link with an installed library
  12972. # when we should be linking with a yet-to-be-installed one
  12973. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12974. test "$hardcode_minus_L_CXX" != no; then
  12975. # Linking always hardcodes the temporary library directory.
  12976. hardcode_action_CXX=relink
  12977. else
  12978. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12979. hardcode_action_CXX=immediate
  12980. fi
  12981. else
  12982. # We cannot hardcode anything, or else we can only hardcode existing
  12983. # directories.
  12984. hardcode_action_CXX=unsupported
  12985. fi
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12987. $as_echo "$hardcode_action_CXX" >&6; }
  12988. if test "$hardcode_action_CXX" = relink ||
  12989. test "$inherit_rpath_CXX" = yes; then
  12990. # Fast installation is not supported
  12991. enable_fast_install=no
  12992. elif test "$shlibpath_overrides_runpath" = yes ||
  12993. test "$enable_shared" = no; then
  12994. # Fast installation is not necessary
  12995. enable_fast_install=needless
  12996. fi
  12997. fi # test -n "$compiler"
  12998. CC=$lt_save_CC
  12999. CFLAGS=$lt_save_CFLAGS
  13000. LDCXX=$LD
  13001. LD=$lt_save_LD
  13002. GCC=$lt_save_GCC
  13003. with_gnu_ld=$lt_save_with_gnu_ld
  13004. lt_cv_path_LDCXX=$lt_cv_path_LD
  13005. lt_cv_path_LD=$lt_save_path_LD
  13006. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13007. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13008. fi # test "$_lt_caught_CXX_error" != yes
  13009. ac_ext=cpp
  13010. ac_cpp='$CXXCPP $CPPFLAGS'
  13011. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13012. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13013. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13014. ac_config_commands="$ac_config_commands libtool"
  13015. # Only expand once:
  13016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  13017. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  13018. if ${ax_cv_cxx_compiler_vendor+:} false; then :
  13019. $as_echo_n "(cached) " >&6
  13020. else
  13021. ax_cv_cxx_compiler_vendor=unknown
  13022. # note: don't check for gcc first since some other compilers define __GNUC__
  13023. 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
  13024. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  13025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13026. /* end confdefs.h. */
  13027. int
  13028. main ()
  13029. {
  13030. #if !($vencpp)
  13031. thisisanerror;
  13032. #endif
  13033. ;
  13034. return 0;
  13035. }
  13036. _ACEOF
  13037. if ac_fn_cxx_try_compile "$LINENO"; then :
  13038. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  13039. fi
  13040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13041. done
  13042. fi
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  13044. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  13045. # Use silent rules if supported.
  13046. # Check whether --enable-silent-rules was given.
  13047. if test "${enable_silent_rules+set}" = set; then :
  13048. enableval=$enable_silent_rules;
  13049. fi
  13050. case $enable_silent_rules in
  13051. yes) AM_DEFAULT_VERBOSITY=0;;
  13052. no) AM_DEFAULT_VERBOSITY=1;;
  13053. *) AM_DEFAULT_VERBOSITY=0;;
  13054. esac
  13055. am_make=${MAKE-make}
  13056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  13057. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  13058. if ${am_cv_make_support_nested_variables+:} false; then :
  13059. $as_echo_n "(cached) " >&6
  13060. else
  13061. if $as_echo 'TRUE=$(BAR$(V))
  13062. BAR0=false
  13063. BAR1=true
  13064. V=1
  13065. am__doit:
  13066. @$(TRUE)
  13067. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  13068. am_cv_make_support_nested_variables=yes
  13069. else
  13070. am_cv_make_support_nested_variables=no
  13071. fi
  13072. fi
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  13074. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  13075. if test $am_cv_make_support_nested_variables = yes; then
  13076. AM_V='$(V)'
  13077. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  13078. else
  13079. AM_V=$AM_DEFAULT_VERBOSITY
  13080. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  13081. fi
  13082. AM_BACKSLASH='\'
  13083. # Check whether --enable-debug was given.
  13084. if test "${enable_debug+set}" = set; then :
  13085. enableval=$enable_debug; if test x$enableval = xyes ; then
  13086. enable_debug="yes"
  13087. else
  13088. enable_debug="no"
  13089. fi
  13090. else
  13091. enable_debug="yes"
  13092. fi
  13093. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13094. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  13095. fi
  13096. # For gcc and compatible compilers, enable compilation warnings, but
  13097. # selectively disable some because too many are generated.
  13098. if test "x$GXX" = "xyes" ; then
  13099. CXXFLAGS="$CXXFLAGSc -std=c++0x -Wall -Wextra -Wcast-align -Wpointer-arith -Wno-switch -Wno-sign-compare -Wno-unused-parameter"
  13100. fi
  13101. # extra clang parameters
  13102. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  13103. CXXFLAGS="$CXXFLAGS -Wno-cast-align -Woverloaded-virtual"
  13104. fi
  13105. # extra Intel icc parameters
  13106. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  13107. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  13108. fi
  13109. # Check for Boost libraries
  13110. # Check whether --with-boost was given.
  13111. if test "${with_boost+set}" = set; then :
  13112. withval=$with_boost;
  13113. if test "$withval" = "no"; then
  13114. want_boost="no"
  13115. elif test "$withval" = "yes"; then
  13116. want_boost="yes"
  13117. ac_boost_path=""
  13118. else
  13119. want_boost="yes"
  13120. ac_boost_path="$withval"
  13121. fi
  13122. else
  13123. want_boost="yes"
  13124. fi
  13125. # Check whether --with-boost-libdir was given.
  13126. if test "${with_boost_libdir+set}" = set; then :
  13127. withval=$with_boost_libdir;
  13128. if test -d "$withval"
  13129. then
  13130. ac_boost_lib_path="$withval"
  13131. else
  13132. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  13133. fi
  13134. else
  13135. ac_boost_lib_path=""
  13136. fi
  13137. if test "x$want_boost" = "xyes"; then
  13138. boost_lib_version_req=1.36
  13139. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13140. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13141. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13142. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13143. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13144. boost_lib_version_req_sub_minor="0"
  13145. fi
  13146. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  13148. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13149. succeeded=no
  13150. libsubdirs="lib"
  13151. ax_arch=`uname -m`
  13152. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  13153. libsubdirs="lib64 lib lib64"
  13154. fi
  13155. if test "$ac_boost_path" != ""; then
  13156. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13157. for ac_boost_path_tmp in $libsubdirs; do
  13158. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  13159. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  13160. break
  13161. fi
  13162. done
  13163. elif test "$cross_compiling" != yes; then
  13164. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13165. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13166. for libsubdir in $libsubdirs ; do
  13167. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13168. done
  13169. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  13170. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13171. break;
  13172. fi
  13173. done
  13174. fi
  13175. if test "$ac_boost_lib_path" != ""; then
  13176. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13177. fi
  13178. CPPFLAGS_SAVED="$CPPFLAGS"
  13179. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13180. export CPPFLAGS
  13181. LDFLAGS_SAVED="$LDFLAGS"
  13182. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13183. export LDFLAGS
  13184. ac_ext=cpp
  13185. ac_cpp='$CXXCPP $CPPFLAGS'
  13186. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13187. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13188. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13190. /* end confdefs.h. */
  13191. #include <boost/version.hpp>
  13192. int
  13193. main ()
  13194. {
  13195. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13196. // Everything is okay
  13197. #else
  13198. # error Boost version is too old
  13199. #endif
  13200. ;
  13201. return 0;
  13202. }
  13203. _ACEOF
  13204. if ac_fn_cxx_try_compile "$LINENO"; then :
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13206. $as_echo "yes" >&6; }
  13207. succeeded=yes
  13208. found_system=yes
  13209. fi
  13210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13211. ac_ext=cpp
  13212. ac_cpp='$CXXCPP $CPPFLAGS'
  13213. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13214. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13215. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13216. if test "x$succeeded" != "xyes"; then
  13217. _version=0
  13218. if test "$ac_boost_path" != ""; then
  13219. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13220. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13221. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13222. V_CHECK=`expr $_version_tmp \> $_version`
  13223. if test "$V_CHECK" = "1" ; then
  13224. _version=$_version_tmp
  13225. fi
  13226. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13227. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13228. done
  13229. fi
  13230. else
  13231. if test "$cross_compiling" != yes; then
  13232. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13233. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13234. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13235. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13236. V_CHECK=`expr $_version_tmp \> $_version`
  13237. if test "$V_CHECK" = "1" ; then
  13238. _version=$_version_tmp
  13239. best_path=$ac_boost_path
  13240. fi
  13241. done
  13242. fi
  13243. done
  13244. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13245. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13246. if test "$ac_boost_lib_path" = ""; then
  13247. for libsubdir in $libsubdirs ; do
  13248. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13249. done
  13250. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  13251. fi
  13252. fi
  13253. if test "x$BOOST_ROOT" != "x"; then
  13254. for libsubdir in $libsubdirs ; do
  13255. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13256. done
  13257. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  13258. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13259. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13260. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13261. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13262. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13263. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  13264. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13265. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13266. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  13267. fi
  13268. fi
  13269. fi
  13270. fi
  13271. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13272. export CPPFLAGS
  13273. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13274. export LDFLAGS
  13275. ac_ext=cpp
  13276. ac_cpp='$CXXCPP $CPPFLAGS'
  13277. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13278. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13279. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13281. /* end confdefs.h. */
  13282. #include <boost/version.hpp>
  13283. int
  13284. main ()
  13285. {
  13286. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13287. // Everything is okay
  13288. #else
  13289. # error Boost version is too old
  13290. #endif
  13291. ;
  13292. return 0;
  13293. }
  13294. _ACEOF
  13295. if ac_fn_cxx_try_compile "$LINENO"; then :
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13297. $as_echo "yes" >&6; }
  13298. succeeded=yes
  13299. found_system=yes
  13300. fi
  13301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13302. ac_ext=cpp
  13303. ac_cpp='$CXXCPP $CPPFLAGS'
  13304. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13305. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13306. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13307. fi
  13308. if test "$succeeded" != "yes" ; then
  13309. if test "$_version" = "0" ; then
  13310. { $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
  13311. $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;}
  13312. else
  13313. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  13314. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13315. fi
  13316. # execute ACTION-IF-NOT-FOUND (if present):
  13317. :
  13318. else
  13319. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  13320. # execute ACTION-IF-FOUND (if present):
  13321. :
  13322. fi
  13323. CPPFLAGS="$CPPFLAGS_SAVED"
  13324. LDFLAGS="$LDFLAGS_SAVED"
  13325. fi
  13326. # Check whether --with-boost-system was given.
  13327. if test "${with_boost_system+set}" = set; then :
  13328. withval=$with_boost_system;
  13329. if test "$withval" = "no"; then
  13330. want_boost="no"
  13331. elif test "$withval" = "yes"; then
  13332. want_boost="yes"
  13333. ax_boost_user_system_lib=""
  13334. else
  13335. want_boost="yes"
  13336. ax_boost_user_system_lib="$withval"
  13337. fi
  13338. else
  13339. want_boost="yes"
  13340. fi
  13341. if test "x$want_boost" = "xyes"; then
  13342. CPPFLAGS_SAVED="$CPPFLAGS"
  13343. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13344. export CPPFLAGS
  13345. LDFLAGS_SAVED="$LDFLAGS"
  13346. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13347. export LDFLAGS
  13348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  13349. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13350. if ${ax_cv_boost_system+:} false; then :
  13351. $as_echo_n "(cached) " >&6
  13352. else
  13353. ac_ext=cpp
  13354. ac_cpp='$CXXCPP $CPPFLAGS'
  13355. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13356. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13357. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13358. CXXFLAGS_SAVE=$CXXFLAGS
  13359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13360. /* end confdefs.h. */
  13361. #include <boost/system/error_code.hpp>
  13362. int
  13363. main ()
  13364. {
  13365. boost::system::system_category
  13366. ;
  13367. return 0;
  13368. }
  13369. _ACEOF
  13370. if ac_fn_cxx_try_compile "$LINENO"; then :
  13371. ax_cv_boost_system=yes
  13372. else
  13373. ax_cv_boost_system=no
  13374. fi
  13375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13376. CXXFLAGS=$CXXFLAGS_SAVE
  13377. ac_ext=cpp
  13378. ac_cpp='$CXXCPP $CPPFLAGS'
  13379. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13380. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13381. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13382. fi
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  13384. $as_echo "$ax_cv_boost_system" >&6; }
  13385. if test "x$ax_cv_boost_system" = "xyes"; then
  13386. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  13387. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13388. LDFLAGS_SAVE=$LDFLAGS
  13389. if test "x$ax_boost_user_system_lib" = "x"; then
  13390. 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
  13391. ax_lib=${libextension}
  13392. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13394. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13395. if eval \${$as_ac_Lib+:} false; then :
  13396. $as_echo_n "(cached) " >&6
  13397. else
  13398. ac_check_lib_save_LIBS=$LIBS
  13399. LIBS="-l$ax_lib $LIBS"
  13400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13401. /* end confdefs.h. */
  13402. /* Override any GCC internal prototype to avoid an error.
  13403. Use char because int might match the return type of a GCC
  13404. builtin and then its argument prototype would still apply. */
  13405. #ifdef __cplusplus
  13406. extern "C"
  13407. #endif
  13408. char exit ();
  13409. int
  13410. main ()
  13411. {
  13412. return exit ();
  13413. ;
  13414. return 0;
  13415. }
  13416. _ACEOF
  13417. if ac_fn_cxx_try_link "$LINENO"; then :
  13418. eval "$as_ac_Lib=yes"
  13419. else
  13420. eval "$as_ac_Lib=no"
  13421. fi
  13422. rm -f core conftest.err conftest.$ac_objext \
  13423. conftest$ac_exeext conftest.$ac_ext
  13424. LIBS=$ac_check_lib_save_LIBS
  13425. fi
  13426. eval ac_res=\$$as_ac_Lib
  13427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13428. $as_echo "$ac_res" >&6; }
  13429. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13430. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13431. else
  13432. link_system="no"
  13433. fi
  13434. done
  13435. if test "x$link_system" != "xyes"; then
  13436. 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
  13437. ax_lib=${libextension}
  13438. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13440. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13441. if eval \${$as_ac_Lib+:} false; then :
  13442. $as_echo_n "(cached) " >&6
  13443. else
  13444. ac_check_lib_save_LIBS=$LIBS
  13445. LIBS="-l$ax_lib $LIBS"
  13446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13447. /* end confdefs.h. */
  13448. /* Override any GCC internal prototype to avoid an error.
  13449. Use char because int might match the return type of a GCC
  13450. builtin and then its argument prototype would still apply. */
  13451. #ifdef __cplusplus
  13452. extern "C"
  13453. #endif
  13454. char exit ();
  13455. int
  13456. main ()
  13457. {
  13458. return exit ();
  13459. ;
  13460. return 0;
  13461. }
  13462. _ACEOF
  13463. if ac_fn_cxx_try_link "$LINENO"; then :
  13464. eval "$as_ac_Lib=yes"
  13465. else
  13466. eval "$as_ac_Lib=no"
  13467. fi
  13468. rm -f core conftest.err conftest.$ac_objext \
  13469. conftest$ac_exeext conftest.$ac_ext
  13470. LIBS=$ac_check_lib_save_LIBS
  13471. fi
  13472. eval ac_res=\$$as_ac_Lib
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13474. $as_echo "$ac_res" >&6; }
  13475. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13476. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13477. else
  13478. link_system="no"
  13479. fi
  13480. done
  13481. fi
  13482. else
  13483. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13484. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13486. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13487. if eval \${$as_ac_Lib+:} false; then :
  13488. $as_echo_n "(cached) " >&6
  13489. else
  13490. ac_check_lib_save_LIBS=$LIBS
  13491. LIBS="-l$ax_lib $LIBS"
  13492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13493. /* end confdefs.h. */
  13494. /* Override any GCC internal prototype to avoid an error.
  13495. Use char because int might match the return type of a GCC
  13496. builtin and then its argument prototype would still apply. */
  13497. #ifdef __cplusplus
  13498. extern "C"
  13499. #endif
  13500. char exit ();
  13501. int
  13502. main ()
  13503. {
  13504. return exit ();
  13505. ;
  13506. return 0;
  13507. }
  13508. _ACEOF
  13509. if ac_fn_cxx_try_link "$LINENO"; then :
  13510. eval "$as_ac_Lib=yes"
  13511. else
  13512. eval "$as_ac_Lib=no"
  13513. fi
  13514. rm -f core conftest.err conftest.$ac_objext \
  13515. conftest$ac_exeext conftest.$ac_ext
  13516. LIBS=$ac_check_lib_save_LIBS
  13517. fi
  13518. eval ac_res=\$$as_ac_Lib
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13520. $as_echo "$ac_res" >&6; }
  13521. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13522. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13523. else
  13524. link_system="no"
  13525. fi
  13526. done
  13527. fi
  13528. if test "x$ax_lib" = "x"; then
  13529. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13530. fi
  13531. if test "x$link_system" = "xno"; then
  13532. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13533. fi
  13534. fi
  13535. CPPFLAGS="$CPPFLAGS_SAVED"
  13536. LDFLAGS="$LDFLAGS_SAVED"
  13537. fi
  13538. # Check whether --with-boost-filesystem was given.
  13539. if test "${with_boost_filesystem+set}" = set; then :
  13540. withval=$with_boost_filesystem;
  13541. if test "$withval" = "no"; then
  13542. want_boost="no"
  13543. elif test "$withval" = "yes"; then
  13544. want_boost="yes"
  13545. ax_boost_user_filesystem_lib=""
  13546. else
  13547. want_boost="yes"
  13548. ax_boost_user_filesystem_lib="$withval"
  13549. fi
  13550. else
  13551. want_boost="yes"
  13552. fi
  13553. if test "x$want_boost" = "xyes"; then
  13554. CPPFLAGS_SAVED="$CPPFLAGS"
  13555. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13556. export CPPFLAGS
  13557. LDFLAGS_SAVED="$LDFLAGS"
  13558. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13559. export LDFLAGS
  13560. LIBS_SAVED=$LIBS
  13561. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  13562. export LIBS
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  13564. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13565. if ${ax_cv_boost_filesystem+:} false; then :
  13566. $as_echo_n "(cached) " >&6
  13567. else
  13568. ac_ext=cpp
  13569. ac_cpp='$CXXCPP $CPPFLAGS'
  13570. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13571. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13572. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13574. /* end confdefs.h. */
  13575. #include <boost/filesystem/path.hpp>
  13576. int
  13577. main ()
  13578. {
  13579. using namespace boost::filesystem;
  13580. path my_path( "foo/bar/data.txt" );
  13581. return 0;
  13582. ;
  13583. return 0;
  13584. }
  13585. _ACEOF
  13586. if ac_fn_cxx_try_compile "$LINENO"; then :
  13587. ax_cv_boost_filesystem=yes
  13588. else
  13589. ax_cv_boost_filesystem=no
  13590. fi
  13591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13592. ac_ext=cpp
  13593. ac_cpp='$CXXCPP $CPPFLAGS'
  13594. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13595. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13596. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13597. fi
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  13599. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13600. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13601. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  13602. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13603. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13604. 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
  13605. ax_lib=${libextension}
  13606. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13608. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13609. if eval \${$as_ac_Lib+:} false; then :
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. ac_check_lib_save_LIBS=$LIBS
  13613. LIBS="-l$ax_lib $LIBS"
  13614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13615. /* end confdefs.h. */
  13616. /* Override any GCC internal prototype to avoid an error.
  13617. Use char because int might match the return type of a GCC
  13618. builtin and then its argument prototype would still apply. */
  13619. #ifdef __cplusplus
  13620. extern "C"
  13621. #endif
  13622. char exit ();
  13623. int
  13624. main ()
  13625. {
  13626. return exit ();
  13627. ;
  13628. return 0;
  13629. }
  13630. _ACEOF
  13631. if ac_fn_cxx_try_link "$LINENO"; then :
  13632. eval "$as_ac_Lib=yes"
  13633. else
  13634. eval "$as_ac_Lib=no"
  13635. fi
  13636. rm -f core conftest.err conftest.$ac_objext \
  13637. conftest$ac_exeext conftest.$ac_ext
  13638. LIBS=$ac_check_lib_save_LIBS
  13639. fi
  13640. eval ac_res=\$$as_ac_Lib
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13642. $as_echo "$ac_res" >&6; }
  13643. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13644. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13645. else
  13646. link_filesystem="no"
  13647. fi
  13648. done
  13649. if test "x$link_program_options" != "xyes"; then
  13650. 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
  13651. ax_lib=${libextension}
  13652. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13654. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13655. if eval \${$as_ac_Lib+:} false; then :
  13656. $as_echo_n "(cached) " >&6
  13657. else
  13658. ac_check_lib_save_LIBS=$LIBS
  13659. LIBS="-l$ax_lib $LIBS"
  13660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13661. /* end confdefs.h. */
  13662. /* Override any GCC internal prototype to avoid an error.
  13663. Use char because int might match the return type of a GCC
  13664. builtin and then its argument prototype would still apply. */
  13665. #ifdef __cplusplus
  13666. extern "C"
  13667. #endif
  13668. char exit ();
  13669. int
  13670. main ()
  13671. {
  13672. return exit ();
  13673. ;
  13674. return 0;
  13675. }
  13676. _ACEOF
  13677. if ac_fn_cxx_try_link "$LINENO"; then :
  13678. eval "$as_ac_Lib=yes"
  13679. else
  13680. eval "$as_ac_Lib=no"
  13681. fi
  13682. rm -f core conftest.err conftest.$ac_objext \
  13683. conftest$ac_exeext conftest.$ac_ext
  13684. LIBS=$ac_check_lib_save_LIBS
  13685. fi
  13686. eval ac_res=\$$as_ac_Lib
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13688. $as_echo "$ac_res" >&6; }
  13689. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13690. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13691. else
  13692. link_filesystem="no"
  13693. fi
  13694. done
  13695. fi
  13696. else
  13697. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13698. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13700. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13701. if eval \${$as_ac_Lib+:} false; then :
  13702. $as_echo_n "(cached) " >&6
  13703. else
  13704. ac_check_lib_save_LIBS=$LIBS
  13705. LIBS="-l$ax_lib $LIBS"
  13706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13707. /* end confdefs.h. */
  13708. /* Override any GCC internal prototype to avoid an error.
  13709. Use char because int might match the return type of a GCC
  13710. builtin and then its argument prototype would still apply. */
  13711. #ifdef __cplusplus
  13712. extern "C"
  13713. #endif
  13714. char exit ();
  13715. int
  13716. main ()
  13717. {
  13718. return exit ();
  13719. ;
  13720. return 0;
  13721. }
  13722. _ACEOF
  13723. if ac_fn_cxx_try_link "$LINENO"; then :
  13724. eval "$as_ac_Lib=yes"
  13725. else
  13726. eval "$as_ac_Lib=no"
  13727. fi
  13728. rm -f core conftest.err conftest.$ac_objext \
  13729. conftest$ac_exeext conftest.$ac_ext
  13730. LIBS=$ac_check_lib_save_LIBS
  13731. fi
  13732. eval ac_res=\$$as_ac_Lib
  13733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13734. $as_echo "$ac_res" >&6; }
  13735. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13736. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13737. else
  13738. link_filesystem="no"
  13739. fi
  13740. done
  13741. fi
  13742. if test "x$ax_lib" = "x"; then
  13743. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13744. fi
  13745. if test "x$link_filesystem" != "xyes"; then
  13746. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13747. fi
  13748. fi
  13749. CPPFLAGS="$CPPFLAGS_SAVED"
  13750. LDFLAGS="$LDFLAGS_SAVED"
  13751. LIBS="$LIBS_SAVED"
  13752. fi
  13753. # Check whether --with-boost-thread was given.
  13754. if test "${with_boost_thread+set}" = set; then :
  13755. withval=$with_boost_thread;
  13756. if test "$withval" = "no"; then
  13757. want_boost="no"
  13758. elif test "$withval" = "yes"; then
  13759. want_boost="yes"
  13760. ax_boost_user_thread_lib=""
  13761. else
  13762. want_boost="yes"
  13763. ax_boost_user_thread_lib="$withval"
  13764. fi
  13765. else
  13766. want_boost="yes"
  13767. fi
  13768. if test "x$want_boost" = "xyes"; then
  13769. CPPFLAGS_SAVED="$CPPFLAGS"
  13770. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13771. export CPPFLAGS
  13772. LDFLAGS_SAVED="$LDFLAGS"
  13773. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13774. export LDFLAGS
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13776. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13777. if ${ax_cv_boost_thread+:} false; then :
  13778. $as_echo_n "(cached) " >&6
  13779. else
  13780. ac_ext=cpp
  13781. ac_cpp='$CXXCPP $CPPFLAGS'
  13782. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13783. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13784. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13785. CXXFLAGS_SAVE=$CXXFLAGS
  13786. if test "x$build_os" = "xsolaris" ; then
  13787. CXXFLAGS="-pthreads $CXXFLAGS"
  13788. elif test "x$build_os" = "xming32" ; then
  13789. CXXFLAGS="-mthreads $CXXFLAGS"
  13790. else
  13791. CXXFLAGS="-pthread $CXXFLAGS"
  13792. fi
  13793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13794. /* end confdefs.h. */
  13795. #include <boost/thread/thread.hpp>
  13796. int
  13797. main ()
  13798. {
  13799. boost::thread_group thrds;
  13800. return 0;
  13801. ;
  13802. return 0;
  13803. }
  13804. _ACEOF
  13805. if ac_fn_cxx_try_compile "$LINENO"; then :
  13806. ax_cv_boost_thread=yes
  13807. else
  13808. ax_cv_boost_thread=no
  13809. fi
  13810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13811. CXXFLAGS=$CXXFLAGS_SAVE
  13812. ac_ext=cpp
  13813. ac_cpp='$CXXCPP $CPPFLAGS'
  13814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13817. fi
  13818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13819. $as_echo "$ax_cv_boost_thread" >&6; }
  13820. if test "x$ax_cv_boost_thread" = "xyes"; then
  13821. if test "x$build_os" = "xsolaris" ; then
  13822. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13823. elif test "x$build_os" = "xming32" ; then
  13824. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13825. else
  13826. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13827. fi
  13828. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13829. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13830. LDFLAGS_SAVE=$LDFLAGS
  13831. case "x$build_os" in
  13832. *bsd* )
  13833. LDFLAGS="-pthread $LDFLAGS"
  13834. break;
  13835. ;;
  13836. esac
  13837. if test "x$ax_boost_user_thread_lib" = "x"; then
  13838. 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
  13839. ax_lib=${libextension}
  13840. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13842. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13843. if eval \${$as_ac_Lib+:} false; then :
  13844. $as_echo_n "(cached) " >&6
  13845. else
  13846. ac_check_lib_save_LIBS=$LIBS
  13847. LIBS="-l$ax_lib $LIBS"
  13848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13849. /* end confdefs.h. */
  13850. /* Override any GCC internal prototype to avoid an error.
  13851. Use char because int might match the return type of a GCC
  13852. builtin and then its argument prototype would still apply. */
  13853. #ifdef __cplusplus
  13854. extern "C"
  13855. #endif
  13856. char exit ();
  13857. int
  13858. main ()
  13859. {
  13860. return exit ();
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_cxx_try_link "$LINENO"; then :
  13866. eval "$as_ac_Lib=yes"
  13867. else
  13868. eval "$as_ac_Lib=no"
  13869. fi
  13870. rm -f core conftest.err conftest.$ac_objext \
  13871. conftest$ac_exeext conftest.$ac_ext
  13872. LIBS=$ac_check_lib_save_LIBS
  13873. fi
  13874. eval ac_res=\$$as_ac_Lib
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13876. $as_echo "$ac_res" >&6; }
  13877. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13878. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13879. else
  13880. link_thread="no"
  13881. fi
  13882. done
  13883. if test "x$link_thread" != "xyes"; then
  13884. 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
  13885. ax_lib=${libextension}
  13886. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13888. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13889. if eval \${$as_ac_Lib+:} false; then :
  13890. $as_echo_n "(cached) " >&6
  13891. else
  13892. ac_check_lib_save_LIBS=$LIBS
  13893. LIBS="-l$ax_lib $LIBS"
  13894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13895. /* end confdefs.h. */
  13896. /* Override any GCC internal prototype to avoid an error.
  13897. Use char because int might match the return type of a GCC
  13898. builtin and then its argument prototype would still apply. */
  13899. #ifdef __cplusplus
  13900. extern "C"
  13901. #endif
  13902. char exit ();
  13903. int
  13904. main ()
  13905. {
  13906. return exit ();
  13907. ;
  13908. return 0;
  13909. }
  13910. _ACEOF
  13911. if ac_fn_cxx_try_link "$LINENO"; then :
  13912. eval "$as_ac_Lib=yes"
  13913. else
  13914. eval "$as_ac_Lib=no"
  13915. fi
  13916. rm -f core conftest.err conftest.$ac_objext \
  13917. conftest$ac_exeext conftest.$ac_ext
  13918. LIBS=$ac_check_lib_save_LIBS
  13919. fi
  13920. eval ac_res=\$$as_ac_Lib
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13922. $as_echo "$ac_res" >&6; }
  13923. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13924. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13925. else
  13926. link_thread="no"
  13927. fi
  13928. done
  13929. fi
  13930. else
  13931. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13932. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13934. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13935. if eval \${$as_ac_Lib+:} false; then :
  13936. $as_echo_n "(cached) " >&6
  13937. else
  13938. ac_check_lib_save_LIBS=$LIBS
  13939. LIBS="-l$ax_lib $LIBS"
  13940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13941. /* end confdefs.h. */
  13942. /* Override any GCC internal prototype to avoid an error.
  13943. Use char because int might match the return type of a GCC
  13944. builtin and then its argument prototype would still apply. */
  13945. #ifdef __cplusplus
  13946. extern "C"
  13947. #endif
  13948. char exit ();
  13949. int
  13950. main ()
  13951. {
  13952. return exit ();
  13953. ;
  13954. return 0;
  13955. }
  13956. _ACEOF
  13957. if ac_fn_cxx_try_link "$LINENO"; then :
  13958. eval "$as_ac_Lib=yes"
  13959. else
  13960. eval "$as_ac_Lib=no"
  13961. fi
  13962. rm -f core conftest.err conftest.$ac_objext \
  13963. conftest$ac_exeext conftest.$ac_ext
  13964. LIBS=$ac_check_lib_save_LIBS
  13965. fi
  13966. eval ac_res=\$$as_ac_Lib
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13968. $as_echo "$ac_res" >&6; }
  13969. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13970. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13971. else
  13972. link_thread="no"
  13973. fi
  13974. done
  13975. fi
  13976. if test "x$ax_lib" = "x"; then
  13977. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13978. fi
  13979. if test "x$link_thread" = "xno"; then
  13980. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13981. else
  13982. case "x$build_os" in
  13983. *bsd* )
  13984. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13985. break;
  13986. ;;
  13987. esac
  13988. fi
  13989. fi
  13990. CPPFLAGS="$CPPFLAGS_SAVED"
  13991. LDFLAGS="$LDFLAGS_SAVED"
  13992. fi
  13993. # Check whether --with-boost-iostreams was given.
  13994. if test "${with_boost_iostreams+set}" = set; then :
  13995. withval=$with_boost_iostreams;
  13996. if test "$withval" = "no"; then
  13997. want_boost="no"
  13998. elif test "$withval" = "yes"; then
  13999. want_boost="yes"
  14000. ax_boost_user_iostreams_lib=""
  14001. else
  14002. want_boost="yes"
  14003. ax_boost_user_iostreams_lib="$withval"
  14004. fi
  14005. else
  14006. want_boost="yes"
  14007. fi
  14008. if test "x$want_boost" = "xyes"; then
  14009. CPPFLAGS_SAVED="$CPPFLAGS"
  14010. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14011. export CPPFLAGS
  14012. LDFLAGS_SAVED="$LDFLAGS"
  14013. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14014. export LDFLAGS
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  14016. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  14017. if ${ax_cv_boost_iostreams+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. ac_ext=cpp
  14021. ac_cpp='$CXXCPP $CPPFLAGS'
  14022. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14023. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14024. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14026. /* end confdefs.h. */
  14027. #include <boost/iostreams/filtering_stream.hpp>
  14028. #include <boost/range/iterator_range.hpp>
  14029. int
  14030. main ()
  14031. {
  14032. std::string input = "Hello World!";
  14033. namespace io = boost::iostreams;
  14034. io::filtering_istream in(boost::make_iterator_range(input));
  14035. return 0;
  14036. ;
  14037. return 0;
  14038. }
  14039. _ACEOF
  14040. if ac_fn_cxx_try_compile "$LINENO"; then :
  14041. ax_cv_boost_iostreams=yes
  14042. else
  14043. ax_cv_boost_iostreams=no
  14044. fi
  14045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14046. ac_ext=cpp
  14047. ac_cpp='$CXXCPP $CPPFLAGS'
  14048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14051. fi
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  14053. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14054. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14055. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  14056. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14057. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14058. 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
  14059. ax_lib=${libextension}
  14060. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14062. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14063. if eval \${$as_ac_Lib+:} false; then :
  14064. $as_echo_n "(cached) " >&6
  14065. else
  14066. ac_check_lib_save_LIBS=$LIBS
  14067. LIBS="-l$ax_lib $LIBS"
  14068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14069. /* end confdefs.h. */
  14070. /* Override any GCC internal prototype to avoid an error.
  14071. Use char because int might match the return type of a GCC
  14072. builtin and then its argument prototype would still apply. */
  14073. #ifdef __cplusplus
  14074. extern "C"
  14075. #endif
  14076. char exit ();
  14077. int
  14078. main ()
  14079. {
  14080. return exit ();
  14081. ;
  14082. return 0;
  14083. }
  14084. _ACEOF
  14085. if ac_fn_cxx_try_link "$LINENO"; then :
  14086. eval "$as_ac_Lib=yes"
  14087. else
  14088. eval "$as_ac_Lib=no"
  14089. fi
  14090. rm -f core conftest.err conftest.$ac_objext \
  14091. conftest$ac_exeext conftest.$ac_ext
  14092. LIBS=$ac_check_lib_save_LIBS
  14093. fi
  14094. eval ac_res=\$$as_ac_Lib
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14096. $as_echo "$ac_res" >&6; }
  14097. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14098. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14099. else
  14100. link_iostreams="no"
  14101. fi
  14102. done
  14103. if test "x$link_iostreams" != "xyes"; then
  14104. 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
  14105. ax_lib=${libextension}
  14106. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14108. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14109. if eval \${$as_ac_Lib+:} false; then :
  14110. $as_echo_n "(cached) " >&6
  14111. else
  14112. ac_check_lib_save_LIBS=$LIBS
  14113. LIBS="-l$ax_lib $LIBS"
  14114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14115. /* end confdefs.h. */
  14116. /* Override any GCC internal prototype to avoid an error.
  14117. Use char because int might match the return type of a GCC
  14118. builtin and then its argument prototype would still apply. */
  14119. #ifdef __cplusplus
  14120. extern "C"
  14121. #endif
  14122. char exit ();
  14123. int
  14124. main ()
  14125. {
  14126. return exit ();
  14127. ;
  14128. return 0;
  14129. }
  14130. _ACEOF
  14131. if ac_fn_cxx_try_link "$LINENO"; then :
  14132. eval "$as_ac_Lib=yes"
  14133. else
  14134. eval "$as_ac_Lib=no"
  14135. fi
  14136. rm -f core conftest.err conftest.$ac_objext \
  14137. conftest$ac_exeext conftest.$ac_ext
  14138. LIBS=$ac_check_lib_save_LIBS
  14139. fi
  14140. eval ac_res=\$$as_ac_Lib
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14142. $as_echo "$ac_res" >&6; }
  14143. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14144. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14145. else
  14146. link_iostreams="no"
  14147. fi
  14148. done
  14149. fi
  14150. else
  14151. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14152. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14154. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14155. if eval \${$as_ac_Lib+:} false; then :
  14156. $as_echo_n "(cached) " >&6
  14157. else
  14158. ac_check_lib_save_LIBS=$LIBS
  14159. LIBS="-l$ax_lib $LIBS"
  14160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14161. /* end confdefs.h. */
  14162. int
  14163. main ()
  14164. {
  14165. return main ();
  14166. ;
  14167. return 0;
  14168. }
  14169. _ACEOF
  14170. if ac_fn_cxx_try_link "$LINENO"; then :
  14171. eval "$as_ac_Lib=yes"
  14172. else
  14173. eval "$as_ac_Lib=no"
  14174. fi
  14175. rm -f core conftest.err conftest.$ac_objext \
  14176. conftest$ac_exeext conftest.$ac_ext
  14177. LIBS=$ac_check_lib_save_LIBS
  14178. fi
  14179. eval ac_res=\$$as_ac_Lib
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14181. $as_echo "$ac_res" >&6; }
  14182. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14183. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14184. else
  14185. link_iostreams="no"
  14186. fi
  14187. done
  14188. fi
  14189. if test "x$ax_lib" = "x"; then
  14190. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14191. fi
  14192. if test "x$link_iostreams" != "xyes"; then
  14193. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14194. fi
  14195. fi
  14196. CPPFLAGS="$CPPFLAGS_SAVED"
  14197. LDFLAGS="$LDFLAGS_SAVED"
  14198. fi
  14199. # Check whether --with-boost-program-options was given.
  14200. if test "${with_boost_program_options+set}" = set; then :
  14201. withval=$with_boost_program_options;
  14202. if test "$withval" = "no"; then
  14203. want_boost="no"
  14204. elif test "$withval" = "yes"; then
  14205. want_boost="yes"
  14206. ax_boost_user_program_options_lib=""
  14207. else
  14208. want_boost="yes"
  14209. ax_boost_user_program_options_lib="$withval"
  14210. fi
  14211. else
  14212. want_boost="yes"
  14213. fi
  14214. if test "x$want_boost" = "xyes"; then
  14215. export want_boost
  14216. CPPFLAGS_SAVED="$CPPFLAGS"
  14217. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14218. export CPPFLAGS
  14219. LDFLAGS_SAVED="$LDFLAGS"
  14220. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14221. export LDFLAGS
  14222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  14223. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  14224. if ${ax_cv_boost_program_options+:} false; then :
  14225. $as_echo_n "(cached) " >&6
  14226. else
  14227. ac_ext=cpp
  14228. ac_cpp='$CXXCPP $CPPFLAGS'
  14229. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14230. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14231. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. #include <boost/program_options.hpp>
  14235. int
  14236. main ()
  14237. {
  14238. boost::program_options::options_description generic("Generic options");
  14239. return 0;
  14240. ;
  14241. return 0;
  14242. }
  14243. _ACEOF
  14244. if ac_fn_cxx_try_compile "$LINENO"; then :
  14245. ax_cv_boost_program_options=yes
  14246. else
  14247. ax_cv_boost_program_options=no
  14248. fi
  14249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14250. ac_ext=cpp
  14251. ac_cpp='$CXXCPP $CPPFLAGS'
  14252. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14253. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14254. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14255. fi
  14256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  14257. $as_echo "$ax_cv_boost_program_options" >&6; }
  14258. if test "$ax_cv_boost_program_options" = yes; then
  14259. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  14260. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14261. if test "x$ax_boost_user_program_options_lib" = "x"; then
  14262. 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
  14263. ax_lib=${libextension}
  14264. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14266. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14267. if eval \${$as_ac_Lib+:} false; then :
  14268. $as_echo_n "(cached) " >&6
  14269. else
  14270. ac_check_lib_save_LIBS=$LIBS
  14271. LIBS="-l$ax_lib $LIBS"
  14272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14273. /* end confdefs.h. */
  14274. /* Override any GCC internal prototype to avoid an error.
  14275. Use char because int might match the return type of a GCC
  14276. builtin and then its argument prototype would still apply. */
  14277. #ifdef __cplusplus
  14278. extern "C"
  14279. #endif
  14280. char exit ();
  14281. int
  14282. main ()
  14283. {
  14284. return exit ();
  14285. ;
  14286. return 0;
  14287. }
  14288. _ACEOF
  14289. if ac_fn_cxx_try_link "$LINENO"; then :
  14290. eval "$as_ac_Lib=yes"
  14291. else
  14292. eval "$as_ac_Lib=no"
  14293. fi
  14294. rm -f core conftest.err conftest.$ac_objext \
  14295. conftest$ac_exeext conftest.$ac_ext
  14296. LIBS=$ac_check_lib_save_LIBS
  14297. fi
  14298. eval ac_res=\$$as_ac_Lib
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14300. $as_echo "$ac_res" >&6; }
  14301. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14302. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14303. else
  14304. link_program_options="no"
  14305. fi
  14306. done
  14307. if test "x$link_program_options" != "xyes"; then
  14308. 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
  14309. ax_lib=${libextension}
  14310. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14312. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14313. if eval \${$as_ac_Lib+:} false; then :
  14314. $as_echo_n "(cached) " >&6
  14315. else
  14316. ac_check_lib_save_LIBS=$LIBS
  14317. LIBS="-l$ax_lib $LIBS"
  14318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14319. /* end confdefs.h. */
  14320. /* Override any GCC internal prototype to avoid an error.
  14321. Use char because int might match the return type of a GCC
  14322. builtin and then its argument prototype would still apply. */
  14323. #ifdef __cplusplus
  14324. extern "C"
  14325. #endif
  14326. char exit ();
  14327. int
  14328. main ()
  14329. {
  14330. return exit ();
  14331. ;
  14332. return 0;
  14333. }
  14334. _ACEOF
  14335. if ac_fn_cxx_try_link "$LINENO"; then :
  14336. eval "$as_ac_Lib=yes"
  14337. else
  14338. eval "$as_ac_Lib=no"
  14339. fi
  14340. rm -f core conftest.err conftest.$ac_objext \
  14341. conftest$ac_exeext conftest.$ac_ext
  14342. LIBS=$ac_check_lib_save_LIBS
  14343. fi
  14344. eval ac_res=\$$as_ac_Lib
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14346. $as_echo "$ac_res" >&6; }
  14347. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14348. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14349. else
  14350. link_program_options="no"
  14351. fi
  14352. done
  14353. fi
  14354. else
  14355. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  14356. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14358. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14359. if eval \${$as_ac_Lib+:} false; then :
  14360. $as_echo_n "(cached) " >&6
  14361. else
  14362. ac_check_lib_save_LIBS=$LIBS
  14363. LIBS="-l$ax_lib $LIBS"
  14364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14365. /* end confdefs.h. */
  14366. int
  14367. main ()
  14368. {
  14369. return main ();
  14370. ;
  14371. return 0;
  14372. }
  14373. _ACEOF
  14374. if ac_fn_cxx_try_link "$LINENO"; then :
  14375. eval "$as_ac_Lib=yes"
  14376. else
  14377. eval "$as_ac_Lib=no"
  14378. fi
  14379. rm -f core conftest.err conftest.$ac_objext \
  14380. conftest$ac_exeext conftest.$ac_ext
  14381. LIBS=$ac_check_lib_save_LIBS
  14382. fi
  14383. eval ac_res=\$$as_ac_Lib
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14385. $as_echo "$ac_res" >&6; }
  14386. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14387. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14388. else
  14389. link_program_options="no"
  14390. fi
  14391. done
  14392. fi
  14393. if test "x$ax_lib" = "x"; then
  14394. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14395. fi
  14396. if test "x$link_program_options" != "xyes"; then
  14397. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14398. fi
  14399. fi
  14400. CPPFLAGS="$CPPFLAGS_SAVED"
  14401. LDFLAGS="$LDFLAGS_SAVED"
  14402. fi
  14403. # Check which libs are necessary
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
  14405. $as_echo_n "checking for shm_open in -lrt... " >&6; }
  14406. if ${ac_cv_lib_rt_shm_open+:} false; then :
  14407. $as_echo_n "(cached) " >&6
  14408. else
  14409. ac_check_lib_save_LIBS=$LIBS
  14410. LIBS="-lrt $LIBS"
  14411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14412. /* end confdefs.h. */
  14413. /* Override any GCC internal prototype to avoid an error.
  14414. Use char because int might match the return type of a GCC
  14415. builtin and then its argument prototype would still apply. */
  14416. #ifdef __cplusplus
  14417. extern "C"
  14418. #endif
  14419. char shm_open ();
  14420. int
  14421. main ()
  14422. {
  14423. return shm_open ();
  14424. ;
  14425. return 0;
  14426. }
  14427. _ACEOF
  14428. if ac_fn_cxx_try_link "$LINENO"; then :
  14429. ac_cv_lib_rt_shm_open=yes
  14430. else
  14431. ac_cv_lib_rt_shm_open=no
  14432. fi
  14433. rm -f core conftest.err conftest.$ac_objext \
  14434. conftest$ac_exeext conftest.$ac_ext
  14435. LIBS=$ac_check_lib_save_LIBS
  14436. fi
  14437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
  14438. $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
  14439. if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
  14440. cat >>confdefs.h <<_ACEOF
  14441. #define HAVE_LIBRT 1
  14442. _ACEOF
  14443. LIBS="-lrt $LIBS"
  14444. fi
  14445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14446. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14447. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14448. $as_echo_n "(cached) " >&6
  14449. else
  14450. ac_check_lib_save_LIBS=$LIBS
  14451. LIBS="-ldl $LIBS"
  14452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14453. /* end confdefs.h. */
  14454. /* Override any GCC internal prototype to avoid an error.
  14455. Use char because int might match the return type of a GCC
  14456. builtin and then its argument prototype would still apply. */
  14457. #ifdef __cplusplus
  14458. extern "C"
  14459. #endif
  14460. char dlopen ();
  14461. int
  14462. main ()
  14463. {
  14464. return dlopen ();
  14465. ;
  14466. return 0;
  14467. }
  14468. _ACEOF
  14469. if ac_fn_cxx_try_link "$LINENO"; then :
  14470. ac_cv_lib_dl_dlopen=yes
  14471. else
  14472. ac_cv_lib_dl_dlopen=no
  14473. fi
  14474. rm -f core conftest.err conftest.$ac_objext \
  14475. conftest$ac_exeext conftest.$ac_ext
  14476. LIBS=$ac_check_lib_save_LIBS
  14477. fi
  14478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14479. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14480. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14481. cat >>confdefs.h <<_ACEOF
  14482. #define HAVE_LIBDL 1
  14483. _ACEOF
  14484. LIBS="-ldl $LIBS"
  14485. fi
  14486. # Check for SDL - Will accept 1.2 and 1.3
  14487. # Check whether --with-sdl-prefix was given.
  14488. if test "${with_sdl_prefix+set}" = set; then :
  14489. withval=$with_sdl_prefix; sdl_prefix="$withval"
  14490. else
  14491. sdl_prefix=""
  14492. fi
  14493. # Check whether --with-sdl-exec-prefix was given.
  14494. if test "${with_sdl_exec_prefix+set}" = set; then :
  14495. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  14496. else
  14497. sdl_exec_prefix=""
  14498. fi
  14499. # Check whether --enable-sdltest was given.
  14500. if test "${enable_sdltest+set}" = set; then :
  14501. enableval=$enable_sdltest;
  14502. else
  14503. enable_sdltest=yes
  14504. fi
  14505. if test x$sdl_exec_prefix != x ; then
  14506. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  14507. if test x${SDL_CONFIG+set} != xset ; then
  14508. SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  14509. fi
  14510. fi
  14511. if test x$sdl_prefix != x ; then
  14512. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  14513. if test x${SDL_CONFIG+set} != xset ; then
  14514. SDL_CONFIG=$sdl_prefix/bin/sdl-config
  14515. fi
  14516. fi
  14517. as_save_PATH="$PATH"
  14518. if test "x$prefix" != xNONE; then
  14519. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  14520. fi
  14521. # Extract the first word of "sdl-config", so it can be a program name with args.
  14522. set dummy sdl-config; ac_word=$2
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14524. $as_echo_n "checking for $ac_word... " >&6; }
  14525. if ${ac_cv_path_SDL_CONFIG+:} false; then :
  14526. $as_echo_n "(cached) " >&6
  14527. else
  14528. case $SDL_CONFIG in
  14529. [\\/]* | ?:[\\/]*)
  14530. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  14531. ;;
  14532. *)
  14533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14534. for as_dir in $PATH
  14535. do
  14536. IFS=$as_save_IFS
  14537. test -z "$as_dir" && as_dir=.
  14538. for ac_exec_ext in '' $ac_executable_extensions; do
  14539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14540. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14542. break 2
  14543. fi
  14544. done
  14545. done
  14546. IFS=$as_save_IFS
  14547. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  14548. ;;
  14549. esac
  14550. fi
  14551. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  14552. if test -n "$SDL_CONFIG"; then
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  14554. $as_echo "$SDL_CONFIG" >&6; }
  14555. else
  14556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14557. $as_echo "no" >&6; }
  14558. fi
  14559. PATH="$as_save_PATH"
  14560. min_sdl_version="1.2.0"
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  14562. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  14563. no_sdl=""
  14564. if test "$SDL_CONFIG" = "no" ; then
  14565. no_sdl=yes
  14566. else
  14567. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  14568. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  14569. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  14570. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  14571. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  14572. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  14573. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  14574. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  14575. if test "x$enable_sdltest" = "xyes" ; then
  14576. ac_save_CFLAGS="$CFLAGS"
  14577. ac_save_CXXFLAGS="$CXXFLAGS"
  14578. ac_save_LIBS="$LIBS"
  14579. CFLAGS="$CFLAGS $SDL_CFLAGS"
  14580. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  14581. LIBS="$LIBS $SDL_LIBS"
  14582. rm -f conf.sdltest
  14583. if test "$cross_compiling" = yes; then :
  14584. echo $ac_n "cross compiling; assumed OK... $ac_c"
  14585. else
  14586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14587. /* end confdefs.h. */
  14588. #include <stdio.h>
  14589. #include <stdlib.h>
  14590. #include <string.h>
  14591. #include "SDL.h"
  14592. char*
  14593. my_strdup (char *str)
  14594. {
  14595. char *new_str;
  14596. if (str)
  14597. {
  14598. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  14599. strcpy (new_str, str);
  14600. }
  14601. else
  14602. new_str = NULL;
  14603. return new_str;
  14604. }
  14605. int main (int argc, char *argv[])
  14606. {
  14607. int major, minor, micro;
  14608. char *tmp_version;
  14609. /* This hangs on some systems (?)
  14610. system ("touch conf.sdltest");
  14611. */
  14612. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  14613. /* HP/UX 9 (%@#!) writes to sscanf strings */
  14614. tmp_version = my_strdup("$min_sdl_version");
  14615. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  14616. printf("%s, bad version string\n", "$min_sdl_version");
  14617. exit(1);
  14618. }
  14619. if (($sdl_major_version > major) ||
  14620. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  14621. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  14622. {
  14623. return 0;
  14624. }
  14625. else
  14626. {
  14627. printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  14628. printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  14629. printf("*** best to upgrade to the required version.\n");
  14630. printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  14631. printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  14632. printf("*** config.cache before re-running configure\n");
  14633. return 1;
  14634. }
  14635. }
  14636. _ACEOF
  14637. if ac_fn_cxx_try_run "$LINENO"; then :
  14638. else
  14639. no_sdl=yes
  14640. fi
  14641. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14642. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14643. fi
  14644. CFLAGS="$ac_save_CFLAGS"
  14645. CXXFLAGS="$ac_save_CXXFLAGS"
  14646. LIBS="$ac_save_LIBS"
  14647. fi
  14648. fi
  14649. if test "x$no_sdl" = x ; then
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14651. $as_echo "yes" >&6; }
  14652. :
  14653. else
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14655. $as_echo "no" >&6; }
  14656. if test "$SDL_CONFIG" = "no" ; then
  14657. echo "*** The sdl-config script installed by SDL could not be found"
  14658. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  14659. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  14660. echo "*** full path to sdl-config."
  14661. else
  14662. if test -f conf.sdltest ; then
  14663. :
  14664. else
  14665. echo "*** Could not run SDL test program, checking why..."
  14666. CFLAGS="$CFLAGS $SDL_CFLAGS"
  14667. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  14668. LIBS="$LIBS $SDL_LIBS"
  14669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14670. /* end confdefs.h. */
  14671. #include <stdio.h>
  14672. #include "SDL.h"
  14673. int main(int argc, char *argv[])
  14674. { return 0; }
  14675. #undef main
  14676. #define main K_and_R_C_main
  14677. int
  14678. main ()
  14679. {
  14680. return 0;
  14681. ;
  14682. return 0;
  14683. }
  14684. _ACEOF
  14685. if ac_fn_cxx_try_link "$LINENO"; then :
  14686. echo "*** The test program compiled, but did not run. This usually means"
  14687. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  14688. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  14689. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  14690. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  14691. echo "*** is required on your system"
  14692. echo "***"
  14693. echo "*** If you have an old version installed, it is best to remove it, although"
  14694. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  14695. else
  14696. echo "*** The test program failed to compile or link. See the file config.log for the"
  14697. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  14698. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  14699. echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  14700. fi
  14701. rm -f core conftest.err conftest.$ac_objext \
  14702. conftest$ac_exeext conftest.$ac_ext
  14703. CFLAGS="$ac_save_CFLAGS"
  14704. CXXFLAGS="$ac_save_CXXFLAGS"
  14705. LIBS="$ac_save_LIBS"
  14706. fi
  14707. fi
  14708. SDL_CFLAGS=""
  14709. SDL_LIBS=""
  14710. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  14711. fi
  14712. rm -f conf.sdltest
  14713. # Check for SDL headers and libraries
  14714. for ac_header in SDL/SDL.h SDL/SDL_mixer.h SDL/SDL_image.h SDL/SDL_ttf.h
  14715. do :
  14716. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14717. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14718. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14719. cat >>confdefs.h <<_ACEOF
  14720. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14721. _ACEOF
  14722. else
  14723. as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
  14724. fi
  14725. done
  14726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  14727. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14728. if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
  14729. $as_echo_n "(cached) " >&6
  14730. else
  14731. ac_check_lib_save_LIBS=$LIBS
  14732. LIBS="-lSDL $LIBS"
  14733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14734. /* end confdefs.h. */
  14735. /* Override any GCC internal prototype to avoid an error.
  14736. Use char because int might match the return type of a GCC
  14737. builtin and then its argument prototype would still apply. */
  14738. #ifdef __cplusplus
  14739. extern "C"
  14740. #endif
  14741. char SDL_Init ();
  14742. int
  14743. main ()
  14744. {
  14745. return SDL_Init ();
  14746. ;
  14747. return 0;
  14748. }
  14749. _ACEOF
  14750. if ac_fn_cxx_try_link "$LINENO"; then :
  14751. ac_cv_lib_SDL_SDL_Init=yes
  14752. else
  14753. ac_cv_lib_SDL_SDL_Init=no
  14754. fi
  14755. rm -f core conftest.err conftest.$ac_objext \
  14756. conftest$ac_exeext conftest.$ac_ext
  14757. LIBS=$ac_check_lib_save_LIBS
  14758. fi
  14759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14760. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14761. if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
  14762. cat >>confdefs.h <<_ACEOF
  14763. #define HAVE_LIBSDL 1
  14764. _ACEOF
  14765. LIBS="-lSDL $LIBS"
  14766. else
  14767. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  14768. fi
  14769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  14770. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14771. if ${ac_cv_lib_SDL_mixer_main+:} false; then :
  14772. $as_echo_n "(cached) " >&6
  14773. else
  14774. ac_check_lib_save_LIBS=$LIBS
  14775. LIBS="-lSDL_mixer $LIBS"
  14776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14777. /* end confdefs.h. */
  14778. int
  14779. main ()
  14780. {
  14781. return main ();
  14782. ;
  14783. return 0;
  14784. }
  14785. _ACEOF
  14786. if ac_fn_cxx_try_link "$LINENO"; then :
  14787. ac_cv_lib_SDL_mixer_main=yes
  14788. else
  14789. ac_cv_lib_SDL_mixer_main=no
  14790. fi
  14791. rm -f core conftest.err conftest.$ac_objext \
  14792. conftest$ac_exeext conftest.$ac_ext
  14793. LIBS=$ac_check_lib_save_LIBS
  14794. fi
  14795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  14796. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14797. if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then :
  14798. cat >>confdefs.h <<_ACEOF
  14799. #define HAVE_LIBSDL_MIXER 1
  14800. _ACEOF
  14801. LIBS="-lSDL_mixer $LIBS"
  14802. else
  14803. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  14804. fi
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  14806. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14807. if ${ac_cv_lib_SDL_image_IMG_Load+:} false; then :
  14808. $as_echo_n "(cached) " >&6
  14809. else
  14810. ac_check_lib_save_LIBS=$LIBS
  14811. LIBS="-lSDL_image $LIBS"
  14812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14813. /* end confdefs.h. */
  14814. /* Override any GCC internal prototype to avoid an error.
  14815. Use char because int might match the return type of a GCC
  14816. builtin and then its argument prototype would still apply. */
  14817. #ifdef __cplusplus
  14818. extern "C"
  14819. #endif
  14820. char IMG_Load ();
  14821. int
  14822. main ()
  14823. {
  14824. return IMG_Load ();
  14825. ;
  14826. return 0;
  14827. }
  14828. _ACEOF
  14829. if ac_fn_cxx_try_link "$LINENO"; then :
  14830. ac_cv_lib_SDL_image_IMG_Load=yes
  14831. else
  14832. ac_cv_lib_SDL_image_IMG_Load=no
  14833. fi
  14834. rm -f core conftest.err conftest.$ac_objext \
  14835. conftest$ac_exeext conftest.$ac_ext
  14836. LIBS=$ac_check_lib_save_LIBS
  14837. fi
  14838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14839. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14840. if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes; then :
  14841. cat >>confdefs.h <<_ACEOF
  14842. #define HAVE_LIBSDL_IMAGE 1
  14843. _ACEOF
  14844. LIBS="-lSDL_image $LIBS"
  14845. else
  14846. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  14847. fi
  14848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  14849. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14850. if ${ac_cv_lib_SDL_ttf_main+:} false; then :
  14851. $as_echo_n "(cached) " >&6
  14852. else
  14853. ac_check_lib_save_LIBS=$LIBS
  14854. LIBS="-lSDL_ttf $LIBS"
  14855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14856. /* end confdefs.h. */
  14857. int
  14858. main ()
  14859. {
  14860. return main ();
  14861. ;
  14862. return 0;
  14863. }
  14864. _ACEOF
  14865. if ac_fn_cxx_try_link "$LINENO"; then :
  14866. ac_cv_lib_SDL_ttf_main=yes
  14867. else
  14868. ac_cv_lib_SDL_ttf_main=no
  14869. fi
  14870. rm -f core conftest.err conftest.$ac_objext \
  14871. conftest$ac_exeext conftest.$ac_ext
  14872. LIBS=$ac_check_lib_save_LIBS
  14873. fi
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  14875. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14876. if test "x$ac_cv_lib_SDL_ttf_main" = xyes; then :
  14877. cat >>confdefs.h <<_ACEOF
  14878. #define HAVE_LIBSDL_TTF 1
  14879. _ACEOF
  14880. LIBS="-lSDL_ttf $LIBS"
  14881. else
  14882. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  14883. fi
  14884. # Check for ffmpeg libraries
  14885. saved_LIBS=$LIBS
  14886. saved_CFLAGS=$CFLAGS
  14887. FFMPEG_CXXFLAGS=""
  14888. FFMPEG_LIBS=
  14889. LIBS="$LIBS `pkg-config --libs libavcodec libavformat libavutil libswscale`"
  14890. CFLAGS="$CFLAGS `pkg-config --cflags libavformat libswscale`"
  14891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  14892. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  14893. if ${ac_cv_lib_avformat_av_open_input_file+:} false; then :
  14894. $as_echo_n "(cached) " >&6
  14895. else
  14896. ac_check_lib_save_LIBS=$LIBS
  14897. LIBS="-lavformat $LIBS"
  14898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14899. /* end confdefs.h. */
  14900. /* Override any GCC internal prototype to avoid an error.
  14901. Use char because int might match the return type of a GCC
  14902. builtin and then its argument prototype would still apply. */
  14903. #ifdef __cplusplus
  14904. extern "C"
  14905. #endif
  14906. char av_open_input_file ();
  14907. int
  14908. main ()
  14909. {
  14910. return av_open_input_file ();
  14911. ;
  14912. return 0;
  14913. }
  14914. _ACEOF
  14915. if ac_fn_cxx_try_link "$LINENO"; then :
  14916. ac_cv_lib_avformat_av_open_input_file=yes
  14917. else
  14918. ac_cv_lib_avformat_av_open_input_file=no
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext \
  14921. conftest$ac_exeext conftest.$ac_ext
  14922. LIBS=$ac_check_lib_save_LIBS
  14923. fi
  14924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  14925. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  14926. if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes; then :
  14927. cat >>confdefs.h <<_ACEOF
  14928. #define HAVE_LIBAVFORMAT 1
  14929. _ACEOF
  14930. LIBS="-lavformat $LIBS"
  14931. else
  14932. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  14933. fi
  14934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  14935. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  14936. if ${ac_cv_lib_swscale_sws_getContext+:} false; then :
  14937. $as_echo_n "(cached) " >&6
  14938. else
  14939. ac_check_lib_save_LIBS=$LIBS
  14940. LIBS="-lswscale $LIBS"
  14941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14942. /* end confdefs.h. */
  14943. /* Override any GCC internal prototype to avoid an error.
  14944. Use char because int might match the return type of a GCC
  14945. builtin and then its argument prototype would still apply. */
  14946. #ifdef __cplusplus
  14947. extern "C"
  14948. #endif
  14949. char sws_getContext ();
  14950. int
  14951. main ()
  14952. {
  14953. return sws_getContext ();
  14954. ;
  14955. return 0;
  14956. }
  14957. _ACEOF
  14958. if ac_fn_cxx_try_link "$LINENO"; then :
  14959. ac_cv_lib_swscale_sws_getContext=yes
  14960. else
  14961. ac_cv_lib_swscale_sws_getContext=no
  14962. fi
  14963. rm -f core conftest.err conftest.$ac_objext \
  14964. conftest$ac_exeext conftest.$ac_ext
  14965. LIBS=$ac_check_lib_save_LIBS
  14966. fi
  14967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  14968. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  14969. if test "x$ac_cv_lib_swscale_sws_getContext" = xyes; then :
  14970. cat >>confdefs.h <<_ACEOF
  14971. #define HAVE_LIBSWSCALE 1
  14972. _ACEOF
  14973. LIBS="-lswscale $LIBS"
  14974. else
  14975. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14976. fi
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  14978. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  14979. if ${ac_cv_lib_avcodec_avcodec_decode_video2+:} false; then :
  14980. $as_echo_n "(cached) " >&6
  14981. else
  14982. ac_check_lib_save_LIBS=$LIBS
  14983. LIBS="-lavcodec $LIBS"
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. /* Override any GCC internal prototype to avoid an error.
  14987. Use char because int might match the return type of a GCC
  14988. builtin and then its argument prototype would still apply. */
  14989. #ifdef __cplusplus
  14990. extern "C"
  14991. #endif
  14992. char avcodec_decode_video2 ();
  14993. int
  14994. main ()
  14995. {
  14996. return avcodec_decode_video2 ();
  14997. ;
  14998. return 0;
  14999. }
  15000. _ACEOF
  15001. if ac_fn_cxx_try_link "$LINENO"; then :
  15002. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  15003. else
  15004. ac_cv_lib_avcodec_avcodec_decode_video2=no
  15005. fi
  15006. rm -f core conftest.err conftest.$ac_objext \
  15007. conftest$ac_exeext conftest.$ac_ext
  15008. LIBS=$ac_check_lib_save_LIBS
  15009. fi
  15010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  15011. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  15012. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = xyes; then :
  15013. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  15014. fi
  15015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_protocol2 in -lavcodec" >&5
  15016. $as_echo_n "checking for av_register_protocol2 in -lavcodec... " >&6; }
  15017. if ${ac_cv_lib_avcodec_av_register_protocol2+:} false; then :
  15018. $as_echo_n "(cached) " >&6
  15019. else
  15020. ac_check_lib_save_LIBS=$LIBS
  15021. LIBS="-lavcodec $LIBS"
  15022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15023. /* end confdefs.h. */
  15024. /* Override any GCC internal prototype to avoid an error.
  15025. Use char because int might match the return type of a GCC
  15026. builtin and then its argument prototype would still apply. */
  15027. #ifdef __cplusplus
  15028. extern "C"
  15029. #endif
  15030. char av_register_protocol2 ();
  15031. int
  15032. main ()
  15033. {
  15034. return av_register_protocol2 ();
  15035. ;
  15036. return 0;
  15037. }
  15038. _ACEOF
  15039. if ac_fn_cxx_try_link "$LINENO"; then :
  15040. ac_cv_lib_avcodec_av_register_protocol2=yes
  15041. else
  15042. ac_cv_lib_avcodec_av_register_protocol2=no
  15043. fi
  15044. rm -f core conftest.err conftest.$ac_objext \
  15045. conftest$ac_exeext conftest.$ac_ext
  15046. LIBS=$ac_check_lib_save_LIBS
  15047. fi
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_register_protocol2" >&5
  15049. $as_echo "$ac_cv_lib_avcodec_av_register_protocol2" >&6; }
  15050. if test "x$ac_cv_lib_avcodec_av_register_protocol2" = xyes; then :
  15051. AV_REGISTER_PROTOCOL2="-DWITH_AV_REGISTER_PROTOCOL2"
  15052. fi
  15053. FFMPEG_LIBS="$LIBS"
  15054. FFMPEG_CXXFLAGS="$CFLAGS $AVCODEC_DECODE_VIDEO2 $AV_REGISTER_PROTOCOL2"
  15055. LIBS=$saved_LIBS
  15056. CFLAGS=$saved_CFLAGS
  15057. # Checks for header files.
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15059. $as_echo_n "checking for ANSI C header files... " >&6; }
  15060. if ${ac_cv_header_stdc+:} false; then :
  15061. $as_echo_n "(cached) " >&6
  15062. else
  15063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15064. /* end confdefs.h. */
  15065. #include <stdlib.h>
  15066. #include <stdarg.h>
  15067. #include <string.h>
  15068. #include <float.h>
  15069. int
  15070. main ()
  15071. {
  15072. ;
  15073. return 0;
  15074. }
  15075. _ACEOF
  15076. if ac_fn_cxx_try_compile "$LINENO"; then :
  15077. ac_cv_header_stdc=yes
  15078. else
  15079. ac_cv_header_stdc=no
  15080. fi
  15081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15082. if test $ac_cv_header_stdc = yes; then
  15083. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15085. /* end confdefs.h. */
  15086. #include <string.h>
  15087. _ACEOF
  15088. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15089. $EGREP "memchr" >/dev/null 2>&1; then :
  15090. else
  15091. ac_cv_header_stdc=no
  15092. fi
  15093. rm -f conftest*
  15094. fi
  15095. if test $ac_cv_header_stdc = yes; then
  15096. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15098. /* end confdefs.h. */
  15099. #include <stdlib.h>
  15100. _ACEOF
  15101. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15102. $EGREP "free" >/dev/null 2>&1; then :
  15103. else
  15104. ac_cv_header_stdc=no
  15105. fi
  15106. rm -f conftest*
  15107. fi
  15108. if test $ac_cv_header_stdc = yes; then
  15109. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15110. if test "$cross_compiling" = yes; then :
  15111. :
  15112. else
  15113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15114. /* end confdefs.h. */
  15115. #include <ctype.h>
  15116. #include <stdlib.h>
  15117. #if ((' ' & 0x0FF) == 0x020)
  15118. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15119. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15120. #else
  15121. # define ISLOWER(c) \
  15122. (('a' <= (c) && (c) <= 'i') \
  15123. || ('j' <= (c) && (c) <= 'r') \
  15124. || ('s' <= (c) && (c) <= 'z'))
  15125. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15126. #endif
  15127. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15128. int
  15129. main ()
  15130. {
  15131. int i;
  15132. for (i = 0; i < 256; i++)
  15133. if (XOR (islower (i), ISLOWER (i))
  15134. || toupper (i) != TOUPPER (i))
  15135. return 2;
  15136. return 0;
  15137. }
  15138. _ACEOF
  15139. if ac_fn_cxx_try_run "$LINENO"; then :
  15140. else
  15141. ac_cv_header_stdc=no
  15142. fi
  15143. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15144. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15145. fi
  15146. fi
  15147. fi
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15149. $as_echo "$ac_cv_header_stdc" >&6; }
  15150. if test $ac_cv_header_stdc = yes; then
  15151. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15152. fi
  15153. for ac_header in fcntl.h stdlib.h string.h
  15154. do :
  15155. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15156. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15157. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15158. cat >>confdefs.h <<_ACEOF
  15159. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15160. _ACEOF
  15161. fi
  15162. done
  15163. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15164. 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
  15165. do :
  15166. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15167. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15168. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15169. cat >>confdefs.h <<_ACEOF
  15170. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15171. _ACEOF
  15172. else
  15173. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  15174. fi
  15175. done
  15176. # Checks for library functions.
  15177. for ac_func in atexit memset pow select sqrt
  15178. do :
  15179. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15180. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15181. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15182. cat >>confdefs.h <<_ACEOF
  15183. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15184. _ACEOF
  15185. fi
  15186. done
  15187. CXXFLAGS="$CXXFLAGS -DM_DATA_DIR=\\\"\$(pkgdatadir)\\\" -DM_BIN_DIR=\\\"\$(bindir)\\\" -DM_LIB_DIR=\\\"\$(pkglibdir)\\\""
  15188. VCMI_AI_LIBS_DIR="$libdir/vcmi/AI"
  15189. VCMI_SCRIPTING_LIBS_DIR="$libdir/vcmi/Scripting"
  15190. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/FuzzyLite/Makefile AI/Makefile AI/StupidAI/Makefile AI/EmptyAI/Makefile AI/VCAI/Makefile Scripting/ERM/Makefile"
  15191. cat >confcache <<\_ACEOF
  15192. # This file is a shell script that caches the results of configure
  15193. # tests run on this system so they can be shared between configure
  15194. # scripts and configure runs, see configure's option --config-cache.
  15195. # It is not useful on other systems. If it contains results you don't
  15196. # want to keep, you may remove or edit it.
  15197. #
  15198. # config.status only pays attention to the cache file if you give it
  15199. # the --recheck option to rerun configure.
  15200. #
  15201. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15202. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15203. # following values.
  15204. _ACEOF
  15205. # The following way of writing the cache mishandles newlines in values,
  15206. # but we know of no workaround that is simple, portable, and efficient.
  15207. # So, we kill variables containing newlines.
  15208. # Ultrix sh set writes to stderr and can't be redirected directly,
  15209. # and sets the high bit in the cache file unless we assign to the vars.
  15210. (
  15211. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15212. eval ac_val=\$$ac_var
  15213. case $ac_val in #(
  15214. *${as_nl}*)
  15215. case $ac_var in #(
  15216. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15217. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15218. esac
  15219. case $ac_var in #(
  15220. _ | IFS | as_nl) ;; #(
  15221. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15222. *) { eval $ac_var=; unset $ac_var;} ;;
  15223. esac ;;
  15224. esac
  15225. done
  15226. (set) 2>&1 |
  15227. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15228. *${as_nl}ac_space=\ *)
  15229. # `set' does not quote correctly, so add quotes: double-quote
  15230. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15231. sed -n \
  15232. "s/'/'\\\\''/g;
  15233. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15234. ;; #(
  15235. *)
  15236. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15237. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15238. ;;
  15239. esac |
  15240. sort
  15241. ) |
  15242. sed '
  15243. /^ac_cv_env_/b end
  15244. t clear
  15245. :clear
  15246. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15247. t end
  15248. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15249. :end' >>confcache
  15250. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15251. if test -w "$cache_file"; then
  15252. if test "x$cache_file" != "x/dev/null"; then
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15254. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15255. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15256. cat confcache >"$cache_file"
  15257. else
  15258. case $cache_file in #(
  15259. */* | ?:*)
  15260. mv -f confcache "$cache_file"$$ &&
  15261. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15262. *)
  15263. mv -f confcache "$cache_file" ;;
  15264. esac
  15265. fi
  15266. fi
  15267. else
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15269. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15270. fi
  15271. fi
  15272. rm -f confcache
  15273. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15274. # Let make expand exec_prefix.
  15275. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15276. # Transform confdefs.h into DEFS.
  15277. # Protect against shell expansion while executing Makefile rules.
  15278. # Protect against Makefile macro expansion.
  15279. #
  15280. # If the first sed substitution is executed (which looks for macros that
  15281. # take arguments), then branch to the quote section. Otherwise,
  15282. # look for a macro that doesn't take arguments.
  15283. ac_script='
  15284. :mline
  15285. /\\$/{
  15286. N
  15287. s,\\\n,,
  15288. b mline
  15289. }
  15290. t clear
  15291. :clear
  15292. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15293. t quote
  15294. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15295. t quote
  15296. b any
  15297. :quote
  15298. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15299. s/\[/\\&/g
  15300. s/\]/\\&/g
  15301. s/\$/$$/g
  15302. H
  15303. :any
  15304. ${
  15305. g
  15306. s/^\n//
  15307. s/\n/ /g
  15308. p
  15309. }
  15310. '
  15311. DEFS=`sed -n "$ac_script" confdefs.h`
  15312. ac_libobjs=
  15313. ac_ltlibobjs=
  15314. U=
  15315. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15316. # 1. Remove the extension, and $U if already installed.
  15317. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15318. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15319. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15320. # will be set to the directory where LIBOBJS objects are built.
  15321. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15322. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15323. done
  15324. LIBOBJS=$ac_libobjs
  15325. LTLIBOBJS=$ac_ltlibobjs
  15326. if test -n "$EXEEXT"; then
  15327. am__EXEEXT_TRUE=
  15328. am__EXEEXT_FALSE='#'
  15329. else
  15330. am__EXEEXT_TRUE='#'
  15331. am__EXEEXT_FALSE=
  15332. fi
  15333. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15334. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15335. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15336. fi
  15337. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15338. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15339. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15340. fi
  15341. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15342. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15343. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15344. fi
  15345. : "${CONFIG_STATUS=./config.status}"
  15346. ac_write_fail=0
  15347. ac_clean_files_save=$ac_clean_files
  15348. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15350. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15351. as_write_fail=0
  15352. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15353. #! $SHELL
  15354. # Generated by $as_me.
  15355. # Run this file to recreate the current configuration.
  15356. # Compiler output produced by configure, useful for debugging
  15357. # configure, is in config.log if it exists.
  15358. debug=false
  15359. ac_cs_recheck=false
  15360. ac_cs_silent=false
  15361. SHELL=\${CONFIG_SHELL-$SHELL}
  15362. export SHELL
  15363. _ASEOF
  15364. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15365. ## -------------------- ##
  15366. ## M4sh Initialization. ##
  15367. ## -------------------- ##
  15368. # Be more Bourne compatible
  15369. DUALCASE=1; export DUALCASE # for MKS sh
  15370. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15371. emulate sh
  15372. NULLCMD=:
  15373. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15374. # is contrary to our usage. Disable this feature.
  15375. alias -g '${1+"$@"}'='"$@"'
  15376. setopt NO_GLOB_SUBST
  15377. else
  15378. case `(set -o) 2>/dev/null` in #(
  15379. *posix*) :
  15380. set -o posix ;; #(
  15381. *) :
  15382. ;;
  15383. esac
  15384. fi
  15385. as_nl='
  15386. '
  15387. export as_nl
  15388. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15389. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15390. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15391. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15392. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15393. # but without wasting forks for bash or zsh.
  15394. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15395. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15396. as_echo='print -r --'
  15397. as_echo_n='print -rn --'
  15398. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15399. as_echo='printf %s\n'
  15400. as_echo_n='printf %s'
  15401. else
  15402. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15403. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15404. as_echo_n='/usr/ucb/echo -n'
  15405. else
  15406. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15407. as_echo_n_body='eval
  15408. arg=$1;
  15409. case $arg in #(
  15410. *"$as_nl"*)
  15411. expr "X$arg" : "X\\(.*\\)$as_nl";
  15412. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15413. esac;
  15414. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15415. '
  15416. export as_echo_n_body
  15417. as_echo_n='sh -c $as_echo_n_body as_echo'
  15418. fi
  15419. export as_echo_body
  15420. as_echo='sh -c $as_echo_body as_echo'
  15421. fi
  15422. # The user is always right.
  15423. if test "${PATH_SEPARATOR+set}" != set; then
  15424. PATH_SEPARATOR=:
  15425. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15426. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15427. PATH_SEPARATOR=';'
  15428. }
  15429. fi
  15430. # IFS
  15431. # We need space, tab and new line, in precisely that order. Quoting is
  15432. # there to prevent editors from complaining about space-tab.
  15433. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15434. # splitting by setting IFS to empty value.)
  15435. IFS=" "" $as_nl"
  15436. # Find who we are. Look in the path if we contain no directory separator.
  15437. as_myself=
  15438. case $0 in #((
  15439. *[\\/]* ) as_myself=$0 ;;
  15440. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15441. for as_dir in $PATH
  15442. do
  15443. IFS=$as_save_IFS
  15444. test -z "$as_dir" && as_dir=.
  15445. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15446. done
  15447. IFS=$as_save_IFS
  15448. ;;
  15449. esac
  15450. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15451. # in which case we are not to be found in the path.
  15452. if test "x$as_myself" = x; then
  15453. as_myself=$0
  15454. fi
  15455. if test ! -f "$as_myself"; then
  15456. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15457. exit 1
  15458. fi
  15459. # Unset variables that we do not need and which cause bugs (e.g. in
  15460. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15461. # suppresses any "Segmentation fault" message there. '((' could
  15462. # trigger a bug in pdksh 5.2.14.
  15463. for as_var in BASH_ENV ENV MAIL MAILPATH
  15464. do eval test x\${$as_var+set} = xset \
  15465. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15466. done
  15467. PS1='$ '
  15468. PS2='> '
  15469. PS4='+ '
  15470. # NLS nuisances.
  15471. LC_ALL=C
  15472. export LC_ALL
  15473. LANGUAGE=C
  15474. export LANGUAGE
  15475. # CDPATH.
  15476. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15477. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15478. # ----------------------------------------
  15479. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15480. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15481. # script with STATUS, using 1 if that was 0.
  15482. as_fn_error ()
  15483. {
  15484. as_status=$1; test $as_status -eq 0 && as_status=1
  15485. if test "$4"; then
  15486. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15487. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15488. fi
  15489. $as_echo "$as_me: error: $2" >&2
  15490. as_fn_exit $as_status
  15491. } # as_fn_error
  15492. # as_fn_set_status STATUS
  15493. # -----------------------
  15494. # Set $? to STATUS, without forking.
  15495. as_fn_set_status ()
  15496. {
  15497. return $1
  15498. } # as_fn_set_status
  15499. # as_fn_exit STATUS
  15500. # -----------------
  15501. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15502. as_fn_exit ()
  15503. {
  15504. set +e
  15505. as_fn_set_status $1
  15506. exit $1
  15507. } # as_fn_exit
  15508. # as_fn_unset VAR
  15509. # ---------------
  15510. # Portably unset VAR.
  15511. as_fn_unset ()
  15512. {
  15513. { eval $1=; unset $1;}
  15514. }
  15515. as_unset=as_fn_unset
  15516. # as_fn_append VAR VALUE
  15517. # ----------------------
  15518. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15519. # advantage of any shell optimizations that allow amortized linear growth over
  15520. # repeated appends, instead of the typical quadratic growth present in naive
  15521. # implementations.
  15522. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15523. eval 'as_fn_append ()
  15524. {
  15525. eval $1+=\$2
  15526. }'
  15527. else
  15528. as_fn_append ()
  15529. {
  15530. eval $1=\$$1\$2
  15531. }
  15532. fi # as_fn_append
  15533. # as_fn_arith ARG...
  15534. # ------------------
  15535. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15536. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15537. # must be portable across $(()) and expr.
  15538. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15539. eval 'as_fn_arith ()
  15540. {
  15541. as_val=$(( $* ))
  15542. }'
  15543. else
  15544. as_fn_arith ()
  15545. {
  15546. as_val=`expr "$@" || test $? -eq 1`
  15547. }
  15548. fi # as_fn_arith
  15549. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15550. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15551. as_expr=expr
  15552. else
  15553. as_expr=false
  15554. fi
  15555. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15556. as_basename=basename
  15557. else
  15558. as_basename=false
  15559. fi
  15560. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15561. as_dirname=dirname
  15562. else
  15563. as_dirname=false
  15564. fi
  15565. as_me=`$as_basename -- "$0" ||
  15566. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15567. X"$0" : 'X\(//\)$' \| \
  15568. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15569. $as_echo X/"$0" |
  15570. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15571. s//\1/
  15572. q
  15573. }
  15574. /^X\/\(\/\/\)$/{
  15575. s//\1/
  15576. q
  15577. }
  15578. /^X\/\(\/\).*/{
  15579. s//\1/
  15580. q
  15581. }
  15582. s/.*/./; q'`
  15583. # Avoid depending upon Character Ranges.
  15584. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15585. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15586. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15587. as_cr_digits='0123456789'
  15588. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15589. ECHO_C= ECHO_N= ECHO_T=
  15590. case `echo -n x` in #(((((
  15591. -n*)
  15592. case `echo 'xy\c'` in
  15593. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15594. xy) ECHO_C='\c';;
  15595. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15596. ECHO_T=' ';;
  15597. esac;;
  15598. *)
  15599. ECHO_N='-n';;
  15600. esac
  15601. rm -f conf$$ conf$$.exe conf$$.file
  15602. if test -d conf$$.dir; then
  15603. rm -f conf$$.dir/conf$$.file
  15604. else
  15605. rm -f conf$$.dir
  15606. mkdir conf$$.dir 2>/dev/null
  15607. fi
  15608. if (echo >conf$$.file) 2>/dev/null; then
  15609. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15610. as_ln_s='ln -s'
  15611. # ... but there are two gotchas:
  15612. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15613. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15614. # In both cases, we have to default to `cp -p'.
  15615. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15616. as_ln_s='cp -p'
  15617. elif ln conf$$.file conf$$ 2>/dev/null; then
  15618. as_ln_s=ln
  15619. else
  15620. as_ln_s='cp -p'
  15621. fi
  15622. else
  15623. as_ln_s='cp -p'
  15624. fi
  15625. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15626. rmdir conf$$.dir 2>/dev/null
  15627. # as_fn_mkdir_p
  15628. # -------------
  15629. # Create "$as_dir" as a directory, including parents if necessary.
  15630. as_fn_mkdir_p ()
  15631. {
  15632. case $as_dir in #(
  15633. -*) as_dir=./$as_dir;;
  15634. esac
  15635. test -d "$as_dir" || eval $as_mkdir_p || {
  15636. as_dirs=
  15637. while :; do
  15638. case $as_dir in #(
  15639. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15640. *) as_qdir=$as_dir;;
  15641. esac
  15642. as_dirs="'$as_qdir' $as_dirs"
  15643. as_dir=`$as_dirname -- "$as_dir" ||
  15644. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15645. X"$as_dir" : 'X\(//\)[^/]' \| \
  15646. X"$as_dir" : 'X\(//\)$' \| \
  15647. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15648. $as_echo X"$as_dir" |
  15649. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15650. s//\1/
  15651. q
  15652. }
  15653. /^X\(\/\/\)[^/].*/{
  15654. s//\1/
  15655. q
  15656. }
  15657. /^X\(\/\/\)$/{
  15658. s//\1/
  15659. q
  15660. }
  15661. /^X\(\/\).*/{
  15662. s//\1/
  15663. q
  15664. }
  15665. s/.*/./; q'`
  15666. test -d "$as_dir" && break
  15667. done
  15668. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15669. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15670. } # as_fn_mkdir_p
  15671. if mkdir -p . 2>/dev/null; then
  15672. as_mkdir_p='mkdir -p "$as_dir"'
  15673. else
  15674. test -d ./-p && rmdir ./-p
  15675. as_mkdir_p=false
  15676. fi
  15677. if test -x / >/dev/null 2>&1; then
  15678. as_test_x='test -x'
  15679. else
  15680. if ls -dL / >/dev/null 2>&1; then
  15681. as_ls_L_option=L
  15682. else
  15683. as_ls_L_option=
  15684. fi
  15685. as_test_x='
  15686. eval sh -c '\''
  15687. if test -d "$1"; then
  15688. test -d "$1/.";
  15689. else
  15690. case $1 in #(
  15691. -*)set "./$1";;
  15692. esac;
  15693. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15694. ???[sx]*):;;*)false;;esac;fi
  15695. '\'' sh
  15696. '
  15697. fi
  15698. as_executable_p=$as_test_x
  15699. # Sed expression to map a string onto a valid CPP name.
  15700. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15701. # Sed expression to map a string onto a valid variable name.
  15702. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15703. exec 6>&1
  15704. ## ----------------------------------- ##
  15705. ## Main body of $CONFIG_STATUS script. ##
  15706. ## ----------------------------------- ##
  15707. _ASEOF
  15708. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15709. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15710. # Save the log message, to keep $0 and so on meaningful, and to
  15711. # report actual input values of CONFIG_FILES etc. instead of their
  15712. # values after options handling.
  15713. ac_log="
  15714. This file was extended by vcmi $as_me 0.89, which was
  15715. generated by GNU Autoconf 2.68. Invocation command line was
  15716. CONFIG_FILES = $CONFIG_FILES
  15717. CONFIG_HEADERS = $CONFIG_HEADERS
  15718. CONFIG_LINKS = $CONFIG_LINKS
  15719. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15720. $ $0 $@
  15721. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15722. "
  15723. _ACEOF
  15724. case $ac_config_files in *"
  15725. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15726. esac
  15727. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15728. # Files that config.status was made for.
  15729. config_files="$ac_config_files"
  15730. config_commands="$ac_config_commands"
  15731. _ACEOF
  15732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15733. ac_cs_usage="\
  15734. \`$as_me' instantiates files and other configuration actions
  15735. from templates according to the current configuration. Unless the files
  15736. and actions are specified as TAGs, all are instantiated by default.
  15737. Usage: $0 [OPTION]... [TAG]...
  15738. -h, --help print this help, then exit
  15739. -V, --version print version number and configuration settings, then exit
  15740. --config print configuration, then exit
  15741. -q, --quiet, --silent
  15742. do not print progress messages
  15743. -d, --debug don't remove temporary files
  15744. --recheck update $as_me by reconfiguring in the same conditions
  15745. --file=FILE[:TEMPLATE]
  15746. instantiate the configuration file FILE
  15747. Configuration files:
  15748. $config_files
  15749. Configuration commands:
  15750. $config_commands
  15751. Report bugs to the package provider."
  15752. _ACEOF
  15753. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15754. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15755. ac_cs_version="\\
  15756. vcmi config.status 0.89
  15757. configured by $0, generated by GNU Autoconf 2.68,
  15758. with options \\"\$ac_cs_config\\"
  15759. Copyright (C) 2010 Free Software Foundation, Inc.
  15760. This config.status script is free software; the Free Software Foundation
  15761. gives unlimited permission to copy, distribute and modify it."
  15762. ac_pwd='$ac_pwd'
  15763. srcdir='$srcdir'
  15764. INSTALL='$INSTALL'
  15765. MKDIR_P='$MKDIR_P'
  15766. AWK='$AWK'
  15767. test -n "\$AWK" || AWK=awk
  15768. _ACEOF
  15769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15770. # The default lists apply if the user does not specify any file.
  15771. ac_need_defaults=:
  15772. while test $# != 0
  15773. do
  15774. case $1 in
  15775. --*=?*)
  15776. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15777. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15778. ac_shift=:
  15779. ;;
  15780. --*=)
  15781. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15782. ac_optarg=
  15783. ac_shift=:
  15784. ;;
  15785. *)
  15786. ac_option=$1
  15787. ac_optarg=$2
  15788. ac_shift=shift
  15789. ;;
  15790. esac
  15791. case $ac_option in
  15792. # Handling of the options.
  15793. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15794. ac_cs_recheck=: ;;
  15795. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15796. $as_echo "$ac_cs_version"; exit ;;
  15797. --config | --confi | --conf | --con | --co | --c )
  15798. $as_echo "$ac_cs_config"; exit ;;
  15799. --debug | --debu | --deb | --de | --d | -d )
  15800. debug=: ;;
  15801. --file | --fil | --fi | --f )
  15802. $ac_shift
  15803. case $ac_optarg in
  15804. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15805. '') as_fn_error $? "missing file argument" ;;
  15806. esac
  15807. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15808. ac_need_defaults=false;;
  15809. --he | --h | --help | --hel | -h )
  15810. $as_echo "$ac_cs_usage"; exit ;;
  15811. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15812. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15813. ac_cs_silent=: ;;
  15814. # This is an error.
  15815. -*) as_fn_error $? "unrecognized option: \`$1'
  15816. Try \`$0 --help' for more information." ;;
  15817. *) as_fn_append ac_config_targets " $1"
  15818. ac_need_defaults=false ;;
  15819. esac
  15820. shift
  15821. done
  15822. ac_configure_extra_args=
  15823. if $ac_cs_silent; then
  15824. exec 6>/dev/null
  15825. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15826. fi
  15827. _ACEOF
  15828. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15829. if \$ac_cs_recheck; then
  15830. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15831. shift
  15832. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15833. CONFIG_SHELL='$SHELL'
  15834. export CONFIG_SHELL
  15835. exec "\$@"
  15836. fi
  15837. _ACEOF
  15838. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15839. exec 5>>config.log
  15840. {
  15841. echo
  15842. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15843. ## Running $as_me. ##
  15844. _ASBOX
  15845. $as_echo "$ac_log"
  15846. } >&5
  15847. _ACEOF
  15848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15849. #
  15850. # INIT-COMMANDS
  15851. #
  15852. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15853. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15854. # if CDPATH is set.
  15855. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15856. sed_quote_subst='$sed_quote_subst'
  15857. double_quote_subst='$double_quote_subst'
  15858. delay_variable_subst='$delay_variable_subst'
  15859. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15860. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15861. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15862. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15863. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15864. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15865. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15866. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15867. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15868. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15869. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15870. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15871. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15872. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15873. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15874. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15875. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15876. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15877. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15878. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15879. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15880. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15881. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15882. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15883. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15884. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15885. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15886. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15887. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15888. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15889. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15890. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15891. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15892. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15893. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15894. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15895. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15896. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15897. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15898. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15899. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15900. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15901. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15902. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15903. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15904. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15905. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15906. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15907. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15908. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15909. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15910. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15911. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15912. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15913. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15914. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15915. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15916. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15917. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15918. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15919. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15920. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15921. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15922. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15923. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15924. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15925. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15926. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15927. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15928. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15929. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15930. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15931. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15932. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15933. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15934. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15935. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15936. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15937. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15938. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15939. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15940. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15941. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15942. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15943. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15944. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15945. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15946. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15947. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15948. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15949. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15950. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15951. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15952. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15953. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15954. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15955. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15956. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15957. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15958. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15959. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15960. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15961. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15962. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15963. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15964. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15965. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15966. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15967. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15968. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15969. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15970. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15971. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15972. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15973. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15974. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15975. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15976. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15977. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15978. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15979. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15980. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15981. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15982. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15983. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15984. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15985. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15986. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15987. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15988. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15989. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15990. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15991. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15992. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15993. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15994. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15995. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15996. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15997. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15998. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15999. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16000. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16001. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16002. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16003. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16004. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16005. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16006. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16007. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16008. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16009. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16010. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16011. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16012. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16013. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16014. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16015. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16016. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16017. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16018. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16019. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16020. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16021. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16022. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16023. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16024. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16025. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16026. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16027. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16028. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16029. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16030. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16031. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16032. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16033. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16034. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16035. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16036. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16037. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16038. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16039. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16040. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16041. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16042. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16043. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16044. LTCC='$LTCC'
  16045. LTCFLAGS='$LTCFLAGS'
  16046. compiler='$compiler_DEFAULT'
  16047. # A function that is used when there is no print builtin or printf.
  16048. func_fallback_echo ()
  16049. {
  16050. eval 'cat <<_LTECHO_EOF
  16051. \$1
  16052. _LTECHO_EOF'
  16053. }
  16054. # Quote evaled strings.
  16055. for var in SHELL \
  16056. ECHO \
  16057. SED \
  16058. GREP \
  16059. EGREP \
  16060. FGREP \
  16061. LD \
  16062. NM \
  16063. LN_S \
  16064. lt_SP2NL \
  16065. lt_NL2SP \
  16066. reload_flag \
  16067. OBJDUMP \
  16068. deplibs_check_method \
  16069. file_magic_cmd \
  16070. file_magic_glob \
  16071. want_nocaseglob \
  16072. DLLTOOL \
  16073. sharedlib_from_linklib_cmd \
  16074. AR \
  16075. AR_FLAGS \
  16076. archiver_list_spec \
  16077. STRIP \
  16078. RANLIB \
  16079. CC \
  16080. CFLAGS \
  16081. compiler \
  16082. lt_cv_sys_global_symbol_pipe \
  16083. lt_cv_sys_global_symbol_to_cdecl \
  16084. lt_cv_sys_global_symbol_to_c_name_address \
  16085. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16086. nm_file_list_spec \
  16087. lt_prog_compiler_no_builtin_flag \
  16088. lt_prog_compiler_pic \
  16089. lt_prog_compiler_wl \
  16090. lt_prog_compiler_static \
  16091. lt_cv_prog_compiler_c_o \
  16092. need_locks \
  16093. MANIFEST_TOOL \
  16094. DSYMUTIL \
  16095. NMEDIT \
  16096. LIPO \
  16097. OTOOL \
  16098. OTOOL64 \
  16099. shrext_cmds \
  16100. export_dynamic_flag_spec \
  16101. whole_archive_flag_spec \
  16102. compiler_needs_object \
  16103. with_gnu_ld \
  16104. allow_undefined_flag \
  16105. no_undefined_flag \
  16106. hardcode_libdir_flag_spec \
  16107. hardcode_libdir_flag_spec_ld \
  16108. hardcode_libdir_separator \
  16109. exclude_expsyms \
  16110. include_expsyms \
  16111. file_list_spec \
  16112. variables_saved_for_relink \
  16113. libname_spec \
  16114. library_names_spec \
  16115. soname_spec \
  16116. install_override_mode \
  16117. finish_eval \
  16118. old_striplib \
  16119. striplib \
  16120. compiler_lib_search_dirs \
  16121. predep_objects \
  16122. postdep_objects \
  16123. predeps \
  16124. postdeps \
  16125. compiler_lib_search_path \
  16126. LD_CXX \
  16127. reload_flag_CXX \
  16128. compiler_CXX \
  16129. lt_prog_compiler_no_builtin_flag_CXX \
  16130. lt_prog_compiler_pic_CXX \
  16131. lt_prog_compiler_wl_CXX \
  16132. lt_prog_compiler_static_CXX \
  16133. lt_cv_prog_compiler_c_o_CXX \
  16134. export_dynamic_flag_spec_CXX \
  16135. whole_archive_flag_spec_CXX \
  16136. compiler_needs_object_CXX \
  16137. with_gnu_ld_CXX \
  16138. allow_undefined_flag_CXX \
  16139. no_undefined_flag_CXX \
  16140. hardcode_libdir_flag_spec_CXX \
  16141. hardcode_libdir_flag_spec_ld_CXX \
  16142. hardcode_libdir_separator_CXX \
  16143. exclude_expsyms_CXX \
  16144. include_expsyms_CXX \
  16145. file_list_spec_CXX \
  16146. compiler_lib_search_dirs_CXX \
  16147. predep_objects_CXX \
  16148. postdep_objects_CXX \
  16149. predeps_CXX \
  16150. postdeps_CXX \
  16151. compiler_lib_search_path_CXX; do
  16152. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16153. *[\\\\\\\`\\"\\\$]*)
  16154. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16155. ;;
  16156. *)
  16157. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16158. ;;
  16159. esac
  16160. done
  16161. # Double-quote double-evaled strings.
  16162. for var in reload_cmds \
  16163. old_postinstall_cmds \
  16164. old_postuninstall_cmds \
  16165. old_archive_cmds \
  16166. extract_expsyms_cmds \
  16167. old_archive_from_new_cmds \
  16168. old_archive_from_expsyms_cmds \
  16169. archive_cmds \
  16170. archive_expsym_cmds \
  16171. module_cmds \
  16172. module_expsym_cmds \
  16173. export_symbols_cmds \
  16174. prelink_cmds \
  16175. postlink_cmds \
  16176. postinstall_cmds \
  16177. postuninstall_cmds \
  16178. finish_cmds \
  16179. sys_lib_search_path_spec \
  16180. sys_lib_dlsearch_path_spec \
  16181. reload_cmds_CXX \
  16182. old_archive_cmds_CXX \
  16183. old_archive_from_new_cmds_CXX \
  16184. old_archive_from_expsyms_cmds_CXX \
  16185. archive_cmds_CXX \
  16186. archive_expsym_cmds_CXX \
  16187. module_cmds_CXX \
  16188. module_expsym_cmds_CXX \
  16189. export_symbols_cmds_CXX \
  16190. prelink_cmds_CXX \
  16191. postlink_cmds_CXX; do
  16192. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16193. *[\\\\\\\`\\"\\\$]*)
  16194. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16195. ;;
  16196. *)
  16197. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16198. ;;
  16199. esac
  16200. done
  16201. ac_aux_dir='$ac_aux_dir'
  16202. xsi_shell='$xsi_shell'
  16203. lt_shell_append='$lt_shell_append'
  16204. # See if we are running on zsh, and set the options which allow our
  16205. # commands through without removal of \ escapes INIT.
  16206. if test -n "\${ZSH_VERSION+set}" ; then
  16207. setopt NO_GLOB_SUBST
  16208. fi
  16209. PACKAGE='$PACKAGE'
  16210. VERSION='$VERSION'
  16211. TIMESTAMP='$TIMESTAMP'
  16212. RM='$RM'
  16213. ofile='$ofile'
  16214. _ACEOF
  16215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16216. # Handling of arguments.
  16217. for ac_config_target in $ac_config_targets
  16218. do
  16219. case $ac_config_target in
  16220. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16221. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16222. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16223. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16224. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16225. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16226. "AI/FuzzyLite/Makefile") CONFIG_FILES="$CONFIG_FILES AI/FuzzyLite/Makefile" ;;
  16227. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16228. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  16229. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16230. "AI/VCAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/VCAI/Makefile" ;;
  16231. "Scripting/ERM/Makefile") CONFIG_FILES="$CONFIG_FILES Scripting/ERM/Makefile" ;;
  16232. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16233. esac
  16234. done
  16235. # If the user did not use the arguments to specify the items to instantiate,
  16236. # then the envvar interface is used. Set only those that are not.
  16237. # We use the long form for the default assignment because of an extremely
  16238. # bizarre bug on SunOS 4.1.3.
  16239. if $ac_need_defaults; then
  16240. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16241. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16242. fi
  16243. # Have a temporary directory for convenience. Make it in the build tree
  16244. # simply because there is no reason against having it here, and in addition,
  16245. # creating and moving files from /tmp can sometimes cause problems.
  16246. # Hook for its removal unless debugging.
  16247. # Note that there is a small window in which the directory will not be cleaned:
  16248. # after its creation but before its name has been assigned to `$tmp'.
  16249. $debug ||
  16250. {
  16251. tmp= ac_tmp=
  16252. trap 'exit_status=$?
  16253. : "${ac_tmp:=$tmp}"
  16254. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16255. ' 0
  16256. trap 'as_fn_exit 1' 1 2 13 15
  16257. }
  16258. # Create a (secure) tmp directory for tmp files.
  16259. {
  16260. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16261. test -d "$tmp"
  16262. } ||
  16263. {
  16264. tmp=./conf$$-$RANDOM
  16265. (umask 077 && mkdir "$tmp")
  16266. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16267. ac_tmp=$tmp
  16268. # Set up the scripts for CONFIG_FILES section.
  16269. # No need to generate them if there are no CONFIG_FILES.
  16270. # This happens for instance with `./config.status config.h'.
  16271. if test -n "$CONFIG_FILES"; then
  16272. ac_cr=`echo X | tr X '\015'`
  16273. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16274. # But we know of no other shell where ac_cr would be empty at this
  16275. # point, so we can use a bashism as a fallback.
  16276. if test "x$ac_cr" = x; then
  16277. eval ac_cr=\$\'\\r\'
  16278. fi
  16279. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16280. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16281. ac_cs_awk_cr='\\r'
  16282. else
  16283. ac_cs_awk_cr=$ac_cr
  16284. fi
  16285. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16286. _ACEOF
  16287. {
  16288. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16289. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16290. echo "_ACEOF"
  16291. } >conf$$subs.sh ||
  16292. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16293. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16294. ac_delim='%!_!# '
  16295. for ac_last_try in false false false false false :; do
  16296. . ./conf$$subs.sh ||
  16297. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16298. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16299. if test $ac_delim_n = $ac_delim_num; then
  16300. break
  16301. elif $ac_last_try; then
  16302. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16303. else
  16304. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16305. fi
  16306. done
  16307. rm -f conf$$subs.sh
  16308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16309. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16310. _ACEOF
  16311. sed -n '
  16312. h
  16313. s/^/S["/; s/!.*/"]=/
  16314. p
  16315. g
  16316. s/^[^!]*!//
  16317. :repl
  16318. t repl
  16319. s/'"$ac_delim"'$//
  16320. t delim
  16321. :nl
  16322. h
  16323. s/\(.\{148\}\)..*/\1/
  16324. t more1
  16325. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16326. p
  16327. n
  16328. b repl
  16329. :more1
  16330. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16331. p
  16332. g
  16333. s/.\{148\}//
  16334. t nl
  16335. :delim
  16336. h
  16337. s/\(.\{148\}\)..*/\1/
  16338. t more2
  16339. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16340. p
  16341. b
  16342. :more2
  16343. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16344. p
  16345. g
  16346. s/.\{148\}//
  16347. t delim
  16348. ' <conf$$subs.awk | sed '
  16349. /^[^""]/{
  16350. N
  16351. s/\n//
  16352. }
  16353. ' >>$CONFIG_STATUS || ac_write_fail=1
  16354. rm -f conf$$subs.awk
  16355. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16356. _ACAWK
  16357. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16358. for (key in S) S_is_set[key] = 1
  16359. FS = ""
  16360. }
  16361. {
  16362. line = $ 0
  16363. nfields = split(line, field, "@")
  16364. substed = 0
  16365. len = length(field[1])
  16366. for (i = 2; i < nfields; i++) {
  16367. key = field[i]
  16368. keylen = length(key)
  16369. if (S_is_set[key]) {
  16370. value = S[key]
  16371. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16372. len += length(value) + length(field[++i])
  16373. substed = 1
  16374. } else
  16375. len += 1 + keylen
  16376. }
  16377. print line
  16378. }
  16379. _ACAWK
  16380. _ACEOF
  16381. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16382. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16383. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16384. else
  16385. cat
  16386. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16387. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16388. _ACEOF
  16389. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16390. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16391. # trailing colons and then remove the whole line if VPATH becomes empty
  16392. # (actually we leave an empty line to preserve line numbers).
  16393. if test "x$srcdir" = x.; then
  16394. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16395. h
  16396. s///
  16397. s/^/:/
  16398. s/[ ]*$/:/
  16399. s/:\$(srcdir):/:/g
  16400. s/:\${srcdir}:/:/g
  16401. s/:@srcdir@:/:/g
  16402. s/^:*//
  16403. s/:*$//
  16404. x
  16405. s/\(=[ ]*\).*/\1/
  16406. G
  16407. s/\n//
  16408. s/^[^=]*=[ ]*$//
  16409. }'
  16410. fi
  16411. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16412. fi # test -n "$CONFIG_FILES"
  16413. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16414. shift
  16415. for ac_tag
  16416. do
  16417. case $ac_tag in
  16418. :[FHLC]) ac_mode=$ac_tag; continue;;
  16419. esac
  16420. case $ac_mode$ac_tag in
  16421. :[FHL]*:*);;
  16422. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16423. :[FH]-) ac_tag=-:-;;
  16424. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16425. esac
  16426. ac_save_IFS=$IFS
  16427. IFS=:
  16428. set x $ac_tag
  16429. IFS=$ac_save_IFS
  16430. shift
  16431. ac_file=$1
  16432. shift
  16433. case $ac_mode in
  16434. :L) ac_source=$1;;
  16435. :[FH])
  16436. ac_file_inputs=
  16437. for ac_f
  16438. do
  16439. case $ac_f in
  16440. -) ac_f="$ac_tmp/stdin";;
  16441. *) # Look for the file first in the build tree, then in the source tree
  16442. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16443. # because $ac_f cannot contain `:'.
  16444. test -f "$ac_f" ||
  16445. case $ac_f in
  16446. [\\/$]*) false;;
  16447. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16448. esac ||
  16449. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16450. esac
  16451. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16452. as_fn_append ac_file_inputs " '$ac_f'"
  16453. done
  16454. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16455. # use $as_me), people would be surprised to read:
  16456. # /* config.h. Generated by config.status. */
  16457. configure_input='Generated from '`
  16458. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16459. `' by configure.'
  16460. if test x"$ac_file" != x-; then
  16461. configure_input="$ac_file. $configure_input"
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16463. $as_echo "$as_me: creating $ac_file" >&6;}
  16464. fi
  16465. # Neutralize special characters interpreted by sed in replacement strings.
  16466. case $configure_input in #(
  16467. *\&* | *\|* | *\\* )
  16468. ac_sed_conf_input=`$as_echo "$configure_input" |
  16469. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16470. *) ac_sed_conf_input=$configure_input;;
  16471. esac
  16472. case $ac_tag in
  16473. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16474. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16475. esac
  16476. ;;
  16477. esac
  16478. ac_dir=`$as_dirname -- "$ac_file" ||
  16479. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16480. X"$ac_file" : 'X\(//\)[^/]' \| \
  16481. X"$ac_file" : 'X\(//\)$' \| \
  16482. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16483. $as_echo X"$ac_file" |
  16484. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16485. s//\1/
  16486. q
  16487. }
  16488. /^X\(\/\/\)[^/].*/{
  16489. s//\1/
  16490. q
  16491. }
  16492. /^X\(\/\/\)$/{
  16493. s//\1/
  16494. q
  16495. }
  16496. /^X\(\/\).*/{
  16497. s//\1/
  16498. q
  16499. }
  16500. s/.*/./; q'`
  16501. as_dir="$ac_dir"; as_fn_mkdir_p
  16502. ac_builddir=.
  16503. case "$ac_dir" in
  16504. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16505. *)
  16506. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16507. # A ".." for each directory in $ac_dir_suffix.
  16508. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16509. case $ac_top_builddir_sub in
  16510. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16511. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16512. esac ;;
  16513. esac
  16514. ac_abs_top_builddir=$ac_pwd
  16515. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16516. # for backward compatibility:
  16517. ac_top_builddir=$ac_top_build_prefix
  16518. case $srcdir in
  16519. .) # We are building in place.
  16520. ac_srcdir=.
  16521. ac_top_srcdir=$ac_top_builddir_sub
  16522. ac_abs_top_srcdir=$ac_pwd ;;
  16523. [\\/]* | ?:[\\/]* ) # Absolute name.
  16524. ac_srcdir=$srcdir$ac_dir_suffix;
  16525. ac_top_srcdir=$srcdir
  16526. ac_abs_top_srcdir=$srcdir ;;
  16527. *) # Relative name.
  16528. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16529. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16530. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16531. esac
  16532. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16533. case $ac_mode in
  16534. :F)
  16535. #
  16536. # CONFIG_FILE
  16537. #
  16538. case $INSTALL in
  16539. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16540. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16541. esac
  16542. ac_MKDIR_P=$MKDIR_P
  16543. case $MKDIR_P in
  16544. [\\/$]* | ?:[\\/]* ) ;;
  16545. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16546. esac
  16547. _ACEOF
  16548. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16549. # If the template does not know about datarootdir, expand it.
  16550. # FIXME: This hack should be removed a few years after 2.60.
  16551. ac_datarootdir_hack=; ac_datarootdir_seen=
  16552. ac_sed_dataroot='
  16553. /datarootdir/ {
  16554. p
  16555. q
  16556. }
  16557. /@datadir@/p
  16558. /@docdir@/p
  16559. /@infodir@/p
  16560. /@localedir@/p
  16561. /@mandir@/p'
  16562. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16563. *datarootdir*) ac_datarootdir_seen=yes;;
  16564. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16566. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16567. _ACEOF
  16568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16569. ac_datarootdir_hack='
  16570. s&@datadir@&$datadir&g
  16571. s&@docdir@&$docdir&g
  16572. s&@infodir@&$infodir&g
  16573. s&@localedir@&$localedir&g
  16574. s&@mandir@&$mandir&g
  16575. s&\\\${datarootdir}&$datarootdir&g' ;;
  16576. esac
  16577. _ACEOF
  16578. # Neutralize VPATH when `$srcdir' = `.'.
  16579. # Shell code in configure.ac might set extrasub.
  16580. # FIXME: do we really want to maintain this feature?
  16581. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16582. ac_sed_extra="$ac_vpsub
  16583. $extrasub
  16584. _ACEOF
  16585. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16586. :t
  16587. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16588. s|@configure_input@|$ac_sed_conf_input|;t t
  16589. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16590. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16591. s&@srcdir@&$ac_srcdir&;t t
  16592. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16593. s&@top_srcdir@&$ac_top_srcdir&;t t
  16594. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16595. s&@builddir@&$ac_builddir&;t t
  16596. s&@abs_builddir@&$ac_abs_builddir&;t t
  16597. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16598. s&@INSTALL@&$ac_INSTALL&;t t
  16599. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16600. $ac_datarootdir_hack
  16601. "
  16602. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16603. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16604. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16605. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16606. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16607. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16609. which seems to be undefined. Please make sure it is defined" >&5
  16610. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16611. which seems to be undefined. Please make sure it is defined" >&2;}
  16612. rm -f "$ac_tmp/stdin"
  16613. case $ac_file in
  16614. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16615. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16616. esac \
  16617. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16618. ;;
  16619. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16620. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16621. ;;
  16622. esac
  16623. case $ac_file$ac_mode in
  16624. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16625. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16626. # are listed without --file. Let's play safe and only enable the eval
  16627. # if we detect the quoting.
  16628. case $CONFIG_FILES in
  16629. *\'*) eval set x "$CONFIG_FILES" ;;
  16630. *) set x $CONFIG_FILES ;;
  16631. esac
  16632. shift
  16633. for mf
  16634. do
  16635. # Strip MF so we end up with the name of the file.
  16636. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16637. # Check whether this is an Automake generated Makefile or not.
  16638. # We used to match only the files named `Makefile.in', but
  16639. # some people rename them; so instead we look at the file content.
  16640. # Grep'ing the first line is not enough: some people post-process
  16641. # each Makefile.in and add a new line on top of each file to say so.
  16642. # Grep'ing the whole file is not good either: AIX grep has a line
  16643. # limit of 2048, but all sed's we know have understand at least 4000.
  16644. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16645. dirpart=`$as_dirname -- "$mf" ||
  16646. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16647. X"$mf" : 'X\(//\)[^/]' \| \
  16648. X"$mf" : 'X\(//\)$' \| \
  16649. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16650. $as_echo X"$mf" |
  16651. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16652. s//\1/
  16653. q
  16654. }
  16655. /^X\(\/\/\)[^/].*/{
  16656. s//\1/
  16657. q
  16658. }
  16659. /^X\(\/\/\)$/{
  16660. s//\1/
  16661. q
  16662. }
  16663. /^X\(\/\).*/{
  16664. s//\1/
  16665. q
  16666. }
  16667. s/.*/./; q'`
  16668. else
  16669. continue
  16670. fi
  16671. # Extract the definition of DEPDIR, am__include, and am__quote
  16672. # from the Makefile without running `make'.
  16673. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16674. test -z "$DEPDIR" && continue
  16675. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16676. test -z "am__include" && continue
  16677. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16678. # When using ansi2knr, U may be empty or an underscore; expand it
  16679. U=`sed -n 's/^U = //p' < "$mf"`
  16680. # Find all dependency output files, they are included files with
  16681. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16682. # simplest approach to changing $(DEPDIR) to its actual value in the
  16683. # expansion.
  16684. for file in `sed -n "
  16685. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16686. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16687. # Make sure the directory exists.
  16688. test -f "$dirpart/$file" && continue
  16689. fdir=`$as_dirname -- "$file" ||
  16690. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16691. X"$file" : 'X\(//\)[^/]' \| \
  16692. X"$file" : 'X\(//\)$' \| \
  16693. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16694. $as_echo X"$file" |
  16695. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16696. s//\1/
  16697. q
  16698. }
  16699. /^X\(\/\/\)[^/].*/{
  16700. s//\1/
  16701. q
  16702. }
  16703. /^X\(\/\/\)$/{
  16704. s//\1/
  16705. q
  16706. }
  16707. /^X\(\/\).*/{
  16708. s//\1/
  16709. q
  16710. }
  16711. s/.*/./; q'`
  16712. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16713. # echo "creating $dirpart/$file"
  16714. echo '# dummy' > "$dirpart/$file"
  16715. done
  16716. done
  16717. }
  16718. ;;
  16719. "libtool":C)
  16720. # See if we are running on zsh, and set the options which allow our
  16721. # commands through without removal of \ escapes.
  16722. if test -n "${ZSH_VERSION+set}" ; then
  16723. setopt NO_GLOB_SUBST
  16724. fi
  16725. cfgfile="${ofile}T"
  16726. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16727. $RM "$cfgfile"
  16728. cat <<_LT_EOF >> "$cfgfile"
  16729. #! $SHELL
  16730. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16731. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16732. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16733. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16734. #
  16735. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16736. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  16737. # Inc.
  16738. # Written by Gordon Matzigkeit, 1996
  16739. #
  16740. # This file is part of GNU Libtool.
  16741. #
  16742. # GNU Libtool is free software; you can redistribute it and/or
  16743. # modify it under the terms of the GNU General Public License as
  16744. # published by the Free Software Foundation; either version 2 of
  16745. # the License, or (at your option) any later version.
  16746. #
  16747. # As a special exception to the GNU General Public License,
  16748. # if you distribute this file as part of a program or library that
  16749. # is built using GNU Libtool, you may include this file under the
  16750. # same distribution terms that you use for the rest of that program.
  16751. #
  16752. # GNU Libtool is distributed in the hope that it will be useful,
  16753. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16754. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16755. # GNU General Public License for more details.
  16756. #
  16757. # You should have received a copy of the GNU General Public License
  16758. # along with GNU Libtool; see the file COPYING. If not, a copy
  16759. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16760. # obtained by writing to the Free Software Foundation, Inc.,
  16761. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16762. # The names of the tagged configurations supported by this script.
  16763. available_tags="CXX "
  16764. # ### BEGIN LIBTOOL CONFIG
  16765. # Whether or not to build shared libraries.
  16766. build_libtool_libs=$enable_shared
  16767. # Whether or not to build static libraries.
  16768. build_old_libs=$enable_static
  16769. # Which release of libtool.m4 was used?
  16770. macro_version=$macro_version
  16771. macro_revision=$macro_revision
  16772. # What type of objects to build.
  16773. pic_mode=$pic_mode
  16774. # Whether or not to optimize for fast installation.
  16775. fast_install=$enable_fast_install
  16776. # Shell to use when invoking shell scripts.
  16777. SHELL=$lt_SHELL
  16778. # An echo program that protects backslashes.
  16779. ECHO=$lt_ECHO
  16780. # The host system.
  16781. host_alias=$host_alias
  16782. host=$host
  16783. host_os=$host_os
  16784. # The build system.
  16785. build_alias=$build_alias
  16786. build=$build
  16787. build_os=$build_os
  16788. # A sed program that does not truncate output.
  16789. SED=$lt_SED
  16790. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16791. Xsed="\$SED -e 1s/^X//"
  16792. # A grep program that handles long lines.
  16793. GREP=$lt_GREP
  16794. # An ERE matcher.
  16795. EGREP=$lt_EGREP
  16796. # A literal string matcher.
  16797. FGREP=$lt_FGREP
  16798. # A BSD- or MS-compatible name lister.
  16799. NM=$lt_NM
  16800. # Whether we need soft or hard links.
  16801. LN_S=$lt_LN_S
  16802. # What is the maximum length of a command?
  16803. max_cmd_len=$max_cmd_len
  16804. # Object file suffix (normally "o").
  16805. objext=$ac_objext
  16806. # Executable file suffix (normally "").
  16807. exeext=$exeext
  16808. # whether the shell understands "unset".
  16809. lt_unset=$lt_unset
  16810. # turn spaces into newlines.
  16811. SP2NL=$lt_lt_SP2NL
  16812. # turn newlines into spaces.
  16813. NL2SP=$lt_lt_NL2SP
  16814. # convert \$build file names to \$host format.
  16815. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16816. # convert \$build files to toolchain format.
  16817. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16818. # An object symbol dumper.
  16819. OBJDUMP=$lt_OBJDUMP
  16820. # Method to check whether dependent libraries are shared objects.
  16821. deplibs_check_method=$lt_deplibs_check_method
  16822. # Command to use when deplibs_check_method = "file_magic".
  16823. file_magic_cmd=$lt_file_magic_cmd
  16824. # How to find potential files when deplibs_check_method = "file_magic".
  16825. file_magic_glob=$lt_file_magic_glob
  16826. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16827. want_nocaseglob=$lt_want_nocaseglob
  16828. # DLL creation program.
  16829. DLLTOOL=$lt_DLLTOOL
  16830. # Command to associate shared and link libraries.
  16831. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16832. # The archiver.
  16833. AR=$lt_AR
  16834. # Flags to create an archive.
  16835. AR_FLAGS=$lt_AR_FLAGS
  16836. # How to feed a file listing to the archiver.
  16837. archiver_list_spec=$lt_archiver_list_spec
  16838. # A symbol stripping program.
  16839. STRIP=$lt_STRIP
  16840. # Commands used to install an old-style archive.
  16841. RANLIB=$lt_RANLIB
  16842. old_postinstall_cmds=$lt_old_postinstall_cmds
  16843. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16844. # Whether to use a lock for old archive extraction.
  16845. lock_old_archive_extraction=$lock_old_archive_extraction
  16846. # A C compiler.
  16847. LTCC=$lt_CC
  16848. # LTCC compiler flags.
  16849. LTCFLAGS=$lt_CFLAGS
  16850. # Take the output of nm and produce a listing of raw symbols and C names.
  16851. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16852. # Transform the output of nm in a proper C declaration.
  16853. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16854. # Transform the output of nm in a C name address pair.
  16855. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16856. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16857. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16858. # Specify filename containing input files for \$NM.
  16859. nm_file_list_spec=$lt_nm_file_list_spec
  16860. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16861. lt_sysroot=$lt_sysroot
  16862. # The name of the directory that contains temporary libtool files.
  16863. objdir=$objdir
  16864. # Used to examine libraries when file_magic_cmd begins with "file".
  16865. MAGIC_CMD=$MAGIC_CMD
  16866. # Must we lock files when doing compilation?
  16867. need_locks=$lt_need_locks
  16868. # Manifest tool.
  16869. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16870. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16871. DSYMUTIL=$lt_DSYMUTIL
  16872. # Tool to change global to local symbols on Mac OS X.
  16873. NMEDIT=$lt_NMEDIT
  16874. # Tool to manipulate fat objects and archives on Mac OS X.
  16875. LIPO=$lt_LIPO
  16876. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16877. OTOOL=$lt_OTOOL
  16878. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16879. OTOOL64=$lt_OTOOL64
  16880. # Old archive suffix (normally "a").
  16881. libext=$libext
  16882. # Shared library suffix (normally ".so").
  16883. shrext_cmds=$lt_shrext_cmds
  16884. # The commands to extract the exported symbol list from a shared archive.
  16885. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16886. # Variables whose values should be saved in libtool wrapper scripts and
  16887. # restored at link time.
  16888. variables_saved_for_relink=$lt_variables_saved_for_relink
  16889. # Do we need the "lib" prefix for modules?
  16890. need_lib_prefix=$need_lib_prefix
  16891. # Do we need a version for libraries?
  16892. need_version=$need_version
  16893. # Library versioning type.
  16894. version_type=$version_type
  16895. # Shared library runtime path variable.
  16896. runpath_var=$runpath_var
  16897. # Shared library path variable.
  16898. shlibpath_var=$shlibpath_var
  16899. # Is shlibpath searched before the hard-coded library search path?
  16900. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16901. # Format of library name prefix.
  16902. libname_spec=$lt_libname_spec
  16903. # List of archive names. First name is the real one, the rest are links.
  16904. # The last name is the one that the linker finds with -lNAME
  16905. library_names_spec=$lt_library_names_spec
  16906. # The coded name of the library, if different from the real name.
  16907. soname_spec=$lt_soname_spec
  16908. # Permission mode override for installation of shared libraries.
  16909. install_override_mode=$lt_install_override_mode
  16910. # Command to use after installation of a shared archive.
  16911. postinstall_cmds=$lt_postinstall_cmds
  16912. # Command to use after uninstallation of a shared archive.
  16913. postuninstall_cmds=$lt_postuninstall_cmds
  16914. # Commands used to finish a libtool library installation in a directory.
  16915. finish_cmds=$lt_finish_cmds
  16916. # As "finish_cmds", except a single script fragment to be evaled but
  16917. # not shown.
  16918. finish_eval=$lt_finish_eval
  16919. # Whether we should hardcode library paths into libraries.
  16920. hardcode_into_libs=$hardcode_into_libs
  16921. # Compile-time system search path for libraries.
  16922. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16923. # Run-time system search path for libraries.
  16924. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16925. # Whether dlopen is supported.
  16926. dlopen_support=$enable_dlopen
  16927. # Whether dlopen of programs is supported.
  16928. dlopen_self=$enable_dlopen_self
  16929. # Whether dlopen of statically linked programs is supported.
  16930. dlopen_self_static=$enable_dlopen_self_static
  16931. # Commands to strip libraries.
  16932. old_striplib=$lt_old_striplib
  16933. striplib=$lt_striplib
  16934. # The linker used to build libraries.
  16935. LD=$lt_LD
  16936. # How to create reloadable object files.
  16937. reload_flag=$lt_reload_flag
  16938. reload_cmds=$lt_reload_cmds
  16939. # Commands used to build an old-style archive.
  16940. old_archive_cmds=$lt_old_archive_cmds
  16941. # A language specific compiler.
  16942. CC=$lt_compiler
  16943. # Is the compiler the GNU compiler?
  16944. with_gcc=$GCC
  16945. # Compiler flag to turn off builtin functions.
  16946. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16947. # Additional compiler flags for building library objects.
  16948. pic_flag=$lt_lt_prog_compiler_pic
  16949. # How to pass a linker flag through the compiler.
  16950. wl=$lt_lt_prog_compiler_wl
  16951. # Compiler flag to prevent dynamic linking.
  16952. link_static_flag=$lt_lt_prog_compiler_static
  16953. # Does compiler simultaneously support -c and -o options?
  16954. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16955. # Whether or not to add -lc for building shared libraries.
  16956. build_libtool_need_lc=$archive_cmds_need_lc
  16957. # Whether or not to disallow shared libs when runtime libs are static.
  16958. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16959. # Compiler flag to allow reflexive dlopens.
  16960. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16961. # Compiler flag to generate shared objects directly from archives.
  16962. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16963. # Whether the compiler copes with passing no objects directly.
  16964. compiler_needs_object=$lt_compiler_needs_object
  16965. # Create an old-style archive from a shared archive.
  16966. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16967. # Create a temporary old-style archive to link instead of a shared archive.
  16968. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16969. # Commands used to build a shared archive.
  16970. archive_cmds=$lt_archive_cmds
  16971. archive_expsym_cmds=$lt_archive_expsym_cmds
  16972. # Commands used to build a loadable module if different from building
  16973. # a shared archive.
  16974. module_cmds=$lt_module_cmds
  16975. module_expsym_cmds=$lt_module_expsym_cmds
  16976. # Whether we are building with GNU ld or not.
  16977. with_gnu_ld=$lt_with_gnu_ld
  16978. # Flag that allows shared libraries with undefined symbols to be built.
  16979. allow_undefined_flag=$lt_allow_undefined_flag
  16980. # Flag that enforces no undefined symbols.
  16981. no_undefined_flag=$lt_no_undefined_flag
  16982. # Flag to hardcode \$libdir into a binary during linking.
  16983. # This must work even if \$libdir does not exist
  16984. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16985. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16986. # during linking. This must work even if \$libdir does not exist.
  16987. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16988. # Whether we need a single "-rpath" flag with a separated argument.
  16989. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16990. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16991. # DIR into the resulting binary.
  16992. hardcode_direct=$hardcode_direct
  16993. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16994. # DIR into the resulting binary and the resulting library dependency is
  16995. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16996. # library is relocated.
  16997. hardcode_direct_absolute=$hardcode_direct_absolute
  16998. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16999. # into the resulting binary.
  17000. hardcode_minus_L=$hardcode_minus_L
  17001. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17002. # into the resulting binary.
  17003. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17004. # Set to "yes" if building a shared library automatically hardcodes DIR
  17005. # into the library and all subsequent libraries and executables linked
  17006. # against it.
  17007. hardcode_automatic=$hardcode_automatic
  17008. # Set to yes if linker adds runtime paths of dependent libraries
  17009. # to runtime path list.
  17010. inherit_rpath=$inherit_rpath
  17011. # Whether libtool must link a program against all its dependency libraries.
  17012. link_all_deplibs=$link_all_deplibs
  17013. # Set to "yes" if exported symbols are required.
  17014. always_export_symbols=$always_export_symbols
  17015. # The commands to list exported symbols.
  17016. export_symbols_cmds=$lt_export_symbols_cmds
  17017. # Symbols that should not be listed in the preloaded symbols.
  17018. exclude_expsyms=$lt_exclude_expsyms
  17019. # Symbols that must always be exported.
  17020. include_expsyms=$lt_include_expsyms
  17021. # Commands necessary for linking programs (against libraries) with templates.
  17022. prelink_cmds=$lt_prelink_cmds
  17023. # Commands necessary for finishing linking programs.
  17024. postlink_cmds=$lt_postlink_cmds
  17025. # Specify filename containing input files.
  17026. file_list_spec=$lt_file_list_spec
  17027. # How to hardcode a shared library path into an executable.
  17028. hardcode_action=$hardcode_action
  17029. # The directories searched by this compiler when creating a shared library.
  17030. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17031. # Dependencies to place before and after the objects being linked to
  17032. # create a shared library.
  17033. predep_objects=$lt_predep_objects
  17034. postdep_objects=$lt_postdep_objects
  17035. predeps=$lt_predeps
  17036. postdeps=$lt_postdeps
  17037. # The library search path used internally by the compiler when linking
  17038. # a shared library.
  17039. compiler_lib_search_path=$lt_compiler_lib_search_path
  17040. # ### END LIBTOOL CONFIG
  17041. _LT_EOF
  17042. case $host_os in
  17043. aix3*)
  17044. cat <<\_LT_EOF >> "$cfgfile"
  17045. # AIX sometimes has problems with the GCC collect2 program. For some
  17046. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17047. # vanish in a puff of smoke.
  17048. if test "X${COLLECT_NAMES+set}" != Xset; then
  17049. COLLECT_NAMES=
  17050. export COLLECT_NAMES
  17051. fi
  17052. _LT_EOF
  17053. ;;
  17054. esac
  17055. ltmain="$ac_aux_dir/ltmain.sh"
  17056. # We use sed instead of cat because bash on DJGPP gets confused if
  17057. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17058. # text mode, it properly converts lines to CR/LF. This bash problem
  17059. # is reportedly fixed, but why not run on old versions too?
  17060. sed '$q' "$ltmain" >> "$cfgfile" \
  17061. || (rm -f "$cfgfile"; exit 1)
  17062. if test x"$xsi_shell" = xyes; then
  17063. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  17064. func_dirname ()\
  17065. {\
  17066. \ case ${1} in\
  17067. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17068. \ * ) func_dirname_result="${3}" ;;\
  17069. \ esac\
  17070. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  17071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17073. test 0 -eq $? || _lt_function_replace_fail=:
  17074. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17075. func_basename ()\
  17076. {\
  17077. \ func_basename_result="${1##*/}"\
  17078. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17079. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17080. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17081. test 0 -eq $? || _lt_function_replace_fail=:
  17082. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17083. func_dirname_and_basename ()\
  17084. {\
  17085. \ case ${1} in\
  17086. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17087. \ * ) func_dirname_result="${3}" ;;\
  17088. \ esac\
  17089. \ func_basename_result="${1##*/}"\
  17090. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17091. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17092. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17093. test 0 -eq $? || _lt_function_replace_fail=:
  17094. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17095. func_stripname ()\
  17096. {\
  17097. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17098. \ # positional parameters, so assign one to ordinary parameter first.\
  17099. \ func_stripname_result=${3}\
  17100. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17101. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17102. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17103. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17104. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17105. test 0 -eq $? || _lt_function_replace_fail=:
  17106. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17107. func_split_long_opt ()\
  17108. {\
  17109. \ func_split_long_opt_name=${1%%=*}\
  17110. \ func_split_long_opt_arg=${1#*=}\
  17111. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17112. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17113. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17114. test 0 -eq $? || _lt_function_replace_fail=:
  17115. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17116. func_split_short_opt ()\
  17117. {\
  17118. \ func_split_short_opt_arg=${1#??}\
  17119. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17120. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17121. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17122. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17123. test 0 -eq $? || _lt_function_replace_fail=:
  17124. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17125. func_lo2o ()\
  17126. {\
  17127. \ case ${1} in\
  17128. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17129. \ *) func_lo2o_result=${1} ;;\
  17130. \ esac\
  17131. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17132. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17133. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17134. test 0 -eq $? || _lt_function_replace_fail=:
  17135. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17136. func_xform ()\
  17137. {\
  17138. func_xform_result=${1%.*}.lo\
  17139. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17140. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17141. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17142. test 0 -eq $? || _lt_function_replace_fail=:
  17143. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17144. func_arith ()\
  17145. {\
  17146. func_arith_result=$(( $* ))\
  17147. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17148. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17149. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17150. test 0 -eq $? || _lt_function_replace_fail=:
  17151. sed -e '/^func_len ()$/,/^} # func_len /c\
  17152. func_len ()\
  17153. {\
  17154. func_len_result=${#1}\
  17155. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17156. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17157. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17158. test 0 -eq $? || _lt_function_replace_fail=:
  17159. fi
  17160. if test x"$lt_shell_append" = xyes; then
  17161. sed -e '/^func_append ()$/,/^} # func_append /c\
  17162. func_append ()\
  17163. {\
  17164. eval "${1}+=\\${2}"\
  17165. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17166. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17167. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17168. test 0 -eq $? || _lt_function_replace_fail=:
  17169. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17170. func_append_quoted ()\
  17171. {\
  17172. \ func_quote_for_eval "${2}"\
  17173. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17174. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17175. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17176. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17177. test 0 -eq $? || _lt_function_replace_fail=:
  17178. # Save a `func_append' function call where possible by direct use of '+='
  17179. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17180. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17181. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17182. test 0 -eq $? || _lt_function_replace_fail=:
  17183. else
  17184. # Save a `func_append' function call even when '+=' is not available
  17185. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17186. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17187. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17188. test 0 -eq $? || _lt_function_replace_fail=:
  17189. fi
  17190. if test x"$_lt_function_replace_fail" = x":"; then
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17192. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17193. fi
  17194. mv -f "$cfgfile" "$ofile" ||
  17195. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17196. chmod +x "$ofile"
  17197. cat <<_LT_EOF >> "$ofile"
  17198. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17199. # The linker used to build libraries.
  17200. LD=$lt_LD_CXX
  17201. # How to create reloadable object files.
  17202. reload_flag=$lt_reload_flag_CXX
  17203. reload_cmds=$lt_reload_cmds_CXX
  17204. # Commands used to build an old-style archive.
  17205. old_archive_cmds=$lt_old_archive_cmds_CXX
  17206. # A language specific compiler.
  17207. CC=$lt_compiler_CXX
  17208. # Is the compiler the GNU compiler?
  17209. with_gcc=$GCC_CXX
  17210. # Compiler flag to turn off builtin functions.
  17211. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17212. # Additional compiler flags for building library objects.
  17213. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17214. # How to pass a linker flag through the compiler.
  17215. wl=$lt_lt_prog_compiler_wl_CXX
  17216. # Compiler flag to prevent dynamic linking.
  17217. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17218. # Does compiler simultaneously support -c and -o options?
  17219. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17220. # Whether or not to add -lc for building shared libraries.
  17221. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17222. # Whether or not to disallow shared libs when runtime libs are static.
  17223. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17224. # Compiler flag to allow reflexive dlopens.
  17225. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17226. # Compiler flag to generate shared objects directly from archives.
  17227. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17228. # Whether the compiler copes with passing no objects directly.
  17229. compiler_needs_object=$lt_compiler_needs_object_CXX
  17230. # Create an old-style archive from a shared archive.
  17231. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17232. # Create a temporary old-style archive to link instead of a shared archive.
  17233. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17234. # Commands used to build a shared archive.
  17235. archive_cmds=$lt_archive_cmds_CXX
  17236. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17237. # Commands used to build a loadable module if different from building
  17238. # a shared archive.
  17239. module_cmds=$lt_module_cmds_CXX
  17240. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17241. # Whether we are building with GNU ld or not.
  17242. with_gnu_ld=$lt_with_gnu_ld_CXX
  17243. # Flag that allows shared libraries with undefined symbols to be built.
  17244. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17245. # Flag that enforces no undefined symbols.
  17246. no_undefined_flag=$lt_no_undefined_flag_CXX
  17247. # Flag to hardcode \$libdir into a binary during linking.
  17248. # This must work even if \$libdir does not exist
  17249. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17250. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17251. # during linking. This must work even if \$libdir does not exist.
  17252. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17253. # Whether we need a single "-rpath" flag with a separated argument.
  17254. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17255. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17256. # DIR into the resulting binary.
  17257. hardcode_direct=$hardcode_direct_CXX
  17258. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17259. # DIR into the resulting binary and the resulting library dependency is
  17260. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17261. # library is relocated.
  17262. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17263. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17264. # into the resulting binary.
  17265. hardcode_minus_L=$hardcode_minus_L_CXX
  17266. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17267. # into the resulting binary.
  17268. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17269. # Set to "yes" if building a shared library automatically hardcodes DIR
  17270. # into the library and all subsequent libraries and executables linked
  17271. # against it.
  17272. hardcode_automatic=$hardcode_automatic_CXX
  17273. # Set to yes if linker adds runtime paths of dependent libraries
  17274. # to runtime path list.
  17275. inherit_rpath=$inherit_rpath_CXX
  17276. # Whether libtool must link a program against all its dependency libraries.
  17277. link_all_deplibs=$link_all_deplibs_CXX
  17278. # Set to "yes" if exported symbols are required.
  17279. always_export_symbols=$always_export_symbols_CXX
  17280. # The commands to list exported symbols.
  17281. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17282. # Symbols that should not be listed in the preloaded symbols.
  17283. exclude_expsyms=$lt_exclude_expsyms_CXX
  17284. # Symbols that must always be exported.
  17285. include_expsyms=$lt_include_expsyms_CXX
  17286. # Commands necessary for linking programs (against libraries) with templates.
  17287. prelink_cmds=$lt_prelink_cmds_CXX
  17288. # Commands necessary for finishing linking programs.
  17289. postlink_cmds=$lt_postlink_cmds_CXX
  17290. # Specify filename containing input files.
  17291. file_list_spec=$lt_file_list_spec_CXX
  17292. # How to hardcode a shared library path into an executable.
  17293. hardcode_action=$hardcode_action_CXX
  17294. # The directories searched by this compiler when creating a shared library.
  17295. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17296. # Dependencies to place before and after the objects being linked to
  17297. # create a shared library.
  17298. predep_objects=$lt_predep_objects_CXX
  17299. postdep_objects=$lt_postdep_objects_CXX
  17300. predeps=$lt_predeps_CXX
  17301. postdeps=$lt_postdeps_CXX
  17302. # The library search path used internally by the compiler when linking
  17303. # a shared library.
  17304. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17305. # ### END LIBTOOL TAG CONFIG: CXX
  17306. _LT_EOF
  17307. ;;
  17308. esac
  17309. done # for ac_tag
  17310. as_fn_exit 0
  17311. _ACEOF
  17312. ac_clean_files=$ac_clean_files_save
  17313. test $ac_write_fail = 0 ||
  17314. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17315. # configure is writing to config.log, and then calls config.status.
  17316. # config.status does its own redirection, appending to config.log.
  17317. # Unfortunately, on DOS this fails, as config.log is still kept open
  17318. # by configure, so config.status won't be able to write to it; its
  17319. # output is simply discarded. So we exec the FD to /dev/null,
  17320. # effectively closing config.log, so it can be properly (re)opened and
  17321. # appended to by config.status. When coming back to configure, we
  17322. # need to make the FD available again.
  17323. if test "$no_create" != yes; then
  17324. ac_cs_success=:
  17325. ac_config_status_args=
  17326. test "$silent" = yes &&
  17327. ac_config_status_args="$ac_config_status_args --quiet"
  17328. exec 5>/dev/null
  17329. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17330. exec 5>>config.log
  17331. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17332. # would make configure fail if this is the last instruction.
  17333. $ac_cs_success || as_fn_exit 1
  17334. fi
  17335. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17337. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17338. fi