configure 603 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for vcmi 0.88b.
  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.88b'
  522. PACKAGE_STRING='vcmi 0.88b'
  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. CXXCPP
  582. CPP
  583. OTOOL64
  584. OTOOL
  585. LIPO
  586. NMEDIT
  587. DSYMUTIL
  588. MANIFEST_TOOL
  589. RANLIB
  590. ac_ct_AR
  591. AR
  592. DLLTOOL
  593. OBJDUMP
  594. LN_S
  595. NM
  596. ac_ct_DUMPBIN
  597. DUMPBIN
  598. LD
  599. FGREP
  600. EGREP
  601. GREP
  602. SED
  603. am__fastdepCC_FALSE
  604. am__fastdepCC_TRUE
  605. CCDEPMODE
  606. ac_ct_CC
  607. CFLAGS
  608. CC
  609. host_os
  610. host_vendor
  611. host_cpu
  612. host
  613. build_os
  614. build_vendor
  615. build_cpu
  616. build
  617. LIBTOOL
  618. am__fastdepCXX_FALSE
  619. am__fastdepCXX_TRUE
  620. CXXDEPMODE
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CXX
  630. CPPFLAGS
  631. LDFLAGS
  632. CXXFLAGS
  633. CXX
  634. am__untar
  635. am__tar
  636. AMTAR
  637. am__leading_dot
  638. SET_MAKE
  639. AWK
  640. mkdir_p
  641. MKDIR_P
  642. INSTALL_STRIP_PROGRAM
  643. STRIP
  644. install_sh
  645. MAKEINFO
  646. AUTOHEADER
  647. AUTOMAKE
  648. AUTOCONF
  649. ACLOCAL
  650. VERSION
  651. PACKAGE
  652. CYGPATH_W
  653. am__isrc
  654. INSTALL_DATA
  655. INSTALL_SCRIPT
  656. INSTALL_PROGRAM
  657. target_alias
  658. host_alias
  659. build_alias
  660. LIBS
  661. ECHO_T
  662. ECHO_N
  663. ECHO_C
  664. DEFS
  665. mandir
  666. localedir
  667. libdir
  668. psdir
  669. pdfdir
  670. dvidir
  671. htmldir
  672. infodir
  673. docdir
  674. oldincludedir
  675. includedir
  676. localstatedir
  677. sharedstatedir
  678. sysconfdir
  679. datadir
  680. datarootdir
  681. libexecdir
  682. sbindir
  683. bindir
  684. program_transform_name
  685. prefix
  686. exec_prefix
  687. PACKAGE_URL
  688. PACKAGE_BUGREPORT
  689. PACKAGE_STRING
  690. PACKAGE_VERSION
  691. PACKAGE_TARNAME
  692. PACKAGE_NAME
  693. PATH_SEPARATOR
  694. SHELL'
  695. ac_subst_files=''
  696. ac_user_opts='
  697. enable_option_checking
  698. enable_dependency_tracking
  699. enable_shared
  700. enable_static
  701. with_pic
  702. enable_fast_install
  703. with_gnu_ld
  704. with_sysroot
  705. enable_libtool_lock
  706. enable_silent_rules
  707. enable_debug
  708. with_boost
  709. with_boost_libdir
  710. with_boost_system
  711. with_boost_filesystem
  712. with_boost_thread
  713. with_boost_iostreams
  714. with_boost_program_options
  715. with_sdl_prefix
  716. with_sdl_exec_prefix
  717. enable_sdltest
  718. '
  719. ac_precious_vars='build_alias
  720. host_alias
  721. target_alias
  722. CXX
  723. CXXFLAGS
  724. LDFLAGS
  725. LIBS
  726. CPPFLAGS
  727. CCC
  728. CC
  729. CFLAGS
  730. CPP
  731. CXXCPP'
  732. # Initialize some variables set by options.
  733. ac_init_help=
  734. ac_init_version=false
  735. ac_unrecognized_opts=
  736. ac_unrecognized_sep=
  737. # The variables have the same names as the options, with
  738. # dashes changed to underlines.
  739. cache_file=/dev/null
  740. exec_prefix=NONE
  741. no_create=
  742. no_recursion=
  743. prefix=NONE
  744. program_prefix=NONE
  745. program_suffix=NONE
  746. program_transform_name=s,x,x,
  747. silent=
  748. site=
  749. srcdir=
  750. verbose=
  751. x_includes=NONE
  752. x_libraries=NONE
  753. # Installation directory options.
  754. # These are left unexpanded so users can "make install exec_prefix=/foo"
  755. # and all the variables that are supposed to be based on exec_prefix
  756. # by default will actually change.
  757. # Use braces instead of parens because sh, perl, etc. also accept them.
  758. # (The list follows the same order as the GNU Coding Standards.)
  759. bindir='${exec_prefix}/bin'
  760. sbindir='${exec_prefix}/sbin'
  761. libexecdir='${exec_prefix}/libexec'
  762. datarootdir='${prefix}/share'
  763. datadir='${datarootdir}'
  764. sysconfdir='${prefix}/etc'
  765. sharedstatedir='${prefix}/com'
  766. localstatedir='${prefix}/var'
  767. includedir='${prefix}/include'
  768. oldincludedir='/usr/include'
  769. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  770. infodir='${datarootdir}/info'
  771. htmldir='${docdir}'
  772. dvidir='${docdir}'
  773. pdfdir='${docdir}'
  774. psdir='${docdir}'
  775. libdir='${exec_prefix}/lib'
  776. localedir='${datarootdir}/locale'
  777. mandir='${datarootdir}/man'
  778. ac_prev=
  779. ac_dashdash=
  780. for ac_option
  781. do
  782. # If the previous option needs an argument, assign it.
  783. if test -n "$ac_prev"; then
  784. eval $ac_prev=\$ac_option
  785. ac_prev=
  786. continue
  787. fi
  788. case $ac_option in
  789. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  790. *=) ac_optarg= ;;
  791. *) ac_optarg=yes ;;
  792. esac
  793. # Accept the important Cygnus configure options, so we can diagnose typos.
  794. case $ac_dashdash$ac_option in
  795. --)
  796. ac_dashdash=yes ;;
  797. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  798. ac_prev=bindir ;;
  799. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  800. bindir=$ac_optarg ;;
  801. -build | --build | --buil | --bui | --bu)
  802. ac_prev=build_alias ;;
  803. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  804. build_alias=$ac_optarg ;;
  805. -cache-file | --cache-file | --cache-fil | --cache-fi \
  806. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  807. ac_prev=cache_file ;;
  808. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  809. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  810. cache_file=$ac_optarg ;;
  811. --config-cache | -C)
  812. cache_file=config.cache ;;
  813. -datadir | --datadir | --datadi | --datad)
  814. ac_prev=datadir ;;
  815. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  816. datadir=$ac_optarg ;;
  817. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  818. | --dataroo | --dataro | --datar)
  819. ac_prev=datarootdir ;;
  820. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  821. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  822. datarootdir=$ac_optarg ;;
  823. -disable-* | --disable-*)
  824. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  825. # Reject names that are not valid shell variable names.
  826. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  827. as_fn_error $? "invalid feature name: $ac_useropt"
  828. ac_useropt_orig=$ac_useropt
  829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  830. case $ac_user_opts in
  831. *"
  832. "enable_$ac_useropt"
  833. "*) ;;
  834. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  835. ac_unrecognized_sep=', ';;
  836. esac
  837. eval enable_$ac_useropt=no ;;
  838. -docdir | --docdir | --docdi | --doc | --do)
  839. ac_prev=docdir ;;
  840. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  841. docdir=$ac_optarg ;;
  842. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  843. ac_prev=dvidir ;;
  844. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  845. dvidir=$ac_optarg ;;
  846. -enable-* | --enable-*)
  847. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  848. # Reject names that are not valid shell variable names.
  849. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  850. as_fn_error $? "invalid feature name: $ac_useropt"
  851. ac_useropt_orig=$ac_useropt
  852. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  853. case $ac_user_opts in
  854. *"
  855. "enable_$ac_useropt"
  856. "*) ;;
  857. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  858. ac_unrecognized_sep=', ';;
  859. esac
  860. eval enable_$ac_useropt=\$ac_optarg ;;
  861. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  862. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  863. | --exec | --exe | --ex)
  864. ac_prev=exec_prefix ;;
  865. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  866. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  867. | --exec=* | --exe=* | --ex=*)
  868. exec_prefix=$ac_optarg ;;
  869. -gas | --gas | --ga | --g)
  870. # Obsolete; use --with-gas.
  871. with_gas=yes ;;
  872. -help | --help | --hel | --he | -h)
  873. ac_init_help=long ;;
  874. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  875. ac_init_help=recursive ;;
  876. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  877. ac_init_help=short ;;
  878. -host | --host | --hos | --ho)
  879. ac_prev=host_alias ;;
  880. -host=* | --host=* | --hos=* | --ho=*)
  881. host_alias=$ac_optarg ;;
  882. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  883. ac_prev=htmldir ;;
  884. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  885. | --ht=*)
  886. htmldir=$ac_optarg ;;
  887. -includedir | --includedir | --includedi | --included | --include \
  888. | --includ | --inclu | --incl | --inc)
  889. ac_prev=includedir ;;
  890. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  891. | --includ=* | --inclu=* | --incl=* | --inc=*)
  892. includedir=$ac_optarg ;;
  893. -infodir | --infodir | --infodi | --infod | --info | --inf)
  894. ac_prev=infodir ;;
  895. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  896. infodir=$ac_optarg ;;
  897. -libdir | --libdir | --libdi | --libd)
  898. ac_prev=libdir ;;
  899. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  900. libdir=$ac_optarg ;;
  901. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  902. | --libexe | --libex | --libe)
  903. ac_prev=libexecdir ;;
  904. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  905. | --libexe=* | --libex=* | --libe=*)
  906. libexecdir=$ac_optarg ;;
  907. -localedir | --localedir | --localedi | --localed | --locale)
  908. ac_prev=localedir ;;
  909. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  910. localedir=$ac_optarg ;;
  911. -localstatedir | --localstatedir | --localstatedi | --localstated \
  912. | --localstate | --localstat | --localsta | --localst | --locals)
  913. ac_prev=localstatedir ;;
  914. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  915. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  916. localstatedir=$ac_optarg ;;
  917. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  918. ac_prev=mandir ;;
  919. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  920. mandir=$ac_optarg ;;
  921. -nfp | --nfp | --nf)
  922. # Obsolete; use --without-fp.
  923. with_fp=no ;;
  924. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  925. | --no-cr | --no-c | -n)
  926. no_create=yes ;;
  927. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  928. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  929. no_recursion=yes ;;
  930. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  931. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  932. | --oldin | --oldi | --old | --ol | --o)
  933. ac_prev=oldincludedir ;;
  934. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  935. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  936. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  937. oldincludedir=$ac_optarg ;;
  938. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  939. ac_prev=prefix ;;
  940. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  941. prefix=$ac_optarg ;;
  942. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  943. | --program-pre | --program-pr | --program-p)
  944. ac_prev=program_prefix ;;
  945. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  946. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  947. program_prefix=$ac_optarg ;;
  948. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  949. | --program-suf | --program-su | --program-s)
  950. ac_prev=program_suffix ;;
  951. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  952. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  953. program_suffix=$ac_optarg ;;
  954. -program-transform-name | --program-transform-name \
  955. | --program-transform-nam | --program-transform-na \
  956. | --program-transform-n | --program-transform- \
  957. | --program-transform | --program-transfor \
  958. | --program-transfo | --program-transf \
  959. | --program-trans | --program-tran \
  960. | --progr-tra | --program-tr | --program-t)
  961. ac_prev=program_transform_name ;;
  962. -program-transform-name=* | --program-transform-name=* \
  963. | --program-transform-nam=* | --program-transform-na=* \
  964. | --program-transform-n=* | --program-transform-=* \
  965. | --program-transform=* | --program-transfor=* \
  966. | --program-transfo=* | --program-transf=* \
  967. | --program-trans=* | --program-tran=* \
  968. | --progr-tra=* | --program-tr=* | --program-t=*)
  969. program_transform_name=$ac_optarg ;;
  970. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  971. ac_prev=pdfdir ;;
  972. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  973. pdfdir=$ac_optarg ;;
  974. -psdir | --psdir | --psdi | --psd | --ps)
  975. ac_prev=psdir ;;
  976. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  977. psdir=$ac_optarg ;;
  978. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  979. | -silent | --silent | --silen | --sile | --sil)
  980. silent=yes ;;
  981. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  982. ac_prev=sbindir ;;
  983. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  984. | --sbi=* | --sb=*)
  985. sbindir=$ac_optarg ;;
  986. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  987. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  988. | --sharedst | --shareds | --shared | --share | --shar \
  989. | --sha | --sh)
  990. ac_prev=sharedstatedir ;;
  991. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  992. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  993. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  994. | --sha=* | --sh=*)
  995. sharedstatedir=$ac_optarg ;;
  996. -site | --site | --sit)
  997. ac_prev=site ;;
  998. -site=* | --site=* | --sit=*)
  999. site=$ac_optarg ;;
  1000. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1001. ac_prev=srcdir ;;
  1002. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1003. srcdir=$ac_optarg ;;
  1004. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1005. | --syscon | --sysco | --sysc | --sys | --sy)
  1006. ac_prev=sysconfdir ;;
  1007. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1008. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1009. sysconfdir=$ac_optarg ;;
  1010. -target | --target | --targe | --targ | --tar | --ta | --t)
  1011. ac_prev=target_alias ;;
  1012. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1013. target_alias=$ac_optarg ;;
  1014. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1015. verbose=yes ;;
  1016. -version | --version | --versio | --versi | --vers | -V)
  1017. ac_init_version=: ;;
  1018. -with-* | --with-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error $? "invalid package name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "with_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval with_$ac_useropt=\$ac_optarg ;;
  1033. -without-* | --without-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid package name: $ac_useropt"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "with_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval with_$ac_useropt=no ;;
  1048. --x)
  1049. # Obsolete; use --with-x.
  1050. with_x=yes ;;
  1051. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1052. | --x-incl | --x-inc | --x-in | --x-i)
  1053. ac_prev=x_includes ;;
  1054. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1055. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1056. x_includes=$ac_optarg ;;
  1057. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1058. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1059. ac_prev=x_libraries ;;
  1060. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1061. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1062. x_libraries=$ac_optarg ;;
  1063. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1064. Try \`$0 --help' for more information"
  1065. ;;
  1066. *=*)
  1067. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1068. # Reject names that are not valid shell variable names.
  1069. case $ac_envvar in #(
  1070. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1071. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1072. esac
  1073. eval $ac_envvar=\$ac_optarg
  1074. export $ac_envvar ;;
  1075. *)
  1076. # FIXME: should be removed in autoconf 3.0.
  1077. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1078. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1079. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1080. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1081. ;;
  1082. esac
  1083. done
  1084. if test -n "$ac_prev"; then
  1085. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1086. as_fn_error $? "missing argument to $ac_option"
  1087. fi
  1088. if test -n "$ac_unrecognized_opts"; then
  1089. case $enable_option_checking in
  1090. no) ;;
  1091. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1092. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1093. esac
  1094. fi
  1095. # Check all directory arguments for consistency.
  1096. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1097. datadir sysconfdir sharedstatedir localstatedir includedir \
  1098. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1099. libdir localedir mandir
  1100. do
  1101. eval ac_val=\$$ac_var
  1102. # Remove trailing slashes.
  1103. case $ac_val in
  1104. */ )
  1105. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1106. eval $ac_var=\$ac_val;;
  1107. esac
  1108. # Be sure to have absolute directory names.
  1109. case $ac_val in
  1110. [\\/$]* | ?:[\\/]* ) continue;;
  1111. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1112. esac
  1113. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1114. done
  1115. # There might be people who depend on the old broken behavior: `$host'
  1116. # used to hold the argument of --host etc.
  1117. # FIXME: To remove some day.
  1118. build=$build_alias
  1119. host=$host_alias
  1120. target=$target_alias
  1121. # FIXME: To remove some day.
  1122. if test "x$host_alias" != x; then
  1123. if test "x$build_alias" = x; then
  1124. cross_compiling=maybe
  1125. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1126. If a cross compiler is detected then cross compile mode will be used" >&2
  1127. elif test "x$build_alias" != "x$host_alias"; then
  1128. cross_compiling=yes
  1129. fi
  1130. fi
  1131. ac_tool_prefix=
  1132. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1133. test "$silent" = yes && exec 6>/dev/null
  1134. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1135. ac_ls_di=`ls -di .` &&
  1136. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1137. as_fn_error $? "working directory cannot be determined"
  1138. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1139. as_fn_error $? "pwd does not report name of working directory"
  1140. # Find the source files, if location was not specified.
  1141. if test -z "$srcdir"; then
  1142. ac_srcdir_defaulted=yes
  1143. # Try the directory containing this script, then the parent directory.
  1144. ac_confdir=`$as_dirname -- "$as_myself" ||
  1145. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1146. X"$as_myself" : 'X\(//\)[^/]' \| \
  1147. X"$as_myself" : 'X\(//\)$' \| \
  1148. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1149. $as_echo X"$as_myself" |
  1150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)[^/].*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)$/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\).*/{
  1163. s//\1/
  1164. q
  1165. }
  1166. s/.*/./; q'`
  1167. srcdir=$ac_confdir
  1168. if test ! -r "$srcdir/$ac_unique_file"; then
  1169. srcdir=..
  1170. fi
  1171. else
  1172. ac_srcdir_defaulted=no
  1173. fi
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1176. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1177. fi
  1178. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1179. ac_abs_confdir=`(
  1180. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1181. pwd)`
  1182. # When building in place, set srcdir=.
  1183. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1184. srcdir=.
  1185. fi
  1186. # Remove unnecessary trailing slashes from srcdir.
  1187. # Double slashes in file names in object file debugging info
  1188. # mess up M-x gdb in Emacs.
  1189. case $srcdir in
  1190. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1191. esac
  1192. for ac_var in $ac_precious_vars; do
  1193. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1194. eval ac_env_${ac_var}_value=\$${ac_var}
  1195. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1197. done
  1198. #
  1199. # Report the --help message.
  1200. #
  1201. if test "$ac_init_help" = "long"; then
  1202. # Omit some internal or obsolete options to make the list less imposing.
  1203. # This message is too long to be a string in the A/UX 3.1 sh.
  1204. cat <<_ACEOF
  1205. \`configure' configures vcmi 0.88b to adapt to many kinds of systems.
  1206. Usage: $0 [OPTION]... [VAR=VALUE]...
  1207. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1208. VAR=VALUE. See below for descriptions of some of the useful variables.
  1209. Defaults for the options are specified in brackets.
  1210. Configuration:
  1211. -h, --help display this help and exit
  1212. --help=short display options specific to this package
  1213. --help=recursive display the short help of all the included packages
  1214. -V, --version display version information and exit
  1215. -q, --quiet, --silent do not print \`checking ...' messages
  1216. --cache-file=FILE cache test results in FILE [disabled]
  1217. -C, --config-cache alias for \`--cache-file=config.cache'
  1218. -n, --no-create do not create output files
  1219. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1220. Installation directories:
  1221. --prefix=PREFIX install architecture-independent files in PREFIX
  1222. [$ac_default_prefix]
  1223. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1224. [PREFIX]
  1225. By default, \`make install' will install all the files in
  1226. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1227. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1228. for instance \`--prefix=\$HOME'.
  1229. For better control, use the options below.
  1230. Fine tuning of the installation directories:
  1231. --bindir=DIR user executables [EPREFIX/bin]
  1232. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1233. --libexecdir=DIR program executables [EPREFIX/libexec]
  1234. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1235. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1236. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1237. --libdir=DIR object code libraries [EPREFIX/lib]
  1238. --includedir=DIR C header files [PREFIX/include]
  1239. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1240. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1241. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1242. --infodir=DIR info documentation [DATAROOTDIR/info]
  1243. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1244. --mandir=DIR man documentation [DATAROOTDIR/man]
  1245. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1246. --htmldir=DIR html documentation [DOCDIR]
  1247. --dvidir=DIR dvi documentation [DOCDIR]
  1248. --pdfdir=DIR pdf documentation [DOCDIR]
  1249. --psdir=DIR ps documentation [DOCDIR]
  1250. _ACEOF
  1251. cat <<\_ACEOF
  1252. Program names:
  1253. --program-prefix=PREFIX prepend PREFIX to installed program names
  1254. --program-suffix=SUFFIX append SUFFIX to installed program names
  1255. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1256. System types:
  1257. --build=BUILD configure for building on BUILD [guessed]
  1258. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. case $ac_init_help in
  1263. short | recursive ) echo "Configuration of vcmi 0.88b:";;
  1264. esac
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --disable-dependency-tracking speeds up one-time build
  1271. --enable-dependency-tracking do not reject slow dependency extractors
  1272. --enable-shared[=PKGS] build shared libraries [default=yes]
  1273. --enable-static[=PKGS] build static libraries [default=no]
  1274. --enable-fast-install[=PKGS]
  1275. optimize for fast installation [default=yes]
  1276. --disable-libtool-lock avoid locking (might break parallel builds)
  1277. --enable-silent-rules less verbose build output (undo: `make V=1')
  1278. --disable-silent-rules verbose build output (undo: `make V=0')
  1279. --disable-debug turn off debugging (default=enable)
  1280. --disable-sdltest Do not try to compile and run a test SDL program
  1281. Optional Packages:
  1282. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1283. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1284. --with-pic try to use only PIC/non-PIC objects [default=use
  1285. both]
  1286. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1287. --with-sysroot=DIR Search for dependent libraries within DIR
  1288. (or the compiler's sysroot if not specified).
  1289. --with-boost[=ARG] use Boost library from a standard location
  1290. (ARG=yes), from the specified location (ARG=<path>),
  1291. or disable it (ARG=no) [ARG=yes]
  1292. --with-boost-libdir=LIB_DIR
  1293. Force given directory for boost libraries. Note that
  1294. this will override library path detection, so use
  1295. this parameter only if default library detection
  1296. fails and you know exactly where your boost
  1297. libraries are located.
  1298. --with-boost-system[=special-lib]
  1299. use the System library from boost - it is possible
  1300. to specify a certain library for the linker e.g.
  1301. --with-boost-system=boost_system-gcc-mt
  1302. --with-boost-filesystem[=special-lib]
  1303. use the Filesystem library from boost - it is
  1304. possible to specify a certain library for the linker
  1305. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1306. --with-boost-thread[=special-lib]
  1307. use the Thread library from boost - it is possible
  1308. to specify a certain library for the linker e.g.
  1309. --with-boost-thread=boost_thread-gcc-mt
  1310. --with-boost-iostreams[=special-lib]
  1311. use the IOStreams library from boost - it is
  1312. possible to specify a certain library for the linker
  1313. e.g.
  1314. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1315. --with-boost-program-options[=special-lib]
  1316. use the program options library from boost - it is
  1317. possible to specify a certain library for the linker
  1318. e.g.
  1319. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1320. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1321. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1322. Some influential environment variables:
  1323. CXX C++ compiler command
  1324. CXXFLAGS C++ compiler flags
  1325. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1326. nonstandard directory <lib dir>
  1327. LIBS libraries to pass to the linker, e.g. -l<library>
  1328. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1329. you have headers in a nonstandard directory <include dir>
  1330. CC C compiler command
  1331. CFLAGS C compiler flags
  1332. CPP C preprocessor
  1333. CXXCPP C++ preprocessor
  1334. Use these variables to override the choices made by `configure' or to help
  1335. it to find libraries and programs with nonstandard names/locations.
  1336. Report bugs to the package provider.
  1337. _ACEOF
  1338. ac_status=$?
  1339. fi
  1340. if test "$ac_init_help" = "recursive"; then
  1341. # If there are subdirs, report their specific --help.
  1342. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1343. test -d "$ac_dir" ||
  1344. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1345. continue
  1346. ac_builddir=.
  1347. case "$ac_dir" in
  1348. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1349. *)
  1350. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1351. # A ".." for each directory in $ac_dir_suffix.
  1352. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1353. case $ac_top_builddir_sub in
  1354. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1355. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1356. esac ;;
  1357. esac
  1358. ac_abs_top_builddir=$ac_pwd
  1359. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1360. # for backward compatibility:
  1361. ac_top_builddir=$ac_top_build_prefix
  1362. case $srcdir in
  1363. .) # We are building in place.
  1364. ac_srcdir=.
  1365. ac_top_srcdir=$ac_top_builddir_sub
  1366. ac_abs_top_srcdir=$ac_pwd ;;
  1367. [\\/]* | ?:[\\/]* ) # Absolute name.
  1368. ac_srcdir=$srcdir$ac_dir_suffix;
  1369. ac_top_srcdir=$srcdir
  1370. ac_abs_top_srcdir=$srcdir ;;
  1371. *) # Relative name.
  1372. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1373. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1374. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1375. esac
  1376. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1377. cd "$ac_dir" || { ac_status=$?; continue; }
  1378. # Check for guested configure.
  1379. if test -f "$ac_srcdir/configure.gnu"; then
  1380. echo &&
  1381. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1382. elif test -f "$ac_srcdir/configure"; then
  1383. echo &&
  1384. $SHELL "$ac_srcdir/configure" --help=recursive
  1385. else
  1386. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1387. fi || ac_status=$?
  1388. cd "$ac_pwd" || { ac_status=$?; break; }
  1389. done
  1390. fi
  1391. test -n "$ac_init_help" && exit $ac_status
  1392. if $ac_init_version; then
  1393. cat <<\_ACEOF
  1394. vcmi configure 0.88b
  1395. generated by GNU Autoconf 2.68
  1396. Copyright (C) 2010 Free Software Foundation, Inc.
  1397. This configure script is free software; the Free Software Foundation
  1398. gives unlimited permission to copy, distribute and modify it.
  1399. _ACEOF
  1400. exit
  1401. fi
  1402. ## ------------------------ ##
  1403. ## Autoconf initialization. ##
  1404. ## ------------------------ ##
  1405. # ac_fn_cxx_try_compile LINENO
  1406. # ----------------------------
  1407. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1408. ac_fn_cxx_try_compile ()
  1409. {
  1410. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1411. rm -f conftest.$ac_objext
  1412. if { { ac_try="$ac_compile"
  1413. case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_compile") 2>conftest.err
  1420. ac_status=$?
  1421. if test -s conftest.err; then
  1422. grep -v '^ *+' conftest.err >conftest.er1
  1423. cat conftest.er1 >&5
  1424. mv -f conftest.er1 conftest.err
  1425. fi
  1426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1427. test $ac_status = 0; } && {
  1428. test -z "$ac_cxx_werror_flag" ||
  1429. test ! -s conftest.err
  1430. } && test -s conftest.$ac_objext; then :
  1431. ac_retval=0
  1432. else
  1433. $as_echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. ac_retval=1
  1436. fi
  1437. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1438. as_fn_set_status $ac_retval
  1439. } # ac_fn_cxx_try_compile
  1440. # ac_fn_c_try_compile LINENO
  1441. # --------------------------
  1442. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1443. ac_fn_c_try_compile ()
  1444. {
  1445. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1446. rm -f conftest.$ac_objext
  1447. if { { ac_try="$ac_compile"
  1448. case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_compile") 2>conftest.err
  1455. ac_status=$?
  1456. if test -s conftest.err; then
  1457. grep -v '^ *+' conftest.err >conftest.er1
  1458. cat conftest.er1 >&5
  1459. mv -f conftest.er1 conftest.err
  1460. fi
  1461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1462. test $ac_status = 0; } && {
  1463. test -z "$ac_c_werror_flag" ||
  1464. test ! -s conftest.err
  1465. } && test -s conftest.$ac_objext; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. as_fn_set_status $ac_retval
  1474. } # ac_fn_c_try_compile
  1475. # ac_fn_c_try_link LINENO
  1476. # -----------------------
  1477. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_link ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext conftest$ac_exeext
  1482. if { { ac_try="$ac_link"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_link") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_c_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest$ac_exeext && {
  1501. test "$cross_compiling" = yes ||
  1502. $as_test_x conftest$ac_exeext
  1503. }; then :
  1504. ac_retval=0
  1505. else
  1506. $as_echo "$as_me: failed program was:" >&5
  1507. sed 's/^/| /' conftest.$ac_ext >&5
  1508. ac_retval=1
  1509. fi
  1510. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1511. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1512. # interfere with the next link command; also delete a directory that is
  1513. # left behind by Apple's compiler. We do this before executing the actions.
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_link
  1518. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1519. # -------------------------------------------------------
  1520. # Tests whether HEADER exists and can be compiled using the include files in
  1521. # INCLUDES, setting the cache variable VAR accordingly.
  1522. ac_fn_c_check_header_compile ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1526. $as_echo_n "checking for $2... " >&6; }
  1527. if eval \${$3+:} false; then :
  1528. $as_echo_n "(cached) " >&6
  1529. else
  1530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1531. /* end confdefs.h. */
  1532. $4
  1533. #include <$2>
  1534. _ACEOF
  1535. if ac_fn_c_try_compile "$LINENO"; then :
  1536. eval "$3=yes"
  1537. else
  1538. eval "$3=no"
  1539. fi
  1540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1541. fi
  1542. eval ac_res=\$$3
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1544. $as_echo "$ac_res" >&6; }
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. } # ac_fn_c_check_header_compile
  1547. # ac_fn_c_try_cpp LINENO
  1548. # ----------------------
  1549. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_cpp ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1554. case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1561. ac_status=$?
  1562. if test -s conftest.err; then
  1563. grep -v '^ *+' conftest.err >conftest.er1
  1564. cat conftest.er1 >&5
  1565. mv -f conftest.er1 conftest.err
  1566. fi
  1567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1568. test $ac_status = 0; } > conftest.i && {
  1569. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1570. test ! -s conftest.err
  1571. }; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=1
  1577. fi
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. as_fn_set_status $ac_retval
  1580. } # ac_fn_c_try_cpp
  1581. # ac_fn_c_try_run LINENO
  1582. # ----------------------
  1583. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1584. # that executables *can* be run.
  1585. ac_fn_c_try_run ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. if { { ac_try="$ac_link"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_link") 2>&5
  1596. ac_status=$?
  1597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1599. { { case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_try") 2>&5
  1606. ac_status=$?
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; }; }; then :
  1609. ac_retval=0
  1610. else
  1611. $as_echo "$as_me: program exited with status $ac_status" >&5
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=$ac_status
  1615. fi
  1616. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. as_fn_set_status $ac_retval
  1619. } # ac_fn_c_try_run
  1620. # ac_fn_c_check_func LINENO FUNC VAR
  1621. # ----------------------------------
  1622. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1623. ac_fn_c_check_func ()
  1624. {
  1625. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1627. $as_echo_n "checking for $2... " >&6; }
  1628. if eval \${$3+:} false; then :
  1629. $as_echo_n "(cached) " >&6
  1630. else
  1631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end confdefs.h. */
  1633. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1634. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1635. #define $2 innocuous_$2
  1636. /* System header to define __stub macros and hopefully few prototypes,
  1637. which can conflict with char $2 (); below.
  1638. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1639. <limits.h> exists even on freestanding compilers. */
  1640. #ifdef __STDC__
  1641. # include <limits.h>
  1642. #else
  1643. # include <assert.h>
  1644. #endif
  1645. #undef $2
  1646. /* Override any GCC internal prototype to avoid an error.
  1647. Use char because int might match the return type of a GCC
  1648. builtin and then its argument prototype would still apply. */
  1649. #ifdef __cplusplus
  1650. extern "C"
  1651. #endif
  1652. char $2 ();
  1653. /* The GNU C library defines this for functions which it implements
  1654. to always fail with ENOSYS. Some functions are actually named
  1655. something starting with __ and the normal name is an alias. */
  1656. #if defined __stub_$2 || defined __stub___$2
  1657. choke me
  1658. #endif
  1659. int
  1660. main ()
  1661. {
  1662. return $2 ();
  1663. ;
  1664. return 0;
  1665. }
  1666. _ACEOF
  1667. if ac_fn_c_try_link "$LINENO"; then :
  1668. eval "$3=yes"
  1669. else
  1670. eval "$3=no"
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext \
  1673. conftest$ac_exeext conftest.$ac_ext
  1674. fi
  1675. eval ac_res=\$$3
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1677. $as_echo "$ac_res" >&6; }
  1678. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679. } # ac_fn_c_check_func
  1680. # ac_fn_cxx_try_cpp LINENO
  1681. # ------------------------
  1682. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1683. ac_fn_cxx_try_cpp ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1687. case "(($ac_try" in
  1688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1689. *) ac_try_echo=$ac_try;;
  1690. esac
  1691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1692. $as_echo "$ac_try_echo"; } >&5
  1693. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1694. ac_status=$?
  1695. if test -s conftest.err; then
  1696. grep -v '^ *+' conftest.err >conftest.er1
  1697. cat conftest.er1 >&5
  1698. mv -f conftest.er1 conftest.err
  1699. fi
  1700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1701. test $ac_status = 0; } > conftest.i && {
  1702. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1703. test ! -s conftest.err
  1704. }; then :
  1705. ac_retval=0
  1706. else
  1707. $as_echo "$as_me: failed program was:" >&5
  1708. sed 's/^/| /' conftest.$ac_ext >&5
  1709. ac_retval=1
  1710. fi
  1711. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1712. as_fn_set_status $ac_retval
  1713. } # ac_fn_cxx_try_cpp
  1714. # ac_fn_cxx_try_link LINENO
  1715. # -------------------------
  1716. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1717. ac_fn_cxx_try_link ()
  1718. {
  1719. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1720. rm -f conftest.$ac_objext conftest$ac_exeext
  1721. if { { ac_try="$ac_link"
  1722. case "(($ac_try" in
  1723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1724. *) ac_try_echo=$ac_try;;
  1725. esac
  1726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1727. $as_echo "$ac_try_echo"; } >&5
  1728. (eval "$ac_link") 2>conftest.err
  1729. ac_status=$?
  1730. if test -s conftest.err; then
  1731. grep -v '^ *+' conftest.err >conftest.er1
  1732. cat conftest.er1 >&5
  1733. mv -f conftest.er1 conftest.err
  1734. fi
  1735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1736. test $ac_status = 0; } && {
  1737. test -z "$ac_cxx_werror_flag" ||
  1738. test ! -s conftest.err
  1739. } && test -s conftest$ac_exeext && {
  1740. test "$cross_compiling" = yes ||
  1741. $as_test_x conftest$ac_exeext
  1742. }; then :
  1743. ac_retval=0
  1744. else
  1745. $as_echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. ac_retval=1
  1748. fi
  1749. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1750. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1751. # interfere with the next link command; also delete a directory that is
  1752. # left behind by Apple's compiler. We do this before executing the actions.
  1753. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1754. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1755. as_fn_set_status $ac_retval
  1756. } # ac_fn_cxx_try_link
  1757. # ac_fn_cxx_try_run LINENO
  1758. # ------------------------
  1759. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1760. # that executables *can* be run.
  1761. ac_fn_cxx_try_run ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. if { { ac_try="$ac_link"
  1765. case "(($ac_try" in
  1766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1767. *) ac_try_echo=$ac_try;;
  1768. esac
  1769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1770. $as_echo "$ac_try_echo"; } >&5
  1771. (eval "$ac_link") 2>&5
  1772. ac_status=$?
  1773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1775. { { case "(($ac_try" in
  1776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1777. *) ac_try_echo=$ac_try;;
  1778. esac
  1779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1780. $as_echo "$ac_try_echo"; } >&5
  1781. (eval "$ac_try") 2>&5
  1782. ac_status=$?
  1783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1784. test $ac_status = 0; }; }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: program exited with status $ac_status" >&5
  1788. $as_echo "$as_me: failed program was:" >&5
  1789. sed 's/^/| /' conftest.$ac_ext >&5
  1790. ac_retval=$ac_status
  1791. fi
  1792. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_cxx_try_run
  1796. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1797. # ---------------------------------------------------------
  1798. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1799. # the include files in INCLUDES and setting the cache variable VAR
  1800. # accordingly.
  1801. ac_fn_cxx_check_header_mongrel ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. if eval \${$3+:} false; then :
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1806. $as_echo_n "checking for $2... " >&6; }
  1807. if eval \${$3+:} false; then :
  1808. $as_echo_n "(cached) " >&6
  1809. fi
  1810. eval ac_res=\$$3
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1812. $as_echo "$ac_res" >&6; }
  1813. else
  1814. # Is the header compilable?
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1816. $as_echo_n "checking $2 usability... " >&6; }
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. $4
  1820. #include <$2>
  1821. _ACEOF
  1822. if ac_fn_cxx_try_compile "$LINENO"; then :
  1823. ac_header_compiler=yes
  1824. else
  1825. ac_header_compiler=no
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1829. $as_echo "$ac_header_compiler" >&6; }
  1830. # Is the header present?
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1832. $as_echo_n "checking $2 presence... " >&6; }
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. #include <$2>
  1836. _ACEOF
  1837. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1838. ac_header_preproc=yes
  1839. else
  1840. ac_header_preproc=no
  1841. fi
  1842. rm -f conftest.err conftest.i conftest.$ac_ext
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1844. $as_echo "$ac_header_preproc" >&6; }
  1845. # So? What about this header?
  1846. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1847. yes:no: )
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1849. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1851. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1852. ;;
  1853. no:yes:* )
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1855. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1857. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1859. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1861. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1863. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1864. ;;
  1865. esac
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1867. $as_echo_n "checking for $2... " >&6; }
  1868. if eval \${$3+:} false; then :
  1869. $as_echo_n "(cached) " >&6
  1870. else
  1871. eval "$3=\$ac_header_compiler"
  1872. fi
  1873. eval ac_res=\$$3
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1875. $as_echo "$ac_res" >&6; }
  1876. fi
  1877. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1878. } # ac_fn_cxx_check_header_mongrel
  1879. # ac_fn_cxx_check_func LINENO FUNC VAR
  1880. # ------------------------------------
  1881. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1882. ac_fn_cxx_check_func ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1886. $as_echo_n "checking for $2... " >&6; }
  1887. if eval \${$3+:} false; then :
  1888. $as_echo_n "(cached) " >&6
  1889. else
  1890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1891. /* end confdefs.h. */
  1892. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1893. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1894. #define $2 innocuous_$2
  1895. /* System header to define __stub macros and hopefully few prototypes,
  1896. which can conflict with char $2 (); below.
  1897. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1898. <limits.h> exists even on freestanding compilers. */
  1899. #ifdef __STDC__
  1900. # include <limits.h>
  1901. #else
  1902. # include <assert.h>
  1903. #endif
  1904. #undef $2
  1905. /* Override any GCC internal prototype to avoid an error.
  1906. Use char because int might match the return type of a GCC
  1907. builtin and then its argument prototype would still apply. */
  1908. #ifdef __cplusplus
  1909. extern "C"
  1910. #endif
  1911. char $2 ();
  1912. /* The GNU C library defines this for functions which it implements
  1913. to always fail with ENOSYS. Some functions are actually named
  1914. something starting with __ and the normal name is an alias. */
  1915. #if defined __stub_$2 || defined __stub___$2
  1916. choke me
  1917. #endif
  1918. int
  1919. main ()
  1920. {
  1921. return $2 ();
  1922. ;
  1923. return 0;
  1924. }
  1925. _ACEOF
  1926. if ac_fn_cxx_try_link "$LINENO"; then :
  1927. eval "$3=yes"
  1928. else
  1929. eval "$3=no"
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext \
  1932. conftest$ac_exeext conftest.$ac_ext
  1933. fi
  1934. eval ac_res=\$$3
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1936. $as_echo "$ac_res" >&6; }
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. } # ac_fn_cxx_check_func
  1939. cat >config.log <<_ACEOF
  1940. This file contains any messages produced by compilers while
  1941. running configure, to aid debugging if configure makes a mistake.
  1942. It was created by vcmi $as_me 0.88b, which was
  1943. generated by GNU Autoconf 2.68. Invocation command line was
  1944. $ $0 $@
  1945. _ACEOF
  1946. exec 5>>config.log
  1947. {
  1948. cat <<_ASUNAME
  1949. ## --------- ##
  1950. ## Platform. ##
  1951. ## --------- ##
  1952. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1953. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1954. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1955. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1956. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1957. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1958. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1959. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1960. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1961. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1962. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1963. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1964. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1965. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1966. _ASUNAME
  1967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1968. for as_dir in $PATH
  1969. do
  1970. IFS=$as_save_IFS
  1971. test -z "$as_dir" && as_dir=.
  1972. $as_echo "PATH: $as_dir"
  1973. done
  1974. IFS=$as_save_IFS
  1975. } >&5
  1976. cat >&5 <<_ACEOF
  1977. ## ----------- ##
  1978. ## Core tests. ##
  1979. ## ----------- ##
  1980. _ACEOF
  1981. # Keep a trace of the command line.
  1982. # Strip out --no-create and --no-recursion so they do not pile up.
  1983. # Strip out --silent because we don't want to record it for future runs.
  1984. # Also quote any args containing shell meta-characters.
  1985. # Make two passes to allow for proper duplicate-argument suppression.
  1986. ac_configure_args=
  1987. ac_configure_args0=
  1988. ac_configure_args1=
  1989. ac_must_keep_next=false
  1990. for ac_pass in 1 2
  1991. do
  1992. for ac_arg
  1993. do
  1994. case $ac_arg in
  1995. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1996. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1997. | -silent | --silent | --silen | --sile | --sil)
  1998. continue ;;
  1999. *\'*)
  2000. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2001. esac
  2002. case $ac_pass in
  2003. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2004. 2)
  2005. as_fn_append ac_configure_args1 " '$ac_arg'"
  2006. if test $ac_must_keep_next = true; then
  2007. ac_must_keep_next=false # Got value, back to normal.
  2008. else
  2009. case $ac_arg in
  2010. *=* | --config-cache | -C | -disable-* | --disable-* \
  2011. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2012. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2013. | -with-* | --with-* | -without-* | --without-* | --x)
  2014. case "$ac_configure_args0 " in
  2015. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2016. esac
  2017. ;;
  2018. -* ) ac_must_keep_next=true ;;
  2019. esac
  2020. fi
  2021. as_fn_append ac_configure_args " '$ac_arg'"
  2022. ;;
  2023. esac
  2024. done
  2025. done
  2026. { ac_configure_args0=; unset ac_configure_args0;}
  2027. { ac_configure_args1=; unset ac_configure_args1;}
  2028. # When interrupted or exit'd, cleanup temporary files, and complete
  2029. # config.log. We remove comments because anyway the quotes in there
  2030. # would cause problems or look ugly.
  2031. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2032. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2033. trap 'exit_status=$?
  2034. # Save into config.log some information that might help in debugging.
  2035. {
  2036. echo
  2037. $as_echo "## ---------------- ##
  2038. ## Cache variables. ##
  2039. ## ---------------- ##"
  2040. echo
  2041. # The following way of writing the cache mishandles newlines in values,
  2042. (
  2043. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2044. eval ac_val=\$$ac_var
  2045. case $ac_val in #(
  2046. *${as_nl}*)
  2047. case $ac_var in #(
  2048. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2049. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2050. esac
  2051. case $ac_var in #(
  2052. _ | IFS | as_nl) ;; #(
  2053. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2054. *) { eval $ac_var=; unset $ac_var;} ;;
  2055. esac ;;
  2056. esac
  2057. done
  2058. (set) 2>&1 |
  2059. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2060. *${as_nl}ac_space=\ *)
  2061. sed -n \
  2062. "s/'\''/'\''\\\\'\'''\''/g;
  2063. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2064. ;; #(
  2065. *)
  2066. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2067. ;;
  2068. esac |
  2069. sort
  2070. )
  2071. echo
  2072. $as_echo "## ----------------- ##
  2073. ## Output variables. ##
  2074. ## ----------------- ##"
  2075. echo
  2076. for ac_var in $ac_subst_vars
  2077. do
  2078. eval ac_val=\$$ac_var
  2079. case $ac_val in
  2080. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2081. esac
  2082. $as_echo "$ac_var='\''$ac_val'\''"
  2083. done | sort
  2084. echo
  2085. if test -n "$ac_subst_files"; then
  2086. $as_echo "## ------------------- ##
  2087. ## File substitutions. ##
  2088. ## ------------------- ##"
  2089. echo
  2090. for ac_var in $ac_subst_files
  2091. do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in
  2094. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2095. esac
  2096. $as_echo "$ac_var='\''$ac_val'\''"
  2097. done | sort
  2098. echo
  2099. fi
  2100. if test -s confdefs.h; then
  2101. $as_echo "## ----------- ##
  2102. ## confdefs.h. ##
  2103. ## ----------- ##"
  2104. echo
  2105. cat confdefs.h
  2106. echo
  2107. fi
  2108. test "$ac_signal" != 0 &&
  2109. $as_echo "$as_me: caught signal $ac_signal"
  2110. $as_echo "$as_me: exit $exit_status"
  2111. } >&5
  2112. rm -f core *.core core.conftest.* &&
  2113. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2114. exit $exit_status
  2115. ' 0
  2116. for ac_signal in 1 2 13 15; do
  2117. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2118. done
  2119. ac_signal=0
  2120. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2121. rm -f -r conftest* confdefs.h
  2122. $as_echo "/* confdefs.h */" > confdefs.h
  2123. # Predefined preprocessor variables.
  2124. cat >>confdefs.h <<_ACEOF
  2125. #define PACKAGE_NAME "$PACKAGE_NAME"
  2126. _ACEOF
  2127. cat >>confdefs.h <<_ACEOF
  2128. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2129. _ACEOF
  2130. cat >>confdefs.h <<_ACEOF
  2131. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2132. _ACEOF
  2133. cat >>confdefs.h <<_ACEOF
  2134. #define PACKAGE_STRING "$PACKAGE_STRING"
  2135. _ACEOF
  2136. cat >>confdefs.h <<_ACEOF
  2137. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2138. _ACEOF
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define PACKAGE_URL "$PACKAGE_URL"
  2141. _ACEOF
  2142. # Let the site file select an alternate cache file if it wants to.
  2143. # Prefer an explicitly selected file to automatically selected ones.
  2144. ac_site_file1=NONE
  2145. ac_site_file2=NONE
  2146. if test -n "$CONFIG_SITE"; then
  2147. # We do not want a PATH search for config.site.
  2148. case $CONFIG_SITE in #((
  2149. -*) ac_site_file1=./$CONFIG_SITE;;
  2150. */*) ac_site_file1=$CONFIG_SITE;;
  2151. *) ac_site_file1=./$CONFIG_SITE;;
  2152. esac
  2153. elif test "x$prefix" != xNONE; then
  2154. ac_site_file1=$prefix/share/config.site
  2155. ac_site_file2=$prefix/etc/config.site
  2156. else
  2157. ac_site_file1=$ac_default_prefix/share/config.site
  2158. ac_site_file2=$ac_default_prefix/etc/config.site
  2159. fi
  2160. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2161. do
  2162. test "x$ac_site_file" = xNONE && continue
  2163. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2165. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2166. sed 's/^/| /' "$ac_site_file" >&5
  2167. . "$ac_site_file" \
  2168. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2170. as_fn_error $? "failed to load site script $ac_site_file
  2171. See \`config.log' for more details" "$LINENO" 5; }
  2172. fi
  2173. done
  2174. if test -r "$cache_file"; then
  2175. # Some versions of bash will fail to source /dev/null (special files
  2176. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2177. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2179. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2180. case $cache_file in
  2181. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2182. *) . "./$cache_file";;
  2183. esac
  2184. fi
  2185. else
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2187. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2188. >$cache_file
  2189. fi
  2190. # Check that the precious variables saved in the cache have kept the same
  2191. # value.
  2192. ac_cache_corrupted=false
  2193. for ac_var in $ac_precious_vars; do
  2194. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2195. eval ac_new_set=\$ac_env_${ac_var}_set
  2196. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2197. eval ac_new_val=\$ac_env_${ac_var}_value
  2198. case $ac_old_set,$ac_new_set in
  2199. set,)
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2201. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2202. ac_cache_corrupted=: ;;
  2203. ,set)
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2205. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2206. ac_cache_corrupted=: ;;
  2207. ,);;
  2208. *)
  2209. if test "x$ac_old_val" != "x$ac_new_val"; then
  2210. # differences in whitespace do not lead to failure.
  2211. ac_old_val_w=`echo x $ac_old_val`
  2212. ac_new_val_w=`echo x $ac_new_val`
  2213. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2215. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2216. ac_cache_corrupted=:
  2217. else
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2219. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2220. eval $ac_var=\$ac_old_val
  2221. fi
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2223. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2225. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2226. fi;;
  2227. esac
  2228. # Pass precious variables to config.status.
  2229. if test "$ac_new_set" = set; then
  2230. case $ac_new_val in
  2231. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2232. *) ac_arg=$ac_var=$ac_new_val ;;
  2233. esac
  2234. case " $ac_configure_args " in
  2235. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2236. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2237. esac
  2238. fi
  2239. done
  2240. if $ac_cache_corrupted; then
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2244. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2245. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2246. fi
  2247. ## -------------------- ##
  2248. ## Main body of script. ##
  2249. ## -------------------- ##
  2250. ac_ext=c
  2251. ac_cpp='$CPP $CPPFLAGS'
  2252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2253. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2254. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2255. # Follow VCMI_VERSION in GameConstants.h
  2256. am__api_version='1.11'
  2257. ac_aux_dir=
  2258. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2259. if test -f "$ac_dir/install-sh"; then
  2260. ac_aux_dir=$ac_dir
  2261. ac_install_sh="$ac_aux_dir/install-sh -c"
  2262. break
  2263. elif test -f "$ac_dir/install.sh"; then
  2264. ac_aux_dir=$ac_dir
  2265. ac_install_sh="$ac_aux_dir/install.sh -c"
  2266. break
  2267. elif test -f "$ac_dir/shtool"; then
  2268. ac_aux_dir=$ac_dir
  2269. ac_install_sh="$ac_aux_dir/shtool install -c"
  2270. break
  2271. fi
  2272. done
  2273. if test -z "$ac_aux_dir"; then
  2274. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2275. fi
  2276. # These three variables are undocumented and unsupported,
  2277. # and are intended to be withdrawn in a future Autoconf release.
  2278. # They can cause serious problems if a builder's source tree is in a directory
  2279. # whose full name contains unusual characters.
  2280. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2281. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2282. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2283. # Find a good install program. We prefer a C program (faster),
  2284. # so one script is as good as another. But avoid the broken or
  2285. # incompatible versions:
  2286. # SysV /etc/install, /usr/sbin/install
  2287. # SunOS /usr/etc/install
  2288. # IRIX /sbin/install
  2289. # AIX /bin/install
  2290. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2291. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2292. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2293. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2294. # OS/2's system install, which has a completely different semantic
  2295. # ./install, which can be erroneously created by make from ./install.sh.
  2296. # Reject install programs that cannot install multiple files.
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2298. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2299. if test -z "$INSTALL"; then
  2300. if ${ac_cv_path_install+:} false; then :
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. # Account for people who put trailing slashes in PATH elements.
  2309. case $as_dir/ in #((
  2310. ./ | .// | /[cC]/* | \
  2311. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2312. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2313. /usr/ucb/* ) ;;
  2314. *)
  2315. # OSF1 and SCO ODT 3.0 have their own names for install.
  2316. # Don't use installbsd from OSF since it installs stuff as root
  2317. # by default.
  2318. for ac_prog in ginstall scoinst install; do
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2321. if test $ac_prog = install &&
  2322. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2323. # AIX install. It has an incompatible calling convention.
  2324. :
  2325. elif test $ac_prog = install &&
  2326. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2327. # program-specific install script used by HP pwplus--don't use.
  2328. :
  2329. else
  2330. rm -rf conftest.one conftest.two conftest.dir
  2331. echo one > conftest.one
  2332. echo two > conftest.two
  2333. mkdir conftest.dir
  2334. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2335. test -s conftest.one && test -s conftest.two &&
  2336. test -s conftest.dir/conftest.one &&
  2337. test -s conftest.dir/conftest.two
  2338. then
  2339. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2340. break 3
  2341. fi
  2342. fi
  2343. fi
  2344. done
  2345. done
  2346. ;;
  2347. esac
  2348. done
  2349. IFS=$as_save_IFS
  2350. rm -rf conftest.one conftest.two conftest.dir
  2351. fi
  2352. if test "${ac_cv_path_install+set}" = set; then
  2353. INSTALL=$ac_cv_path_install
  2354. else
  2355. # As a last resort, use the slow shell script. Don't cache a
  2356. # value for INSTALL within a source directory, because that will
  2357. # break other packages using the cache if that directory is
  2358. # removed, or if the value is a relative name.
  2359. INSTALL=$ac_install_sh
  2360. fi
  2361. fi
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2363. $as_echo "$INSTALL" >&6; }
  2364. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2365. # It thinks the first close brace ends the variable substitution.
  2366. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2367. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2368. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2370. $as_echo_n "checking whether build environment is sane... " >&6; }
  2371. # Just in case
  2372. sleep 1
  2373. echo timestamp > conftest.file
  2374. # Reject unsafe characters in $srcdir or the absolute working directory
  2375. # name. Accept space and tab only in the latter.
  2376. am_lf='
  2377. '
  2378. case `pwd` in
  2379. *[\\\"\#\$\&\'\`$am_lf]*)
  2380. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2381. esac
  2382. case $srcdir in
  2383. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2384. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2385. esac
  2386. # Do `set' in a subshell so we don't clobber the current shell's
  2387. # arguments. Must try -L first in case configure is actually a
  2388. # symlink; some systems play weird games with the mod time of symlinks
  2389. # (eg FreeBSD returns the mod time of the symlink's containing
  2390. # directory).
  2391. if (
  2392. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2393. if test "$*" = "X"; then
  2394. # -L didn't work.
  2395. set X `ls -t "$srcdir/configure" conftest.file`
  2396. fi
  2397. rm -f conftest.file
  2398. if test "$*" != "X $srcdir/configure conftest.file" \
  2399. && test "$*" != "X conftest.file $srcdir/configure"; then
  2400. # If neither matched, then we have a broken ls. This can happen
  2401. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2402. # broken ls alias from the environment. This has actually
  2403. # happened. Such a system could not be considered "sane".
  2404. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2405. alias in your environment" "$LINENO" 5
  2406. fi
  2407. test "$2" = conftest.file
  2408. )
  2409. then
  2410. # Ok.
  2411. :
  2412. else
  2413. as_fn_error $? "newly created file is older than distributed files!
  2414. Check your system clock" "$LINENO" 5
  2415. fi
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2417. $as_echo "yes" >&6; }
  2418. test "$program_prefix" != NONE &&
  2419. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2420. # Use a double $ so make ignores it.
  2421. test "$program_suffix" != NONE &&
  2422. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2423. # Double any \ or $.
  2424. # By default was `s,x,x', remove it if useless.
  2425. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2426. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2427. # expand $ac_aux_dir to an absolute path
  2428. am_aux_dir=`cd $ac_aux_dir && pwd`
  2429. if test x"${MISSING+set}" != xset; then
  2430. case $am_aux_dir in
  2431. *\ * | *\ *)
  2432. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2433. *)
  2434. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2435. esac
  2436. fi
  2437. # Use eval to expand $SHELL
  2438. if eval "$MISSING --run true"; then
  2439. am_missing_run="$MISSING --run "
  2440. else
  2441. am_missing_run=
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2443. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2444. fi
  2445. if test x"${install_sh}" != xset; then
  2446. case $am_aux_dir in
  2447. *\ * | *\ *)
  2448. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2449. *)
  2450. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2451. esac
  2452. fi
  2453. # Installed binaries are usually stripped using `strip' when the user
  2454. # run `make install-strip'. However `strip' might not be the right
  2455. # tool to use in cross-compilation environments, therefore Automake
  2456. # will honor the `STRIP' environment variable to overrule this program.
  2457. if test "$cross_compiling" != no; then
  2458. if test -n "$ac_tool_prefix"; then
  2459. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2460. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2462. $as_echo_n "checking for $ac_word... " >&6; }
  2463. if ${ac_cv_prog_STRIP+:} false; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. if test -n "$STRIP"; then
  2467. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2468. else
  2469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2470. for as_dir in $PATH
  2471. do
  2472. IFS=$as_save_IFS
  2473. test -z "$as_dir" && as_dir=.
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2476. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2478. break 2
  2479. fi
  2480. done
  2481. done
  2482. IFS=$as_save_IFS
  2483. fi
  2484. fi
  2485. STRIP=$ac_cv_prog_STRIP
  2486. if test -n "$STRIP"; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2488. $as_echo "$STRIP" >&6; }
  2489. else
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2491. $as_echo "no" >&6; }
  2492. fi
  2493. fi
  2494. if test -z "$ac_cv_prog_STRIP"; then
  2495. ac_ct_STRIP=$STRIP
  2496. # Extract the first word of "strip", so it can be a program name with args.
  2497. set dummy strip; ac_word=$2
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2499. $as_echo_n "checking for $ac_word... " >&6; }
  2500. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2501. $as_echo_n "(cached) " >&6
  2502. else
  2503. if test -n "$ac_ct_STRIP"; then
  2504. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2505. else
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. for ac_exec_ext in '' $ac_executable_extensions; do
  2512. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2513. ac_cv_prog_ac_ct_STRIP="strip"
  2514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2515. break 2
  2516. fi
  2517. done
  2518. done
  2519. IFS=$as_save_IFS
  2520. fi
  2521. fi
  2522. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2523. if test -n "$ac_ct_STRIP"; then
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2525. $as_echo "$ac_ct_STRIP" >&6; }
  2526. else
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2528. $as_echo "no" >&6; }
  2529. fi
  2530. if test "x$ac_ct_STRIP" = x; then
  2531. STRIP=":"
  2532. else
  2533. case $cross_compiling:$ac_tool_warned in
  2534. yes:)
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2537. ac_tool_warned=yes ;;
  2538. esac
  2539. STRIP=$ac_ct_STRIP
  2540. fi
  2541. else
  2542. STRIP="$ac_cv_prog_STRIP"
  2543. fi
  2544. fi
  2545. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2547. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2548. if test -z "$MKDIR_P"; then
  2549. if ${ac_cv_path_mkdir+:} false; then :
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2553. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2554. do
  2555. IFS=$as_save_IFS
  2556. test -z "$as_dir" && as_dir=.
  2557. for ac_prog in mkdir gmkdir; do
  2558. for ac_exec_ext in '' $ac_executable_extensions; do
  2559. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2560. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2561. 'mkdir (GNU coreutils) '* | \
  2562. 'mkdir (coreutils) '* | \
  2563. 'mkdir (fileutils) '4.1*)
  2564. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2565. break 3;;
  2566. esac
  2567. done
  2568. done
  2569. done
  2570. IFS=$as_save_IFS
  2571. fi
  2572. test -d ./--version && rmdir ./--version
  2573. if test "${ac_cv_path_mkdir+set}" = set; then
  2574. MKDIR_P="$ac_cv_path_mkdir -p"
  2575. else
  2576. # As a last resort, use the slow shell script. Don't cache a
  2577. # value for MKDIR_P within a source directory, because that will
  2578. # break other packages using the cache if that directory is
  2579. # removed, or if the value is a relative name.
  2580. MKDIR_P="$ac_install_sh -d"
  2581. fi
  2582. fi
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2584. $as_echo "$MKDIR_P" >&6; }
  2585. mkdir_p="$MKDIR_P"
  2586. case $mkdir_p in
  2587. [\\/$]* | ?:[\\/]*) ;;
  2588. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2589. esac
  2590. for ac_prog in gawk mawk nawk awk
  2591. do
  2592. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2593. set dummy $ac_prog; ac_word=$2
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2595. $as_echo_n "checking for $ac_word... " >&6; }
  2596. if ${ac_cv_prog_AWK+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. if test -n "$AWK"; then
  2600. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2601. else
  2602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2603. for as_dir in $PATH
  2604. do
  2605. IFS=$as_save_IFS
  2606. test -z "$as_dir" && as_dir=.
  2607. for ac_exec_ext in '' $ac_executable_extensions; do
  2608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2609. ac_cv_prog_AWK="$ac_prog"
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2611. break 2
  2612. fi
  2613. done
  2614. done
  2615. IFS=$as_save_IFS
  2616. fi
  2617. fi
  2618. AWK=$ac_cv_prog_AWK
  2619. if test -n "$AWK"; then
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2621. $as_echo "$AWK" >&6; }
  2622. else
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2624. $as_echo "no" >&6; }
  2625. fi
  2626. test -n "$AWK" && break
  2627. done
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2629. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2630. set x ${MAKE-make}
  2631. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2632. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. cat >conftest.make <<\_ACEOF
  2636. SHELL = /bin/sh
  2637. all:
  2638. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2639. _ACEOF
  2640. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2641. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2642. *@@@%%%=?*=@@@%%%*)
  2643. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2644. *)
  2645. eval ac_cv_prog_make_${ac_make}_set=no;;
  2646. esac
  2647. rm -f conftest.make
  2648. fi
  2649. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2651. $as_echo "yes" >&6; }
  2652. SET_MAKE=
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. SET_MAKE="MAKE=${MAKE-make}"
  2657. fi
  2658. rm -rf .tst 2>/dev/null
  2659. mkdir .tst 2>/dev/null
  2660. if test -d .tst; then
  2661. am__leading_dot=.
  2662. else
  2663. am__leading_dot=_
  2664. fi
  2665. rmdir .tst 2>/dev/null
  2666. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2667. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2668. # is not polluted with repeated "-I."
  2669. am__isrc=' -I$(srcdir)'
  2670. # test to see if srcdir already configured
  2671. if test -f $srcdir/config.status; then
  2672. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2673. fi
  2674. fi
  2675. # test whether we have cygpath
  2676. if test -z "$CYGPATH_W"; then
  2677. if (cygpath --version) >/dev/null 2>/dev/null; then
  2678. CYGPATH_W='cygpath -w'
  2679. else
  2680. CYGPATH_W=echo
  2681. fi
  2682. fi
  2683. # Define the identity of the package.
  2684. PACKAGE='vcmi'
  2685. VERSION='0.88b'
  2686. cat >>confdefs.h <<_ACEOF
  2687. #define PACKAGE "$PACKAGE"
  2688. _ACEOF
  2689. cat >>confdefs.h <<_ACEOF
  2690. #define VERSION "$VERSION"
  2691. _ACEOF
  2692. # Some tools Automake needs.
  2693. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2694. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2695. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2696. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2697. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2698. # We need awk for the "check" target. The system "awk" is bad on
  2699. # some platforms.
  2700. # Always define AMTAR for backward compatibility.
  2701. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2702. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2703. # Checks for build toolchain
  2704. ac_ext=cpp
  2705. ac_cpp='$CXXCPP $CPPFLAGS'
  2706. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2707. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2708. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2709. ac_ext=cpp
  2710. ac_cpp='$CXXCPP $CPPFLAGS'
  2711. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2712. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2713. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2714. if test -z "$CXX"; then
  2715. if test -n "$CCC"; then
  2716. CXX=$CCC
  2717. else
  2718. if test -n "$ac_tool_prefix"; then
  2719. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2720. do
  2721. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2722. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2724. $as_echo_n "checking for $ac_word... " >&6; }
  2725. if ${ac_cv_prog_CXX+:} false; then :
  2726. $as_echo_n "(cached) " >&6
  2727. else
  2728. if test -n "$CXX"; then
  2729. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2730. else
  2731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2732. for as_dir in $PATH
  2733. do
  2734. IFS=$as_save_IFS
  2735. test -z "$as_dir" && as_dir=.
  2736. for ac_exec_ext in '' $ac_executable_extensions; do
  2737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2738. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2740. break 2
  2741. fi
  2742. done
  2743. done
  2744. IFS=$as_save_IFS
  2745. fi
  2746. fi
  2747. CXX=$ac_cv_prog_CXX
  2748. if test -n "$CXX"; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2750. $as_echo "$CXX" >&6; }
  2751. else
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2753. $as_echo "no" >&6; }
  2754. fi
  2755. test -n "$CXX" && break
  2756. done
  2757. fi
  2758. if test -z "$CXX"; then
  2759. ac_ct_CXX=$CXX
  2760. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2761. do
  2762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2763. set dummy $ac_prog; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$ac_ct_CXX"; then
  2770. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2779. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2789. if test -n "$ac_ct_CXX"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2791. $as_echo "$ac_ct_CXX" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. test -n "$ac_ct_CXX" && break
  2797. done
  2798. if test "x$ac_ct_CXX" = x; then
  2799. CXX="g++"
  2800. else
  2801. case $cross_compiling:$ac_tool_warned in
  2802. yes:)
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2805. ac_tool_warned=yes ;;
  2806. esac
  2807. CXX=$ac_ct_CXX
  2808. fi
  2809. fi
  2810. fi
  2811. fi
  2812. # Provide some information about the compiler.
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2814. set X $ac_compile
  2815. ac_compiler=$2
  2816. for ac_option in --version -v -V -qversion; do
  2817. { { ac_try="$ac_compiler $ac_option >&5"
  2818. case "(($ac_try" in
  2819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820. *) ac_try_echo=$ac_try;;
  2821. esac
  2822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2823. $as_echo "$ac_try_echo"; } >&5
  2824. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2825. ac_status=$?
  2826. if test -s conftest.err; then
  2827. sed '10a\
  2828. ... rest of stderr output deleted ...
  2829. 10q' conftest.err >conftest.er1
  2830. cat conftest.er1 >&5
  2831. fi
  2832. rm -f conftest.er1 conftest.err
  2833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2834. test $ac_status = 0; }
  2835. done
  2836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2837. /* end confdefs.h. */
  2838. int
  2839. main ()
  2840. {
  2841. ;
  2842. return 0;
  2843. }
  2844. _ACEOF
  2845. ac_clean_files_save=$ac_clean_files
  2846. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2847. # Try to create an executable without -o first, disregard a.out.
  2848. # It will help us diagnose broken compilers, and finding out an intuition
  2849. # of exeext.
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2851. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2852. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2853. # The possible output files:
  2854. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2855. ac_rmfiles=
  2856. for ac_file in $ac_files
  2857. do
  2858. case $ac_file in
  2859. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2860. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2861. esac
  2862. done
  2863. rm -f $ac_rmfiles
  2864. if { { ac_try="$ac_link_default"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2870. $as_echo "$ac_try_echo"; } >&5
  2871. (eval "$ac_link_default") 2>&5
  2872. ac_status=$?
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2874. test $ac_status = 0; }; then :
  2875. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2876. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2877. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2878. # so that the user can short-circuit this test for compilers unknown to
  2879. # Autoconf.
  2880. for ac_file in $ac_files ''
  2881. do
  2882. test -f "$ac_file" || continue
  2883. case $ac_file in
  2884. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2885. ;;
  2886. [ab].out )
  2887. # We found the default executable, but exeext='' is most
  2888. # certainly right.
  2889. break;;
  2890. *.* )
  2891. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2892. then :; else
  2893. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2894. fi
  2895. # We set ac_cv_exeext here because the later test for it is not
  2896. # safe: cross compilers may not add the suffix if given an `-o'
  2897. # argument, so we may need to know it at that point already.
  2898. # Even if this section looks crufty: it has the advantage of
  2899. # actually working.
  2900. break;;
  2901. * )
  2902. break;;
  2903. esac
  2904. done
  2905. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2906. else
  2907. ac_file=''
  2908. fi
  2909. if test -z "$ac_file"; then :
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. $as_echo "$as_me: failed program was:" >&5
  2913. sed 's/^/| /' conftest.$ac_ext >&5
  2914. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2915. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2916. as_fn_error 77 "C++ compiler cannot create executables
  2917. See \`config.log' for more details" "$LINENO" 5; }
  2918. else
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2920. $as_echo "yes" >&6; }
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2923. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2925. $as_echo "$ac_file" >&6; }
  2926. ac_exeext=$ac_cv_exeext
  2927. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2928. ac_clean_files=$ac_clean_files_save
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2930. $as_echo_n "checking for suffix of executables... " >&6; }
  2931. if { { ac_try="$ac_link"
  2932. case "(($ac_try" in
  2933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2934. *) ac_try_echo=$ac_try;;
  2935. esac
  2936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2937. $as_echo "$ac_try_echo"; } >&5
  2938. (eval "$ac_link") 2>&5
  2939. ac_status=$?
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2941. test $ac_status = 0; }; then :
  2942. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2943. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2944. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2945. # `rm'.
  2946. for ac_file in conftest.exe conftest conftest.*; do
  2947. test -f "$ac_file" || continue
  2948. case $ac_file in
  2949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2950. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2951. break;;
  2952. * ) break;;
  2953. esac
  2954. done
  2955. else
  2956. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2957. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2958. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2959. See \`config.log' for more details" "$LINENO" 5; }
  2960. fi
  2961. rm -f conftest conftest$ac_cv_exeext
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2963. $as_echo "$ac_cv_exeext" >&6; }
  2964. rm -f conftest.$ac_ext
  2965. EXEEXT=$ac_cv_exeext
  2966. ac_exeext=$EXEEXT
  2967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2968. /* end confdefs.h. */
  2969. #include <stdio.h>
  2970. int
  2971. main ()
  2972. {
  2973. FILE *f = fopen ("conftest.out", "w");
  2974. return ferror (f) || fclose (f) != 0;
  2975. ;
  2976. return 0;
  2977. }
  2978. _ACEOF
  2979. ac_clean_files="$ac_clean_files conftest.out"
  2980. # Check that the compiler produces executables we can run. If not, either
  2981. # the compiler is broken, or we cross compile.
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2983. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2984. if test "$cross_compiling" != yes; then
  2985. { { ac_try="$ac_link"
  2986. case "(($ac_try" in
  2987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2988. *) ac_try_echo=$ac_try;;
  2989. esac
  2990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2991. $as_echo "$ac_try_echo"; } >&5
  2992. (eval "$ac_link") 2>&5
  2993. ac_status=$?
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2995. test $ac_status = 0; }
  2996. if { ac_try='./conftest$ac_cv_exeext'
  2997. { { case "(($ac_try" in
  2998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2999. *) ac_try_echo=$ac_try;;
  3000. esac
  3001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3002. $as_echo "$ac_try_echo"; } >&5
  3003. (eval "$ac_try") 2>&5
  3004. ac_status=$?
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3006. test $ac_status = 0; }; }; then
  3007. cross_compiling=no
  3008. else
  3009. if test "$cross_compiling" = maybe; then
  3010. cross_compiling=yes
  3011. else
  3012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3014. as_fn_error $? "cannot run C++ compiled programs.
  3015. If you meant to cross compile, use \`--host'.
  3016. See \`config.log' for more details" "$LINENO" 5; }
  3017. fi
  3018. fi
  3019. fi
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3021. $as_echo "$cross_compiling" >&6; }
  3022. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3023. ac_clean_files=$ac_clean_files_save
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3025. $as_echo_n "checking for suffix of object files... " >&6; }
  3026. if ${ac_cv_objext+:} false; then :
  3027. $as_echo_n "(cached) " >&6
  3028. else
  3029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3030. /* end confdefs.h. */
  3031. int
  3032. main ()
  3033. {
  3034. ;
  3035. return 0;
  3036. }
  3037. _ACEOF
  3038. rm -f conftest.o conftest.obj
  3039. if { { ac_try="$ac_compile"
  3040. case "(($ac_try" in
  3041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3042. *) ac_try_echo=$ac_try;;
  3043. esac
  3044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3045. $as_echo "$ac_try_echo"; } >&5
  3046. (eval "$ac_compile") 2>&5
  3047. ac_status=$?
  3048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3049. test $ac_status = 0; }; then :
  3050. for ac_file in conftest.o conftest.obj conftest.*; do
  3051. test -f "$ac_file" || continue;
  3052. case $ac_file in
  3053. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3054. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3055. break;;
  3056. esac
  3057. done
  3058. else
  3059. $as_echo "$as_me: failed program was:" >&5
  3060. sed 's/^/| /' conftest.$ac_ext >&5
  3061. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3063. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. fi
  3066. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3069. $as_echo "$ac_cv_objext" >&6; }
  3070. OBJEXT=$ac_cv_objext
  3071. ac_objext=$OBJEXT
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3073. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3074. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. #ifndef __GNUC__
  3083. choke me
  3084. #endif
  3085. ;
  3086. return 0;
  3087. }
  3088. _ACEOF
  3089. if ac_fn_cxx_try_compile "$LINENO"; then :
  3090. ac_compiler_gnu=yes
  3091. else
  3092. ac_compiler_gnu=no
  3093. fi
  3094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3095. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3098. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3099. if test $ac_compiler_gnu = yes; then
  3100. GXX=yes
  3101. else
  3102. GXX=
  3103. fi
  3104. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3105. ac_save_CXXFLAGS=$CXXFLAGS
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3107. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3108. if ${ac_cv_prog_cxx_g+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3112. ac_cxx_werror_flag=yes
  3113. ac_cv_prog_cxx_g=no
  3114. CXXFLAGS="-g"
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. if ac_fn_cxx_try_compile "$LINENO"; then :
  3125. ac_cv_prog_cxx_g=yes
  3126. else
  3127. CXXFLAGS=""
  3128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. /* end confdefs.h. */
  3130. int
  3131. main ()
  3132. {
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. if ac_fn_cxx_try_compile "$LINENO"; then :
  3138. else
  3139. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3140. CXXFLAGS="-g"
  3141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3142. /* end confdefs.h. */
  3143. int
  3144. main ()
  3145. {
  3146. ;
  3147. return 0;
  3148. }
  3149. _ACEOF
  3150. if ac_fn_cxx_try_compile "$LINENO"; then :
  3151. ac_cv_prog_cxx_g=yes
  3152. fi
  3153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3154. fi
  3155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3161. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3162. if test "$ac_test_CXXFLAGS" = set; then
  3163. CXXFLAGS=$ac_save_CXXFLAGS
  3164. elif test $ac_cv_prog_cxx_g = yes; then
  3165. if test "$GXX" = yes; then
  3166. CXXFLAGS="-g -O2"
  3167. else
  3168. CXXFLAGS="-g"
  3169. fi
  3170. else
  3171. if test "$GXX" = yes; then
  3172. CXXFLAGS="-O2"
  3173. else
  3174. CXXFLAGS=
  3175. fi
  3176. fi
  3177. ac_ext=cpp
  3178. ac_cpp='$CXXCPP $CPPFLAGS'
  3179. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3180. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3181. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3182. DEPDIR="${am__leading_dot}deps"
  3183. ac_config_commands="$ac_config_commands depfiles"
  3184. am_make=${MAKE-make}
  3185. cat > confinc << 'END'
  3186. am__doit:
  3187. @echo this is the am__doit target
  3188. .PHONY: am__doit
  3189. END
  3190. # If we don't find an include directive, just comment out the code.
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3192. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3193. am__include="#"
  3194. am__quote=
  3195. _am_result=none
  3196. # First try GNU make style include.
  3197. echo "include confinc" > confmf
  3198. # Ignore all kinds of additional output from `make'.
  3199. case `$am_make -s -f confmf 2> /dev/null` in #(
  3200. *the\ am__doit\ target*)
  3201. am__include=include
  3202. am__quote=
  3203. _am_result=GNU
  3204. ;;
  3205. esac
  3206. # Now try BSD make style include.
  3207. if test "$am__include" = "#"; then
  3208. echo '.include "confinc"' > confmf
  3209. case `$am_make -s -f confmf 2> /dev/null` in #(
  3210. *the\ am__doit\ target*)
  3211. am__include=.include
  3212. am__quote="\""
  3213. _am_result=BSD
  3214. ;;
  3215. esac
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3218. $as_echo "$_am_result" >&6; }
  3219. rm -f confinc confmf
  3220. # Check whether --enable-dependency-tracking was given.
  3221. if test "${enable_dependency_tracking+set}" = set; then :
  3222. enableval=$enable_dependency_tracking;
  3223. fi
  3224. if test "x$enable_dependency_tracking" != xno; then
  3225. am_depcomp="$ac_aux_dir/depcomp"
  3226. AMDEPBACKSLASH='\'
  3227. fi
  3228. if test "x$enable_dependency_tracking" != xno; then
  3229. AMDEP_TRUE=
  3230. AMDEP_FALSE='#'
  3231. else
  3232. AMDEP_TRUE='#'
  3233. AMDEP_FALSE=
  3234. fi
  3235. depcc="$CXX" am_compiler_list=
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3237. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3238. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3242. # We make a subdir and do the tests there. Otherwise we can end up
  3243. # making bogus files that we don't know about and never remove. For
  3244. # instance it was reported that on HP-UX the gcc test will end up
  3245. # making a dummy file named `D' -- because `-MD' means `put the output
  3246. # in D'.
  3247. mkdir conftest.dir
  3248. # Copy depcomp to subdir because otherwise we won't find it if we're
  3249. # using a relative directory.
  3250. cp "$am_depcomp" conftest.dir
  3251. cd conftest.dir
  3252. # We will build objects and dependencies in a subdirectory because
  3253. # it helps to detect inapplicable dependency modes. For instance
  3254. # both Tru64's cc and ICC support -MD to output dependencies as a
  3255. # side effect of compilation, but ICC will put the dependencies in
  3256. # the current directory while Tru64 will put them in the object
  3257. # directory.
  3258. mkdir sub
  3259. am_cv_CXX_dependencies_compiler_type=none
  3260. if test "$am_compiler_list" = ""; then
  3261. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3262. fi
  3263. am__universal=false
  3264. case " $depcc " in #(
  3265. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3266. esac
  3267. for depmode in $am_compiler_list; do
  3268. # Setup a source with many dependencies, because some compilers
  3269. # like to wrap large dependency lists on column 80 (with \), and
  3270. # we should not choose a depcomp mode which is confused by this.
  3271. #
  3272. # We need to recreate these files for each test, as the compiler may
  3273. # overwrite some of them when testing with obscure command lines.
  3274. # This happens at least with the AIX C compiler.
  3275. : > sub/conftest.c
  3276. for i in 1 2 3 4 5 6; do
  3277. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3278. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3279. # Solaris 8's {/usr,}/bin/sh.
  3280. touch sub/conftst$i.h
  3281. done
  3282. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3283. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3284. # mode. It turns out that the SunPro C++ compiler does not properly
  3285. # handle `-M -o', and we need to detect this. Also, some Intel
  3286. # versions had trouble with output in subdirs
  3287. am__obj=sub/conftest.${OBJEXT-o}
  3288. am__minus_obj="-o $am__obj"
  3289. case $depmode in
  3290. gcc)
  3291. # This depmode causes a compiler race in universal mode.
  3292. test "$am__universal" = false || continue
  3293. ;;
  3294. nosideeffect)
  3295. # after this tag, mechanisms are not by side-effect, so they'll
  3296. # only be used when explicitly requested
  3297. if test "x$enable_dependency_tracking" = xyes; then
  3298. continue
  3299. else
  3300. break
  3301. fi
  3302. ;;
  3303. msvisualcpp | msvcmsys)
  3304. # This compiler won't grok `-c -o', but also, the minuso test has
  3305. # not run yet. These depmodes are late enough in the game, and
  3306. # so weak that their functioning should not be impacted.
  3307. am__obj=conftest.${OBJEXT-o}
  3308. am__minus_obj=
  3309. ;;
  3310. none) break ;;
  3311. esac
  3312. if depmode=$depmode \
  3313. source=sub/conftest.c object=$am__obj \
  3314. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3315. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3316. >/dev/null 2>conftest.err &&
  3317. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3318. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3319. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3320. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3321. # icc doesn't choke on unknown options, it will just issue warnings
  3322. # or remarks (even with -Werror). So we grep stderr for any message
  3323. # that says an option was ignored or not supported.
  3324. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3325. # icc: Command line warning: ignoring option '-M'; no argument required
  3326. # The diagnosis changed in icc 8.0:
  3327. # icc: Command line remark: option '-MP' not supported
  3328. if (grep 'ignoring option' conftest.err ||
  3329. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3330. am_cv_CXX_dependencies_compiler_type=$depmode
  3331. break
  3332. fi
  3333. fi
  3334. done
  3335. cd ..
  3336. rm -rf conftest.dir
  3337. else
  3338. am_cv_CXX_dependencies_compiler_type=none
  3339. fi
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3342. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3343. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3344. if
  3345. test "x$enable_dependency_tracking" != xno \
  3346. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3347. am__fastdepCXX_TRUE=
  3348. am__fastdepCXX_FALSE='#'
  3349. else
  3350. am__fastdepCXX_TRUE='#'
  3351. am__fastdepCXX_FALSE=
  3352. fi
  3353. # Check whether --enable-shared was given.
  3354. if test "${enable_shared+set}" = set; then :
  3355. enableval=$enable_shared; p=${PACKAGE-default}
  3356. case $enableval in
  3357. yes) enable_shared=yes ;;
  3358. no) enable_shared=no ;;
  3359. *)
  3360. enable_shared=no
  3361. # Look at the argument we got. We use all the common list separators.
  3362. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3363. for pkg in $enableval; do
  3364. IFS="$lt_save_ifs"
  3365. if test "X$pkg" = "X$p"; then
  3366. enable_shared=yes
  3367. fi
  3368. done
  3369. IFS="$lt_save_ifs"
  3370. ;;
  3371. esac
  3372. else
  3373. enable_shared=yes
  3374. fi
  3375. # Check whether --enable-static was given.
  3376. if test "${enable_static+set}" = set; then :
  3377. enableval=$enable_static; p=${PACKAGE-default}
  3378. case $enableval in
  3379. yes) enable_static=yes ;;
  3380. no) enable_static=no ;;
  3381. *)
  3382. enable_static=no
  3383. # Look at the argument we got. We use all the common list separators.
  3384. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3385. for pkg in $enableval; do
  3386. IFS="$lt_save_ifs"
  3387. if test "X$pkg" = "X$p"; then
  3388. enable_static=yes
  3389. fi
  3390. done
  3391. IFS="$lt_save_ifs"
  3392. ;;
  3393. esac
  3394. else
  3395. enable_static=no
  3396. fi
  3397. case `pwd` in
  3398. *\ * | *\ *)
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3400. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3401. esac
  3402. macro_version='2.4'
  3403. macro_revision='1.3293'
  3404. ltmain="$ac_aux_dir/ltmain.sh"
  3405. # Make sure we can run config.sub.
  3406. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3407. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3409. $as_echo_n "checking build system type... " >&6; }
  3410. if ${ac_cv_build+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. ac_build_alias=$build_alias
  3414. test "x$ac_build_alias" = x &&
  3415. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3416. test "x$ac_build_alias" = x &&
  3417. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3418. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3419. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3420. fi
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3422. $as_echo "$ac_cv_build" >&6; }
  3423. case $ac_cv_build in
  3424. *-*-*) ;;
  3425. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3426. esac
  3427. build=$ac_cv_build
  3428. ac_save_IFS=$IFS; IFS='-'
  3429. set x $ac_cv_build
  3430. shift
  3431. build_cpu=$1
  3432. build_vendor=$2
  3433. shift; shift
  3434. # Remember, the first character of IFS is used to create $*,
  3435. # except with old shells:
  3436. build_os=$*
  3437. IFS=$ac_save_IFS
  3438. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3440. $as_echo_n "checking host system type... " >&6; }
  3441. if ${ac_cv_host+:} false; then :
  3442. $as_echo_n "(cached) " >&6
  3443. else
  3444. if test "x$host_alias" = x; then
  3445. ac_cv_host=$ac_cv_build
  3446. else
  3447. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3448. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3449. fi
  3450. fi
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3452. $as_echo "$ac_cv_host" >&6; }
  3453. case $ac_cv_host in
  3454. *-*-*) ;;
  3455. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3456. esac
  3457. host=$ac_cv_host
  3458. ac_save_IFS=$IFS; IFS='-'
  3459. set x $ac_cv_host
  3460. shift
  3461. host_cpu=$1
  3462. host_vendor=$2
  3463. shift; shift
  3464. # Remember, the first character of IFS is used to create $*,
  3465. # except with old shells:
  3466. host_os=$*
  3467. IFS=$ac_save_IFS
  3468. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3469. # Backslashify metacharacters that are still active within
  3470. # double-quoted strings.
  3471. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3472. # Same as above, but do not quote variable references.
  3473. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3474. # Sed substitution to delay expansion of an escaped shell variable in a
  3475. # double_quote_subst'ed string.
  3476. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3477. # Sed substitution to delay expansion of an escaped single quote.
  3478. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3479. # Sed substitution to avoid accidental globbing in evaled expressions
  3480. no_glob_subst='s/\*/\\\*/g'
  3481. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3482. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3483. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3485. $as_echo_n "checking how to print strings... " >&6; }
  3486. # Test print first, because it will be a builtin if present.
  3487. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3488. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3489. ECHO='print -r --'
  3490. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3491. ECHO='printf %s\n'
  3492. else
  3493. # Use this function as a fallback that always works.
  3494. func_fallback_echo ()
  3495. {
  3496. eval 'cat <<_LTECHO_EOF
  3497. $1
  3498. _LTECHO_EOF'
  3499. }
  3500. ECHO='func_fallback_echo'
  3501. fi
  3502. # func_echo_all arg...
  3503. # Invoke $ECHO with all args, space-separated.
  3504. func_echo_all ()
  3505. {
  3506. $ECHO ""
  3507. }
  3508. case "$ECHO" in
  3509. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3510. $as_echo "printf" >&6; } ;;
  3511. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3512. $as_echo "print -r" >&6; } ;;
  3513. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3514. $as_echo "cat" >&6; } ;;
  3515. esac
  3516. ac_ext=c
  3517. ac_cpp='$CPP $CPPFLAGS'
  3518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3521. if test -n "$ac_tool_prefix"; then
  3522. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3523. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3525. $as_echo_n "checking for $ac_word... " >&6; }
  3526. if ${ac_cv_prog_CC+:} false; then :
  3527. $as_echo_n "(cached) " >&6
  3528. else
  3529. if test -n "$CC"; then
  3530. ac_cv_prog_CC="$CC" # Let the user override the test.
  3531. else
  3532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3533. for as_dir in $PATH
  3534. do
  3535. IFS=$as_save_IFS
  3536. test -z "$as_dir" && as_dir=.
  3537. for ac_exec_ext in '' $ac_executable_extensions; do
  3538. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3539. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3541. break 2
  3542. fi
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. fi
  3547. fi
  3548. CC=$ac_cv_prog_CC
  3549. if test -n "$CC"; then
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3551. $as_echo "$CC" >&6; }
  3552. else
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. $as_echo "no" >&6; }
  3555. fi
  3556. fi
  3557. if test -z "$ac_cv_prog_CC"; then
  3558. ac_ct_CC=$CC
  3559. # Extract the first word of "gcc", so it can be a program name with args.
  3560. set dummy gcc; ac_word=$2
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3562. $as_echo_n "checking for $ac_word... " >&6; }
  3563. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -n "$ac_ct_CC"; then
  3567. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3568. else
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH
  3571. do
  3572. IFS=$as_save_IFS
  3573. test -z "$as_dir" && as_dir=.
  3574. for ac_exec_ext in '' $ac_executable_extensions; do
  3575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3576. ac_cv_prog_ac_ct_CC="gcc"
  3577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3578. break 2
  3579. fi
  3580. done
  3581. done
  3582. IFS=$as_save_IFS
  3583. fi
  3584. fi
  3585. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3586. if test -n "$ac_ct_CC"; then
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3588. $as_echo "$ac_ct_CC" >&6; }
  3589. else
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3591. $as_echo "no" >&6; }
  3592. fi
  3593. if test "x$ac_ct_CC" = x; then
  3594. CC=""
  3595. else
  3596. case $cross_compiling:$ac_tool_warned in
  3597. yes:)
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3600. ac_tool_warned=yes ;;
  3601. esac
  3602. CC=$ac_ct_CC
  3603. fi
  3604. else
  3605. CC="$ac_cv_prog_CC"
  3606. fi
  3607. if test -z "$CC"; then
  3608. if test -n "$ac_tool_prefix"; then
  3609. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3610. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3612. $as_echo_n "checking for $ac_word... " >&6; }
  3613. if ${ac_cv_prog_CC+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. if test -n "$CC"; then
  3617. ac_cv_prog_CC="$CC" # Let the user override the test.
  3618. else
  3619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3620. for as_dir in $PATH
  3621. do
  3622. IFS=$as_save_IFS
  3623. test -z "$as_dir" && as_dir=.
  3624. for ac_exec_ext in '' $ac_executable_extensions; do
  3625. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3626. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3628. break 2
  3629. fi
  3630. done
  3631. done
  3632. IFS=$as_save_IFS
  3633. fi
  3634. fi
  3635. CC=$ac_cv_prog_CC
  3636. if test -n "$CC"; then
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3638. $as_echo "$CC" >&6; }
  3639. else
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3641. $as_echo "no" >&6; }
  3642. fi
  3643. fi
  3644. fi
  3645. if test -z "$CC"; then
  3646. # Extract the first word of "cc", so it can be a program name with args.
  3647. set dummy cc; ac_word=$2
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3649. $as_echo_n "checking for $ac_word... " >&6; }
  3650. if ${ac_cv_prog_CC+:} false; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. if test -n "$CC"; then
  3654. ac_cv_prog_CC="$CC" # Let the user override the test.
  3655. else
  3656. ac_prog_rejected=no
  3657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3658. for as_dir in $PATH
  3659. do
  3660. IFS=$as_save_IFS
  3661. test -z "$as_dir" && as_dir=.
  3662. for ac_exec_ext in '' $ac_executable_extensions; do
  3663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3664. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3665. ac_prog_rejected=yes
  3666. continue
  3667. fi
  3668. ac_cv_prog_CC="cc"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. done
  3673. done
  3674. IFS=$as_save_IFS
  3675. if test $ac_prog_rejected = yes; then
  3676. # We found a bogon in the path, so make sure we never use it.
  3677. set dummy $ac_cv_prog_CC
  3678. shift
  3679. if test $# != 0; then
  3680. # We chose a different compiler from the bogus one.
  3681. # However, it has the same basename, so the bogon will be chosen
  3682. # first if we set CC to just the basename; use the full file name.
  3683. shift
  3684. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3685. fi
  3686. fi
  3687. fi
  3688. fi
  3689. CC=$ac_cv_prog_CC
  3690. if test -n "$CC"; then
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3692. $as_echo "$CC" >&6; }
  3693. else
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3695. $as_echo "no" >&6; }
  3696. fi
  3697. fi
  3698. if test -z "$CC"; then
  3699. if test -n "$ac_tool_prefix"; then
  3700. for ac_prog in cl.exe
  3701. do
  3702. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3703. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3705. $as_echo_n "checking for $ac_word... " >&6; }
  3706. if ${ac_cv_prog_CC+:} false; then :
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. if test -n "$CC"; then
  3710. ac_cv_prog_CC="$CC" # Let the user override the test.
  3711. else
  3712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3713. for as_dir in $PATH
  3714. do
  3715. IFS=$as_save_IFS
  3716. test -z "$as_dir" && as_dir=.
  3717. for ac_exec_ext in '' $ac_executable_extensions; do
  3718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3719. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3721. break 2
  3722. fi
  3723. done
  3724. done
  3725. IFS=$as_save_IFS
  3726. fi
  3727. fi
  3728. CC=$ac_cv_prog_CC
  3729. if test -n "$CC"; then
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3731. $as_echo "$CC" >&6; }
  3732. else
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3734. $as_echo "no" >&6; }
  3735. fi
  3736. test -n "$CC" && break
  3737. done
  3738. fi
  3739. if test -z "$CC"; then
  3740. ac_ct_CC=$CC
  3741. for ac_prog in cl.exe
  3742. do
  3743. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3744. set dummy $ac_prog; ac_word=$2
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3746. $as_echo_n "checking for $ac_word... " >&6; }
  3747. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -n "$ac_ct_CC"; then
  3751. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3752. else
  3753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754. for as_dir in $PATH
  3755. do
  3756. IFS=$as_save_IFS
  3757. test -z "$as_dir" && as_dir=.
  3758. for ac_exec_ext in '' $ac_executable_extensions; do
  3759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3760. ac_cv_prog_ac_ct_CC="$ac_prog"
  3761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. fi
  3768. fi
  3769. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3770. if test -n "$ac_ct_CC"; then
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3772. $as_echo "$ac_ct_CC" >&6; }
  3773. else
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3775. $as_echo "no" >&6; }
  3776. fi
  3777. test -n "$ac_ct_CC" && break
  3778. done
  3779. if test "x$ac_ct_CC" = x; then
  3780. CC=""
  3781. else
  3782. case $cross_compiling:$ac_tool_warned in
  3783. yes:)
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3786. ac_tool_warned=yes ;;
  3787. esac
  3788. CC=$ac_ct_CC
  3789. fi
  3790. fi
  3791. fi
  3792. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3794. as_fn_error $? "no acceptable C compiler found in \$PATH
  3795. See \`config.log' for more details" "$LINENO" 5; }
  3796. # Provide some information about the compiler.
  3797. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3798. set X $ac_compile
  3799. ac_compiler=$2
  3800. for ac_option in --version -v -V -qversion; do
  3801. { { ac_try="$ac_compiler $ac_option >&5"
  3802. case "(($ac_try" in
  3803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804. *) ac_try_echo=$ac_try;;
  3805. esac
  3806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3807. $as_echo "$ac_try_echo"; } >&5
  3808. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3809. ac_status=$?
  3810. if test -s conftest.err; then
  3811. sed '10a\
  3812. ... rest of stderr output deleted ...
  3813. 10q' conftest.err >conftest.er1
  3814. cat conftest.er1 >&5
  3815. fi
  3816. rm -f conftest.er1 conftest.err
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3818. test $ac_status = 0; }
  3819. done
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3821. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3822. if ${ac_cv_c_compiler_gnu+:} false; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3826. /* end confdefs.h. */
  3827. int
  3828. main ()
  3829. {
  3830. #ifndef __GNUC__
  3831. choke me
  3832. #endif
  3833. ;
  3834. return 0;
  3835. }
  3836. _ACEOF
  3837. if ac_fn_c_try_compile "$LINENO"; then :
  3838. ac_compiler_gnu=yes
  3839. else
  3840. ac_compiler_gnu=no
  3841. fi
  3842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3843. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3844. fi
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3846. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3847. if test $ac_compiler_gnu = yes; then
  3848. GCC=yes
  3849. else
  3850. GCC=
  3851. fi
  3852. ac_test_CFLAGS=${CFLAGS+set}
  3853. ac_save_CFLAGS=$CFLAGS
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3855. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3856. if ${ac_cv_prog_cc_g+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. ac_save_c_werror_flag=$ac_c_werror_flag
  3860. ac_c_werror_flag=yes
  3861. ac_cv_prog_cc_g=no
  3862. CFLAGS="-g"
  3863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3864. /* end confdefs.h. */
  3865. int
  3866. main ()
  3867. {
  3868. ;
  3869. return 0;
  3870. }
  3871. _ACEOF
  3872. if ac_fn_c_try_compile "$LINENO"; then :
  3873. ac_cv_prog_cc_g=yes
  3874. else
  3875. CFLAGS=""
  3876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3877. /* end confdefs.h. */
  3878. int
  3879. main ()
  3880. {
  3881. ;
  3882. return 0;
  3883. }
  3884. _ACEOF
  3885. if ac_fn_c_try_compile "$LINENO"; then :
  3886. else
  3887. ac_c_werror_flag=$ac_save_c_werror_flag
  3888. CFLAGS="-g"
  3889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3890. /* end confdefs.h. */
  3891. int
  3892. main ()
  3893. {
  3894. ;
  3895. return 0;
  3896. }
  3897. _ACEOF
  3898. if ac_fn_c_try_compile "$LINENO"; then :
  3899. ac_cv_prog_cc_g=yes
  3900. fi
  3901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3902. fi
  3903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3904. fi
  3905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3906. ac_c_werror_flag=$ac_save_c_werror_flag
  3907. fi
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3909. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3910. if test "$ac_test_CFLAGS" = set; then
  3911. CFLAGS=$ac_save_CFLAGS
  3912. elif test $ac_cv_prog_cc_g = yes; then
  3913. if test "$GCC" = yes; then
  3914. CFLAGS="-g -O2"
  3915. else
  3916. CFLAGS="-g"
  3917. fi
  3918. else
  3919. if test "$GCC" = yes; then
  3920. CFLAGS="-O2"
  3921. else
  3922. CFLAGS=
  3923. fi
  3924. fi
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3926. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3927. if ${ac_cv_prog_cc_c89+:} false; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. ac_cv_prog_cc_c89=no
  3931. ac_save_CC=$CC
  3932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3933. /* end confdefs.h. */
  3934. #include <stdarg.h>
  3935. #include <stdio.h>
  3936. #include <sys/types.h>
  3937. #include <sys/stat.h>
  3938. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3939. struct buf { int x; };
  3940. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3941. static char *e (p, i)
  3942. char **p;
  3943. int i;
  3944. {
  3945. return p[i];
  3946. }
  3947. static char *f (char * (*g) (char **, int), char **p, ...)
  3948. {
  3949. char *s;
  3950. va_list v;
  3951. va_start (v,p);
  3952. s = g (p, va_arg (v,int));
  3953. va_end (v);
  3954. return s;
  3955. }
  3956. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3957. function prototypes and stuff, but not '\xHH' hex character constants.
  3958. These don't provoke an error unfortunately, instead are silently treated
  3959. as 'x'. The following induces an error, until -std is added to get
  3960. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3961. array size at least. It's necessary to write '\x00'==0 to get something
  3962. that's true only with -std. */
  3963. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3964. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3965. inside strings and character constants. */
  3966. #define FOO(x) 'x'
  3967. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3968. int test (int i, double x);
  3969. struct s1 {int (*f) (int a);};
  3970. struct s2 {int (*f) (double a);};
  3971. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3972. int argc;
  3973. char **argv;
  3974. int
  3975. main ()
  3976. {
  3977. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3978. ;
  3979. return 0;
  3980. }
  3981. _ACEOF
  3982. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3983. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3984. do
  3985. CC="$ac_save_CC $ac_arg"
  3986. if ac_fn_c_try_compile "$LINENO"; then :
  3987. ac_cv_prog_cc_c89=$ac_arg
  3988. fi
  3989. rm -f core conftest.err conftest.$ac_objext
  3990. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3991. done
  3992. rm -f conftest.$ac_ext
  3993. CC=$ac_save_CC
  3994. fi
  3995. # AC_CACHE_VAL
  3996. case "x$ac_cv_prog_cc_c89" in
  3997. x)
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3999. $as_echo "none needed" >&6; } ;;
  4000. xno)
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4002. $as_echo "unsupported" >&6; } ;;
  4003. *)
  4004. CC="$CC $ac_cv_prog_cc_c89"
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4006. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4007. esac
  4008. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4009. fi
  4010. ac_ext=cpp
  4011. ac_cpp='$CXXCPP $CPPFLAGS'
  4012. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4013. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4014. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4015. depcc="$CC" am_compiler_list=
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4017. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4018. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4022. # We make a subdir and do the tests there. Otherwise we can end up
  4023. # making bogus files that we don't know about and never remove. For
  4024. # instance it was reported that on HP-UX the gcc test will end up
  4025. # making a dummy file named `D' -- because `-MD' means `put the output
  4026. # in D'.
  4027. mkdir conftest.dir
  4028. # Copy depcomp to subdir because otherwise we won't find it if we're
  4029. # using a relative directory.
  4030. cp "$am_depcomp" conftest.dir
  4031. cd conftest.dir
  4032. # We will build objects and dependencies in a subdirectory because
  4033. # it helps to detect inapplicable dependency modes. For instance
  4034. # both Tru64's cc and ICC support -MD to output dependencies as a
  4035. # side effect of compilation, but ICC will put the dependencies in
  4036. # the current directory while Tru64 will put them in the object
  4037. # directory.
  4038. mkdir sub
  4039. am_cv_CC_dependencies_compiler_type=none
  4040. if test "$am_compiler_list" = ""; then
  4041. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4042. fi
  4043. am__universal=false
  4044. case " $depcc " in #(
  4045. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4046. esac
  4047. for depmode in $am_compiler_list; do
  4048. # Setup a source with many dependencies, because some compilers
  4049. # like to wrap large dependency lists on column 80 (with \), and
  4050. # we should not choose a depcomp mode which is confused by this.
  4051. #
  4052. # We need to recreate these files for each test, as the compiler may
  4053. # overwrite some of them when testing with obscure command lines.
  4054. # This happens at least with the AIX C compiler.
  4055. : > sub/conftest.c
  4056. for i in 1 2 3 4 5 6; do
  4057. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4058. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4059. # Solaris 8's {/usr,}/bin/sh.
  4060. touch sub/conftst$i.h
  4061. done
  4062. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4063. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4064. # mode. It turns out that the SunPro C++ compiler does not properly
  4065. # handle `-M -o', and we need to detect this. Also, some Intel
  4066. # versions had trouble with output in subdirs
  4067. am__obj=sub/conftest.${OBJEXT-o}
  4068. am__minus_obj="-o $am__obj"
  4069. case $depmode in
  4070. gcc)
  4071. # This depmode causes a compiler race in universal mode.
  4072. test "$am__universal" = false || continue
  4073. ;;
  4074. nosideeffect)
  4075. # after this tag, mechanisms are not by side-effect, so they'll
  4076. # only be used when explicitly requested
  4077. if test "x$enable_dependency_tracking" = xyes; then
  4078. continue
  4079. else
  4080. break
  4081. fi
  4082. ;;
  4083. msvisualcpp | msvcmsys)
  4084. # This compiler won't grok `-c -o', but also, the minuso test has
  4085. # not run yet. These depmodes are late enough in the game, and
  4086. # so weak that their functioning should not be impacted.
  4087. am__obj=conftest.${OBJEXT-o}
  4088. am__minus_obj=
  4089. ;;
  4090. none) break ;;
  4091. esac
  4092. if depmode=$depmode \
  4093. source=sub/conftest.c object=$am__obj \
  4094. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4095. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4096. >/dev/null 2>conftest.err &&
  4097. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4098. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4099. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4100. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4101. # icc doesn't choke on unknown options, it will just issue warnings
  4102. # or remarks (even with -Werror). So we grep stderr for any message
  4103. # that says an option was ignored or not supported.
  4104. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4105. # icc: Command line warning: ignoring option '-M'; no argument required
  4106. # The diagnosis changed in icc 8.0:
  4107. # icc: Command line remark: option '-MP' not supported
  4108. if (grep 'ignoring option' conftest.err ||
  4109. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4110. am_cv_CC_dependencies_compiler_type=$depmode
  4111. break
  4112. fi
  4113. fi
  4114. done
  4115. cd ..
  4116. rm -rf conftest.dir
  4117. else
  4118. am_cv_CC_dependencies_compiler_type=none
  4119. fi
  4120. fi
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4122. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4123. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4124. if
  4125. test "x$enable_dependency_tracking" != xno \
  4126. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4127. am__fastdepCC_TRUE=
  4128. am__fastdepCC_FALSE='#'
  4129. else
  4130. am__fastdepCC_TRUE='#'
  4131. am__fastdepCC_FALSE=
  4132. fi
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4134. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4135. if ${ac_cv_path_SED+:} false; then :
  4136. $as_echo_n "(cached) " >&6
  4137. else
  4138. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4139. for ac_i in 1 2 3 4 5 6 7; do
  4140. ac_script="$ac_script$as_nl$ac_script"
  4141. done
  4142. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4143. { ac_script=; unset ac_script;}
  4144. if test -z "$SED"; then
  4145. ac_path_SED_found=false
  4146. # Loop through the user's path and test for each of PROGNAME-LIST
  4147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4148. for as_dir in $PATH
  4149. do
  4150. IFS=$as_save_IFS
  4151. test -z "$as_dir" && as_dir=.
  4152. for ac_prog in sed gsed; do
  4153. for ac_exec_ext in '' $ac_executable_extensions; do
  4154. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4155. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4156. # Check for GNU ac_path_SED and select it if it is found.
  4157. # Check for GNU $ac_path_SED
  4158. case `"$ac_path_SED" --version 2>&1` in
  4159. *GNU*)
  4160. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4161. *)
  4162. ac_count=0
  4163. $as_echo_n 0123456789 >"conftest.in"
  4164. while :
  4165. do
  4166. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4167. mv "conftest.tmp" "conftest.in"
  4168. cp "conftest.in" "conftest.nl"
  4169. $as_echo '' >> "conftest.nl"
  4170. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4171. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4172. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4173. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4174. # Best one so far, save it but keep looking for a better one
  4175. ac_cv_path_SED="$ac_path_SED"
  4176. ac_path_SED_max=$ac_count
  4177. fi
  4178. # 10*(2^10) chars as input seems more than enough
  4179. test $ac_count -gt 10 && break
  4180. done
  4181. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4182. esac
  4183. $ac_path_SED_found && break 3
  4184. done
  4185. done
  4186. done
  4187. IFS=$as_save_IFS
  4188. if test -z "$ac_cv_path_SED"; then
  4189. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4190. fi
  4191. else
  4192. ac_cv_path_SED=$SED
  4193. fi
  4194. fi
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4196. $as_echo "$ac_cv_path_SED" >&6; }
  4197. SED="$ac_cv_path_SED"
  4198. rm -f conftest.sed
  4199. test -z "$SED" && SED=sed
  4200. Xsed="$SED -e 1s/^X//"
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4202. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4203. if ${ac_cv_path_GREP+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. if test -z "$GREP"; then
  4207. ac_path_GREP_found=false
  4208. # Loop through the user's path and test for each of PROGNAME-LIST
  4209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4210. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4211. do
  4212. IFS=$as_save_IFS
  4213. test -z "$as_dir" && as_dir=.
  4214. for ac_prog in grep ggrep; do
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4217. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4218. # Check for GNU ac_path_GREP and select it if it is found.
  4219. # Check for GNU $ac_path_GREP
  4220. case `"$ac_path_GREP" --version 2>&1` in
  4221. *GNU*)
  4222. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4223. *)
  4224. ac_count=0
  4225. $as_echo_n 0123456789 >"conftest.in"
  4226. while :
  4227. do
  4228. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4229. mv "conftest.tmp" "conftest.in"
  4230. cp "conftest.in" "conftest.nl"
  4231. $as_echo 'GREP' >> "conftest.nl"
  4232. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4233. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4234. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4235. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4236. # Best one so far, save it but keep looking for a better one
  4237. ac_cv_path_GREP="$ac_path_GREP"
  4238. ac_path_GREP_max=$ac_count
  4239. fi
  4240. # 10*(2^10) chars as input seems more than enough
  4241. test $ac_count -gt 10 && break
  4242. done
  4243. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4244. esac
  4245. $ac_path_GREP_found && break 3
  4246. done
  4247. done
  4248. done
  4249. IFS=$as_save_IFS
  4250. if test -z "$ac_cv_path_GREP"; then
  4251. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4252. fi
  4253. else
  4254. ac_cv_path_GREP=$GREP
  4255. fi
  4256. fi
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4258. $as_echo "$ac_cv_path_GREP" >&6; }
  4259. GREP="$ac_cv_path_GREP"
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4261. $as_echo_n "checking for egrep... " >&6; }
  4262. if ${ac_cv_path_EGREP+:} false; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4266. then ac_cv_path_EGREP="$GREP -E"
  4267. else
  4268. if test -z "$EGREP"; then
  4269. ac_path_EGREP_found=false
  4270. # Loop through the user's path and test for each of PROGNAME-LIST
  4271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4272. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4273. do
  4274. IFS=$as_save_IFS
  4275. test -z "$as_dir" && as_dir=.
  4276. for ac_prog in egrep; do
  4277. for ac_exec_ext in '' $ac_executable_extensions; do
  4278. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4279. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4280. # Check for GNU ac_path_EGREP and select it if it is found.
  4281. # Check for GNU $ac_path_EGREP
  4282. case `"$ac_path_EGREP" --version 2>&1` in
  4283. *GNU*)
  4284. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4285. *)
  4286. ac_count=0
  4287. $as_echo_n 0123456789 >"conftest.in"
  4288. while :
  4289. do
  4290. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4291. mv "conftest.tmp" "conftest.in"
  4292. cp "conftest.in" "conftest.nl"
  4293. $as_echo 'EGREP' >> "conftest.nl"
  4294. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4295. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4296. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4297. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4298. # Best one so far, save it but keep looking for a better one
  4299. ac_cv_path_EGREP="$ac_path_EGREP"
  4300. ac_path_EGREP_max=$ac_count
  4301. fi
  4302. # 10*(2^10) chars as input seems more than enough
  4303. test $ac_count -gt 10 && break
  4304. done
  4305. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4306. esac
  4307. $ac_path_EGREP_found && break 3
  4308. done
  4309. done
  4310. done
  4311. IFS=$as_save_IFS
  4312. if test -z "$ac_cv_path_EGREP"; then
  4313. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4314. fi
  4315. else
  4316. ac_cv_path_EGREP=$EGREP
  4317. fi
  4318. fi
  4319. fi
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4321. $as_echo "$ac_cv_path_EGREP" >&6; }
  4322. EGREP="$ac_cv_path_EGREP"
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4324. $as_echo_n "checking for fgrep... " >&6; }
  4325. if ${ac_cv_path_FGREP+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4329. then ac_cv_path_FGREP="$GREP -F"
  4330. else
  4331. if test -z "$FGREP"; then
  4332. ac_path_FGREP_found=false
  4333. # Loop through the user's path and test for each of PROGNAME-LIST
  4334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4335. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4336. do
  4337. IFS=$as_save_IFS
  4338. test -z "$as_dir" && as_dir=.
  4339. for ac_prog in fgrep; do
  4340. for ac_exec_ext in '' $ac_executable_extensions; do
  4341. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4342. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4343. # Check for GNU ac_path_FGREP and select it if it is found.
  4344. # Check for GNU $ac_path_FGREP
  4345. case `"$ac_path_FGREP" --version 2>&1` in
  4346. *GNU*)
  4347. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4348. *)
  4349. ac_count=0
  4350. $as_echo_n 0123456789 >"conftest.in"
  4351. while :
  4352. do
  4353. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4354. mv "conftest.tmp" "conftest.in"
  4355. cp "conftest.in" "conftest.nl"
  4356. $as_echo 'FGREP' >> "conftest.nl"
  4357. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4358. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4359. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4360. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4361. # Best one so far, save it but keep looking for a better one
  4362. ac_cv_path_FGREP="$ac_path_FGREP"
  4363. ac_path_FGREP_max=$ac_count
  4364. fi
  4365. # 10*(2^10) chars as input seems more than enough
  4366. test $ac_count -gt 10 && break
  4367. done
  4368. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4369. esac
  4370. $ac_path_FGREP_found && break 3
  4371. done
  4372. done
  4373. done
  4374. IFS=$as_save_IFS
  4375. if test -z "$ac_cv_path_FGREP"; then
  4376. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4377. fi
  4378. else
  4379. ac_cv_path_FGREP=$FGREP
  4380. fi
  4381. fi
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4384. $as_echo "$ac_cv_path_FGREP" >&6; }
  4385. FGREP="$ac_cv_path_FGREP"
  4386. test -z "$GREP" && GREP=grep
  4387. # Check whether --with-gnu-ld was given.
  4388. if test "${with_gnu_ld+set}" = set; then :
  4389. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4390. else
  4391. with_gnu_ld=no
  4392. fi
  4393. ac_prog=ld
  4394. if test "$GCC" = yes; then
  4395. # Check if gcc -print-prog-name=ld gives a path.
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4397. $as_echo_n "checking for ld used by $CC... " >&6; }
  4398. case $host in
  4399. *-*-mingw*)
  4400. # gcc leaves a trailing carriage return which upsets mingw
  4401. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4402. *)
  4403. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4404. esac
  4405. case $ac_prog in
  4406. # Accept absolute paths.
  4407. [\\/]* | ?:[\\/]*)
  4408. re_direlt='/[^/][^/]*/\.\./'
  4409. # Canonicalize the pathname of ld
  4410. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4411. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4412. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4413. done
  4414. test -z "$LD" && LD="$ac_prog"
  4415. ;;
  4416. "")
  4417. # If it fails, then pretend we aren't using GCC.
  4418. ac_prog=ld
  4419. ;;
  4420. *)
  4421. # If it is relative, then search for the first ld in PATH.
  4422. with_gnu_ld=unknown
  4423. ;;
  4424. esac
  4425. elif test "$with_gnu_ld" = yes; then
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4427. $as_echo_n "checking for GNU ld... " >&6; }
  4428. else
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4430. $as_echo_n "checking for non-GNU ld... " >&6; }
  4431. fi
  4432. if ${lt_cv_path_LD+:} false; then :
  4433. $as_echo_n "(cached) " >&6
  4434. else
  4435. if test -z "$LD"; then
  4436. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4437. for ac_dir in $PATH; do
  4438. IFS="$lt_save_ifs"
  4439. test -z "$ac_dir" && ac_dir=.
  4440. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4441. lt_cv_path_LD="$ac_dir/$ac_prog"
  4442. # Check to see if the program is GNU ld. I'd rather use --version,
  4443. # but apparently some variants of GNU ld only accept -v.
  4444. # Break only if it was the GNU/non-GNU ld that we prefer.
  4445. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4446. *GNU* | *'with BFD'*)
  4447. test "$with_gnu_ld" != no && break
  4448. ;;
  4449. *)
  4450. test "$with_gnu_ld" != yes && break
  4451. ;;
  4452. esac
  4453. fi
  4454. done
  4455. IFS="$lt_save_ifs"
  4456. else
  4457. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4458. fi
  4459. fi
  4460. LD="$lt_cv_path_LD"
  4461. if test -n "$LD"; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4463. $as_echo "$LD" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4470. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4471. if ${lt_cv_prog_gnu_ld+:} false; then :
  4472. $as_echo_n "(cached) " >&6
  4473. else
  4474. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4475. case `$LD -v 2>&1 </dev/null` in
  4476. *GNU* | *'with BFD'*)
  4477. lt_cv_prog_gnu_ld=yes
  4478. ;;
  4479. *)
  4480. lt_cv_prog_gnu_ld=no
  4481. ;;
  4482. esac
  4483. fi
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4485. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4486. with_gnu_ld=$lt_cv_prog_gnu_ld
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4488. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4489. if ${lt_cv_path_NM+:} false; then :
  4490. $as_echo_n "(cached) " >&6
  4491. else
  4492. if test -n "$NM"; then
  4493. # Let the user override the test.
  4494. lt_cv_path_NM="$NM"
  4495. else
  4496. lt_nm_to_check="${ac_tool_prefix}nm"
  4497. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4498. lt_nm_to_check="$lt_nm_to_check nm"
  4499. fi
  4500. for lt_tmp_nm in $lt_nm_to_check; do
  4501. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4502. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4503. IFS="$lt_save_ifs"
  4504. test -z "$ac_dir" && ac_dir=.
  4505. tmp_nm="$ac_dir/$lt_tmp_nm"
  4506. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4507. # Check to see if the nm accepts a BSD-compat flag.
  4508. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4509. # nm: unknown option "B" ignored
  4510. # Tru64's nm complains that /dev/null is an invalid object file
  4511. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4512. */dev/null* | *'Invalid file or object type'*)
  4513. lt_cv_path_NM="$tmp_nm -B"
  4514. break
  4515. ;;
  4516. *)
  4517. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4518. */dev/null*)
  4519. lt_cv_path_NM="$tmp_nm -p"
  4520. break
  4521. ;;
  4522. *)
  4523. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4524. continue # so that we can try to find one that supports BSD flags
  4525. ;;
  4526. esac
  4527. ;;
  4528. esac
  4529. fi
  4530. done
  4531. IFS="$lt_save_ifs"
  4532. done
  4533. : ${lt_cv_path_NM=no}
  4534. fi
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4537. $as_echo "$lt_cv_path_NM" >&6; }
  4538. if test "$lt_cv_path_NM" != "no"; then
  4539. NM="$lt_cv_path_NM"
  4540. else
  4541. # Didn't find any BSD compatible name lister, look for dumpbin.
  4542. if test -n "$DUMPBIN"; then :
  4543. # Let the user override the test.
  4544. else
  4545. if test -n "$ac_tool_prefix"; then
  4546. for ac_prog in dumpbin "link -dump"
  4547. do
  4548. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4549. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4551. $as_echo_n "checking for $ac_word... " >&6; }
  4552. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. if test -n "$DUMPBIN"; then
  4556. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4557. else
  4558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4559. for as_dir in $PATH
  4560. do
  4561. IFS=$as_save_IFS
  4562. test -z "$as_dir" && as_dir=.
  4563. for ac_exec_ext in '' $ac_executable_extensions; do
  4564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4565. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4567. break 2
  4568. fi
  4569. done
  4570. done
  4571. IFS=$as_save_IFS
  4572. fi
  4573. fi
  4574. DUMPBIN=$ac_cv_prog_DUMPBIN
  4575. if test -n "$DUMPBIN"; then
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4577. $as_echo "$DUMPBIN" >&6; }
  4578. else
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4580. $as_echo "no" >&6; }
  4581. fi
  4582. test -n "$DUMPBIN" && break
  4583. done
  4584. fi
  4585. if test -z "$DUMPBIN"; then
  4586. ac_ct_DUMPBIN=$DUMPBIN
  4587. for ac_prog in dumpbin "link -dump"
  4588. do
  4589. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4590. set dummy $ac_prog; ac_word=$2
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4592. $as_echo_n "checking for $ac_word... " >&6; }
  4593. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. if test -n "$ac_ct_DUMPBIN"; then
  4597. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4598. else
  4599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4600. for as_dir in $PATH
  4601. do
  4602. IFS=$as_save_IFS
  4603. test -z "$as_dir" && as_dir=.
  4604. for ac_exec_ext in '' $ac_executable_extensions; do
  4605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4606. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4608. break 2
  4609. fi
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. fi
  4614. fi
  4615. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4616. if test -n "$ac_ct_DUMPBIN"; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4618. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4619. else
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4621. $as_echo "no" >&6; }
  4622. fi
  4623. test -n "$ac_ct_DUMPBIN" && break
  4624. done
  4625. if test "x$ac_ct_DUMPBIN" = x; then
  4626. DUMPBIN=":"
  4627. else
  4628. case $cross_compiling:$ac_tool_warned in
  4629. yes:)
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4632. ac_tool_warned=yes ;;
  4633. esac
  4634. DUMPBIN=$ac_ct_DUMPBIN
  4635. fi
  4636. fi
  4637. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4638. *COFF*)
  4639. DUMPBIN="$DUMPBIN -symbols"
  4640. ;;
  4641. *)
  4642. DUMPBIN=:
  4643. ;;
  4644. esac
  4645. fi
  4646. if test "$DUMPBIN" != ":"; then
  4647. NM="$DUMPBIN"
  4648. fi
  4649. fi
  4650. test -z "$NM" && NM=nm
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4652. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4653. if ${lt_cv_nm_interface+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. lt_cv_nm_interface="BSD nm"
  4657. echo "int some_variable = 0;" > conftest.$ac_ext
  4658. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4659. (eval "$ac_compile" 2>conftest.err)
  4660. cat conftest.err >&5
  4661. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4662. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4663. cat conftest.err >&5
  4664. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4665. cat conftest.out >&5
  4666. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4667. lt_cv_nm_interface="MS dumpbin"
  4668. fi
  4669. rm -f conftest*
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4672. $as_echo "$lt_cv_nm_interface" >&6; }
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4674. $as_echo_n "checking whether ln -s works... " >&6; }
  4675. LN_S=$as_ln_s
  4676. if test "$LN_S" = "ln -s"; then
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4678. $as_echo "yes" >&6; }
  4679. else
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4681. $as_echo "no, using $LN_S" >&6; }
  4682. fi
  4683. # find the maximum length of command line arguments
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4685. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4686. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. i=0
  4690. teststring="ABCD"
  4691. case $build_os in
  4692. msdosdjgpp*)
  4693. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4694. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4695. # during glob expansion). Even if it were fixed, the result of this
  4696. # check would be larger than it should be.
  4697. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4698. ;;
  4699. gnu*)
  4700. # Under GNU Hurd, this test is not required because there is
  4701. # no limit to the length of command line arguments.
  4702. # Libtool will interpret -1 as no limit whatsoever
  4703. lt_cv_sys_max_cmd_len=-1;
  4704. ;;
  4705. cygwin* | mingw* | cegcc*)
  4706. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4707. # about 5 minutes as the teststring grows exponentially.
  4708. # Worse, since 9x/ME are not pre-emptively multitasking,
  4709. # you end up with a "frozen" computer, even though with patience
  4710. # the test eventually succeeds (with a max line length of 256k).
  4711. # Instead, let's just punt: use the minimum linelength reported by
  4712. # all of the supported platforms: 8192 (on NT/2K/XP).
  4713. lt_cv_sys_max_cmd_len=8192;
  4714. ;;
  4715. mint*)
  4716. # On MiNT this can take a long time and run out of memory.
  4717. lt_cv_sys_max_cmd_len=8192;
  4718. ;;
  4719. amigaos*)
  4720. # On AmigaOS with pdksh, this test takes hours, literally.
  4721. # So we just punt and use a minimum line length of 8192.
  4722. lt_cv_sys_max_cmd_len=8192;
  4723. ;;
  4724. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4725. # This has been around since 386BSD, at least. Likely further.
  4726. if test -x /sbin/sysctl; then
  4727. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4728. elif test -x /usr/sbin/sysctl; then
  4729. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4730. else
  4731. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4732. fi
  4733. # And add a safety zone
  4734. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4735. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4736. ;;
  4737. interix*)
  4738. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4739. lt_cv_sys_max_cmd_len=196608
  4740. ;;
  4741. osf*)
  4742. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4743. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4744. # nice to cause kernel panics so lets avoid the loop below.
  4745. # First set a reasonable default.
  4746. lt_cv_sys_max_cmd_len=16384
  4747. #
  4748. if test -x /sbin/sysconfig; then
  4749. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4750. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4751. esac
  4752. fi
  4753. ;;
  4754. sco3.2v5*)
  4755. lt_cv_sys_max_cmd_len=102400
  4756. ;;
  4757. sysv5* | sco5v6* | sysv4.2uw2*)
  4758. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4759. if test -n "$kargmax"; then
  4760. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4761. else
  4762. lt_cv_sys_max_cmd_len=32768
  4763. fi
  4764. ;;
  4765. *)
  4766. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4767. if test -n "$lt_cv_sys_max_cmd_len"; then
  4768. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4769. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4770. else
  4771. # Make teststring a little bigger before we do anything with it.
  4772. # a 1K string should be a reasonable start.
  4773. for i in 1 2 3 4 5 6 7 8 ; do
  4774. teststring=$teststring$teststring
  4775. done
  4776. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4777. # If test is not a shell built-in, we'll probably end up computing a
  4778. # maximum length that is only half of the actual maximum length, but
  4779. # we can't tell.
  4780. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4781. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4782. test $i != 17 # 1/2 MB should be enough
  4783. do
  4784. i=`expr $i + 1`
  4785. teststring=$teststring$teststring
  4786. done
  4787. # Only check the string length outside the loop.
  4788. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4789. teststring=
  4790. # Add a significant safety factor because C++ compilers can tack on
  4791. # massive amounts of additional arguments before passing them to the
  4792. # linker. It appears as though 1/2 is a usable value.
  4793. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4794. fi
  4795. ;;
  4796. esac
  4797. fi
  4798. if test -n $lt_cv_sys_max_cmd_len ; then
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4800. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4803. $as_echo "none" >&6; }
  4804. fi
  4805. max_cmd_len=$lt_cv_sys_max_cmd_len
  4806. : ${CP="cp -f"}
  4807. : ${MV="mv -f"}
  4808. : ${RM="rm -f"}
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4810. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4811. # Try some XSI features
  4812. xsi_shell=no
  4813. ( _lt_dummy="a/b/c"
  4814. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4815. = c,a/b,b/c, \
  4816. && eval 'test $(( 1 + 1 )) -eq 2 \
  4817. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4818. && xsi_shell=yes
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4820. $as_echo "$xsi_shell" >&6; }
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4822. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4823. lt_shell_append=no
  4824. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4825. >/dev/null 2>&1 \
  4826. && lt_shell_append=yes
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4828. $as_echo "$lt_shell_append" >&6; }
  4829. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4830. lt_unset=unset
  4831. else
  4832. lt_unset=false
  4833. fi
  4834. # test EBCDIC or ASCII
  4835. case `echo X|tr X '\101'` in
  4836. A) # ASCII based system
  4837. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4838. lt_SP2NL='tr \040 \012'
  4839. lt_NL2SP='tr \015\012 \040\040'
  4840. ;;
  4841. *) # EBCDIC based system
  4842. lt_SP2NL='tr \100 \n'
  4843. lt_NL2SP='tr \r\n \100\100'
  4844. ;;
  4845. esac
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4847. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4848. if ${lt_cv_to_host_file_cmd+:} false; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. case $host in
  4852. *-*-mingw* )
  4853. case $build in
  4854. *-*-mingw* ) # actually msys
  4855. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4856. ;;
  4857. *-*-cygwin* )
  4858. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4859. ;;
  4860. * ) # otherwise, assume *nix
  4861. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4862. ;;
  4863. esac
  4864. ;;
  4865. *-*-cygwin* )
  4866. case $build in
  4867. *-*-mingw* ) # actually msys
  4868. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4869. ;;
  4870. *-*-cygwin* )
  4871. lt_cv_to_host_file_cmd=func_convert_file_noop
  4872. ;;
  4873. * ) # otherwise, assume *nix
  4874. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4875. ;;
  4876. esac
  4877. ;;
  4878. * ) # unhandled hosts (and "normal" native builds)
  4879. lt_cv_to_host_file_cmd=func_convert_file_noop
  4880. ;;
  4881. esac
  4882. fi
  4883. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4885. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4887. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4888. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. #assume ordinary cross tools, or native build.
  4892. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4893. case $host in
  4894. *-*-mingw* )
  4895. case $build in
  4896. *-*-mingw* ) # actually msys
  4897. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4898. ;;
  4899. esac
  4900. ;;
  4901. esac
  4902. fi
  4903. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4905. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4907. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4908. if ${lt_cv_ld_reload_flag+:} false; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. lt_cv_ld_reload_flag='-r'
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4914. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4915. reload_flag=$lt_cv_ld_reload_flag
  4916. case $reload_flag in
  4917. "" | " "*) ;;
  4918. *) reload_flag=" $reload_flag" ;;
  4919. esac
  4920. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4921. case $host_os in
  4922. cygwin* | mingw* | pw32* | cegcc*)
  4923. if test "$GCC" != yes; then
  4924. reload_cmds=false
  4925. fi
  4926. ;;
  4927. darwin*)
  4928. if test "$GCC" = yes; then
  4929. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4930. else
  4931. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4932. fi
  4933. ;;
  4934. esac
  4935. if test -n "$ac_tool_prefix"; then
  4936. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4937. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4939. $as_echo_n "checking for $ac_word... " >&6; }
  4940. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. if test -n "$OBJDUMP"; then
  4944. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4945. else
  4946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4947. for as_dir in $PATH
  4948. do
  4949. IFS=$as_save_IFS
  4950. test -z "$as_dir" && as_dir=.
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4953. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4955. break 2
  4956. fi
  4957. done
  4958. done
  4959. IFS=$as_save_IFS
  4960. fi
  4961. fi
  4962. OBJDUMP=$ac_cv_prog_OBJDUMP
  4963. if test -n "$OBJDUMP"; then
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4965. $as_echo "$OBJDUMP" >&6; }
  4966. else
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4968. $as_echo "no" >&6; }
  4969. fi
  4970. fi
  4971. if test -z "$ac_cv_prog_OBJDUMP"; then
  4972. ac_ct_OBJDUMP=$OBJDUMP
  4973. # Extract the first word of "objdump", so it can be a program name with args.
  4974. set dummy objdump; ac_word=$2
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4976. $as_echo_n "checking for $ac_word... " >&6; }
  4977. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4978. $as_echo_n "(cached) " >&6
  4979. else
  4980. if test -n "$ac_ct_OBJDUMP"; then
  4981. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4982. else
  4983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4984. for as_dir in $PATH
  4985. do
  4986. IFS=$as_save_IFS
  4987. test -z "$as_dir" && as_dir=.
  4988. for ac_exec_ext in '' $ac_executable_extensions; do
  4989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4990. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4992. break 2
  4993. fi
  4994. done
  4995. done
  4996. IFS=$as_save_IFS
  4997. fi
  4998. fi
  4999. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5000. if test -n "$ac_ct_OBJDUMP"; then
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5002. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5003. else
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5005. $as_echo "no" >&6; }
  5006. fi
  5007. if test "x$ac_ct_OBJDUMP" = x; then
  5008. OBJDUMP="false"
  5009. else
  5010. case $cross_compiling:$ac_tool_warned in
  5011. yes:)
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5013. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5014. ac_tool_warned=yes ;;
  5015. esac
  5016. OBJDUMP=$ac_ct_OBJDUMP
  5017. fi
  5018. else
  5019. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5020. fi
  5021. test -z "$OBJDUMP" && OBJDUMP=objdump
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5023. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5024. if ${lt_cv_deplibs_check_method+:} false; then :
  5025. $as_echo_n "(cached) " >&6
  5026. else
  5027. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5028. lt_cv_file_magic_test_file=
  5029. lt_cv_deplibs_check_method='unknown'
  5030. # Need to set the preceding variable on all platforms that support
  5031. # interlibrary dependencies.
  5032. # 'none' -- dependencies not supported.
  5033. # `unknown' -- same as none, but documents that we really don't know.
  5034. # 'pass_all' -- all dependencies passed with no checks.
  5035. # 'test_compile' -- check by making test program.
  5036. # 'file_magic [[regex]]' -- check by looking for files in library path
  5037. # which responds to the $file_magic_cmd with a given extended regex.
  5038. # If you have `file' or equivalent on your system and you're not sure
  5039. # whether `pass_all' will *always* work, you probably want this one.
  5040. case $host_os in
  5041. aix[4-9]*)
  5042. lt_cv_deplibs_check_method=pass_all
  5043. ;;
  5044. beos*)
  5045. lt_cv_deplibs_check_method=pass_all
  5046. ;;
  5047. bsdi[45]*)
  5048. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5049. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5050. lt_cv_file_magic_test_file=/shlib/libc.so
  5051. ;;
  5052. cygwin*)
  5053. # func_win32_libid is a shell function defined in ltmain.sh
  5054. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5055. lt_cv_file_magic_cmd='func_win32_libid'
  5056. ;;
  5057. mingw* | pw32*)
  5058. # Base MSYS/MinGW do not provide the 'file' command needed by
  5059. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5060. # unless we find 'file', for example because we are cross-compiling.
  5061. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5062. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5063. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5064. lt_cv_file_magic_cmd='func_win32_libid'
  5065. else
  5066. # Keep this pattern in sync with the one in func_win32_libid.
  5067. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5068. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5069. fi
  5070. ;;
  5071. cegcc*)
  5072. # use the weaker test based on 'objdump'. See mingw*.
  5073. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5074. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5075. ;;
  5076. darwin* | rhapsody*)
  5077. lt_cv_deplibs_check_method=pass_all
  5078. ;;
  5079. freebsd* | dragonfly*)
  5080. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5081. case $host_cpu in
  5082. i*86 )
  5083. # Not sure whether the presence of OpenBSD here was a mistake.
  5084. # Let's accept both of them until this is cleared up.
  5085. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5086. lt_cv_file_magic_cmd=/usr/bin/file
  5087. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5088. ;;
  5089. esac
  5090. else
  5091. lt_cv_deplibs_check_method=pass_all
  5092. fi
  5093. ;;
  5094. gnu*)
  5095. lt_cv_deplibs_check_method=pass_all
  5096. ;;
  5097. haiku*)
  5098. lt_cv_deplibs_check_method=pass_all
  5099. ;;
  5100. hpux10.20* | hpux11*)
  5101. lt_cv_file_magic_cmd=/usr/bin/file
  5102. case $host_cpu in
  5103. ia64*)
  5104. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5105. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5106. ;;
  5107. hppa*64*)
  5108. 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]'
  5109. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5110. ;;
  5111. *)
  5112. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5113. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5114. ;;
  5115. esac
  5116. ;;
  5117. interix[3-9]*)
  5118. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5119. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5120. ;;
  5121. irix5* | irix6* | nonstopux*)
  5122. case $LD in
  5123. *-32|*"-32 ") libmagic=32-bit;;
  5124. *-n32|*"-n32 ") libmagic=N32;;
  5125. *-64|*"-64 ") libmagic=64-bit;;
  5126. *) libmagic=never-match;;
  5127. esac
  5128. lt_cv_deplibs_check_method=pass_all
  5129. ;;
  5130. # This must be Linux ELF.
  5131. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5132. lt_cv_deplibs_check_method=pass_all
  5133. ;;
  5134. netbsd* | netbsdelf*-gnu)
  5135. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5136. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5137. else
  5138. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5139. fi
  5140. ;;
  5141. newos6*)
  5142. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5143. lt_cv_file_magic_cmd=/usr/bin/file
  5144. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5145. ;;
  5146. *nto* | *qnx*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. openbsd*)
  5150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5151. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5152. else
  5153. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5154. fi
  5155. ;;
  5156. osf3* | osf4* | osf5*)
  5157. lt_cv_deplibs_check_method=pass_all
  5158. ;;
  5159. rdos*)
  5160. lt_cv_deplibs_check_method=pass_all
  5161. ;;
  5162. solaris*)
  5163. lt_cv_deplibs_check_method=pass_all
  5164. ;;
  5165. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5166. lt_cv_deplibs_check_method=pass_all
  5167. ;;
  5168. sysv4 | sysv4.3*)
  5169. case $host_vendor in
  5170. motorola)
  5171. 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]'
  5172. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5173. ;;
  5174. ncr)
  5175. lt_cv_deplibs_check_method=pass_all
  5176. ;;
  5177. sequent)
  5178. lt_cv_file_magic_cmd='/bin/file'
  5179. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5180. ;;
  5181. sni)
  5182. lt_cv_file_magic_cmd='/bin/file'
  5183. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5184. lt_cv_file_magic_test_file=/lib/libc.so
  5185. ;;
  5186. siemens)
  5187. lt_cv_deplibs_check_method=pass_all
  5188. ;;
  5189. pc)
  5190. lt_cv_deplibs_check_method=pass_all
  5191. ;;
  5192. esac
  5193. ;;
  5194. tpf*)
  5195. lt_cv_deplibs_check_method=pass_all
  5196. ;;
  5197. esac
  5198. fi
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5200. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5201. file_magic_glob=
  5202. want_nocaseglob=no
  5203. if test "$build" = "$host"; then
  5204. case $host_os in
  5205. mingw* | pw32*)
  5206. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5207. want_nocaseglob=yes
  5208. else
  5209. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5210. fi
  5211. ;;
  5212. esac
  5213. fi
  5214. file_magic_cmd=$lt_cv_file_magic_cmd
  5215. deplibs_check_method=$lt_cv_deplibs_check_method
  5216. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5217. if test -n "$ac_tool_prefix"; then
  5218. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5219. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5221. $as_echo_n "checking for $ac_word... " >&6; }
  5222. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5223. $as_echo_n "(cached) " >&6
  5224. else
  5225. if test -n "$DLLTOOL"; then
  5226. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5227. else
  5228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5229. for as_dir in $PATH
  5230. do
  5231. IFS=$as_save_IFS
  5232. test -z "$as_dir" && as_dir=.
  5233. for ac_exec_ext in '' $ac_executable_extensions; do
  5234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5235. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5237. break 2
  5238. fi
  5239. done
  5240. done
  5241. IFS=$as_save_IFS
  5242. fi
  5243. fi
  5244. DLLTOOL=$ac_cv_prog_DLLTOOL
  5245. if test -n "$DLLTOOL"; then
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5247. $as_echo "$DLLTOOL" >&6; }
  5248. else
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5250. $as_echo "no" >&6; }
  5251. fi
  5252. fi
  5253. if test -z "$ac_cv_prog_DLLTOOL"; then
  5254. ac_ct_DLLTOOL=$DLLTOOL
  5255. # Extract the first word of "dlltool", so it can be a program name with args.
  5256. set dummy dlltool; ac_word=$2
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5258. $as_echo_n "checking for $ac_word... " >&6; }
  5259. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -n "$ac_ct_DLLTOOL"; then
  5263. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_exec_ext in '' $ac_executable_extensions; do
  5271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5272. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274. break 2
  5275. fi
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. fi
  5280. fi
  5281. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5282. if test -n "$ac_ct_DLLTOOL"; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5284. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5285. else
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5287. $as_echo "no" >&6; }
  5288. fi
  5289. if test "x$ac_ct_DLLTOOL" = x; then
  5290. DLLTOOL="false"
  5291. else
  5292. case $cross_compiling:$ac_tool_warned in
  5293. yes:)
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5296. ac_tool_warned=yes ;;
  5297. esac
  5298. DLLTOOL=$ac_ct_DLLTOOL
  5299. fi
  5300. else
  5301. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5302. fi
  5303. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5305. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5306. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5310. case $host_os in
  5311. cygwin* | mingw* | pw32* | cegcc*)
  5312. # two different shell functions defined in ltmain.sh
  5313. # decide which to use based on capabilities of $DLLTOOL
  5314. case `$DLLTOOL --help 2>&1` in
  5315. *--identify-strict*)
  5316. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5317. ;;
  5318. *)
  5319. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5320. ;;
  5321. esac
  5322. ;;
  5323. *)
  5324. # fallback: assume linklib IS sharedlib
  5325. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5326. ;;
  5327. esac
  5328. fi
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5330. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5331. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5332. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5333. if test -n "$ac_tool_prefix"; then
  5334. for ac_prog in ar
  5335. do
  5336. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5337. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5339. $as_echo_n "checking for $ac_word... " >&6; }
  5340. if ${ac_cv_prog_AR+:} false; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. if test -n "$AR"; then
  5344. ac_cv_prog_AR="$AR" # Let the user override the test.
  5345. else
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349. IFS=$as_save_IFS
  5350. test -z "$as_dir" && as_dir=.
  5351. for ac_exec_ext in '' $ac_executable_extensions; do
  5352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5353. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5355. break 2
  5356. fi
  5357. done
  5358. done
  5359. IFS=$as_save_IFS
  5360. fi
  5361. fi
  5362. AR=$ac_cv_prog_AR
  5363. if test -n "$AR"; then
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5365. $as_echo "$AR" >&6; }
  5366. else
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5368. $as_echo "no" >&6; }
  5369. fi
  5370. test -n "$AR" && break
  5371. done
  5372. fi
  5373. if test -z "$AR"; then
  5374. ac_ct_AR=$AR
  5375. for ac_prog in ar
  5376. do
  5377. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5378. set dummy $ac_prog; ac_word=$2
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5380. $as_echo_n "checking for $ac_word... " >&6; }
  5381. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. if test -n "$ac_ct_AR"; then
  5385. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5386. else
  5387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5388. for as_dir in $PATH
  5389. do
  5390. IFS=$as_save_IFS
  5391. test -z "$as_dir" && as_dir=.
  5392. for ac_exec_ext in '' $ac_executable_extensions; do
  5393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5394. ac_cv_prog_ac_ct_AR="$ac_prog"
  5395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5396. break 2
  5397. fi
  5398. done
  5399. done
  5400. IFS=$as_save_IFS
  5401. fi
  5402. fi
  5403. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5404. if test -n "$ac_ct_AR"; then
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5406. $as_echo "$ac_ct_AR" >&6; }
  5407. else
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5409. $as_echo "no" >&6; }
  5410. fi
  5411. test -n "$ac_ct_AR" && break
  5412. done
  5413. if test "x$ac_ct_AR" = x; then
  5414. AR="false"
  5415. else
  5416. case $cross_compiling:$ac_tool_warned in
  5417. yes:)
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5419. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5420. ac_tool_warned=yes ;;
  5421. esac
  5422. AR=$ac_ct_AR
  5423. fi
  5424. fi
  5425. : ${AR=ar}
  5426. : ${AR_FLAGS=cru}
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5428. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5429. if ${lt_cv_ar_at_file+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. lt_cv_ar_at_file=no
  5433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5434. /* end confdefs.h. */
  5435. int
  5436. main ()
  5437. {
  5438. ;
  5439. return 0;
  5440. }
  5441. _ACEOF
  5442. if ac_fn_cxx_try_compile "$LINENO"; then :
  5443. echo conftest.$ac_objext > conftest.lst
  5444. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5445. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5446. (eval $lt_ar_try) 2>&5
  5447. ac_status=$?
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5449. test $ac_status = 0; }
  5450. if test "$ac_status" -eq 0; then
  5451. # Ensure the archiver fails upon bogus file names.
  5452. rm -f conftest.$ac_objext libconftest.a
  5453. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5454. (eval $lt_ar_try) 2>&5
  5455. ac_status=$?
  5456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5457. test $ac_status = 0; }
  5458. if test "$ac_status" -ne 0; then
  5459. lt_cv_ar_at_file=@
  5460. fi
  5461. fi
  5462. rm -f conftest.* libconftest.a
  5463. fi
  5464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5465. fi
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5467. $as_echo "$lt_cv_ar_at_file" >&6; }
  5468. if test "x$lt_cv_ar_at_file" = xno; then
  5469. archiver_list_spec=
  5470. else
  5471. archiver_list_spec=$lt_cv_ar_at_file
  5472. fi
  5473. if test -n "$ac_tool_prefix"; then
  5474. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5475. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5477. $as_echo_n "checking for $ac_word... " >&6; }
  5478. if ${ac_cv_prog_STRIP+:} false; then :
  5479. $as_echo_n "(cached) " >&6
  5480. else
  5481. if test -n "$STRIP"; then
  5482. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5483. else
  5484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5485. for as_dir in $PATH
  5486. do
  5487. IFS=$as_save_IFS
  5488. test -z "$as_dir" && as_dir=.
  5489. for ac_exec_ext in '' $ac_executable_extensions; do
  5490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5491. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5493. break 2
  5494. fi
  5495. done
  5496. done
  5497. IFS=$as_save_IFS
  5498. fi
  5499. fi
  5500. STRIP=$ac_cv_prog_STRIP
  5501. if test -n "$STRIP"; then
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5503. $as_echo "$STRIP" >&6; }
  5504. else
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5506. $as_echo "no" >&6; }
  5507. fi
  5508. fi
  5509. if test -z "$ac_cv_prog_STRIP"; then
  5510. ac_ct_STRIP=$STRIP
  5511. # Extract the first word of "strip", so it can be a program name with args.
  5512. set dummy strip; ac_word=$2
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5514. $as_echo_n "checking for $ac_word... " >&6; }
  5515. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. if test -n "$ac_ct_STRIP"; then
  5519. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. test -z "$as_dir" && as_dir=.
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5528. ac_cv_prog_ac_ct_STRIP="strip"
  5529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5530. break 2
  5531. fi
  5532. done
  5533. done
  5534. IFS=$as_save_IFS
  5535. fi
  5536. fi
  5537. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5538. if test -n "$ac_ct_STRIP"; then
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5540. $as_echo "$ac_ct_STRIP" >&6; }
  5541. else
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5543. $as_echo "no" >&6; }
  5544. fi
  5545. if test "x$ac_ct_STRIP" = x; then
  5546. STRIP=":"
  5547. else
  5548. case $cross_compiling:$ac_tool_warned in
  5549. yes:)
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5552. ac_tool_warned=yes ;;
  5553. esac
  5554. STRIP=$ac_ct_STRIP
  5555. fi
  5556. else
  5557. STRIP="$ac_cv_prog_STRIP"
  5558. fi
  5559. test -z "$STRIP" && STRIP=:
  5560. if test -n "$ac_tool_prefix"; then
  5561. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5562. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5564. $as_echo_n "checking for $ac_word... " >&6; }
  5565. if ${ac_cv_prog_RANLIB+:} false; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. if test -n "$RANLIB"; then
  5569. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5570. else
  5571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5572. for as_dir in $PATH
  5573. do
  5574. IFS=$as_save_IFS
  5575. test -z "$as_dir" && as_dir=.
  5576. for ac_exec_ext in '' $ac_executable_extensions; do
  5577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5578. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5580. break 2
  5581. fi
  5582. done
  5583. done
  5584. IFS=$as_save_IFS
  5585. fi
  5586. fi
  5587. RANLIB=$ac_cv_prog_RANLIB
  5588. if test -n "$RANLIB"; then
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5590. $as_echo "$RANLIB" >&6; }
  5591. else
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5593. $as_echo "no" >&6; }
  5594. fi
  5595. fi
  5596. if test -z "$ac_cv_prog_RANLIB"; then
  5597. ac_ct_RANLIB=$RANLIB
  5598. # Extract the first word of "ranlib", so it can be a program name with args.
  5599. set dummy ranlib; ac_word=$2
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. $as_echo_n "checking for $ac_word... " >&6; }
  5602. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. if test -n "$ac_ct_RANLIB"; then
  5606. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5615. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5625. if test -n "$ac_ct_RANLIB"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5627. $as_echo "$ac_ct_RANLIB" >&6; }
  5628. else
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. $as_echo "no" >&6; }
  5631. fi
  5632. if test "x$ac_ct_RANLIB" = x; then
  5633. RANLIB=":"
  5634. else
  5635. case $cross_compiling:$ac_tool_warned in
  5636. yes:)
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5639. ac_tool_warned=yes ;;
  5640. esac
  5641. RANLIB=$ac_ct_RANLIB
  5642. fi
  5643. else
  5644. RANLIB="$ac_cv_prog_RANLIB"
  5645. fi
  5646. test -z "$RANLIB" && RANLIB=:
  5647. # Determine commands to create old-style static archives.
  5648. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5649. old_postinstall_cmds='chmod 644 $oldlib'
  5650. old_postuninstall_cmds=
  5651. if test -n "$RANLIB"; then
  5652. case $host_os in
  5653. openbsd*)
  5654. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5655. ;;
  5656. *)
  5657. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5658. ;;
  5659. esac
  5660. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5661. fi
  5662. case $host_os in
  5663. darwin*)
  5664. lock_old_archive_extraction=yes ;;
  5665. *)
  5666. lock_old_archive_extraction=no ;;
  5667. esac
  5668. # If no C compiler was specified, use CC.
  5669. LTCC=${LTCC-"$CC"}
  5670. # If no C compiler flags were specified, use CFLAGS.
  5671. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5672. # Allow CC to be a program name with arguments.
  5673. compiler=$CC
  5674. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5676. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5677. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. # These are sane defaults that work on at least a few old systems.
  5681. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5682. # Character class describing NM global symbol codes.
  5683. symcode='[BCDEGRST]'
  5684. # Regexp to match symbols that can be accessed directly from C.
  5685. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5686. # Define system-specific variables.
  5687. case $host_os in
  5688. aix*)
  5689. symcode='[BCDT]'
  5690. ;;
  5691. cygwin* | mingw* | pw32* | cegcc*)
  5692. symcode='[ABCDGISTW]'
  5693. ;;
  5694. hpux*)
  5695. if test "$host_cpu" = ia64; then
  5696. symcode='[ABCDEGRST]'
  5697. fi
  5698. ;;
  5699. irix* | nonstopux*)
  5700. symcode='[BCDEGRST]'
  5701. ;;
  5702. osf*)
  5703. symcode='[BCDEGQRST]'
  5704. ;;
  5705. solaris*)
  5706. symcode='[BDRT]'
  5707. ;;
  5708. sco3.2v5*)
  5709. symcode='[DT]'
  5710. ;;
  5711. sysv4.2uw2*)
  5712. symcode='[DT]'
  5713. ;;
  5714. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5715. symcode='[ABDT]'
  5716. ;;
  5717. sysv4)
  5718. symcode='[DFNSTU]'
  5719. ;;
  5720. esac
  5721. # If we're using GNU nm, then use its standard symbol codes.
  5722. case `$NM -V 2>&1` in
  5723. *GNU* | *'with BFD'*)
  5724. symcode='[ABCDGIRSTW]' ;;
  5725. esac
  5726. # Transform an extracted symbol line into a proper C declaration.
  5727. # Some systems (esp. on ia64) link data and code symbols differently,
  5728. # so use this general approach.
  5729. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5730. # Transform an extracted symbol line into symbol name and symbol address
  5731. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5732. 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'"
  5733. # Handle CRLF in mingw tool chain
  5734. opt_cr=
  5735. case $build_os in
  5736. mingw*)
  5737. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5738. ;;
  5739. esac
  5740. # Try without a prefix underscore, then with it.
  5741. for ac_symprfx in "" "_"; do
  5742. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5743. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5744. # Write the raw and C identifiers.
  5745. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5746. # Fake it for dumpbin and say T for any non-static function
  5747. # and D for any global variable.
  5748. # Also find C++ and __fastcall symbols from MSVC++,
  5749. # which start with @ or ?.
  5750. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5751. " {last_section=section; section=\$ 3};"\
  5752. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5753. " \$ 0!~/External *\|/{next};"\
  5754. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5755. " {if(hide[section]) next};"\
  5756. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5757. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5758. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5759. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5760. " ' prfx=^$ac_symprfx"
  5761. else
  5762. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5763. fi
  5764. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5765. # Check to see that the pipe works correctly.
  5766. pipe_works=no
  5767. rm -f conftest*
  5768. cat > conftest.$ac_ext <<_LT_EOF
  5769. #ifdef __cplusplus
  5770. extern "C" {
  5771. #endif
  5772. char nm_test_var;
  5773. void nm_test_func(void);
  5774. void nm_test_func(void){}
  5775. #ifdef __cplusplus
  5776. }
  5777. #endif
  5778. int main(){nm_test_var='a';nm_test_func();return(0);}
  5779. _LT_EOF
  5780. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5781. (eval $ac_compile) 2>&5
  5782. ac_status=$?
  5783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5784. test $ac_status = 0; }; then
  5785. # Now try to grab the symbols.
  5786. nlist=conftest.nm
  5787. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5788. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5789. ac_status=$?
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5791. test $ac_status = 0; } && test -s "$nlist"; then
  5792. # Try sorting and uniquifying the output.
  5793. if sort "$nlist" | uniq > "$nlist"T; then
  5794. mv -f "$nlist"T "$nlist"
  5795. else
  5796. rm -f "$nlist"T
  5797. fi
  5798. # Make sure that we snagged all the symbols we need.
  5799. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5800. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5801. cat <<_LT_EOF > conftest.$ac_ext
  5802. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5803. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5804. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5805. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5806. # define LT_DLSYM_CONST
  5807. #elif defined(__osf__)
  5808. /* This system does not cope well with relocations in const data. */
  5809. # define LT_DLSYM_CONST
  5810. #else
  5811. # define LT_DLSYM_CONST const
  5812. #endif
  5813. #ifdef __cplusplus
  5814. extern "C" {
  5815. #endif
  5816. _LT_EOF
  5817. # Now generate the symbol file.
  5818. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5819. cat <<_LT_EOF >> conftest.$ac_ext
  5820. /* The mapping between symbol names and symbols. */
  5821. LT_DLSYM_CONST struct {
  5822. const char *name;
  5823. void *address;
  5824. }
  5825. lt__PROGRAM__LTX_preloaded_symbols[] =
  5826. {
  5827. { "@PROGRAM@", (void *) 0 },
  5828. _LT_EOF
  5829. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5830. cat <<\_LT_EOF >> conftest.$ac_ext
  5831. {0, (void *) 0}
  5832. };
  5833. /* This works around a problem in FreeBSD linker */
  5834. #ifdef FREEBSD_WORKAROUND
  5835. static const void *lt_preloaded_setup() {
  5836. return lt__PROGRAM__LTX_preloaded_symbols;
  5837. }
  5838. #endif
  5839. #ifdef __cplusplus
  5840. }
  5841. #endif
  5842. _LT_EOF
  5843. # Now try linking the two files.
  5844. mv conftest.$ac_objext conftstm.$ac_objext
  5845. lt_globsym_save_LIBS=$LIBS
  5846. lt_globsym_save_CFLAGS=$CFLAGS
  5847. LIBS="conftstm.$ac_objext"
  5848. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5849. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5850. (eval $ac_link) 2>&5
  5851. ac_status=$?
  5852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5853. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5854. pipe_works=yes
  5855. fi
  5856. LIBS=$lt_globsym_save_LIBS
  5857. CFLAGS=$lt_globsym_save_CFLAGS
  5858. else
  5859. echo "cannot find nm_test_func in $nlist" >&5
  5860. fi
  5861. else
  5862. echo "cannot find nm_test_var in $nlist" >&5
  5863. fi
  5864. else
  5865. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5866. fi
  5867. else
  5868. echo "$progname: failed program was:" >&5
  5869. cat conftest.$ac_ext >&5
  5870. fi
  5871. rm -rf conftest* conftst*
  5872. # Do not use the global_symbol_pipe unless it works.
  5873. if test "$pipe_works" = yes; then
  5874. break
  5875. else
  5876. lt_cv_sys_global_symbol_pipe=
  5877. fi
  5878. done
  5879. fi
  5880. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5881. lt_cv_sys_global_symbol_to_cdecl=
  5882. fi
  5883. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5885. $as_echo "failed" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5888. $as_echo "ok" >&6; }
  5889. fi
  5890. # Response file support.
  5891. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5892. nm_file_list_spec='@'
  5893. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5894. nm_file_list_spec='@'
  5895. fi
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5897. $as_echo_n "checking for sysroot... " >&6; }
  5898. # Check whether --with-sysroot was given.
  5899. if test "${with_sysroot+set}" = set; then :
  5900. withval=$with_sysroot;
  5901. else
  5902. with_sysroot=no
  5903. fi
  5904. lt_sysroot=
  5905. case ${with_sysroot} in #(
  5906. yes)
  5907. if test "$GCC" = yes; then
  5908. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5909. fi
  5910. ;; #(
  5911. /*)
  5912. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5913. ;; #(
  5914. no|'')
  5915. ;; #(
  5916. *)
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5918. $as_echo "${with_sysroot}" >&6; }
  5919. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5920. ;;
  5921. esac
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5923. $as_echo "${lt_sysroot:-no}" >&6; }
  5924. # Check whether --enable-libtool-lock was given.
  5925. if test "${enable_libtool_lock+set}" = set; then :
  5926. enableval=$enable_libtool_lock;
  5927. fi
  5928. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5929. # Some flags need to be propagated to the compiler or linker for good
  5930. # libtool support.
  5931. case $host in
  5932. ia64-*-hpux*)
  5933. # Find out which ABI we are using.
  5934. echo 'int i;' > conftest.$ac_ext
  5935. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5936. (eval $ac_compile) 2>&5
  5937. ac_status=$?
  5938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5939. test $ac_status = 0; }; then
  5940. case `/usr/bin/file conftest.$ac_objext` in
  5941. *ELF-32*)
  5942. HPUX_IA64_MODE="32"
  5943. ;;
  5944. *ELF-64*)
  5945. HPUX_IA64_MODE="64"
  5946. ;;
  5947. esac
  5948. fi
  5949. rm -rf conftest*
  5950. ;;
  5951. *-*-irix6*)
  5952. # Find out which ABI we are using.
  5953. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5954. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5955. (eval $ac_compile) 2>&5
  5956. ac_status=$?
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5958. test $ac_status = 0; }; then
  5959. if test "$lt_cv_prog_gnu_ld" = yes; then
  5960. case `/usr/bin/file conftest.$ac_objext` in
  5961. *32-bit*)
  5962. LD="${LD-ld} -melf32bsmip"
  5963. ;;
  5964. *N32*)
  5965. LD="${LD-ld} -melf32bmipn32"
  5966. ;;
  5967. *64-bit*)
  5968. LD="${LD-ld} -melf64bmip"
  5969. ;;
  5970. esac
  5971. else
  5972. case `/usr/bin/file conftest.$ac_objext` in
  5973. *32-bit*)
  5974. LD="${LD-ld} -32"
  5975. ;;
  5976. *N32*)
  5977. LD="${LD-ld} -n32"
  5978. ;;
  5979. *64-bit*)
  5980. LD="${LD-ld} -64"
  5981. ;;
  5982. esac
  5983. fi
  5984. fi
  5985. rm -rf conftest*
  5986. ;;
  5987. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5988. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5989. # Find out which ABI we are using.
  5990. echo 'int i;' > conftest.$ac_ext
  5991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5992. (eval $ac_compile) 2>&5
  5993. ac_status=$?
  5994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5995. test $ac_status = 0; }; then
  5996. case `/usr/bin/file conftest.o` in
  5997. *32-bit*)
  5998. case $host in
  5999. x86_64-*kfreebsd*-gnu)
  6000. LD="${LD-ld} -m elf_i386_fbsd"
  6001. ;;
  6002. x86_64-*linux*)
  6003. LD="${LD-ld} -m elf_i386"
  6004. ;;
  6005. ppc64-*linux*|powerpc64-*linux*)
  6006. LD="${LD-ld} -m elf32ppclinux"
  6007. ;;
  6008. s390x-*linux*)
  6009. LD="${LD-ld} -m elf_s390"
  6010. ;;
  6011. sparc64-*linux*)
  6012. LD="${LD-ld} -m elf32_sparc"
  6013. ;;
  6014. esac
  6015. ;;
  6016. *64-bit*)
  6017. case $host in
  6018. x86_64-*kfreebsd*-gnu)
  6019. LD="${LD-ld} -m elf_x86_64_fbsd"
  6020. ;;
  6021. x86_64-*linux*)
  6022. LD="${LD-ld} -m elf_x86_64"
  6023. ;;
  6024. ppc*-*linux*|powerpc*-*linux*)
  6025. LD="${LD-ld} -m elf64ppc"
  6026. ;;
  6027. s390*-*linux*|s390*-*tpf*)
  6028. LD="${LD-ld} -m elf64_s390"
  6029. ;;
  6030. sparc*-*linux*)
  6031. LD="${LD-ld} -m elf64_sparc"
  6032. ;;
  6033. esac
  6034. ;;
  6035. esac
  6036. fi
  6037. rm -rf conftest*
  6038. ;;
  6039. *-*-sco3.2v5*)
  6040. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6041. SAVE_CFLAGS="$CFLAGS"
  6042. CFLAGS="$CFLAGS -belf"
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6044. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6045. if ${lt_cv_cc_needs_belf+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. ac_ext=c
  6049. ac_cpp='$CPP $CPPFLAGS'
  6050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h. */
  6055. int
  6056. main ()
  6057. {
  6058. ;
  6059. return 0;
  6060. }
  6061. _ACEOF
  6062. if ac_fn_c_try_link "$LINENO"; then :
  6063. lt_cv_cc_needs_belf=yes
  6064. else
  6065. lt_cv_cc_needs_belf=no
  6066. fi
  6067. rm -f core conftest.err conftest.$ac_objext \
  6068. conftest$ac_exeext conftest.$ac_ext
  6069. ac_ext=c
  6070. ac_cpp='$CPP $CPPFLAGS'
  6071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6074. fi
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6076. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6077. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6078. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6079. CFLAGS="$SAVE_CFLAGS"
  6080. fi
  6081. ;;
  6082. sparc*-*solaris*)
  6083. # Find out which ABI we are using.
  6084. echo 'int i;' > conftest.$ac_ext
  6085. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6086. (eval $ac_compile) 2>&5
  6087. ac_status=$?
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6089. test $ac_status = 0; }; then
  6090. case `/usr/bin/file conftest.o` in
  6091. *64-bit*)
  6092. case $lt_cv_prog_gnu_ld in
  6093. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6094. *)
  6095. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6096. LD="${LD-ld} -64"
  6097. fi
  6098. ;;
  6099. esac
  6100. ;;
  6101. esac
  6102. fi
  6103. rm -rf conftest*
  6104. ;;
  6105. esac
  6106. need_locks="$enable_libtool_lock"
  6107. if test -n "$ac_tool_prefix"; then
  6108. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6109. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6111. $as_echo_n "checking for $ac_word... " >&6; }
  6112. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6113. $as_echo_n "(cached) " >&6
  6114. else
  6115. if test -n "$MANIFEST_TOOL"; then
  6116. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6117. else
  6118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6119. for as_dir in $PATH
  6120. do
  6121. IFS=$as_save_IFS
  6122. test -z "$as_dir" && as_dir=.
  6123. for ac_exec_ext in '' $ac_executable_extensions; do
  6124. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6125. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6127. break 2
  6128. fi
  6129. done
  6130. done
  6131. IFS=$as_save_IFS
  6132. fi
  6133. fi
  6134. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6135. if test -n "$MANIFEST_TOOL"; then
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6137. $as_echo "$MANIFEST_TOOL" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. fi
  6143. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6144. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6145. # Extract the first word of "mt", so it can be a program name with args.
  6146. set dummy mt; ac_word=$2
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6148. $as_echo_n "checking for $ac_word... " >&6; }
  6149. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6150. $as_echo_n "(cached) " >&6
  6151. else
  6152. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6153. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6154. else
  6155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6156. for as_dir in $PATH
  6157. do
  6158. IFS=$as_save_IFS
  6159. test -z "$as_dir" && as_dir=.
  6160. for ac_exec_ext in '' $ac_executable_extensions; do
  6161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6162. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6164. break 2
  6165. fi
  6166. done
  6167. done
  6168. IFS=$as_save_IFS
  6169. fi
  6170. fi
  6171. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6172. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6174. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6175. else
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6177. $as_echo "no" >&6; }
  6178. fi
  6179. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6180. MANIFEST_TOOL=":"
  6181. else
  6182. case $cross_compiling:$ac_tool_warned in
  6183. yes:)
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6186. ac_tool_warned=yes ;;
  6187. esac
  6188. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6189. fi
  6190. else
  6191. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6192. fi
  6193. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6195. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6196. if ${lt_cv_path_mainfest_tool+:} false; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. lt_cv_path_mainfest_tool=no
  6200. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6201. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6202. cat conftest.err >&5
  6203. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6204. lt_cv_path_mainfest_tool=yes
  6205. fi
  6206. rm -f conftest*
  6207. fi
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6209. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6210. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6211. MANIFEST_TOOL=:
  6212. fi
  6213. case $host_os in
  6214. rhapsody* | darwin*)
  6215. if test -n "$ac_tool_prefix"; then
  6216. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6217. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6219. $as_echo_n "checking for $ac_word... " >&6; }
  6220. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6221. $as_echo_n "(cached) " >&6
  6222. else
  6223. if test -n "$DSYMUTIL"; then
  6224. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6225. else
  6226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6227. for as_dir in $PATH
  6228. do
  6229. IFS=$as_save_IFS
  6230. test -z "$as_dir" && as_dir=.
  6231. for ac_exec_ext in '' $ac_executable_extensions; do
  6232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6233. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6235. break 2
  6236. fi
  6237. done
  6238. done
  6239. IFS=$as_save_IFS
  6240. fi
  6241. fi
  6242. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6243. if test -n "$DSYMUTIL"; then
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6245. $as_echo "$DSYMUTIL" >&6; }
  6246. else
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6248. $as_echo "no" >&6; }
  6249. fi
  6250. fi
  6251. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6252. ac_ct_DSYMUTIL=$DSYMUTIL
  6253. # Extract the first word of "dsymutil", so it can be a program name with args.
  6254. set dummy dsymutil; ac_word=$2
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6256. $as_echo_n "checking for $ac_word... " >&6; }
  6257. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6258. $as_echo_n "(cached) " >&6
  6259. else
  6260. if test -n "$ac_ct_DSYMUTIL"; then
  6261. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6262. else
  6263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6264. for as_dir in $PATH
  6265. do
  6266. IFS=$as_save_IFS
  6267. test -z "$as_dir" && as_dir=.
  6268. for ac_exec_ext in '' $ac_executable_extensions; do
  6269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6270. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6272. break 2
  6273. fi
  6274. done
  6275. done
  6276. IFS=$as_save_IFS
  6277. fi
  6278. fi
  6279. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6280. if test -n "$ac_ct_DSYMUTIL"; then
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6282. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6283. else
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6285. $as_echo "no" >&6; }
  6286. fi
  6287. if test "x$ac_ct_DSYMUTIL" = x; then
  6288. DSYMUTIL=":"
  6289. else
  6290. case $cross_compiling:$ac_tool_warned in
  6291. yes:)
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6293. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6294. ac_tool_warned=yes ;;
  6295. esac
  6296. DSYMUTIL=$ac_ct_DSYMUTIL
  6297. fi
  6298. else
  6299. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6300. fi
  6301. if test -n "$ac_tool_prefix"; then
  6302. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6303. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6305. $as_echo_n "checking for $ac_word... " >&6; }
  6306. if ${ac_cv_prog_NMEDIT+:} false; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. if test -n "$NMEDIT"; then
  6310. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6311. else
  6312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6313. for as_dir in $PATH
  6314. do
  6315. IFS=$as_save_IFS
  6316. test -z "$as_dir" && as_dir=.
  6317. for ac_exec_ext in '' $ac_executable_extensions; do
  6318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6319. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6321. break 2
  6322. fi
  6323. done
  6324. done
  6325. IFS=$as_save_IFS
  6326. fi
  6327. fi
  6328. NMEDIT=$ac_cv_prog_NMEDIT
  6329. if test -n "$NMEDIT"; then
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6331. $as_echo "$NMEDIT" >&6; }
  6332. else
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6334. $as_echo "no" >&6; }
  6335. fi
  6336. fi
  6337. if test -z "$ac_cv_prog_NMEDIT"; then
  6338. ac_ct_NMEDIT=$NMEDIT
  6339. # Extract the first word of "nmedit", so it can be a program name with args.
  6340. set dummy nmedit; ac_word=$2
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6342. $as_echo_n "checking for $ac_word... " >&6; }
  6343. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. if test -n "$ac_ct_NMEDIT"; then
  6347. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6348. else
  6349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6350. for as_dir in $PATH
  6351. do
  6352. IFS=$as_save_IFS
  6353. test -z "$as_dir" && as_dir=.
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6356. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6366. if test -n "$ac_ct_NMEDIT"; then
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6368. $as_echo "$ac_ct_NMEDIT" >&6; }
  6369. else
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6371. $as_echo "no" >&6; }
  6372. fi
  6373. if test "x$ac_ct_NMEDIT" = x; then
  6374. NMEDIT=":"
  6375. else
  6376. case $cross_compiling:$ac_tool_warned in
  6377. yes:)
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6380. ac_tool_warned=yes ;;
  6381. esac
  6382. NMEDIT=$ac_ct_NMEDIT
  6383. fi
  6384. else
  6385. NMEDIT="$ac_cv_prog_NMEDIT"
  6386. fi
  6387. if test -n "$ac_tool_prefix"; then
  6388. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6389. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6391. $as_echo_n "checking for $ac_word... " >&6; }
  6392. if ${ac_cv_prog_LIPO+:} false; then :
  6393. $as_echo_n "(cached) " >&6
  6394. else
  6395. if test -n "$LIPO"; then
  6396. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6397. else
  6398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6399. for as_dir in $PATH
  6400. do
  6401. IFS=$as_save_IFS
  6402. test -z "$as_dir" && as_dir=.
  6403. for ac_exec_ext in '' $ac_executable_extensions; do
  6404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6405. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6407. break 2
  6408. fi
  6409. done
  6410. done
  6411. IFS=$as_save_IFS
  6412. fi
  6413. fi
  6414. LIPO=$ac_cv_prog_LIPO
  6415. if test -n "$LIPO"; then
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6417. $as_echo "$LIPO" >&6; }
  6418. else
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6420. $as_echo "no" >&6; }
  6421. fi
  6422. fi
  6423. if test -z "$ac_cv_prog_LIPO"; then
  6424. ac_ct_LIPO=$LIPO
  6425. # Extract the first word of "lipo", so it can be a program name with args.
  6426. set dummy lipo; ac_word=$2
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6428. $as_echo_n "checking for $ac_word... " >&6; }
  6429. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6430. $as_echo_n "(cached) " >&6
  6431. else
  6432. if test -n "$ac_ct_LIPO"; then
  6433. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6434. else
  6435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6436. for as_dir in $PATH
  6437. do
  6438. IFS=$as_save_IFS
  6439. test -z "$as_dir" && as_dir=.
  6440. for ac_exec_ext in '' $ac_executable_extensions; do
  6441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6442. ac_cv_prog_ac_ct_LIPO="lipo"
  6443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6444. break 2
  6445. fi
  6446. done
  6447. done
  6448. IFS=$as_save_IFS
  6449. fi
  6450. fi
  6451. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6452. if test -n "$ac_ct_LIPO"; then
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6454. $as_echo "$ac_ct_LIPO" >&6; }
  6455. else
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6457. $as_echo "no" >&6; }
  6458. fi
  6459. if test "x$ac_ct_LIPO" = x; then
  6460. LIPO=":"
  6461. else
  6462. case $cross_compiling:$ac_tool_warned in
  6463. yes:)
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6465. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6466. ac_tool_warned=yes ;;
  6467. esac
  6468. LIPO=$ac_ct_LIPO
  6469. fi
  6470. else
  6471. LIPO="$ac_cv_prog_LIPO"
  6472. fi
  6473. if test -n "$ac_tool_prefix"; then
  6474. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6475. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6477. $as_echo_n "checking for $ac_word... " >&6; }
  6478. if ${ac_cv_prog_OTOOL+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. if test -n "$OTOOL"; then
  6482. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6483. else
  6484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6485. for as_dir in $PATH
  6486. do
  6487. IFS=$as_save_IFS
  6488. test -z "$as_dir" && as_dir=.
  6489. for ac_exec_ext in '' $ac_executable_extensions; do
  6490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6491. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6493. break 2
  6494. fi
  6495. done
  6496. done
  6497. IFS=$as_save_IFS
  6498. fi
  6499. fi
  6500. OTOOL=$ac_cv_prog_OTOOL
  6501. if test -n "$OTOOL"; then
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6503. $as_echo "$OTOOL" >&6; }
  6504. else
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6506. $as_echo "no" >&6; }
  6507. fi
  6508. fi
  6509. if test -z "$ac_cv_prog_OTOOL"; then
  6510. ac_ct_OTOOL=$OTOOL
  6511. # Extract the first word of "otool", so it can be a program name with args.
  6512. set dummy otool; ac_word=$2
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6514. $as_echo_n "checking for $ac_word... " >&6; }
  6515. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. if test -n "$ac_ct_OTOOL"; then
  6519. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6520. else
  6521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6522. for as_dir in $PATH
  6523. do
  6524. IFS=$as_save_IFS
  6525. test -z "$as_dir" && as_dir=.
  6526. for ac_exec_ext in '' $ac_executable_extensions; do
  6527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6528. ac_cv_prog_ac_ct_OTOOL="otool"
  6529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6530. break 2
  6531. fi
  6532. done
  6533. done
  6534. IFS=$as_save_IFS
  6535. fi
  6536. fi
  6537. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6538. if test -n "$ac_ct_OTOOL"; then
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6540. $as_echo "$ac_ct_OTOOL" >&6; }
  6541. else
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6543. $as_echo "no" >&6; }
  6544. fi
  6545. if test "x$ac_ct_OTOOL" = x; then
  6546. OTOOL=":"
  6547. else
  6548. case $cross_compiling:$ac_tool_warned in
  6549. yes:)
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6552. ac_tool_warned=yes ;;
  6553. esac
  6554. OTOOL=$ac_ct_OTOOL
  6555. fi
  6556. else
  6557. OTOOL="$ac_cv_prog_OTOOL"
  6558. fi
  6559. if test -n "$ac_tool_prefix"; then
  6560. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6561. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6563. $as_echo_n "checking for $ac_word... " >&6; }
  6564. if ${ac_cv_prog_OTOOL64+:} false; then :
  6565. $as_echo_n "(cached) " >&6
  6566. else
  6567. if test -n "$OTOOL64"; then
  6568. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6569. else
  6570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6571. for as_dir in $PATH
  6572. do
  6573. IFS=$as_save_IFS
  6574. test -z "$as_dir" && as_dir=.
  6575. for ac_exec_ext in '' $ac_executable_extensions; do
  6576. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6577. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6579. break 2
  6580. fi
  6581. done
  6582. done
  6583. IFS=$as_save_IFS
  6584. fi
  6585. fi
  6586. OTOOL64=$ac_cv_prog_OTOOL64
  6587. if test -n "$OTOOL64"; then
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6589. $as_echo "$OTOOL64" >&6; }
  6590. else
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6592. $as_echo "no" >&6; }
  6593. fi
  6594. fi
  6595. if test -z "$ac_cv_prog_OTOOL64"; then
  6596. ac_ct_OTOOL64=$OTOOL64
  6597. # Extract the first word of "otool64", so it can be a program name with args.
  6598. set dummy otool64; ac_word=$2
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6600. $as_echo_n "checking for $ac_word... " >&6; }
  6601. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6602. $as_echo_n "(cached) " >&6
  6603. else
  6604. if test -n "$ac_ct_OTOOL64"; then
  6605. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6606. else
  6607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6608. for as_dir in $PATH
  6609. do
  6610. IFS=$as_save_IFS
  6611. test -z "$as_dir" && as_dir=.
  6612. for ac_exec_ext in '' $ac_executable_extensions; do
  6613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6614. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6616. break 2
  6617. fi
  6618. done
  6619. done
  6620. IFS=$as_save_IFS
  6621. fi
  6622. fi
  6623. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6624. if test -n "$ac_ct_OTOOL64"; then
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6626. $as_echo "$ac_ct_OTOOL64" >&6; }
  6627. else
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6629. $as_echo "no" >&6; }
  6630. fi
  6631. if test "x$ac_ct_OTOOL64" = x; then
  6632. OTOOL64=":"
  6633. else
  6634. case $cross_compiling:$ac_tool_warned in
  6635. yes:)
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6637. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6638. ac_tool_warned=yes ;;
  6639. esac
  6640. OTOOL64=$ac_ct_OTOOL64
  6641. fi
  6642. else
  6643. OTOOL64="$ac_cv_prog_OTOOL64"
  6644. fi
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6646. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6647. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6648. $as_echo_n "(cached) " >&6
  6649. else
  6650. lt_cv_apple_cc_single_mod=no
  6651. if test -z "${LT_MULTI_MODULE}"; then
  6652. # By default we will add the -single_module flag. You can override
  6653. # by either setting the environment variable LT_MULTI_MODULE
  6654. # non-empty at configure time, or by adding -multi_module to the
  6655. # link flags.
  6656. rm -rf libconftest.dylib*
  6657. echo "int foo(void){return 1;}" > conftest.c
  6658. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6659. -dynamiclib -Wl,-single_module conftest.c" >&5
  6660. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6661. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6662. _lt_result=$?
  6663. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6664. lt_cv_apple_cc_single_mod=yes
  6665. else
  6666. cat conftest.err >&5
  6667. fi
  6668. rm -rf libconftest.dylib*
  6669. rm -f conftest.*
  6670. fi
  6671. fi
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6673. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6675. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6676. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6677. $as_echo_n "(cached) " >&6
  6678. else
  6679. lt_cv_ld_exported_symbols_list=no
  6680. save_LDFLAGS=$LDFLAGS
  6681. echo "_main" > conftest.sym
  6682. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6684. /* end confdefs.h. */
  6685. int
  6686. main ()
  6687. {
  6688. ;
  6689. return 0;
  6690. }
  6691. _ACEOF
  6692. if ac_fn_c_try_link "$LINENO"; then :
  6693. lt_cv_ld_exported_symbols_list=yes
  6694. else
  6695. lt_cv_ld_exported_symbols_list=no
  6696. fi
  6697. rm -f core conftest.err conftest.$ac_objext \
  6698. conftest$ac_exeext conftest.$ac_ext
  6699. LDFLAGS="$save_LDFLAGS"
  6700. fi
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6702. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6704. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6705. if ${lt_cv_ld_force_load+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. lt_cv_ld_force_load=no
  6709. cat > conftest.c << _LT_EOF
  6710. int forced_loaded() { return 2;}
  6711. _LT_EOF
  6712. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6713. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6714. echo "$AR cru libconftest.a conftest.o" >&5
  6715. $AR cru libconftest.a conftest.o 2>&5
  6716. echo "$RANLIB libconftest.a" >&5
  6717. $RANLIB libconftest.a 2>&5
  6718. cat > conftest.c << _LT_EOF
  6719. int main() { return 0;}
  6720. _LT_EOF
  6721. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6722. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6723. _lt_result=$?
  6724. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6725. lt_cv_ld_force_load=yes
  6726. else
  6727. cat conftest.err >&5
  6728. fi
  6729. rm -f conftest.err libconftest.a conftest conftest.c
  6730. rm -rf conftest.dSYM
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6733. $as_echo "$lt_cv_ld_force_load" >&6; }
  6734. case $host_os in
  6735. rhapsody* | darwin1.[012])
  6736. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6737. darwin1.*)
  6738. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6739. darwin*) # darwin 5.x on
  6740. # if running on 10.5 or later, the deployment target defaults
  6741. # to the OS version, if on x86, and 10.4, the deployment
  6742. # target defaults to 10.4. Don't you love it?
  6743. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6744. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6745. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6746. 10.[012]*)
  6747. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6748. 10.*)
  6749. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6750. esac
  6751. ;;
  6752. esac
  6753. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6754. _lt_dar_single_mod='$single_module'
  6755. fi
  6756. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6757. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6758. else
  6759. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6760. fi
  6761. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6762. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6763. else
  6764. _lt_dsymutil=
  6765. fi
  6766. ;;
  6767. esac
  6768. ac_ext=c
  6769. ac_cpp='$CPP $CPPFLAGS'
  6770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6774. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6775. # On Suns, sometimes $CPP names a directory.
  6776. if test -n "$CPP" && test -d "$CPP"; then
  6777. CPP=
  6778. fi
  6779. if test -z "$CPP"; then
  6780. if ${ac_cv_prog_CPP+:} false; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. # Double quotes because CPP needs to be expanded
  6784. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6785. do
  6786. ac_preproc_ok=false
  6787. for ac_c_preproc_warn_flag in '' yes
  6788. do
  6789. # Use a header file that comes with gcc, so configuring glibc
  6790. # with a fresh cross-compiler works.
  6791. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6792. # <limits.h> exists even on freestanding compilers.
  6793. # On the NeXT, cc -E runs the code through the compiler's parser,
  6794. # not just through cpp. "Syntax error" is here to catch this case.
  6795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h. */
  6797. #ifdef __STDC__
  6798. # include <limits.h>
  6799. #else
  6800. # include <assert.h>
  6801. #endif
  6802. Syntax error
  6803. _ACEOF
  6804. if ac_fn_c_try_cpp "$LINENO"; then :
  6805. else
  6806. # Broken: fails on valid input.
  6807. continue
  6808. fi
  6809. rm -f conftest.err conftest.i conftest.$ac_ext
  6810. # OK, works on sane cases. Now check whether nonexistent headers
  6811. # can be detected and how.
  6812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6813. /* end confdefs.h. */
  6814. #include <ac_nonexistent.h>
  6815. _ACEOF
  6816. if ac_fn_c_try_cpp "$LINENO"; then :
  6817. # Broken: success on invalid input.
  6818. continue
  6819. else
  6820. # Passes both tests.
  6821. ac_preproc_ok=:
  6822. break
  6823. fi
  6824. rm -f conftest.err conftest.i conftest.$ac_ext
  6825. done
  6826. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6827. rm -f conftest.i conftest.err conftest.$ac_ext
  6828. if $ac_preproc_ok; then :
  6829. break
  6830. fi
  6831. done
  6832. ac_cv_prog_CPP=$CPP
  6833. fi
  6834. CPP=$ac_cv_prog_CPP
  6835. else
  6836. ac_cv_prog_CPP=$CPP
  6837. fi
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6839. $as_echo "$CPP" >&6; }
  6840. ac_preproc_ok=false
  6841. for ac_c_preproc_warn_flag in '' yes
  6842. do
  6843. # Use a header file that comes with gcc, so configuring glibc
  6844. # with a fresh cross-compiler works.
  6845. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6846. # <limits.h> exists even on freestanding compilers.
  6847. # On the NeXT, cc -E runs the code through the compiler's parser,
  6848. # not just through cpp. "Syntax error" is here to catch this case.
  6849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6850. /* end confdefs.h. */
  6851. #ifdef __STDC__
  6852. # include <limits.h>
  6853. #else
  6854. # include <assert.h>
  6855. #endif
  6856. Syntax error
  6857. _ACEOF
  6858. if ac_fn_c_try_cpp "$LINENO"; then :
  6859. else
  6860. # Broken: fails on valid input.
  6861. continue
  6862. fi
  6863. rm -f conftest.err conftest.i conftest.$ac_ext
  6864. # OK, works on sane cases. Now check whether nonexistent headers
  6865. # can be detected and how.
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. #include <ac_nonexistent.h>
  6869. _ACEOF
  6870. if ac_fn_c_try_cpp "$LINENO"; then :
  6871. # Broken: success on invalid input.
  6872. continue
  6873. else
  6874. # Passes both tests.
  6875. ac_preproc_ok=:
  6876. break
  6877. fi
  6878. rm -f conftest.err conftest.i conftest.$ac_ext
  6879. done
  6880. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6881. rm -f conftest.i conftest.err conftest.$ac_ext
  6882. if $ac_preproc_ok; then :
  6883. else
  6884. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6886. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6887. See \`config.log' for more details" "$LINENO" 5; }
  6888. fi
  6889. ac_ext=c
  6890. ac_cpp='$CPP $CPPFLAGS'
  6891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6895. $as_echo_n "checking for ANSI C header files... " >&6; }
  6896. if ${ac_cv_header_stdc+:} false; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6900. /* end confdefs.h. */
  6901. #include <stdlib.h>
  6902. #include <stdarg.h>
  6903. #include <string.h>
  6904. #include <float.h>
  6905. int
  6906. main ()
  6907. {
  6908. ;
  6909. return 0;
  6910. }
  6911. _ACEOF
  6912. if ac_fn_c_try_compile "$LINENO"; then :
  6913. ac_cv_header_stdc=yes
  6914. else
  6915. ac_cv_header_stdc=no
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. if test $ac_cv_header_stdc = yes; then
  6919. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6921. /* end confdefs.h. */
  6922. #include <string.h>
  6923. _ACEOF
  6924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6925. $EGREP "memchr" >/dev/null 2>&1; then :
  6926. else
  6927. ac_cv_header_stdc=no
  6928. fi
  6929. rm -f conftest*
  6930. fi
  6931. if test $ac_cv_header_stdc = yes; then
  6932. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6934. /* end confdefs.h. */
  6935. #include <stdlib.h>
  6936. _ACEOF
  6937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6938. $EGREP "free" >/dev/null 2>&1; then :
  6939. else
  6940. ac_cv_header_stdc=no
  6941. fi
  6942. rm -f conftest*
  6943. fi
  6944. if test $ac_cv_header_stdc = yes; then
  6945. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6946. if test "$cross_compiling" = yes; then :
  6947. :
  6948. else
  6949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6950. /* end confdefs.h. */
  6951. #include <ctype.h>
  6952. #include <stdlib.h>
  6953. #if ((' ' & 0x0FF) == 0x020)
  6954. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6955. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6956. #else
  6957. # define ISLOWER(c) \
  6958. (('a' <= (c) && (c) <= 'i') \
  6959. || ('j' <= (c) && (c) <= 'r') \
  6960. || ('s' <= (c) && (c) <= 'z'))
  6961. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6962. #endif
  6963. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6964. int
  6965. main ()
  6966. {
  6967. int i;
  6968. for (i = 0; i < 256; i++)
  6969. if (XOR (islower (i), ISLOWER (i))
  6970. || toupper (i) != TOUPPER (i))
  6971. return 2;
  6972. return 0;
  6973. }
  6974. _ACEOF
  6975. if ac_fn_c_try_run "$LINENO"; then :
  6976. else
  6977. ac_cv_header_stdc=no
  6978. fi
  6979. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6980. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6981. fi
  6982. fi
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6985. $as_echo "$ac_cv_header_stdc" >&6; }
  6986. if test $ac_cv_header_stdc = yes; then
  6987. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6988. fi
  6989. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6990. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6991. inttypes.h stdint.h unistd.h
  6992. do :
  6993. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6994. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6995. "
  6996. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6997. cat >>confdefs.h <<_ACEOF
  6998. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6999. _ACEOF
  7000. fi
  7001. done
  7002. for ac_header in dlfcn.h
  7003. do :
  7004. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7005. "
  7006. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7007. cat >>confdefs.h <<_ACEOF
  7008. #define HAVE_DLFCN_H 1
  7009. _ACEOF
  7010. fi
  7011. done
  7012. func_stripname_cnf ()
  7013. {
  7014. case ${2} in
  7015. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7016. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7017. esac
  7018. } # func_stripname_cnf
  7019. # Set options
  7020. enable_dlopen=no
  7021. enable_win32_dll=no
  7022. # Check whether --with-pic was given.
  7023. if test "${with_pic+set}" = set; then :
  7024. withval=$with_pic; pic_mode="$withval"
  7025. else
  7026. pic_mode=default
  7027. fi
  7028. test -z "$pic_mode" && pic_mode=default
  7029. # Check whether --enable-fast-install was given.
  7030. if test "${enable_fast_install+set}" = set; then :
  7031. enableval=$enable_fast_install; p=${PACKAGE-default}
  7032. case $enableval in
  7033. yes) enable_fast_install=yes ;;
  7034. no) enable_fast_install=no ;;
  7035. *)
  7036. enable_fast_install=no
  7037. # Look at the argument we got. We use all the common list separators.
  7038. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7039. for pkg in $enableval; do
  7040. IFS="$lt_save_ifs"
  7041. if test "X$pkg" = "X$p"; then
  7042. enable_fast_install=yes
  7043. fi
  7044. done
  7045. IFS="$lt_save_ifs"
  7046. ;;
  7047. esac
  7048. else
  7049. enable_fast_install=yes
  7050. fi
  7051. # This can be used to rebuild libtool when needed
  7052. LIBTOOL_DEPS="$ltmain"
  7053. # Always use our own libtool.
  7054. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7055. test -z "$LN_S" && LN_S="ln -s"
  7056. if test -n "${ZSH_VERSION+set}" ; then
  7057. setopt NO_GLOB_SUBST
  7058. fi
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7060. $as_echo_n "checking for objdir... " >&6; }
  7061. if ${lt_cv_objdir+:} false; then :
  7062. $as_echo_n "(cached) " >&6
  7063. else
  7064. rm -f .libs 2>/dev/null
  7065. mkdir .libs 2>/dev/null
  7066. if test -d .libs; then
  7067. lt_cv_objdir=.libs
  7068. else
  7069. # MS-DOS does not allow filenames that begin with a dot.
  7070. lt_cv_objdir=_libs
  7071. fi
  7072. rmdir .libs 2>/dev/null
  7073. fi
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7075. $as_echo "$lt_cv_objdir" >&6; }
  7076. objdir=$lt_cv_objdir
  7077. cat >>confdefs.h <<_ACEOF
  7078. #define LT_OBJDIR "$lt_cv_objdir/"
  7079. _ACEOF
  7080. case $host_os in
  7081. aix3*)
  7082. # AIX sometimes has problems with the GCC collect2 program. For some
  7083. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7084. # vanish in a puff of smoke.
  7085. if test "X${COLLECT_NAMES+set}" != Xset; then
  7086. COLLECT_NAMES=
  7087. export COLLECT_NAMES
  7088. fi
  7089. ;;
  7090. esac
  7091. # Global variables:
  7092. ofile=libtool
  7093. can_build_shared=yes
  7094. # All known linkers require a `.a' archive for static linking (except MSVC,
  7095. # which needs '.lib').
  7096. libext=a
  7097. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7098. old_CC="$CC"
  7099. old_CFLAGS="$CFLAGS"
  7100. # Set sane defaults for various variables
  7101. test -z "$CC" && CC=cc
  7102. test -z "$LTCC" && LTCC=$CC
  7103. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7104. test -z "$LD" && LD=ld
  7105. test -z "$ac_objext" && ac_objext=o
  7106. for cc_temp in $compiler""; do
  7107. case $cc_temp in
  7108. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7109. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7110. \-*) ;;
  7111. *) break;;
  7112. esac
  7113. done
  7114. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7115. # Only perform the check for file, if the check method requires it
  7116. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7117. case $deplibs_check_method in
  7118. file_magic*)
  7119. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7121. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7122. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. case $MAGIC_CMD in
  7126. [\\/*] | ?:[\\/]*)
  7127. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7128. ;;
  7129. *)
  7130. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7131. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7132. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7133. for ac_dir in $ac_dummy; do
  7134. IFS="$lt_save_ifs"
  7135. test -z "$ac_dir" && ac_dir=.
  7136. if test -f $ac_dir/${ac_tool_prefix}file; then
  7137. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7138. if test -n "$file_magic_test_file"; then
  7139. case $deplibs_check_method in
  7140. "file_magic "*)
  7141. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7142. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7143. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7144. $EGREP "$file_magic_regex" > /dev/null; then
  7145. :
  7146. else
  7147. cat <<_LT_EOF 1>&2
  7148. *** Warning: the command libtool uses to detect shared libraries,
  7149. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7150. *** The result is that libtool may fail to recognize shared libraries
  7151. *** as such. This will affect the creation of libtool libraries that
  7152. *** depend on shared libraries, but programs linked with such libtool
  7153. *** libraries will work regardless of this problem. Nevertheless, you
  7154. *** may want to report the problem to your system manager and/or to
  7155. *** [email protected]
  7156. _LT_EOF
  7157. fi ;;
  7158. esac
  7159. fi
  7160. break
  7161. fi
  7162. done
  7163. IFS="$lt_save_ifs"
  7164. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7165. ;;
  7166. esac
  7167. fi
  7168. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7169. if test -n "$MAGIC_CMD"; then
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7171. $as_echo "$MAGIC_CMD" >&6; }
  7172. else
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7174. $as_echo "no" >&6; }
  7175. fi
  7176. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7177. if test -n "$ac_tool_prefix"; then
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7179. $as_echo_n "checking for file... " >&6; }
  7180. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. case $MAGIC_CMD in
  7184. [\\/*] | ?:[\\/]*)
  7185. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7186. ;;
  7187. *)
  7188. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7189. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7190. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7191. for ac_dir in $ac_dummy; do
  7192. IFS="$lt_save_ifs"
  7193. test -z "$ac_dir" && ac_dir=.
  7194. if test -f $ac_dir/file; then
  7195. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7196. if test -n "$file_magic_test_file"; then
  7197. case $deplibs_check_method in
  7198. "file_magic "*)
  7199. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7200. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7201. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7202. $EGREP "$file_magic_regex" > /dev/null; then
  7203. :
  7204. else
  7205. cat <<_LT_EOF 1>&2
  7206. *** Warning: the command libtool uses to detect shared libraries,
  7207. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7208. *** The result is that libtool may fail to recognize shared libraries
  7209. *** as such. This will affect the creation of libtool libraries that
  7210. *** depend on shared libraries, but programs linked with such libtool
  7211. *** libraries will work regardless of this problem. Nevertheless, you
  7212. *** may want to report the problem to your system manager and/or to
  7213. *** [email protected]
  7214. _LT_EOF
  7215. fi ;;
  7216. esac
  7217. fi
  7218. break
  7219. fi
  7220. done
  7221. IFS="$lt_save_ifs"
  7222. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7223. ;;
  7224. esac
  7225. fi
  7226. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7227. if test -n "$MAGIC_CMD"; then
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7229. $as_echo "$MAGIC_CMD" >&6; }
  7230. else
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7232. $as_echo "no" >&6; }
  7233. fi
  7234. else
  7235. MAGIC_CMD=:
  7236. fi
  7237. fi
  7238. fi
  7239. ;;
  7240. esac
  7241. # Use C for the default configuration in the libtool script
  7242. lt_save_CC="$CC"
  7243. ac_ext=c
  7244. ac_cpp='$CPP $CPPFLAGS'
  7245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7248. # Source file extension for C test sources.
  7249. ac_ext=c
  7250. # Object file extension for compiled C test sources.
  7251. objext=o
  7252. objext=$objext
  7253. # Code to be used in simple compile tests
  7254. lt_simple_compile_test_code="int some_variable = 0;"
  7255. # Code to be used in simple link tests
  7256. lt_simple_link_test_code='int main(){return(0);}'
  7257. # If no C compiler was specified, use CC.
  7258. LTCC=${LTCC-"$CC"}
  7259. # If no C compiler flags were specified, use CFLAGS.
  7260. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7261. # Allow CC to be a program name with arguments.
  7262. compiler=$CC
  7263. # Save the default compiler, since it gets overwritten when the other
  7264. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7265. compiler_DEFAULT=$CC
  7266. # save warnings/boilerplate of simple test code
  7267. ac_outfile=conftest.$ac_objext
  7268. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7269. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7270. _lt_compiler_boilerplate=`cat conftest.err`
  7271. $RM conftest*
  7272. ac_outfile=conftest.$ac_objext
  7273. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7274. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7275. _lt_linker_boilerplate=`cat conftest.err`
  7276. $RM -r conftest*
  7277. ## CAVEAT EMPTOR:
  7278. ## There is no encapsulation within the following macros, do not change
  7279. ## the running order or otherwise move them around unless you know exactly
  7280. ## what you are doing...
  7281. if test -n "$compiler"; then
  7282. lt_prog_compiler_no_builtin_flag=
  7283. if test "$GCC" = yes; then
  7284. case $cc_basename in
  7285. nvcc*)
  7286. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7287. *)
  7288. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7289. esac
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7291. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7292. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. lt_cv_prog_compiler_rtti_exceptions=no
  7296. ac_outfile=conftest.$ac_objext
  7297. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7298. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7299. # Insert the option either (1) after the last *FLAGS variable, or
  7300. # (2) before a word containing "conftest.", or (3) at the end.
  7301. # Note that $ac_compile itself does not contain backslashes and begins
  7302. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7303. # The option is referenced via a variable to avoid confusing sed.
  7304. lt_compile=`echo "$ac_compile" | $SED \
  7305. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7306. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7307. -e 's:$: $lt_compiler_flag:'`
  7308. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7309. (eval "$lt_compile" 2>conftest.err)
  7310. ac_status=$?
  7311. cat conftest.err >&5
  7312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7313. if (exit $ac_status) && test -s "$ac_outfile"; then
  7314. # The compiler can only warn and ignore the option if not recognized
  7315. # So say no if there are warnings other than the usual output.
  7316. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7317. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7318. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7319. lt_cv_prog_compiler_rtti_exceptions=yes
  7320. fi
  7321. fi
  7322. $RM conftest*
  7323. fi
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7325. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7326. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7327. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7328. else
  7329. :
  7330. fi
  7331. fi
  7332. lt_prog_compiler_wl=
  7333. lt_prog_compiler_pic=
  7334. lt_prog_compiler_static=
  7335. if test "$GCC" = yes; then
  7336. lt_prog_compiler_wl='-Wl,'
  7337. lt_prog_compiler_static='-static'
  7338. case $host_os in
  7339. aix*)
  7340. # All AIX code is PIC.
  7341. if test "$host_cpu" = ia64; then
  7342. # AIX 5 now supports IA64 processor
  7343. lt_prog_compiler_static='-Bstatic'
  7344. fi
  7345. ;;
  7346. amigaos*)
  7347. case $host_cpu in
  7348. powerpc)
  7349. # see comment about AmigaOS4 .so support
  7350. lt_prog_compiler_pic='-fPIC'
  7351. ;;
  7352. m68k)
  7353. # FIXME: we need at least 68020 code to build shared libraries, but
  7354. # adding the `-m68020' flag to GCC prevents building anything better,
  7355. # like `-m68040'.
  7356. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7357. ;;
  7358. esac
  7359. ;;
  7360. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7361. # PIC is the default for these OSes.
  7362. ;;
  7363. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7364. # This hack is so that the source file can tell whether it is being
  7365. # built for inclusion in a dll (and should export symbols for example).
  7366. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7367. # (--disable-auto-import) libraries
  7368. lt_prog_compiler_pic='-DDLL_EXPORT'
  7369. ;;
  7370. darwin* | rhapsody*)
  7371. # PIC is the default on this platform
  7372. # Common symbols not allowed in MH_DYLIB files
  7373. lt_prog_compiler_pic='-fno-common'
  7374. ;;
  7375. haiku*)
  7376. # PIC is the default for Haiku.
  7377. # The "-static" flag exists, but is broken.
  7378. lt_prog_compiler_static=
  7379. ;;
  7380. hpux*)
  7381. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7382. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7383. # sets the default TLS model and affects inlining.
  7384. case $host_cpu in
  7385. hppa*64*)
  7386. # +Z the default
  7387. ;;
  7388. *)
  7389. lt_prog_compiler_pic='-fPIC'
  7390. ;;
  7391. esac
  7392. ;;
  7393. interix[3-9]*)
  7394. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7395. # Instead, we relocate shared libraries at runtime.
  7396. ;;
  7397. msdosdjgpp*)
  7398. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7399. # on systems that don't support them.
  7400. lt_prog_compiler_can_build_shared=no
  7401. enable_shared=no
  7402. ;;
  7403. *nto* | *qnx*)
  7404. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7405. # it will coredump.
  7406. lt_prog_compiler_pic='-fPIC -shared'
  7407. ;;
  7408. sysv4*MP*)
  7409. if test -d /usr/nec; then
  7410. lt_prog_compiler_pic=-Kconform_pic
  7411. fi
  7412. ;;
  7413. *)
  7414. lt_prog_compiler_pic='-fPIC'
  7415. ;;
  7416. esac
  7417. case $cc_basename in
  7418. nvcc*) # Cuda Compiler Driver 2.2
  7419. lt_prog_compiler_wl='-Xlinker '
  7420. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7421. ;;
  7422. esac
  7423. else
  7424. # PORTME Check for flag to pass linker flags through the system compiler.
  7425. case $host_os in
  7426. aix*)
  7427. lt_prog_compiler_wl='-Wl,'
  7428. if test "$host_cpu" = ia64; then
  7429. # AIX 5 now supports IA64 processor
  7430. lt_prog_compiler_static='-Bstatic'
  7431. else
  7432. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7433. fi
  7434. ;;
  7435. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7436. # This hack is so that the source file can tell whether it is being
  7437. # built for inclusion in a dll (and should export symbols for example).
  7438. lt_prog_compiler_pic='-DDLL_EXPORT'
  7439. ;;
  7440. hpux9* | hpux10* | hpux11*)
  7441. lt_prog_compiler_wl='-Wl,'
  7442. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7443. # not for PA HP-UX.
  7444. case $host_cpu in
  7445. hppa*64*|ia64*)
  7446. # +Z the default
  7447. ;;
  7448. *)
  7449. lt_prog_compiler_pic='+Z'
  7450. ;;
  7451. esac
  7452. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7453. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7454. ;;
  7455. irix5* | irix6* | nonstopux*)
  7456. lt_prog_compiler_wl='-Wl,'
  7457. # PIC (with -KPIC) is the default.
  7458. lt_prog_compiler_static='-non_shared'
  7459. ;;
  7460. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7461. case $cc_basename in
  7462. # old Intel for x86_64 which still supported -KPIC.
  7463. ecc*)
  7464. lt_prog_compiler_wl='-Wl,'
  7465. lt_prog_compiler_pic='-KPIC'
  7466. lt_prog_compiler_static='-static'
  7467. ;;
  7468. # icc used to be incompatible with GCC.
  7469. # ICC 10 doesn't accept -KPIC any more.
  7470. icc* | ifort*)
  7471. lt_prog_compiler_wl='-Wl,'
  7472. lt_prog_compiler_pic='-fPIC'
  7473. lt_prog_compiler_static='-static'
  7474. ;;
  7475. # Lahey Fortran 8.1.
  7476. lf95*)
  7477. lt_prog_compiler_wl='-Wl,'
  7478. lt_prog_compiler_pic='--shared'
  7479. lt_prog_compiler_static='--static'
  7480. ;;
  7481. nagfor*)
  7482. # NAG Fortran compiler
  7483. lt_prog_compiler_wl='-Wl,-Wl,,'
  7484. lt_prog_compiler_pic='-PIC'
  7485. lt_prog_compiler_static='-Bstatic'
  7486. ;;
  7487. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7488. # Portland Group compilers (*not* the Pentium gcc compiler,
  7489. # which looks to be a dead project)
  7490. lt_prog_compiler_wl='-Wl,'
  7491. lt_prog_compiler_pic='-fpic'
  7492. lt_prog_compiler_static='-Bstatic'
  7493. ;;
  7494. ccc*)
  7495. lt_prog_compiler_wl='-Wl,'
  7496. # All Alpha code is PIC.
  7497. lt_prog_compiler_static='-non_shared'
  7498. ;;
  7499. xl* | bgxl* | bgf* | mpixl*)
  7500. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7501. lt_prog_compiler_wl='-Wl,'
  7502. lt_prog_compiler_pic='-qpic'
  7503. lt_prog_compiler_static='-qstaticlink'
  7504. ;;
  7505. *)
  7506. case `$CC -V 2>&1 | sed 5q` in
  7507. *Sun\ F* | *Sun*Fortran*)
  7508. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7509. lt_prog_compiler_pic='-KPIC'
  7510. lt_prog_compiler_static='-Bstatic'
  7511. lt_prog_compiler_wl=''
  7512. ;;
  7513. *Sun\ C*)
  7514. # Sun C 5.9
  7515. lt_prog_compiler_pic='-KPIC'
  7516. lt_prog_compiler_static='-Bstatic'
  7517. lt_prog_compiler_wl='-Wl,'
  7518. ;;
  7519. esac
  7520. ;;
  7521. esac
  7522. ;;
  7523. newsos6)
  7524. lt_prog_compiler_pic='-KPIC'
  7525. lt_prog_compiler_static='-Bstatic'
  7526. ;;
  7527. *nto* | *qnx*)
  7528. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7529. # it will coredump.
  7530. lt_prog_compiler_pic='-fPIC -shared'
  7531. ;;
  7532. osf3* | osf4* | osf5*)
  7533. lt_prog_compiler_wl='-Wl,'
  7534. # All OSF/1 code is PIC.
  7535. lt_prog_compiler_static='-non_shared'
  7536. ;;
  7537. rdos*)
  7538. lt_prog_compiler_static='-non_shared'
  7539. ;;
  7540. solaris*)
  7541. lt_prog_compiler_pic='-KPIC'
  7542. lt_prog_compiler_static='-Bstatic'
  7543. case $cc_basename in
  7544. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7545. lt_prog_compiler_wl='-Qoption ld ';;
  7546. *)
  7547. lt_prog_compiler_wl='-Wl,';;
  7548. esac
  7549. ;;
  7550. sunos4*)
  7551. lt_prog_compiler_wl='-Qoption ld '
  7552. lt_prog_compiler_pic='-PIC'
  7553. lt_prog_compiler_static='-Bstatic'
  7554. ;;
  7555. sysv4 | sysv4.2uw2* | sysv4.3*)
  7556. lt_prog_compiler_wl='-Wl,'
  7557. lt_prog_compiler_pic='-KPIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. sysv4*MP*)
  7561. if test -d /usr/nec ;then
  7562. lt_prog_compiler_pic='-Kconform_pic'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. fi
  7565. ;;
  7566. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7567. lt_prog_compiler_wl='-Wl,'
  7568. lt_prog_compiler_pic='-KPIC'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. unicos*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. lt_prog_compiler_can_build_shared=no
  7574. ;;
  7575. uts4*)
  7576. lt_prog_compiler_pic='-pic'
  7577. lt_prog_compiler_static='-Bstatic'
  7578. ;;
  7579. *)
  7580. lt_prog_compiler_can_build_shared=no
  7581. ;;
  7582. esac
  7583. fi
  7584. case $host_os in
  7585. # For platforms which do not support PIC, -DPIC is meaningless:
  7586. *djgpp*)
  7587. lt_prog_compiler_pic=
  7588. ;;
  7589. *)
  7590. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7591. ;;
  7592. esac
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7594. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7595. if ${lt_cv_prog_compiler_pic+:} false; then :
  7596. $as_echo_n "(cached) " >&6
  7597. else
  7598. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7601. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7602. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7603. #
  7604. # Check to make sure the PIC flag actually works.
  7605. #
  7606. if test -n "$lt_prog_compiler_pic"; then
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7608. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7609. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. lt_cv_prog_compiler_pic_works=no
  7613. ac_outfile=conftest.$ac_objext
  7614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7615. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7616. # Insert the option either (1) after the last *FLAGS variable, or
  7617. # (2) before a word containing "conftest.", or (3) at the end.
  7618. # Note that $ac_compile itself does not contain backslashes and begins
  7619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7620. # The option is referenced via a variable to avoid confusing sed.
  7621. lt_compile=`echo "$ac_compile" | $SED \
  7622. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7623. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7624. -e 's:$: $lt_compiler_flag:'`
  7625. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7626. (eval "$lt_compile" 2>conftest.err)
  7627. ac_status=$?
  7628. cat conftest.err >&5
  7629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. if (exit $ac_status) && test -s "$ac_outfile"; then
  7631. # The compiler can only warn and ignore the option if not recognized
  7632. # So say no if there are warnings other than the usual output.
  7633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7635. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7636. lt_cv_prog_compiler_pic_works=yes
  7637. fi
  7638. fi
  7639. $RM conftest*
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7642. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7643. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7644. case $lt_prog_compiler_pic in
  7645. "" | " "*) ;;
  7646. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7647. esac
  7648. else
  7649. lt_prog_compiler_pic=
  7650. lt_prog_compiler_can_build_shared=no
  7651. fi
  7652. fi
  7653. #
  7654. # Check to make sure the static flag actually works.
  7655. #
  7656. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7658. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7659. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7660. $as_echo_n "(cached) " >&6
  7661. else
  7662. lt_cv_prog_compiler_static_works=no
  7663. save_LDFLAGS="$LDFLAGS"
  7664. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7665. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7666. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7667. # The linker can only warn and ignore the option if not recognized
  7668. # So say no if there are warnings
  7669. if test -s conftest.err; then
  7670. # Append any errors to the config.log.
  7671. cat conftest.err 1>&5
  7672. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7673. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7674. if diff conftest.exp conftest.er2 >/dev/null; then
  7675. lt_cv_prog_compiler_static_works=yes
  7676. fi
  7677. else
  7678. lt_cv_prog_compiler_static_works=yes
  7679. fi
  7680. fi
  7681. $RM -r conftest*
  7682. LDFLAGS="$save_LDFLAGS"
  7683. fi
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7685. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7686. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7687. :
  7688. else
  7689. lt_prog_compiler_static=
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7692. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7693. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7694. $as_echo_n "(cached) " >&6
  7695. else
  7696. lt_cv_prog_compiler_c_o=no
  7697. $RM -r conftest 2>/dev/null
  7698. mkdir conftest
  7699. cd conftest
  7700. mkdir out
  7701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7702. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7703. # Insert the option either (1) after the last *FLAGS variable, or
  7704. # (2) before a word containing "conftest.", or (3) at the end.
  7705. # Note that $ac_compile itself does not contain backslashes and begins
  7706. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7707. lt_compile=`echo "$ac_compile" | $SED \
  7708. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7709. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7710. -e 's:$: $lt_compiler_flag:'`
  7711. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7712. (eval "$lt_compile" 2>out/conftest.err)
  7713. ac_status=$?
  7714. cat out/conftest.err >&5
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7717. then
  7718. # The compiler can only warn and ignore the option if not recognized
  7719. # So say no if there are warnings
  7720. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7721. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7722. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7723. lt_cv_prog_compiler_c_o=yes
  7724. fi
  7725. fi
  7726. chmod u+w . 2>&5
  7727. $RM conftest*
  7728. # SGI C++ compiler will create directory out/ii_files/ for
  7729. # template instantiation
  7730. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7731. $RM out/* && rmdir out
  7732. cd ..
  7733. $RM -r conftest
  7734. $RM conftest*
  7735. fi
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7737. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7739. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7740. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7741. $as_echo_n "(cached) " >&6
  7742. else
  7743. lt_cv_prog_compiler_c_o=no
  7744. $RM -r conftest 2>/dev/null
  7745. mkdir conftest
  7746. cd conftest
  7747. mkdir out
  7748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7750. # Insert the option either (1) after the last *FLAGS variable, or
  7751. # (2) before a word containing "conftest.", or (3) at the end.
  7752. # Note that $ac_compile itself does not contain backslashes and begins
  7753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7754. lt_compile=`echo "$ac_compile" | $SED \
  7755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7756. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7757. -e 's:$: $lt_compiler_flag:'`
  7758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7759. (eval "$lt_compile" 2>out/conftest.err)
  7760. ac_status=$?
  7761. cat out/conftest.err >&5
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7764. then
  7765. # The compiler can only warn and ignore the option if not recognized
  7766. # So say no if there are warnings
  7767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7770. lt_cv_prog_compiler_c_o=yes
  7771. fi
  7772. fi
  7773. chmod u+w . 2>&5
  7774. $RM conftest*
  7775. # SGI C++ compiler will create directory out/ii_files/ for
  7776. # template instantiation
  7777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7778. $RM out/* && rmdir out
  7779. cd ..
  7780. $RM -r conftest
  7781. $RM conftest*
  7782. fi
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7784. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7785. hard_links="nottested"
  7786. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7787. # do not overwrite the value of need_locks provided by the user
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7789. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7790. hard_links=yes
  7791. $RM conftest*
  7792. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7793. touch conftest.a
  7794. ln conftest.a conftest.b 2>&5 || hard_links=no
  7795. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7797. $as_echo "$hard_links" >&6; }
  7798. if test "$hard_links" = no; then
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7800. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7801. need_locks=warn
  7802. fi
  7803. else
  7804. need_locks=no
  7805. fi
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7807. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7808. runpath_var=
  7809. allow_undefined_flag=
  7810. always_export_symbols=no
  7811. archive_cmds=
  7812. archive_expsym_cmds=
  7813. compiler_needs_object=no
  7814. enable_shared_with_static_runtimes=no
  7815. export_dynamic_flag_spec=
  7816. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7817. hardcode_automatic=no
  7818. hardcode_direct=no
  7819. hardcode_direct_absolute=no
  7820. hardcode_libdir_flag_spec=
  7821. hardcode_libdir_flag_spec_ld=
  7822. hardcode_libdir_separator=
  7823. hardcode_minus_L=no
  7824. hardcode_shlibpath_var=unsupported
  7825. inherit_rpath=no
  7826. link_all_deplibs=unknown
  7827. module_cmds=
  7828. module_expsym_cmds=
  7829. old_archive_from_new_cmds=
  7830. old_archive_from_expsyms_cmds=
  7831. thread_safe_flag_spec=
  7832. whole_archive_flag_spec=
  7833. # include_expsyms should be a list of space-separated symbols to be *always*
  7834. # included in the symbol list
  7835. include_expsyms=
  7836. # exclude_expsyms can be an extended regexp of symbols to exclude
  7837. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7838. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7839. # as well as any symbol that contains `d'.
  7840. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7841. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7842. # platforms (ab)use it in PIC code, but their linkers get confused if
  7843. # the symbol is explicitly referenced. Since portable code cannot
  7844. # rely on this symbol name, it's probably fine to never include it in
  7845. # preloaded symbol tables.
  7846. # Exclude shared library initialization/finalization symbols.
  7847. extract_expsyms_cmds=
  7848. case $host_os in
  7849. cygwin* | mingw* | pw32* | cegcc*)
  7850. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7851. # When not using gcc, we currently assume that we are using
  7852. # Microsoft Visual C++.
  7853. if test "$GCC" != yes; then
  7854. with_gnu_ld=no
  7855. fi
  7856. ;;
  7857. interix*)
  7858. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7859. with_gnu_ld=yes
  7860. ;;
  7861. openbsd*)
  7862. with_gnu_ld=no
  7863. ;;
  7864. linux* | k*bsd*-gnu | gnu*)
  7865. link_all_deplibs=no
  7866. ;;
  7867. esac
  7868. ld_shlibs=yes
  7869. # On some targets, GNU ld is compatible enough with the native linker
  7870. # that we're better off using the native interface for both.
  7871. lt_use_gnu_ld_interface=no
  7872. if test "$with_gnu_ld" = yes; then
  7873. case $host_os in
  7874. aix*)
  7875. # The AIX port of GNU ld has always aspired to compatibility
  7876. # with the native linker. However, as the warning in the GNU ld
  7877. # block says, versions before 2.19.5* couldn't really create working
  7878. # shared libraries, regardless of the interface used.
  7879. case `$LD -v 2>&1` in
  7880. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7881. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7882. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7883. *)
  7884. lt_use_gnu_ld_interface=yes
  7885. ;;
  7886. esac
  7887. ;;
  7888. *)
  7889. lt_use_gnu_ld_interface=yes
  7890. ;;
  7891. esac
  7892. fi
  7893. if test "$lt_use_gnu_ld_interface" = yes; then
  7894. # If archive_cmds runs LD, not CC, wlarc should be empty
  7895. wlarc='${wl}'
  7896. # Set some defaults for GNU ld with shared library support. These
  7897. # are reset later if shared libraries are not supported. Putting them
  7898. # here allows them to be overridden if necessary.
  7899. runpath_var=LD_RUN_PATH
  7900. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7901. export_dynamic_flag_spec='${wl}--export-dynamic'
  7902. # ancient GNU ld didn't support --whole-archive et. al.
  7903. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7904. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7905. else
  7906. whole_archive_flag_spec=
  7907. fi
  7908. supports_anon_versioning=no
  7909. case `$LD -v 2>&1` in
  7910. *GNU\ gold*) supports_anon_versioning=yes ;;
  7911. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7912. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7913. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7914. *\ 2.11.*) ;; # other 2.11 versions
  7915. *) supports_anon_versioning=yes ;;
  7916. esac
  7917. # See if GNU ld supports shared libraries.
  7918. case $host_os in
  7919. aix[3-9]*)
  7920. # On AIX/PPC, the GNU linker is very broken
  7921. if test "$host_cpu" != ia64; then
  7922. ld_shlibs=no
  7923. cat <<_LT_EOF 1>&2
  7924. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7925. *** to be unable to reliably create shared libraries on AIX.
  7926. *** Therefore, libtool is disabling shared libraries support. If you
  7927. *** really care for shared libraries, you may want to install binutils
  7928. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7929. *** You will then need to restart the configuration process.
  7930. _LT_EOF
  7931. fi
  7932. ;;
  7933. amigaos*)
  7934. case $host_cpu in
  7935. powerpc)
  7936. # see comment about AmigaOS4 .so support
  7937. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7938. archive_expsym_cmds=''
  7939. ;;
  7940. m68k)
  7941. 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)'
  7942. hardcode_libdir_flag_spec='-L$libdir'
  7943. hardcode_minus_L=yes
  7944. ;;
  7945. esac
  7946. ;;
  7947. beos*)
  7948. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7949. allow_undefined_flag=unsupported
  7950. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7951. # support --undefined. This deserves some investigation. FIXME
  7952. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7953. else
  7954. ld_shlibs=no
  7955. fi
  7956. ;;
  7957. cygwin* | mingw* | pw32* | cegcc*)
  7958. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7959. # as there is no search path for DLLs.
  7960. hardcode_libdir_flag_spec='-L$libdir'
  7961. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7962. allow_undefined_flag=unsupported
  7963. always_export_symbols=no
  7964. enable_shared_with_static_runtimes=yes
  7965. 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'
  7966. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7967. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7968. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7969. # If the export-symbols file already is a .def file (1st line
  7970. # is EXPORTS), use it as is; otherwise, prepend...
  7971. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7972. cp $export_symbols $output_objdir/$soname.def;
  7973. else
  7974. echo EXPORTS > $output_objdir/$soname.def;
  7975. cat $export_symbols >> $output_objdir/$soname.def;
  7976. fi~
  7977. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7978. else
  7979. ld_shlibs=no
  7980. fi
  7981. ;;
  7982. haiku*)
  7983. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7984. link_all_deplibs=yes
  7985. ;;
  7986. interix[3-9]*)
  7987. hardcode_direct=no
  7988. hardcode_shlibpath_var=no
  7989. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7990. export_dynamic_flag_spec='${wl}-E'
  7991. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7992. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7993. # default) and relocated if they conflict, which is a slow very memory
  7994. # consuming and fragmenting process. To avoid this, we pick a random,
  7995. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7996. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7997. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7998. 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'
  7999. ;;
  8000. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8001. tmp_diet=no
  8002. if test "$host_os" = linux-dietlibc; then
  8003. case $cc_basename in
  8004. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8005. esac
  8006. fi
  8007. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8008. && test "$tmp_diet" = no
  8009. then
  8010. tmp_addflag=' $pic_flag'
  8011. tmp_sharedflag='-shared'
  8012. case $cc_basename,$host_cpu in
  8013. pgcc*) # Portland Group C compiler
  8014. 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'
  8015. tmp_addflag=' $pic_flag'
  8016. ;;
  8017. pgf77* | pgf90* | pgf95* | pgfortran*)
  8018. # Portland Group f77 and f90 compilers
  8019. 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'
  8020. tmp_addflag=' $pic_flag -Mnomain' ;;
  8021. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8022. tmp_addflag=' -i_dynamic' ;;
  8023. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8024. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8025. ifc* | ifort*) # Intel Fortran compiler
  8026. tmp_addflag=' -nofor_main' ;;
  8027. lf95*) # Lahey Fortran 8.1
  8028. whole_archive_flag_spec=
  8029. tmp_sharedflag='--shared' ;;
  8030. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8031. tmp_sharedflag='-qmkshrobj'
  8032. tmp_addflag= ;;
  8033. nvcc*) # Cuda Compiler Driver 2.2
  8034. 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'
  8035. compiler_needs_object=yes
  8036. ;;
  8037. esac
  8038. case `$CC -V 2>&1 | sed 5q` in
  8039. *Sun\ C*) # Sun C 5.9
  8040. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8041. compiler_needs_object=yes
  8042. tmp_sharedflag='-G' ;;
  8043. *Sun\ F*) # Sun Fortran 8.3
  8044. tmp_sharedflag='-G' ;;
  8045. esac
  8046. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8047. if test "x$supports_anon_versioning" = xyes; then
  8048. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8049. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8050. echo "local: *; };" >> $output_objdir/$libname.ver~
  8051. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8052. fi
  8053. case $cc_basename in
  8054. xlf* | bgf* | bgxlf* | mpixlf*)
  8055. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8056. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8057. hardcode_libdir_flag_spec=
  8058. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8059. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8060. if test "x$supports_anon_versioning" = xyes; then
  8061. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8062. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8063. echo "local: *; };" >> $output_objdir/$libname.ver~
  8064. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8065. fi
  8066. ;;
  8067. esac
  8068. else
  8069. ld_shlibs=no
  8070. fi
  8071. ;;
  8072. netbsd* | netbsdelf*-gnu)
  8073. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8074. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8075. wlarc=
  8076. else
  8077. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8078. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8079. fi
  8080. ;;
  8081. solaris*)
  8082. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8083. ld_shlibs=no
  8084. cat <<_LT_EOF 1>&2
  8085. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8086. *** create shared libraries on Solaris systems. Therefore, libtool
  8087. *** is disabling shared libraries support. We urge you to upgrade GNU
  8088. *** binutils to release 2.9.1 or newer. Another option is to modify
  8089. *** your PATH or compiler configuration so that the native linker is
  8090. *** used, and then restart.
  8091. _LT_EOF
  8092. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8093. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8094. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8095. else
  8096. ld_shlibs=no
  8097. fi
  8098. ;;
  8099. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8100. case `$LD -v 2>&1` in
  8101. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8102. ld_shlibs=no
  8103. cat <<_LT_EOF 1>&2
  8104. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8105. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8106. *** is disabling shared libraries support. We urge you to upgrade GNU
  8107. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8108. *** your PATH or compiler configuration so that the native linker is
  8109. *** used, and then restart.
  8110. _LT_EOF
  8111. ;;
  8112. *)
  8113. # For security reasons, it is highly recommended that you always
  8114. # use absolute paths for naming shared libraries, and exclude the
  8115. # DT_RUNPATH tag from executables and libraries. But doing so
  8116. # requires that you compile everything twice, which is a pain.
  8117. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8118. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8119. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8120. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8121. else
  8122. ld_shlibs=no
  8123. fi
  8124. ;;
  8125. esac
  8126. ;;
  8127. sunos4*)
  8128. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8129. wlarc=
  8130. hardcode_direct=yes
  8131. hardcode_shlibpath_var=no
  8132. ;;
  8133. *)
  8134. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8135. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8137. else
  8138. ld_shlibs=no
  8139. fi
  8140. ;;
  8141. esac
  8142. if test "$ld_shlibs" = no; then
  8143. runpath_var=
  8144. hardcode_libdir_flag_spec=
  8145. export_dynamic_flag_spec=
  8146. whole_archive_flag_spec=
  8147. fi
  8148. else
  8149. # PORTME fill in a description of your system's linker (not GNU ld)
  8150. case $host_os in
  8151. aix3*)
  8152. allow_undefined_flag=unsupported
  8153. always_export_symbols=yes
  8154. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8155. # Note: this linker hardcodes the directories in LIBPATH if there
  8156. # are no directories specified by -L.
  8157. hardcode_minus_L=yes
  8158. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8159. # Neither direct hardcoding nor static linking is supported with a
  8160. # broken collect2.
  8161. hardcode_direct=unsupported
  8162. fi
  8163. ;;
  8164. aix[4-9]*)
  8165. if test "$host_cpu" = ia64; then
  8166. # On IA64, the linker does run time linking by default, so we don't
  8167. # have to do anything special.
  8168. aix_use_runtimelinking=no
  8169. exp_sym_flag='-Bexport'
  8170. no_entry_flag=""
  8171. else
  8172. # If we're using GNU nm, then we don't want the "-C" option.
  8173. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8174. # Also, AIX nm treats weak defined symbols like other global
  8175. # defined symbols, whereas GNU nm marks them as "W".
  8176. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8177. 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'
  8178. else
  8179. 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'
  8180. fi
  8181. aix_use_runtimelinking=no
  8182. # Test if we are trying to use run time linking or normal
  8183. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8184. # need to do runtime linking.
  8185. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8186. for ld_flag in $LDFLAGS; do
  8187. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8188. aix_use_runtimelinking=yes
  8189. break
  8190. fi
  8191. done
  8192. ;;
  8193. esac
  8194. exp_sym_flag='-bexport'
  8195. no_entry_flag='-bnoentry'
  8196. fi
  8197. # When large executables or shared objects are built, AIX ld can
  8198. # have problems creating the table of contents. If linking a library
  8199. # or program results in "error TOC overflow" add -mminimal-toc to
  8200. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8201. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8202. archive_cmds=''
  8203. hardcode_direct=yes
  8204. hardcode_direct_absolute=yes
  8205. hardcode_libdir_separator=':'
  8206. link_all_deplibs=yes
  8207. file_list_spec='${wl}-f,'
  8208. if test "$GCC" = yes; then
  8209. case $host_os in aix4.[012]|aix4.[012].*)
  8210. # We only want to do this on AIX 4.2 and lower, the check
  8211. # below for broken collect2 doesn't work under 4.3+
  8212. collect2name=`${CC} -print-prog-name=collect2`
  8213. if test -f "$collect2name" &&
  8214. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8215. then
  8216. # We have reworked collect2
  8217. :
  8218. else
  8219. # We have old collect2
  8220. hardcode_direct=unsupported
  8221. # It fails to find uninstalled libraries when the uninstalled
  8222. # path is not listed in the libpath. Setting hardcode_minus_L
  8223. # to unsupported forces relinking
  8224. hardcode_minus_L=yes
  8225. hardcode_libdir_flag_spec='-L$libdir'
  8226. hardcode_libdir_separator=
  8227. fi
  8228. ;;
  8229. esac
  8230. shared_flag='-shared'
  8231. if test "$aix_use_runtimelinking" = yes; then
  8232. shared_flag="$shared_flag "'${wl}-G'
  8233. fi
  8234. link_all_deplibs=no
  8235. else
  8236. # not using gcc
  8237. if test "$host_cpu" = ia64; then
  8238. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8239. # chokes on -Wl,-G. The following line is correct:
  8240. shared_flag='-G'
  8241. else
  8242. if test "$aix_use_runtimelinking" = yes; then
  8243. shared_flag='${wl}-G'
  8244. else
  8245. shared_flag='${wl}-bM:SRE'
  8246. fi
  8247. fi
  8248. fi
  8249. export_dynamic_flag_spec='${wl}-bexpall'
  8250. # It seems that -bexpall does not export symbols beginning with
  8251. # underscore (_), so it is better to generate a list of symbols to export.
  8252. always_export_symbols=yes
  8253. if test "$aix_use_runtimelinking" = yes; then
  8254. # Warning - without using the other runtime loading flags (-brtl),
  8255. # -berok will link without error, but may produce a broken library.
  8256. allow_undefined_flag='-berok'
  8257. # Determine the default libpath from the value encoded in an
  8258. # empty executable.
  8259. if test "${lt_cv_aix_libpath+set}" = set; then
  8260. aix_libpath=$lt_cv_aix_libpath
  8261. else
  8262. if ${lt_cv_aix_libpath_+:} false; then :
  8263. $as_echo_n "(cached) " >&6
  8264. else
  8265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8266. /* end confdefs.h. */
  8267. int
  8268. main ()
  8269. {
  8270. ;
  8271. return 0;
  8272. }
  8273. _ACEOF
  8274. if ac_fn_c_try_link "$LINENO"; then :
  8275. lt_aix_libpath_sed='
  8276. /Import File Strings/,/^$/ {
  8277. /^0/ {
  8278. s/^0 *\([^ ]*\) *$/\1/
  8279. p
  8280. }
  8281. }'
  8282. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8283. # Check for a 64-bit object if we didn't find anything.
  8284. if test -z "$lt_cv_aix_libpath_"; then
  8285. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8286. fi
  8287. fi
  8288. rm -f core conftest.err conftest.$ac_objext \
  8289. conftest$ac_exeext conftest.$ac_ext
  8290. if test -z "$lt_cv_aix_libpath_"; then
  8291. lt_cv_aix_libpath_="/usr/lib:/lib"
  8292. fi
  8293. fi
  8294. aix_libpath=$lt_cv_aix_libpath_
  8295. fi
  8296. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8297. 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"
  8298. else
  8299. if test "$host_cpu" = ia64; then
  8300. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8301. allow_undefined_flag="-z nodefs"
  8302. 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"
  8303. else
  8304. # Determine the default libpath from the value encoded in an
  8305. # empty executable.
  8306. if test "${lt_cv_aix_libpath+set}" = set; then
  8307. aix_libpath=$lt_cv_aix_libpath
  8308. else
  8309. if ${lt_cv_aix_libpath_+:} false; then :
  8310. $as_echo_n "(cached) " >&6
  8311. else
  8312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8313. /* end confdefs.h. */
  8314. int
  8315. main ()
  8316. {
  8317. ;
  8318. return 0;
  8319. }
  8320. _ACEOF
  8321. if ac_fn_c_try_link "$LINENO"; then :
  8322. lt_aix_libpath_sed='
  8323. /Import File Strings/,/^$/ {
  8324. /^0/ {
  8325. s/^0 *\([^ ]*\) *$/\1/
  8326. p
  8327. }
  8328. }'
  8329. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8330. # Check for a 64-bit object if we didn't find anything.
  8331. if test -z "$lt_cv_aix_libpath_"; then
  8332. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8333. fi
  8334. fi
  8335. rm -f core conftest.err conftest.$ac_objext \
  8336. conftest$ac_exeext conftest.$ac_ext
  8337. if test -z "$lt_cv_aix_libpath_"; then
  8338. lt_cv_aix_libpath_="/usr/lib:/lib"
  8339. fi
  8340. fi
  8341. aix_libpath=$lt_cv_aix_libpath_
  8342. fi
  8343. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8344. # Warning - without using the other run time loading flags,
  8345. # -berok will link without error, but may produce a broken library.
  8346. no_undefined_flag=' ${wl}-bernotok'
  8347. allow_undefined_flag=' ${wl}-berok'
  8348. if test "$with_gnu_ld" = yes; then
  8349. # We only use this code for GNU lds that support --whole-archive.
  8350. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8351. else
  8352. # Exported symbols can be pulled into shared objects from archives
  8353. whole_archive_flag_spec='$convenience'
  8354. fi
  8355. archive_cmds_need_lc=yes
  8356. # This is similar to how AIX traditionally builds its shared libraries.
  8357. 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'
  8358. fi
  8359. fi
  8360. ;;
  8361. amigaos*)
  8362. case $host_cpu in
  8363. powerpc)
  8364. # see comment about AmigaOS4 .so support
  8365. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8366. archive_expsym_cmds=''
  8367. ;;
  8368. m68k)
  8369. 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)'
  8370. hardcode_libdir_flag_spec='-L$libdir'
  8371. hardcode_minus_L=yes
  8372. ;;
  8373. esac
  8374. ;;
  8375. bsdi[45]*)
  8376. export_dynamic_flag_spec=-rdynamic
  8377. ;;
  8378. cygwin* | mingw* | pw32* | cegcc*)
  8379. # When not using gcc, we currently assume that we are using
  8380. # Microsoft Visual C++.
  8381. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8382. # no search path for DLLs.
  8383. case $cc_basename in
  8384. cl*)
  8385. # Native MSVC
  8386. hardcode_libdir_flag_spec=' '
  8387. allow_undefined_flag=unsupported
  8388. always_export_symbols=yes
  8389. file_list_spec='@'
  8390. # Tell ltmain to make .lib files, not .a files.
  8391. libext=lib
  8392. # Tell ltmain to make .dll files, not .so files.
  8393. shrext_cmds=".dll"
  8394. # FIXME: Setting linknames here is a bad hack.
  8395. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8396. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8397. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8398. else
  8399. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8400. fi~
  8401. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8402. linknames='
  8403. # The linker will not automatically build a static lib if we build a DLL.
  8404. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8405. enable_shared_with_static_runtimes=yes
  8406. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8407. # Don't use ranlib
  8408. old_postinstall_cmds='chmod 644 $oldlib'
  8409. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8410. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8411. case $lt_outputfile in
  8412. *.exe|*.EXE) ;;
  8413. *)
  8414. lt_outputfile="$lt_outputfile.exe"
  8415. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8416. ;;
  8417. esac~
  8418. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8419. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8420. $RM "$lt_outputfile.manifest";
  8421. fi'
  8422. ;;
  8423. *)
  8424. # Assume MSVC wrapper
  8425. hardcode_libdir_flag_spec=' '
  8426. allow_undefined_flag=unsupported
  8427. # Tell ltmain to make .lib files, not .a files.
  8428. libext=lib
  8429. # Tell ltmain to make .dll files, not .so files.
  8430. shrext_cmds=".dll"
  8431. # FIXME: Setting linknames here is a bad hack.
  8432. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8433. # The linker will automatically build a .lib file if we build a DLL.
  8434. old_archive_from_new_cmds='true'
  8435. # FIXME: Should let the user specify the lib program.
  8436. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8437. enable_shared_with_static_runtimes=yes
  8438. ;;
  8439. esac
  8440. ;;
  8441. darwin* | rhapsody*)
  8442. archive_cmds_need_lc=no
  8443. hardcode_direct=no
  8444. hardcode_automatic=yes
  8445. hardcode_shlibpath_var=unsupported
  8446. if test "$lt_cv_ld_force_load" = "yes"; then
  8447. 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\"`'
  8448. else
  8449. whole_archive_flag_spec=''
  8450. fi
  8451. link_all_deplibs=yes
  8452. allow_undefined_flag="$_lt_dar_allow_undefined"
  8453. case $cc_basename in
  8454. ifort*) _lt_dar_can_shared=yes ;;
  8455. *) _lt_dar_can_shared=$GCC ;;
  8456. esac
  8457. if test "$_lt_dar_can_shared" = "yes"; then
  8458. output_verbose_link_cmd=func_echo_all
  8459. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8460. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8461. 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}"
  8462. 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}"
  8463. else
  8464. ld_shlibs=no
  8465. fi
  8466. ;;
  8467. dgux*)
  8468. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8469. hardcode_libdir_flag_spec='-L$libdir'
  8470. hardcode_shlibpath_var=no
  8471. ;;
  8472. freebsd1*)
  8473. ld_shlibs=no
  8474. ;;
  8475. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8476. # support. Future versions do this automatically, but an explicit c++rt0.o
  8477. # does not break anything, and helps significantly (at the cost of a little
  8478. # extra space).
  8479. freebsd2.2*)
  8480. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8481. hardcode_libdir_flag_spec='-R$libdir'
  8482. hardcode_direct=yes
  8483. hardcode_shlibpath_var=no
  8484. ;;
  8485. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8486. freebsd2*)
  8487. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8488. hardcode_direct=yes
  8489. hardcode_minus_L=yes
  8490. hardcode_shlibpath_var=no
  8491. ;;
  8492. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8493. freebsd* | dragonfly*)
  8494. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8495. hardcode_libdir_flag_spec='-R$libdir'
  8496. hardcode_direct=yes
  8497. hardcode_shlibpath_var=no
  8498. ;;
  8499. hpux9*)
  8500. if test "$GCC" = yes; then
  8501. 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'
  8502. else
  8503. 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'
  8504. fi
  8505. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8506. hardcode_libdir_separator=:
  8507. hardcode_direct=yes
  8508. # hardcode_minus_L: Not really in the search PATH,
  8509. # but as the default location of the library.
  8510. hardcode_minus_L=yes
  8511. export_dynamic_flag_spec='${wl}-E'
  8512. ;;
  8513. hpux10*)
  8514. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8515. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8516. else
  8517. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8518. fi
  8519. if test "$with_gnu_ld" = no; then
  8520. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8521. hardcode_libdir_flag_spec_ld='+b $libdir'
  8522. hardcode_libdir_separator=:
  8523. hardcode_direct=yes
  8524. hardcode_direct_absolute=yes
  8525. export_dynamic_flag_spec='${wl}-E'
  8526. # hardcode_minus_L: Not really in the search PATH,
  8527. # but as the default location of the library.
  8528. hardcode_minus_L=yes
  8529. fi
  8530. ;;
  8531. hpux11*)
  8532. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8533. case $host_cpu in
  8534. hppa*64*)
  8535. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8536. ;;
  8537. ia64*)
  8538. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8539. ;;
  8540. *)
  8541. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8542. ;;
  8543. esac
  8544. else
  8545. case $host_cpu in
  8546. hppa*64*)
  8547. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8548. ;;
  8549. ia64*)
  8550. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8551. ;;
  8552. *)
  8553. # Older versions of the 11.00 compiler do not understand -b yet
  8554. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8556. $as_echo_n "checking if $CC understands -b... " >&6; }
  8557. if ${lt_cv_prog_compiler__b+:} false; then :
  8558. $as_echo_n "(cached) " >&6
  8559. else
  8560. lt_cv_prog_compiler__b=no
  8561. save_LDFLAGS="$LDFLAGS"
  8562. LDFLAGS="$LDFLAGS -b"
  8563. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8564. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8565. # The linker can only warn and ignore the option if not recognized
  8566. # So say no if there are warnings
  8567. if test -s conftest.err; then
  8568. # Append any errors to the config.log.
  8569. cat conftest.err 1>&5
  8570. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8571. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8572. if diff conftest.exp conftest.er2 >/dev/null; then
  8573. lt_cv_prog_compiler__b=yes
  8574. fi
  8575. else
  8576. lt_cv_prog_compiler__b=yes
  8577. fi
  8578. fi
  8579. $RM -r conftest*
  8580. LDFLAGS="$save_LDFLAGS"
  8581. fi
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8583. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8584. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8585. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8586. else
  8587. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8588. fi
  8589. ;;
  8590. esac
  8591. fi
  8592. if test "$with_gnu_ld" = no; then
  8593. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8594. hardcode_libdir_separator=:
  8595. case $host_cpu in
  8596. hppa*64*|ia64*)
  8597. hardcode_direct=no
  8598. hardcode_shlibpath_var=no
  8599. ;;
  8600. *)
  8601. hardcode_direct=yes
  8602. hardcode_direct_absolute=yes
  8603. export_dynamic_flag_spec='${wl}-E'
  8604. # hardcode_minus_L: Not really in the search PATH,
  8605. # but as the default location of the library.
  8606. hardcode_minus_L=yes
  8607. ;;
  8608. esac
  8609. fi
  8610. ;;
  8611. irix5* | irix6* | nonstopux*)
  8612. if test "$GCC" = yes; then
  8613. 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'
  8614. # Try to use the -exported_symbol ld option, if it does not
  8615. # work, assume that -exports_file does not work either and
  8616. # implicitly export all symbols.
  8617. # This should be the same for all languages, so no per-tag cache variable.
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8619. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8620. if ${lt_cv_irix_exported_symbol+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. save_LDFLAGS="$LDFLAGS"
  8624. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8626. /* end confdefs.h. */
  8627. int foo (void) { return 0; }
  8628. _ACEOF
  8629. if ac_fn_c_try_link "$LINENO"; then :
  8630. lt_cv_irix_exported_symbol=yes
  8631. else
  8632. lt_cv_irix_exported_symbol=no
  8633. fi
  8634. rm -f core conftest.err conftest.$ac_objext \
  8635. conftest$ac_exeext conftest.$ac_ext
  8636. LDFLAGS="$save_LDFLAGS"
  8637. fi
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8639. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8640. if test "$lt_cv_irix_exported_symbol" = yes; then
  8641. 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'
  8642. fi
  8643. else
  8644. 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'
  8645. 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'
  8646. fi
  8647. archive_cmds_need_lc='no'
  8648. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8649. hardcode_libdir_separator=:
  8650. inherit_rpath=yes
  8651. link_all_deplibs=yes
  8652. ;;
  8653. netbsd* | netbsdelf*-gnu)
  8654. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8655. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8656. else
  8657. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8658. fi
  8659. hardcode_libdir_flag_spec='-R$libdir'
  8660. hardcode_direct=yes
  8661. hardcode_shlibpath_var=no
  8662. ;;
  8663. newsos6)
  8664. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8665. hardcode_direct=yes
  8666. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8667. hardcode_libdir_separator=:
  8668. hardcode_shlibpath_var=no
  8669. ;;
  8670. *nto* | *qnx*)
  8671. ;;
  8672. openbsd*)
  8673. if test -f /usr/libexec/ld.so; then
  8674. hardcode_direct=yes
  8675. hardcode_shlibpath_var=no
  8676. hardcode_direct_absolute=yes
  8677. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8678. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8679. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8680. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8681. export_dynamic_flag_spec='${wl}-E'
  8682. else
  8683. case $host_os in
  8684. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8685. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8686. hardcode_libdir_flag_spec='-R$libdir'
  8687. ;;
  8688. *)
  8689. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8690. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8691. ;;
  8692. esac
  8693. fi
  8694. else
  8695. ld_shlibs=no
  8696. fi
  8697. ;;
  8698. os2*)
  8699. hardcode_libdir_flag_spec='-L$libdir'
  8700. hardcode_minus_L=yes
  8701. allow_undefined_flag=unsupported
  8702. 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'
  8703. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8704. ;;
  8705. osf3*)
  8706. if test "$GCC" = yes; then
  8707. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8708. 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'
  8709. else
  8710. allow_undefined_flag=' -expect_unresolved \*'
  8711. 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'
  8712. fi
  8713. archive_cmds_need_lc='no'
  8714. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8715. hardcode_libdir_separator=:
  8716. ;;
  8717. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8718. if test "$GCC" = yes; then
  8719. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8720. 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'
  8721. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8722. else
  8723. allow_undefined_flag=' -expect_unresolved \*'
  8724. 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'
  8725. 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~
  8726. $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'
  8727. # Both c and cxx compiler support -rpath directly
  8728. hardcode_libdir_flag_spec='-rpath $libdir'
  8729. fi
  8730. archive_cmds_need_lc='no'
  8731. hardcode_libdir_separator=:
  8732. ;;
  8733. solaris*)
  8734. no_undefined_flag=' -z defs'
  8735. if test "$GCC" = yes; then
  8736. wlarc='${wl}'
  8737. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8738. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8739. $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'
  8740. else
  8741. case `$CC -V 2>&1` in
  8742. *"Compilers 5.0"*)
  8743. wlarc=''
  8744. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8745. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8746. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8747. ;;
  8748. *)
  8749. wlarc='${wl}'
  8750. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8751. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8752. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8753. ;;
  8754. esac
  8755. fi
  8756. hardcode_libdir_flag_spec='-R$libdir'
  8757. hardcode_shlibpath_var=no
  8758. case $host_os in
  8759. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8760. *)
  8761. # The compiler driver will combine and reorder linker options,
  8762. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8763. # but is careful enough not to reorder.
  8764. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8765. if test "$GCC" = yes; then
  8766. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8767. else
  8768. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8769. fi
  8770. ;;
  8771. esac
  8772. link_all_deplibs=yes
  8773. ;;
  8774. sunos4*)
  8775. if test "x$host_vendor" = xsequent; then
  8776. # Use $CC to link under sequent, because it throws in some extra .o
  8777. # files that make .init and .fini sections work.
  8778. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8779. else
  8780. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8781. fi
  8782. hardcode_libdir_flag_spec='-L$libdir'
  8783. hardcode_direct=yes
  8784. hardcode_minus_L=yes
  8785. hardcode_shlibpath_var=no
  8786. ;;
  8787. sysv4)
  8788. case $host_vendor in
  8789. sni)
  8790. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8791. hardcode_direct=yes # is this really true???
  8792. ;;
  8793. siemens)
  8794. ## LD is ld it makes a PLAMLIB
  8795. ## CC just makes a GrossModule.
  8796. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8797. reload_cmds='$CC -r -o $output$reload_objs'
  8798. hardcode_direct=no
  8799. ;;
  8800. motorola)
  8801. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8802. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8803. ;;
  8804. esac
  8805. runpath_var='LD_RUN_PATH'
  8806. hardcode_shlibpath_var=no
  8807. ;;
  8808. sysv4.3*)
  8809. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8810. hardcode_shlibpath_var=no
  8811. export_dynamic_flag_spec='-Bexport'
  8812. ;;
  8813. sysv4*MP*)
  8814. if test -d /usr/nec; then
  8815. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8816. hardcode_shlibpath_var=no
  8817. runpath_var=LD_RUN_PATH
  8818. hardcode_runpath_var=yes
  8819. ld_shlibs=yes
  8820. fi
  8821. ;;
  8822. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8823. no_undefined_flag='${wl}-z,text'
  8824. archive_cmds_need_lc=no
  8825. hardcode_shlibpath_var=no
  8826. runpath_var='LD_RUN_PATH'
  8827. if test "$GCC" = yes; then
  8828. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8829. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8830. else
  8831. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8832. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8833. fi
  8834. ;;
  8835. sysv5* | sco3.2v5* | sco5v6*)
  8836. # Note: We can NOT use -z defs as we might desire, because we do not
  8837. # link with -lc, and that would cause any symbols used from libc to
  8838. # always be unresolved, which means just about no library would
  8839. # ever link correctly. If we're not using GNU ld we use -z text
  8840. # though, which does catch some bad symbols but isn't as heavy-handed
  8841. # as -z defs.
  8842. no_undefined_flag='${wl}-z,text'
  8843. allow_undefined_flag='${wl}-z,nodefs'
  8844. archive_cmds_need_lc=no
  8845. hardcode_shlibpath_var=no
  8846. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8847. hardcode_libdir_separator=':'
  8848. link_all_deplibs=yes
  8849. export_dynamic_flag_spec='${wl}-Bexport'
  8850. runpath_var='LD_RUN_PATH'
  8851. if test "$GCC" = yes; then
  8852. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8853. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8854. else
  8855. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8856. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8857. fi
  8858. ;;
  8859. uts4*)
  8860. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8861. hardcode_libdir_flag_spec='-L$libdir'
  8862. hardcode_shlibpath_var=no
  8863. ;;
  8864. *)
  8865. ld_shlibs=no
  8866. ;;
  8867. esac
  8868. if test x$host_vendor = xsni; then
  8869. case $host in
  8870. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8871. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8872. ;;
  8873. esac
  8874. fi
  8875. fi
  8876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8877. $as_echo "$ld_shlibs" >&6; }
  8878. test "$ld_shlibs" = no && can_build_shared=no
  8879. with_gnu_ld=$with_gnu_ld
  8880. #
  8881. # Do we need to explicitly link libc?
  8882. #
  8883. case "x$archive_cmds_need_lc" in
  8884. x|xyes)
  8885. # Assume -lc should be added
  8886. archive_cmds_need_lc=yes
  8887. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8888. case $archive_cmds in
  8889. *'~'*)
  8890. # FIXME: we may have to deal with multi-command sequences.
  8891. ;;
  8892. '$CC '*)
  8893. # Test whether the compiler implicitly links with -lc since on some
  8894. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8895. # to ld, don't add -lc before -lgcc.
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8897. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8898. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8899. $as_echo_n "(cached) " >&6
  8900. else
  8901. $RM conftest*
  8902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8903. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8904. (eval $ac_compile) 2>&5
  8905. ac_status=$?
  8906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8907. test $ac_status = 0; } 2>conftest.err; then
  8908. soname=conftest
  8909. lib=conftest
  8910. libobjs=conftest.$ac_objext
  8911. deplibs=
  8912. wl=$lt_prog_compiler_wl
  8913. pic_flag=$lt_prog_compiler_pic
  8914. compiler_flags=-v
  8915. linker_flags=-v
  8916. verstring=
  8917. output_objdir=.
  8918. libname=conftest
  8919. lt_save_allow_undefined_flag=$allow_undefined_flag
  8920. allow_undefined_flag=
  8921. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8922. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8923. ac_status=$?
  8924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8925. test $ac_status = 0; }
  8926. then
  8927. lt_cv_archive_cmds_need_lc=no
  8928. else
  8929. lt_cv_archive_cmds_need_lc=yes
  8930. fi
  8931. allow_undefined_flag=$lt_save_allow_undefined_flag
  8932. else
  8933. cat conftest.err 1>&5
  8934. fi
  8935. $RM conftest*
  8936. fi
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8938. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8939. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8940. ;;
  8941. esac
  8942. fi
  8943. ;;
  8944. esac
  8945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8946. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8947. if test "$GCC" = yes; then
  8948. case $host_os in
  8949. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8950. *) lt_awk_arg="/^libraries:/" ;;
  8951. esac
  8952. case $host_os in
  8953. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8954. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8955. esac
  8956. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8957. case $lt_search_path_spec in
  8958. *\;*)
  8959. # if the path contains ";" then we assume it to be the separator
  8960. # otherwise default to the standard path separator (i.e. ":") - it is
  8961. # assumed that no part of a normal pathname contains ";" but that should
  8962. # okay in the real world where ";" in dirpaths is itself problematic.
  8963. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8964. ;;
  8965. *)
  8966. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8967. ;;
  8968. esac
  8969. # Ok, now we have the path, separated by spaces, we can step through it
  8970. # and add multilib dir if necessary.
  8971. lt_tmp_lt_search_path_spec=
  8972. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8973. for lt_sys_path in $lt_search_path_spec; do
  8974. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8975. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8976. else
  8977. test -d "$lt_sys_path" && \
  8978. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8979. fi
  8980. done
  8981. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8982. BEGIN {RS=" "; FS="/|\n";} {
  8983. lt_foo="";
  8984. lt_count=0;
  8985. for (lt_i = NF; lt_i > 0; lt_i--) {
  8986. if ($lt_i != "" && $lt_i != ".") {
  8987. if ($lt_i == "..") {
  8988. lt_count++;
  8989. } else {
  8990. if (lt_count == 0) {
  8991. lt_foo="/" $lt_i lt_foo;
  8992. } else {
  8993. lt_count--;
  8994. }
  8995. }
  8996. }
  8997. }
  8998. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8999. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9000. }'`
  9001. # AWK program above erroneously prepends '/' to C:/dos/paths
  9002. # for these hosts.
  9003. case $host_os in
  9004. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9005. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9006. esac
  9007. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9008. else
  9009. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9010. fi
  9011. library_names_spec=
  9012. libname_spec='lib$name'
  9013. soname_spec=
  9014. shrext_cmds=".so"
  9015. postinstall_cmds=
  9016. postuninstall_cmds=
  9017. finish_cmds=
  9018. finish_eval=
  9019. shlibpath_var=
  9020. shlibpath_overrides_runpath=unknown
  9021. version_type=none
  9022. dynamic_linker="$host_os ld.so"
  9023. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9024. need_lib_prefix=unknown
  9025. hardcode_into_libs=no
  9026. # when you set need_version to no, make sure it does not cause -set_version
  9027. # flags to be left without arguments
  9028. need_version=unknown
  9029. case $host_os in
  9030. aix3*)
  9031. version_type=linux
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9033. shlibpath_var=LIBPATH
  9034. # AIX 3 has no versioning support, so we append a major version to the name.
  9035. soname_spec='${libname}${release}${shared_ext}$major'
  9036. ;;
  9037. aix[4-9]*)
  9038. version_type=linux
  9039. need_lib_prefix=no
  9040. need_version=no
  9041. hardcode_into_libs=yes
  9042. if test "$host_cpu" = ia64; then
  9043. # AIX 5 supports IA64
  9044. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9045. shlibpath_var=LD_LIBRARY_PATH
  9046. else
  9047. # With GCC up to 2.95.x, collect2 would create an import file
  9048. # for dependence libraries. The import file would start with
  9049. # the line `#! .'. This would cause the generated library to
  9050. # depend on `.', always an invalid library. This was fixed in
  9051. # development snapshots of GCC prior to 3.0.
  9052. case $host_os in
  9053. aix4 | aix4.[01] | aix4.[01].*)
  9054. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9055. echo ' yes '
  9056. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9057. :
  9058. else
  9059. can_build_shared=no
  9060. fi
  9061. ;;
  9062. esac
  9063. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9064. # soname into executable. Probably we can add versioning support to
  9065. # collect2, so additional links can be useful in future.
  9066. if test "$aix_use_runtimelinking" = yes; then
  9067. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9068. # instead of lib<name>.a to let people know that these are not
  9069. # typical AIX shared libraries.
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9071. else
  9072. # We preserve .a as extension for shared libraries through AIX4.2
  9073. # and later when we are not doing run time linking.
  9074. library_names_spec='${libname}${release}.a $libname.a'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. fi
  9077. shlibpath_var=LIBPATH
  9078. fi
  9079. ;;
  9080. amigaos*)
  9081. case $host_cpu in
  9082. powerpc)
  9083. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9084. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9086. ;;
  9087. m68k)
  9088. library_names_spec='$libname.ixlibrary $libname.a'
  9089. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9090. 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'
  9091. ;;
  9092. esac
  9093. ;;
  9094. beos*)
  9095. library_names_spec='${libname}${shared_ext}'
  9096. dynamic_linker="$host_os ld.so"
  9097. shlibpath_var=LIBRARY_PATH
  9098. ;;
  9099. bsdi[45]*)
  9100. version_type=linux
  9101. need_version=no
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9103. soname_spec='${libname}${release}${shared_ext}$major'
  9104. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9107. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9108. # the default ld.so.conf also contains /usr/contrib/lib and
  9109. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9110. # libtool to hard-code these into programs
  9111. ;;
  9112. cygwin* | mingw* | pw32* | cegcc*)
  9113. version_type=windows
  9114. shrext_cmds=".dll"
  9115. need_version=no
  9116. need_lib_prefix=no
  9117. case $GCC,$cc_basename in
  9118. yes,*)
  9119. # gcc
  9120. library_names_spec='$libname.dll.a'
  9121. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9122. postinstall_cmds='base_file=`basename \${file}`~
  9123. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9124. dldir=$destdir/`dirname \$dlpath`~
  9125. test -d \$dldir || mkdir -p \$dldir~
  9126. $install_prog $dir/$dlname \$dldir/$dlname~
  9127. chmod a+x \$dldir/$dlname~
  9128. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9129. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9130. fi'
  9131. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9132. dlpath=$dir/\$dldll~
  9133. $RM \$dlpath'
  9134. shlibpath_overrides_runpath=yes
  9135. case $host_os in
  9136. cygwin*)
  9137. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9138. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9139. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9140. ;;
  9141. mingw* | cegcc*)
  9142. # MinGW DLLs use traditional 'lib' prefix
  9143. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9144. ;;
  9145. pw32*)
  9146. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9147. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9148. ;;
  9149. esac
  9150. dynamic_linker='Win32 ld.exe'
  9151. ;;
  9152. *,cl*)
  9153. # Native MSVC
  9154. libname_spec='$name'
  9155. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9156. library_names_spec='${libname}.dll.lib'
  9157. case $build_os in
  9158. mingw*)
  9159. sys_lib_search_path_spec=
  9160. lt_save_ifs=$IFS
  9161. IFS=';'
  9162. for lt_path in $LIB
  9163. do
  9164. IFS=$lt_save_ifs
  9165. # Let DOS variable expansion print the short 8.3 style file name.
  9166. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9167. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9168. done
  9169. IFS=$lt_save_ifs
  9170. # Convert to MSYS style.
  9171. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9172. ;;
  9173. cygwin*)
  9174. # Convert to unix form, then to dos form, then back to unix form
  9175. # but this time dos style (no spaces!) so that the unix form looks
  9176. # like /cygdrive/c/PROGRA~1:/cygdr...
  9177. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9178. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9179. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9180. ;;
  9181. *)
  9182. sys_lib_search_path_spec="$LIB"
  9183. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9184. # It is most probably a Windows format PATH.
  9185. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9186. else
  9187. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9188. fi
  9189. # FIXME: find the short name or the path components, as spaces are
  9190. # common. (e.g. "Program Files" -> "PROGRA~1")
  9191. ;;
  9192. esac
  9193. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9194. postinstall_cmds='base_file=`basename \${file}`~
  9195. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9196. dldir=$destdir/`dirname \$dlpath`~
  9197. test -d \$dldir || mkdir -p \$dldir~
  9198. $install_prog $dir/$dlname \$dldir/$dlname'
  9199. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9200. dlpath=$dir/\$dldll~
  9201. $RM \$dlpath'
  9202. shlibpath_overrides_runpath=yes
  9203. dynamic_linker='Win32 link.exe'
  9204. ;;
  9205. *)
  9206. # Assume MSVC wrapper
  9207. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9208. dynamic_linker='Win32 ld.exe'
  9209. ;;
  9210. esac
  9211. # FIXME: first we should search . and the directory the executable is in
  9212. shlibpath_var=PATH
  9213. ;;
  9214. darwin* | rhapsody*)
  9215. dynamic_linker="$host_os dyld"
  9216. version_type=darwin
  9217. need_lib_prefix=no
  9218. need_version=no
  9219. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9220. soname_spec='${libname}${release}${major}$shared_ext'
  9221. shlibpath_overrides_runpath=yes
  9222. shlibpath_var=DYLD_LIBRARY_PATH
  9223. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9224. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9225. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9226. ;;
  9227. dgux*)
  9228. version_type=linux
  9229. need_lib_prefix=no
  9230. need_version=no
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. shlibpath_var=LD_LIBRARY_PATH
  9234. ;;
  9235. freebsd1*)
  9236. dynamic_linker=no
  9237. ;;
  9238. freebsd* | dragonfly*)
  9239. # DragonFly does not have aout. When/if they implement a new
  9240. # versioning mechanism, adjust this.
  9241. if test -x /usr/bin/objformat; then
  9242. objformat=`/usr/bin/objformat`
  9243. else
  9244. case $host_os in
  9245. freebsd[123]*) objformat=aout ;;
  9246. *) objformat=elf ;;
  9247. esac
  9248. fi
  9249. version_type=freebsd-$objformat
  9250. case $version_type in
  9251. freebsd-elf*)
  9252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9253. need_version=no
  9254. need_lib_prefix=no
  9255. ;;
  9256. freebsd-*)
  9257. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9258. need_version=yes
  9259. ;;
  9260. esac
  9261. shlibpath_var=LD_LIBRARY_PATH
  9262. case $host_os in
  9263. freebsd2*)
  9264. shlibpath_overrides_runpath=yes
  9265. ;;
  9266. freebsd3.[01]* | freebsdelf3.[01]*)
  9267. shlibpath_overrides_runpath=yes
  9268. hardcode_into_libs=yes
  9269. ;;
  9270. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9271. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9272. shlibpath_overrides_runpath=no
  9273. hardcode_into_libs=yes
  9274. ;;
  9275. *) # from 4.6 on, and DragonFly
  9276. shlibpath_overrides_runpath=yes
  9277. hardcode_into_libs=yes
  9278. ;;
  9279. esac
  9280. ;;
  9281. gnu*)
  9282. version_type=linux
  9283. need_lib_prefix=no
  9284. need_version=no
  9285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9286. soname_spec='${libname}${release}${shared_ext}$major'
  9287. shlibpath_var=LD_LIBRARY_PATH
  9288. shlibpath_overrides_runpath=no
  9289. hardcode_into_libs=yes
  9290. ;;
  9291. haiku*)
  9292. version_type=linux
  9293. need_lib_prefix=no
  9294. need_version=no
  9295. dynamic_linker="$host_os runtime_loader"
  9296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9297. soname_spec='${libname}${release}${shared_ext}$major'
  9298. shlibpath_var=LIBRARY_PATH
  9299. shlibpath_overrides_runpath=yes
  9300. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9301. hardcode_into_libs=yes
  9302. ;;
  9303. hpux9* | hpux10* | hpux11*)
  9304. # Give a soname corresponding to the major version so that dld.sl refuses to
  9305. # link against other versions.
  9306. version_type=sunos
  9307. need_lib_prefix=no
  9308. need_version=no
  9309. case $host_cpu in
  9310. ia64*)
  9311. shrext_cmds='.so'
  9312. hardcode_into_libs=yes
  9313. dynamic_linker="$host_os dld.so"
  9314. shlibpath_var=LD_LIBRARY_PATH
  9315. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9317. soname_spec='${libname}${release}${shared_ext}$major'
  9318. if test "X$HPUX_IA64_MODE" = X32; then
  9319. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9320. else
  9321. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9322. fi
  9323. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9324. ;;
  9325. hppa*64*)
  9326. shrext_cmds='.sl'
  9327. hardcode_into_libs=yes
  9328. dynamic_linker="$host_os dld.sl"
  9329. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9330. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9334. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9335. ;;
  9336. *)
  9337. shrext_cmds='.sl'
  9338. dynamic_linker="$host_os dld.sl"
  9339. shlibpath_var=SHLIB_PATH
  9340. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. ;;
  9344. esac
  9345. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9346. postinstall_cmds='chmod 555 $lib'
  9347. # or fails outright, so override atomically:
  9348. install_override_mode=555
  9349. ;;
  9350. interix[3-9]*)
  9351. version_type=linux
  9352. need_lib_prefix=no
  9353. need_version=no
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9355. soname_spec='${libname}${release}${shared_ext}$major'
  9356. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9357. shlibpath_var=LD_LIBRARY_PATH
  9358. shlibpath_overrides_runpath=no
  9359. hardcode_into_libs=yes
  9360. ;;
  9361. irix5* | irix6* | nonstopux*)
  9362. case $host_os in
  9363. nonstopux*) version_type=nonstopux ;;
  9364. *)
  9365. if test "$lt_cv_prog_gnu_ld" = yes; then
  9366. version_type=linux
  9367. else
  9368. version_type=irix
  9369. fi ;;
  9370. esac
  9371. need_lib_prefix=no
  9372. need_version=no
  9373. soname_spec='${libname}${release}${shared_ext}$major'
  9374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9375. case $host_os in
  9376. irix5* | nonstopux*)
  9377. libsuff= shlibsuff=
  9378. ;;
  9379. *)
  9380. case $LD in # libtool.m4 will add one of these switches to LD
  9381. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9382. libsuff= shlibsuff= libmagic=32-bit;;
  9383. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9384. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9385. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9386. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9387. *) libsuff= shlibsuff= libmagic=never-match;;
  9388. esac
  9389. ;;
  9390. esac
  9391. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9392. shlibpath_overrides_runpath=no
  9393. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9394. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9395. hardcode_into_libs=yes
  9396. ;;
  9397. # No shared lib support for Linux oldld, aout, or coff.
  9398. linux*oldld* | linux*aout* | linux*coff*)
  9399. dynamic_linker=no
  9400. ;;
  9401. # This must be Linux ELF.
  9402. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9403. version_type=linux
  9404. need_lib_prefix=no
  9405. need_version=no
  9406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9407. soname_spec='${libname}${release}${shared_ext}$major'
  9408. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9409. shlibpath_var=LD_LIBRARY_PATH
  9410. shlibpath_overrides_runpath=no
  9411. # Some binutils ld are patched to set DT_RUNPATH
  9412. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9413. $as_echo_n "(cached) " >&6
  9414. else
  9415. lt_cv_shlibpath_overrides_runpath=no
  9416. save_LDFLAGS=$LDFLAGS
  9417. save_libdir=$libdir
  9418. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9419. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9421. /* end confdefs.h. */
  9422. int
  9423. main ()
  9424. {
  9425. ;
  9426. return 0;
  9427. }
  9428. _ACEOF
  9429. if ac_fn_c_try_link "$LINENO"; then :
  9430. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9431. lt_cv_shlibpath_overrides_runpath=yes
  9432. fi
  9433. fi
  9434. rm -f core conftest.err conftest.$ac_objext \
  9435. conftest$ac_exeext conftest.$ac_ext
  9436. LDFLAGS=$save_LDFLAGS
  9437. libdir=$save_libdir
  9438. fi
  9439. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9440. # This implies no fast_install, which is unacceptable.
  9441. # Some rework will be needed to allow for fast_install
  9442. # before this can be enabled.
  9443. hardcode_into_libs=yes
  9444. # Append ld.so.conf contents to the search path
  9445. if test -f /etc/ld.so.conf; then
  9446. 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' ' '`
  9447. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9448. fi
  9449. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9450. # powerpc, because MkLinux only supported shared libraries with the
  9451. # GNU dynamic linker. Since this was broken with cross compilers,
  9452. # most powerpc-linux boxes support dynamic linking these days and
  9453. # people can always --disable-shared, the test was removed, and we
  9454. # assume the GNU/Linux dynamic linker is in use.
  9455. dynamic_linker='GNU/Linux ld.so'
  9456. ;;
  9457. netbsdelf*-gnu)
  9458. version_type=linux
  9459. need_lib_prefix=no
  9460. need_version=no
  9461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9462. soname_spec='${libname}${release}${shared_ext}$major'
  9463. shlibpath_var=LD_LIBRARY_PATH
  9464. shlibpath_overrides_runpath=no
  9465. hardcode_into_libs=yes
  9466. dynamic_linker='NetBSD ld.elf_so'
  9467. ;;
  9468. netbsd*)
  9469. version_type=sunos
  9470. need_lib_prefix=no
  9471. need_version=no
  9472. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9474. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9475. dynamic_linker='NetBSD (a.out) ld.so'
  9476. else
  9477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9478. soname_spec='${libname}${release}${shared_ext}$major'
  9479. dynamic_linker='NetBSD ld.elf_so'
  9480. fi
  9481. shlibpath_var=LD_LIBRARY_PATH
  9482. shlibpath_overrides_runpath=yes
  9483. hardcode_into_libs=yes
  9484. ;;
  9485. newsos6)
  9486. version_type=linux
  9487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9488. shlibpath_var=LD_LIBRARY_PATH
  9489. shlibpath_overrides_runpath=yes
  9490. ;;
  9491. *nto* | *qnx*)
  9492. version_type=qnx
  9493. need_lib_prefix=no
  9494. need_version=no
  9495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9496. soname_spec='${libname}${release}${shared_ext}$major'
  9497. shlibpath_var=LD_LIBRARY_PATH
  9498. shlibpath_overrides_runpath=no
  9499. hardcode_into_libs=yes
  9500. dynamic_linker='ldqnx.so'
  9501. ;;
  9502. openbsd*)
  9503. version_type=sunos
  9504. sys_lib_dlsearch_path_spec="/usr/lib"
  9505. need_lib_prefix=no
  9506. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9507. case $host_os in
  9508. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9509. *) need_version=no ;;
  9510. esac
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9512. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9513. shlibpath_var=LD_LIBRARY_PATH
  9514. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9515. case $host_os in
  9516. openbsd2.[89] | openbsd2.[89].*)
  9517. shlibpath_overrides_runpath=no
  9518. ;;
  9519. *)
  9520. shlibpath_overrides_runpath=yes
  9521. ;;
  9522. esac
  9523. else
  9524. shlibpath_overrides_runpath=yes
  9525. fi
  9526. ;;
  9527. os2*)
  9528. libname_spec='$name'
  9529. shrext_cmds=".dll"
  9530. need_lib_prefix=no
  9531. library_names_spec='$libname${shared_ext} $libname.a'
  9532. dynamic_linker='OS/2 ld.exe'
  9533. shlibpath_var=LIBPATH
  9534. ;;
  9535. osf3* | osf4* | osf5*)
  9536. version_type=osf
  9537. need_lib_prefix=no
  9538. need_version=no
  9539. soname_spec='${libname}${release}${shared_ext}$major'
  9540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9541. shlibpath_var=LD_LIBRARY_PATH
  9542. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9543. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9544. ;;
  9545. rdos*)
  9546. dynamic_linker=no
  9547. ;;
  9548. solaris*)
  9549. version_type=linux
  9550. need_lib_prefix=no
  9551. need_version=no
  9552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9553. soname_spec='${libname}${release}${shared_ext}$major'
  9554. shlibpath_var=LD_LIBRARY_PATH
  9555. shlibpath_overrides_runpath=yes
  9556. hardcode_into_libs=yes
  9557. # ldd complains unless libraries are executable
  9558. postinstall_cmds='chmod +x $lib'
  9559. ;;
  9560. sunos4*)
  9561. version_type=sunos
  9562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9563. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9564. shlibpath_var=LD_LIBRARY_PATH
  9565. shlibpath_overrides_runpath=yes
  9566. if test "$with_gnu_ld" = yes; then
  9567. need_lib_prefix=no
  9568. fi
  9569. need_version=yes
  9570. ;;
  9571. sysv4 | sysv4.3*)
  9572. version_type=linux
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9574. soname_spec='${libname}${release}${shared_ext}$major'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. case $host_vendor in
  9577. sni)
  9578. shlibpath_overrides_runpath=no
  9579. need_lib_prefix=no
  9580. runpath_var=LD_RUN_PATH
  9581. ;;
  9582. siemens)
  9583. need_lib_prefix=no
  9584. ;;
  9585. motorola)
  9586. need_lib_prefix=no
  9587. need_version=no
  9588. shlibpath_overrides_runpath=no
  9589. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9590. ;;
  9591. esac
  9592. ;;
  9593. sysv4*MP*)
  9594. if test -d /usr/nec ;then
  9595. version_type=linux
  9596. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9597. soname_spec='$libname${shared_ext}.$major'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. fi
  9600. ;;
  9601. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9602. version_type=freebsd-elf
  9603. need_lib_prefix=no
  9604. need_version=no
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9606. soname_spec='${libname}${release}${shared_ext}$major'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. shlibpath_overrides_runpath=yes
  9609. hardcode_into_libs=yes
  9610. if test "$with_gnu_ld" = yes; then
  9611. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9612. else
  9613. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9614. case $host_os in
  9615. sco3.2v5*)
  9616. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9617. ;;
  9618. esac
  9619. fi
  9620. sys_lib_dlsearch_path_spec='/usr/lib'
  9621. ;;
  9622. tpf*)
  9623. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9624. version_type=linux
  9625. need_lib_prefix=no
  9626. need_version=no
  9627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9628. shlibpath_var=LD_LIBRARY_PATH
  9629. shlibpath_overrides_runpath=no
  9630. hardcode_into_libs=yes
  9631. ;;
  9632. uts4*)
  9633. version_type=linux
  9634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9635. soname_spec='${libname}${release}${shared_ext}$major'
  9636. shlibpath_var=LD_LIBRARY_PATH
  9637. ;;
  9638. *)
  9639. dynamic_linker=no
  9640. ;;
  9641. esac
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9643. $as_echo "$dynamic_linker" >&6; }
  9644. test "$dynamic_linker" = no && can_build_shared=no
  9645. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9646. if test "$GCC" = yes; then
  9647. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9648. fi
  9649. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9650. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9651. fi
  9652. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9653. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9654. fi
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9656. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9657. hardcode_action=
  9658. if test -n "$hardcode_libdir_flag_spec" ||
  9659. test -n "$runpath_var" ||
  9660. test "X$hardcode_automatic" = "Xyes" ; then
  9661. # We can hardcode non-existent directories.
  9662. if test "$hardcode_direct" != no &&
  9663. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9664. # have to relink, otherwise we might link with an installed library
  9665. # when we should be linking with a yet-to-be-installed one
  9666. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9667. test "$hardcode_minus_L" != no; then
  9668. # Linking always hardcodes the temporary library directory.
  9669. hardcode_action=relink
  9670. else
  9671. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9672. hardcode_action=immediate
  9673. fi
  9674. else
  9675. # We cannot hardcode anything, or else we can only hardcode existing
  9676. # directories.
  9677. hardcode_action=unsupported
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9680. $as_echo "$hardcode_action" >&6; }
  9681. if test "$hardcode_action" = relink ||
  9682. test "$inherit_rpath" = yes; then
  9683. # Fast installation is not supported
  9684. enable_fast_install=no
  9685. elif test "$shlibpath_overrides_runpath" = yes ||
  9686. test "$enable_shared" = no; then
  9687. # Fast installation is not necessary
  9688. enable_fast_install=needless
  9689. fi
  9690. if test "x$enable_dlopen" != xyes; then
  9691. enable_dlopen=unknown
  9692. enable_dlopen_self=unknown
  9693. enable_dlopen_self_static=unknown
  9694. else
  9695. lt_cv_dlopen=no
  9696. lt_cv_dlopen_libs=
  9697. case $host_os in
  9698. beos*)
  9699. lt_cv_dlopen="load_add_on"
  9700. lt_cv_dlopen_libs=
  9701. lt_cv_dlopen_self=yes
  9702. ;;
  9703. mingw* | pw32* | cegcc*)
  9704. lt_cv_dlopen="LoadLibrary"
  9705. lt_cv_dlopen_libs=
  9706. ;;
  9707. cygwin*)
  9708. lt_cv_dlopen="dlopen"
  9709. lt_cv_dlopen_libs=
  9710. ;;
  9711. darwin*)
  9712. # if libdl is installed we need to link against it
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9714. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9715. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9716. $as_echo_n "(cached) " >&6
  9717. else
  9718. ac_check_lib_save_LIBS=$LIBS
  9719. LIBS="-ldl $LIBS"
  9720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9721. /* end confdefs.h. */
  9722. /* Override any GCC internal prototype to avoid an error.
  9723. Use char because int might match the return type of a GCC
  9724. builtin and then its argument prototype would still apply. */
  9725. #ifdef __cplusplus
  9726. extern "C"
  9727. #endif
  9728. char dlopen ();
  9729. int
  9730. main ()
  9731. {
  9732. return dlopen ();
  9733. ;
  9734. return 0;
  9735. }
  9736. _ACEOF
  9737. if ac_fn_c_try_link "$LINENO"; then :
  9738. ac_cv_lib_dl_dlopen=yes
  9739. else
  9740. ac_cv_lib_dl_dlopen=no
  9741. fi
  9742. rm -f core conftest.err conftest.$ac_objext \
  9743. conftest$ac_exeext conftest.$ac_ext
  9744. LIBS=$ac_check_lib_save_LIBS
  9745. fi
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9747. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9748. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9749. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9750. else
  9751. lt_cv_dlopen="dyld"
  9752. lt_cv_dlopen_libs=
  9753. lt_cv_dlopen_self=yes
  9754. fi
  9755. ;;
  9756. *)
  9757. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9758. if test "x$ac_cv_func_shl_load" = xyes; then :
  9759. lt_cv_dlopen="shl_load"
  9760. else
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9762. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9763. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9764. $as_echo_n "(cached) " >&6
  9765. else
  9766. ac_check_lib_save_LIBS=$LIBS
  9767. LIBS="-ldld $LIBS"
  9768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9769. /* end confdefs.h. */
  9770. /* Override any GCC internal prototype to avoid an error.
  9771. Use char because int might match the return type of a GCC
  9772. builtin and then its argument prototype would still apply. */
  9773. #ifdef __cplusplus
  9774. extern "C"
  9775. #endif
  9776. char shl_load ();
  9777. int
  9778. main ()
  9779. {
  9780. return shl_load ();
  9781. ;
  9782. return 0;
  9783. }
  9784. _ACEOF
  9785. if ac_fn_c_try_link "$LINENO"; then :
  9786. ac_cv_lib_dld_shl_load=yes
  9787. else
  9788. ac_cv_lib_dld_shl_load=no
  9789. fi
  9790. rm -f core conftest.err conftest.$ac_objext \
  9791. conftest$ac_exeext conftest.$ac_ext
  9792. LIBS=$ac_check_lib_save_LIBS
  9793. fi
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9795. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9796. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9797. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9798. else
  9799. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9800. if test "x$ac_cv_func_dlopen" = xyes; then :
  9801. lt_cv_dlopen="dlopen"
  9802. else
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9804. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9805. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9806. $as_echo_n "(cached) " >&6
  9807. else
  9808. ac_check_lib_save_LIBS=$LIBS
  9809. LIBS="-ldl $LIBS"
  9810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9811. /* end confdefs.h. */
  9812. /* Override any GCC internal prototype to avoid an error.
  9813. Use char because int might match the return type of a GCC
  9814. builtin and then its argument prototype would still apply. */
  9815. #ifdef __cplusplus
  9816. extern "C"
  9817. #endif
  9818. char dlopen ();
  9819. int
  9820. main ()
  9821. {
  9822. return dlopen ();
  9823. ;
  9824. return 0;
  9825. }
  9826. _ACEOF
  9827. if ac_fn_c_try_link "$LINENO"; then :
  9828. ac_cv_lib_dl_dlopen=yes
  9829. else
  9830. ac_cv_lib_dl_dlopen=no
  9831. fi
  9832. rm -f core conftest.err conftest.$ac_objext \
  9833. conftest$ac_exeext conftest.$ac_ext
  9834. LIBS=$ac_check_lib_save_LIBS
  9835. fi
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9837. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9838. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9839. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9840. else
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9842. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9843. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9844. $as_echo_n "(cached) " >&6
  9845. else
  9846. ac_check_lib_save_LIBS=$LIBS
  9847. LIBS="-lsvld $LIBS"
  9848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9849. /* end confdefs.h. */
  9850. /* Override any GCC internal prototype to avoid an error.
  9851. Use char because int might match the return type of a GCC
  9852. builtin and then its argument prototype would still apply. */
  9853. #ifdef __cplusplus
  9854. extern "C"
  9855. #endif
  9856. char dlopen ();
  9857. int
  9858. main ()
  9859. {
  9860. return dlopen ();
  9861. ;
  9862. return 0;
  9863. }
  9864. _ACEOF
  9865. if ac_fn_c_try_link "$LINENO"; then :
  9866. ac_cv_lib_svld_dlopen=yes
  9867. else
  9868. ac_cv_lib_svld_dlopen=no
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext \
  9871. conftest$ac_exeext conftest.$ac_ext
  9872. LIBS=$ac_check_lib_save_LIBS
  9873. fi
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9875. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9876. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9877. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9878. else
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9880. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9881. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9882. $as_echo_n "(cached) " >&6
  9883. else
  9884. ac_check_lib_save_LIBS=$LIBS
  9885. LIBS="-ldld $LIBS"
  9886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9887. /* end confdefs.h. */
  9888. /* Override any GCC internal prototype to avoid an error.
  9889. Use char because int might match the return type of a GCC
  9890. builtin and then its argument prototype would still apply. */
  9891. #ifdef __cplusplus
  9892. extern "C"
  9893. #endif
  9894. char dld_link ();
  9895. int
  9896. main ()
  9897. {
  9898. return dld_link ();
  9899. ;
  9900. return 0;
  9901. }
  9902. _ACEOF
  9903. if ac_fn_c_try_link "$LINENO"; then :
  9904. ac_cv_lib_dld_dld_link=yes
  9905. else
  9906. ac_cv_lib_dld_dld_link=no
  9907. fi
  9908. rm -f core conftest.err conftest.$ac_objext \
  9909. conftest$ac_exeext conftest.$ac_ext
  9910. LIBS=$ac_check_lib_save_LIBS
  9911. fi
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9913. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9914. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9915. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9916. fi
  9917. fi
  9918. fi
  9919. fi
  9920. fi
  9921. fi
  9922. ;;
  9923. esac
  9924. if test "x$lt_cv_dlopen" != xno; then
  9925. enable_dlopen=yes
  9926. else
  9927. enable_dlopen=no
  9928. fi
  9929. case $lt_cv_dlopen in
  9930. dlopen)
  9931. save_CPPFLAGS="$CPPFLAGS"
  9932. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9933. save_LDFLAGS="$LDFLAGS"
  9934. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9935. save_LIBS="$LIBS"
  9936. LIBS="$lt_cv_dlopen_libs $LIBS"
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9938. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9939. if ${lt_cv_dlopen_self+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. if test "$cross_compiling" = yes; then :
  9943. lt_cv_dlopen_self=cross
  9944. else
  9945. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9946. lt_status=$lt_dlunknown
  9947. cat > conftest.$ac_ext <<_LT_EOF
  9948. #line $LINENO "configure"
  9949. #include "confdefs.h"
  9950. #if HAVE_DLFCN_H
  9951. #include <dlfcn.h>
  9952. #endif
  9953. #include <stdio.h>
  9954. #ifdef RTLD_GLOBAL
  9955. # define LT_DLGLOBAL RTLD_GLOBAL
  9956. #else
  9957. # ifdef DL_GLOBAL
  9958. # define LT_DLGLOBAL DL_GLOBAL
  9959. # else
  9960. # define LT_DLGLOBAL 0
  9961. # endif
  9962. #endif
  9963. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9964. find out it does not work in some platform. */
  9965. #ifndef LT_DLLAZY_OR_NOW
  9966. # ifdef RTLD_LAZY
  9967. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9968. # else
  9969. # ifdef DL_LAZY
  9970. # define LT_DLLAZY_OR_NOW DL_LAZY
  9971. # else
  9972. # ifdef RTLD_NOW
  9973. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9974. # else
  9975. # ifdef DL_NOW
  9976. # define LT_DLLAZY_OR_NOW DL_NOW
  9977. # else
  9978. # define LT_DLLAZY_OR_NOW 0
  9979. # endif
  9980. # endif
  9981. # endif
  9982. # endif
  9983. #endif
  9984. /* When -fvisbility=hidden is used, assume the code has been annotated
  9985. correspondingly for the symbols needed. */
  9986. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9987. int fnord () __attribute__((visibility("default")));
  9988. #endif
  9989. int fnord () { return 42; }
  9990. int main ()
  9991. {
  9992. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9993. int status = $lt_dlunknown;
  9994. if (self)
  9995. {
  9996. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9997. else
  9998. {
  9999. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10000. else puts (dlerror ());
  10001. }
  10002. /* dlclose (self); */
  10003. }
  10004. else
  10005. puts (dlerror ());
  10006. return status;
  10007. }
  10008. _LT_EOF
  10009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10010. (eval $ac_link) 2>&5
  10011. ac_status=$?
  10012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10013. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10014. (./conftest; exit; ) >&5 2>/dev/null
  10015. lt_status=$?
  10016. case x$lt_status in
  10017. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10018. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10019. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10020. esac
  10021. else :
  10022. # compilation failed
  10023. lt_cv_dlopen_self=no
  10024. fi
  10025. fi
  10026. rm -fr conftest*
  10027. fi
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10029. $as_echo "$lt_cv_dlopen_self" >&6; }
  10030. if test "x$lt_cv_dlopen_self" = xyes; then
  10031. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10033. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10034. if ${lt_cv_dlopen_self_static+:} false; then :
  10035. $as_echo_n "(cached) " >&6
  10036. else
  10037. if test "$cross_compiling" = yes; then :
  10038. lt_cv_dlopen_self_static=cross
  10039. else
  10040. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10041. lt_status=$lt_dlunknown
  10042. cat > conftest.$ac_ext <<_LT_EOF
  10043. #line $LINENO "configure"
  10044. #include "confdefs.h"
  10045. #if HAVE_DLFCN_H
  10046. #include <dlfcn.h>
  10047. #endif
  10048. #include <stdio.h>
  10049. #ifdef RTLD_GLOBAL
  10050. # define LT_DLGLOBAL RTLD_GLOBAL
  10051. #else
  10052. # ifdef DL_GLOBAL
  10053. # define LT_DLGLOBAL DL_GLOBAL
  10054. # else
  10055. # define LT_DLGLOBAL 0
  10056. # endif
  10057. #endif
  10058. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10059. find out it does not work in some platform. */
  10060. #ifndef LT_DLLAZY_OR_NOW
  10061. # ifdef RTLD_LAZY
  10062. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10063. # else
  10064. # ifdef DL_LAZY
  10065. # define LT_DLLAZY_OR_NOW DL_LAZY
  10066. # else
  10067. # ifdef RTLD_NOW
  10068. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10069. # else
  10070. # ifdef DL_NOW
  10071. # define LT_DLLAZY_OR_NOW DL_NOW
  10072. # else
  10073. # define LT_DLLAZY_OR_NOW 0
  10074. # endif
  10075. # endif
  10076. # endif
  10077. # endif
  10078. #endif
  10079. /* When -fvisbility=hidden is used, assume the code has been annotated
  10080. correspondingly for the symbols needed. */
  10081. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10082. int fnord () __attribute__((visibility("default")));
  10083. #endif
  10084. int fnord () { return 42; }
  10085. int main ()
  10086. {
  10087. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10088. int status = $lt_dlunknown;
  10089. if (self)
  10090. {
  10091. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10092. else
  10093. {
  10094. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10095. else puts (dlerror ());
  10096. }
  10097. /* dlclose (self); */
  10098. }
  10099. else
  10100. puts (dlerror ());
  10101. return status;
  10102. }
  10103. _LT_EOF
  10104. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10105. (eval $ac_link) 2>&5
  10106. ac_status=$?
  10107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10108. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10109. (./conftest; exit; ) >&5 2>/dev/null
  10110. lt_status=$?
  10111. case x$lt_status in
  10112. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10113. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10114. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10115. esac
  10116. else :
  10117. # compilation failed
  10118. lt_cv_dlopen_self_static=no
  10119. fi
  10120. fi
  10121. rm -fr conftest*
  10122. fi
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10124. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10125. fi
  10126. CPPFLAGS="$save_CPPFLAGS"
  10127. LDFLAGS="$save_LDFLAGS"
  10128. LIBS="$save_LIBS"
  10129. ;;
  10130. esac
  10131. case $lt_cv_dlopen_self in
  10132. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10133. *) enable_dlopen_self=unknown ;;
  10134. esac
  10135. case $lt_cv_dlopen_self_static in
  10136. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10137. *) enable_dlopen_self_static=unknown ;;
  10138. esac
  10139. fi
  10140. striplib=
  10141. old_striplib=
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10143. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10144. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10145. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10146. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10148. $as_echo "yes" >&6; }
  10149. else
  10150. # FIXME - insert some real tests, host_os isn't really good enough
  10151. case $host_os in
  10152. darwin*)
  10153. if test -n "$STRIP" ; then
  10154. striplib="$STRIP -x"
  10155. old_striplib="$STRIP -S"
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10157. $as_echo "yes" >&6; }
  10158. else
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10160. $as_echo "no" >&6; }
  10161. fi
  10162. ;;
  10163. *)
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10165. $as_echo "no" >&6; }
  10166. ;;
  10167. esac
  10168. fi
  10169. # Report which library types will actually be built
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10171. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10173. $as_echo "$can_build_shared" >&6; }
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10175. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10176. test "$can_build_shared" = "no" && enable_shared=no
  10177. # On AIX, shared libraries and static libraries use the same namespace, and
  10178. # are all built from PIC.
  10179. case $host_os in
  10180. aix3*)
  10181. test "$enable_shared" = yes && enable_static=no
  10182. if test -n "$RANLIB"; then
  10183. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10184. postinstall_cmds='$RANLIB $lib'
  10185. fi
  10186. ;;
  10187. aix[4-9]*)
  10188. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10189. test "$enable_shared" = yes && enable_static=no
  10190. fi
  10191. ;;
  10192. esac
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10194. $as_echo "$enable_shared" >&6; }
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10196. $as_echo_n "checking whether to build static libraries... " >&6; }
  10197. # Make sure either enable_shared or enable_static is yes.
  10198. test "$enable_shared" = yes || enable_static=yes
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10200. $as_echo "$enable_static" >&6; }
  10201. fi
  10202. ac_ext=cpp
  10203. ac_cpp='$CXXCPP $CPPFLAGS'
  10204. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10205. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10206. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10207. CC="$lt_save_CC"
  10208. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10209. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10210. (test "X$CXX" != "Xg++"))) ; then
  10211. ac_ext=cpp
  10212. ac_cpp='$CXXCPP $CPPFLAGS'
  10213. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10214. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10215. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10217. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10218. if test -z "$CXXCPP"; then
  10219. if ${ac_cv_prog_CXXCPP+:} false; then :
  10220. $as_echo_n "(cached) " >&6
  10221. else
  10222. # Double quotes because CXXCPP needs to be expanded
  10223. for CXXCPP in "$CXX -E" "/lib/cpp"
  10224. do
  10225. ac_preproc_ok=false
  10226. for ac_cxx_preproc_warn_flag in '' yes
  10227. do
  10228. # Use a header file that comes with gcc, so configuring glibc
  10229. # with a fresh cross-compiler works.
  10230. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10231. # <limits.h> exists even on freestanding compilers.
  10232. # On the NeXT, cc -E runs the code through the compiler's parser,
  10233. # not just through cpp. "Syntax error" is here to catch this case.
  10234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10235. /* end confdefs.h. */
  10236. #ifdef __STDC__
  10237. # include <limits.h>
  10238. #else
  10239. # include <assert.h>
  10240. #endif
  10241. Syntax error
  10242. _ACEOF
  10243. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10244. else
  10245. # Broken: fails on valid input.
  10246. continue
  10247. fi
  10248. rm -f conftest.err conftest.i conftest.$ac_ext
  10249. # OK, works on sane cases. Now check whether nonexistent headers
  10250. # can be detected and how.
  10251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10252. /* end confdefs.h. */
  10253. #include <ac_nonexistent.h>
  10254. _ACEOF
  10255. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10256. # Broken: success on invalid input.
  10257. continue
  10258. else
  10259. # Passes both tests.
  10260. ac_preproc_ok=:
  10261. break
  10262. fi
  10263. rm -f conftest.err conftest.i conftest.$ac_ext
  10264. done
  10265. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10266. rm -f conftest.i conftest.err conftest.$ac_ext
  10267. if $ac_preproc_ok; then :
  10268. break
  10269. fi
  10270. done
  10271. ac_cv_prog_CXXCPP=$CXXCPP
  10272. fi
  10273. CXXCPP=$ac_cv_prog_CXXCPP
  10274. else
  10275. ac_cv_prog_CXXCPP=$CXXCPP
  10276. fi
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10278. $as_echo "$CXXCPP" >&6; }
  10279. ac_preproc_ok=false
  10280. for ac_cxx_preproc_warn_flag in '' yes
  10281. do
  10282. # Use a header file that comes with gcc, so configuring glibc
  10283. # with a fresh cross-compiler works.
  10284. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10285. # <limits.h> exists even on freestanding compilers.
  10286. # On the NeXT, cc -E runs the code through the compiler's parser,
  10287. # not just through cpp. "Syntax error" is here to catch this case.
  10288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10289. /* end confdefs.h. */
  10290. #ifdef __STDC__
  10291. # include <limits.h>
  10292. #else
  10293. # include <assert.h>
  10294. #endif
  10295. Syntax error
  10296. _ACEOF
  10297. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10298. else
  10299. # Broken: fails on valid input.
  10300. continue
  10301. fi
  10302. rm -f conftest.err conftest.i conftest.$ac_ext
  10303. # OK, works on sane cases. Now check whether nonexistent headers
  10304. # can be detected and how.
  10305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10306. /* end confdefs.h. */
  10307. #include <ac_nonexistent.h>
  10308. _ACEOF
  10309. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10310. # Broken: success on invalid input.
  10311. continue
  10312. else
  10313. # Passes both tests.
  10314. ac_preproc_ok=:
  10315. break
  10316. fi
  10317. rm -f conftest.err conftest.i conftest.$ac_ext
  10318. done
  10319. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10320. rm -f conftest.i conftest.err conftest.$ac_ext
  10321. if $ac_preproc_ok; then :
  10322. else
  10323. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10324. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10325. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10326. See \`config.log' for more details" "$LINENO" 5; }
  10327. fi
  10328. ac_ext=cpp
  10329. ac_cpp='$CXXCPP $CPPFLAGS'
  10330. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10331. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10332. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10333. else
  10334. _lt_caught_CXX_error=yes
  10335. fi
  10336. ac_ext=cpp
  10337. ac_cpp='$CXXCPP $CPPFLAGS'
  10338. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10339. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10340. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10341. archive_cmds_need_lc_CXX=no
  10342. allow_undefined_flag_CXX=
  10343. always_export_symbols_CXX=no
  10344. archive_expsym_cmds_CXX=
  10345. compiler_needs_object_CXX=no
  10346. export_dynamic_flag_spec_CXX=
  10347. hardcode_direct_CXX=no
  10348. hardcode_direct_absolute_CXX=no
  10349. hardcode_libdir_flag_spec_CXX=
  10350. hardcode_libdir_flag_spec_ld_CXX=
  10351. hardcode_libdir_separator_CXX=
  10352. hardcode_minus_L_CXX=no
  10353. hardcode_shlibpath_var_CXX=unsupported
  10354. hardcode_automatic_CXX=no
  10355. inherit_rpath_CXX=no
  10356. module_cmds_CXX=
  10357. module_expsym_cmds_CXX=
  10358. link_all_deplibs_CXX=unknown
  10359. old_archive_cmds_CXX=$old_archive_cmds
  10360. reload_flag_CXX=$reload_flag
  10361. reload_cmds_CXX=$reload_cmds
  10362. no_undefined_flag_CXX=
  10363. whole_archive_flag_spec_CXX=
  10364. enable_shared_with_static_runtimes_CXX=no
  10365. # Source file extension for C++ test sources.
  10366. ac_ext=cpp
  10367. # Object file extension for compiled C++ test sources.
  10368. objext=o
  10369. objext_CXX=$objext
  10370. # No sense in running all these tests if we already determined that
  10371. # the CXX compiler isn't working. Some variables (like enable_shared)
  10372. # are currently assumed to apply to all compilers on this platform,
  10373. # and will be corrupted by setting them based on a non-working compiler.
  10374. if test "$_lt_caught_CXX_error" != yes; then
  10375. # Code to be used in simple compile tests
  10376. lt_simple_compile_test_code="int some_variable = 0;"
  10377. # Code to be used in simple link tests
  10378. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10379. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10380. # If no C compiler was specified, use CC.
  10381. LTCC=${LTCC-"$CC"}
  10382. # If no C compiler flags were specified, use CFLAGS.
  10383. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10384. # Allow CC to be a program name with arguments.
  10385. compiler=$CC
  10386. # save warnings/boilerplate of simple test code
  10387. ac_outfile=conftest.$ac_objext
  10388. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10389. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10390. _lt_compiler_boilerplate=`cat conftest.err`
  10391. $RM conftest*
  10392. ac_outfile=conftest.$ac_objext
  10393. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10394. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10395. _lt_linker_boilerplate=`cat conftest.err`
  10396. $RM -r conftest*
  10397. # Allow CC to be a program name with arguments.
  10398. lt_save_CC=$CC
  10399. lt_save_CFLAGS=$CFLAGS
  10400. lt_save_LD=$LD
  10401. lt_save_GCC=$GCC
  10402. GCC=$GXX
  10403. lt_save_with_gnu_ld=$with_gnu_ld
  10404. lt_save_path_LD=$lt_cv_path_LD
  10405. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10406. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10407. else
  10408. $as_unset lt_cv_prog_gnu_ld
  10409. fi
  10410. if test -n "${lt_cv_path_LDCXX+set}"; then
  10411. lt_cv_path_LD=$lt_cv_path_LDCXX
  10412. else
  10413. $as_unset lt_cv_path_LD
  10414. fi
  10415. test -z "${LDCXX+set}" || LD=$LDCXX
  10416. CC=${CXX-"c++"}
  10417. CFLAGS=$CXXFLAGS
  10418. compiler=$CC
  10419. compiler_CXX=$CC
  10420. for cc_temp in $compiler""; do
  10421. case $cc_temp in
  10422. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10423. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10424. \-*) ;;
  10425. *) break;;
  10426. esac
  10427. done
  10428. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10429. if test -n "$compiler"; then
  10430. # We don't want -fno-exception when compiling C++ code, so set the
  10431. # no_builtin_flag separately
  10432. if test "$GXX" = yes; then
  10433. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10434. else
  10435. lt_prog_compiler_no_builtin_flag_CXX=
  10436. fi
  10437. if test "$GXX" = yes; then
  10438. # Set up default GNU C++ configuration
  10439. # Check whether --with-gnu-ld was given.
  10440. if test "${with_gnu_ld+set}" = set; then :
  10441. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10442. else
  10443. with_gnu_ld=no
  10444. fi
  10445. ac_prog=ld
  10446. if test "$GCC" = yes; then
  10447. # Check if gcc -print-prog-name=ld gives a path.
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10449. $as_echo_n "checking for ld used by $CC... " >&6; }
  10450. case $host in
  10451. *-*-mingw*)
  10452. # gcc leaves a trailing carriage return which upsets mingw
  10453. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10454. *)
  10455. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10456. esac
  10457. case $ac_prog in
  10458. # Accept absolute paths.
  10459. [\\/]* | ?:[\\/]*)
  10460. re_direlt='/[^/][^/]*/\.\./'
  10461. # Canonicalize the pathname of ld
  10462. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10463. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10464. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10465. done
  10466. test -z "$LD" && LD="$ac_prog"
  10467. ;;
  10468. "")
  10469. # If it fails, then pretend we aren't using GCC.
  10470. ac_prog=ld
  10471. ;;
  10472. *)
  10473. # If it is relative, then search for the first ld in PATH.
  10474. with_gnu_ld=unknown
  10475. ;;
  10476. esac
  10477. elif test "$with_gnu_ld" = yes; then
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10479. $as_echo_n "checking for GNU ld... " >&6; }
  10480. else
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10482. $as_echo_n "checking for non-GNU ld... " >&6; }
  10483. fi
  10484. if ${lt_cv_path_LD+:} false; then :
  10485. $as_echo_n "(cached) " >&6
  10486. else
  10487. if test -z "$LD"; then
  10488. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10489. for ac_dir in $PATH; do
  10490. IFS="$lt_save_ifs"
  10491. test -z "$ac_dir" && ac_dir=.
  10492. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10493. lt_cv_path_LD="$ac_dir/$ac_prog"
  10494. # Check to see if the program is GNU ld. I'd rather use --version,
  10495. # but apparently some variants of GNU ld only accept -v.
  10496. # Break only if it was the GNU/non-GNU ld that we prefer.
  10497. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10498. *GNU* | *'with BFD'*)
  10499. test "$with_gnu_ld" != no && break
  10500. ;;
  10501. *)
  10502. test "$with_gnu_ld" != yes && break
  10503. ;;
  10504. esac
  10505. fi
  10506. done
  10507. IFS="$lt_save_ifs"
  10508. else
  10509. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10510. fi
  10511. fi
  10512. LD="$lt_cv_path_LD"
  10513. if test -n "$LD"; then
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10515. $as_echo "$LD" >&6; }
  10516. else
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10518. $as_echo "no" >&6; }
  10519. fi
  10520. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10522. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10523. if ${lt_cv_prog_gnu_ld+:} false; then :
  10524. $as_echo_n "(cached) " >&6
  10525. else
  10526. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10527. case `$LD -v 2>&1 </dev/null` in
  10528. *GNU* | *'with BFD'*)
  10529. lt_cv_prog_gnu_ld=yes
  10530. ;;
  10531. *)
  10532. lt_cv_prog_gnu_ld=no
  10533. ;;
  10534. esac
  10535. fi
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10537. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10538. with_gnu_ld=$lt_cv_prog_gnu_ld
  10539. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10540. # archiving commands below assume that GNU ld is being used.
  10541. if test "$with_gnu_ld" = yes; then
  10542. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10543. 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'
  10544. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10545. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10546. # If archive_cmds runs LD, not CC, wlarc should be empty
  10547. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10548. # investigate it a little bit more. (MM)
  10549. wlarc='${wl}'
  10550. # ancient GNU ld didn't support --whole-archive et. al.
  10551. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10552. $GREP 'no-whole-archive' > /dev/null; then
  10553. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10554. else
  10555. whole_archive_flag_spec_CXX=
  10556. fi
  10557. else
  10558. with_gnu_ld=no
  10559. wlarc=
  10560. # A generic and very simple default shared library creation
  10561. # command for GNU C++ for the case where it uses the native
  10562. # linker, instead of GNU ld. If possible, this setting should
  10563. # overridden to take advantage of the native linker features on
  10564. # the platform it is being used on.
  10565. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10566. fi
  10567. # Commands to make compiler produce verbose output that lists
  10568. # what "hidden" libraries, object files and flags are used when
  10569. # linking a shared library.
  10570. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10571. else
  10572. GXX=no
  10573. with_gnu_ld=no
  10574. wlarc=
  10575. fi
  10576. # PORTME: fill in a description of your system's C++ link characteristics
  10577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10578. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10579. ld_shlibs_CXX=yes
  10580. case $host_os in
  10581. aix3*)
  10582. # FIXME: insert proper C++ library support
  10583. ld_shlibs_CXX=no
  10584. ;;
  10585. aix[4-9]*)
  10586. if test "$host_cpu" = ia64; then
  10587. # On IA64, the linker does run time linking by default, so we don't
  10588. # have to do anything special.
  10589. aix_use_runtimelinking=no
  10590. exp_sym_flag='-Bexport'
  10591. no_entry_flag=""
  10592. else
  10593. aix_use_runtimelinking=no
  10594. # Test if we are trying to use run time linking or normal
  10595. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10596. # need to do runtime linking.
  10597. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10598. for ld_flag in $LDFLAGS; do
  10599. case $ld_flag in
  10600. *-brtl*)
  10601. aix_use_runtimelinking=yes
  10602. break
  10603. ;;
  10604. esac
  10605. done
  10606. ;;
  10607. esac
  10608. exp_sym_flag='-bexport'
  10609. no_entry_flag='-bnoentry'
  10610. fi
  10611. # When large executables or shared objects are built, AIX ld can
  10612. # have problems creating the table of contents. If linking a library
  10613. # or program results in "error TOC overflow" add -mminimal-toc to
  10614. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10615. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10616. archive_cmds_CXX=''
  10617. hardcode_direct_CXX=yes
  10618. hardcode_direct_absolute_CXX=yes
  10619. hardcode_libdir_separator_CXX=':'
  10620. link_all_deplibs_CXX=yes
  10621. file_list_spec_CXX='${wl}-f,'
  10622. if test "$GXX" = yes; then
  10623. case $host_os in aix4.[012]|aix4.[012].*)
  10624. # We only want to do this on AIX 4.2 and lower, the check
  10625. # below for broken collect2 doesn't work under 4.3+
  10626. collect2name=`${CC} -print-prog-name=collect2`
  10627. if test -f "$collect2name" &&
  10628. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10629. then
  10630. # We have reworked collect2
  10631. :
  10632. else
  10633. # We have old collect2
  10634. hardcode_direct_CXX=unsupported
  10635. # It fails to find uninstalled libraries when the uninstalled
  10636. # path is not listed in the libpath. Setting hardcode_minus_L
  10637. # to unsupported forces relinking
  10638. hardcode_minus_L_CXX=yes
  10639. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10640. hardcode_libdir_separator_CXX=
  10641. fi
  10642. esac
  10643. shared_flag='-shared'
  10644. if test "$aix_use_runtimelinking" = yes; then
  10645. shared_flag="$shared_flag "'${wl}-G'
  10646. fi
  10647. else
  10648. # not using gcc
  10649. if test "$host_cpu" = ia64; then
  10650. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10651. # chokes on -Wl,-G. The following line is correct:
  10652. shared_flag='-G'
  10653. else
  10654. if test "$aix_use_runtimelinking" = yes; then
  10655. shared_flag='${wl}-G'
  10656. else
  10657. shared_flag='${wl}-bM:SRE'
  10658. fi
  10659. fi
  10660. fi
  10661. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10662. # It seems that -bexpall does not export symbols beginning with
  10663. # underscore (_), so it is better to generate a list of symbols to
  10664. # export.
  10665. always_export_symbols_CXX=yes
  10666. if test "$aix_use_runtimelinking" = yes; then
  10667. # Warning - without using the other runtime loading flags (-brtl),
  10668. # -berok will link without error, but may produce a broken library.
  10669. allow_undefined_flag_CXX='-berok'
  10670. # Determine the default libpath from the value encoded in an empty
  10671. # executable.
  10672. if test "${lt_cv_aix_libpath+set}" = set; then
  10673. aix_libpath=$lt_cv_aix_libpath
  10674. else
  10675. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10679. /* end confdefs.h. */
  10680. int
  10681. main ()
  10682. {
  10683. ;
  10684. return 0;
  10685. }
  10686. _ACEOF
  10687. if ac_fn_cxx_try_link "$LINENO"; then :
  10688. lt_aix_libpath_sed='
  10689. /Import File Strings/,/^$/ {
  10690. /^0/ {
  10691. s/^0 *\([^ ]*\) *$/\1/
  10692. p
  10693. }
  10694. }'
  10695. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10696. # Check for a 64-bit object if we didn't find anything.
  10697. if test -z "$lt_cv_aix_libpath__CXX"; then
  10698. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10699. fi
  10700. fi
  10701. rm -f core conftest.err conftest.$ac_objext \
  10702. conftest$ac_exeext conftest.$ac_ext
  10703. if test -z "$lt_cv_aix_libpath__CXX"; then
  10704. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10705. fi
  10706. fi
  10707. aix_libpath=$lt_cv_aix_libpath__CXX
  10708. fi
  10709. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10710. 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"
  10711. else
  10712. if test "$host_cpu" = ia64; then
  10713. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10714. allow_undefined_flag_CXX="-z nodefs"
  10715. 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"
  10716. else
  10717. # Determine the default libpath from the value encoded in an
  10718. # empty executable.
  10719. if test "${lt_cv_aix_libpath+set}" = set; then
  10720. aix_libpath=$lt_cv_aix_libpath
  10721. else
  10722. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10723. $as_echo_n "(cached) " >&6
  10724. else
  10725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10726. /* end confdefs.h. */
  10727. int
  10728. main ()
  10729. {
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. if ac_fn_cxx_try_link "$LINENO"; then :
  10735. lt_aix_libpath_sed='
  10736. /Import File Strings/,/^$/ {
  10737. /^0/ {
  10738. s/^0 *\([^ ]*\) *$/\1/
  10739. p
  10740. }
  10741. }'
  10742. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10743. # Check for a 64-bit object if we didn't find anything.
  10744. if test -z "$lt_cv_aix_libpath__CXX"; then
  10745. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10746. fi
  10747. fi
  10748. rm -f core conftest.err conftest.$ac_objext \
  10749. conftest$ac_exeext conftest.$ac_ext
  10750. if test -z "$lt_cv_aix_libpath__CXX"; then
  10751. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10752. fi
  10753. fi
  10754. aix_libpath=$lt_cv_aix_libpath__CXX
  10755. fi
  10756. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10757. # Warning - without using the other run time loading flags,
  10758. # -berok will link without error, but may produce a broken library.
  10759. no_undefined_flag_CXX=' ${wl}-bernotok'
  10760. allow_undefined_flag_CXX=' ${wl}-berok'
  10761. if test "$with_gnu_ld" = yes; then
  10762. # We only use this code for GNU lds that support --whole-archive.
  10763. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10764. else
  10765. # Exported symbols can be pulled into shared objects from archives
  10766. whole_archive_flag_spec_CXX='$convenience'
  10767. fi
  10768. archive_cmds_need_lc_CXX=yes
  10769. # This is similar to how AIX traditionally builds its shared
  10770. # libraries.
  10771. 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'
  10772. fi
  10773. fi
  10774. ;;
  10775. beos*)
  10776. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10777. allow_undefined_flag_CXX=unsupported
  10778. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10779. # support --undefined. This deserves some investigation. FIXME
  10780. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10781. else
  10782. ld_shlibs_CXX=no
  10783. fi
  10784. ;;
  10785. chorus*)
  10786. case $cc_basename in
  10787. *)
  10788. # FIXME: insert proper C++ library support
  10789. ld_shlibs_CXX=no
  10790. ;;
  10791. esac
  10792. ;;
  10793. cygwin* | mingw* | pw32* | cegcc*)
  10794. case $GXX,$cc_basename in
  10795. ,cl* | no,cl*)
  10796. # Native MSVC
  10797. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10798. # no search path for DLLs.
  10799. hardcode_libdir_flag_spec_CXX=' '
  10800. allow_undefined_flag_CXX=unsupported
  10801. always_export_symbols_CXX=yes
  10802. file_list_spec_CXX='@'
  10803. # Tell ltmain to make .lib files, not .a files.
  10804. libext=lib
  10805. # Tell ltmain to make .dll files, not .so files.
  10806. shrext_cmds=".dll"
  10807. # FIXME: Setting linknames here is a bad hack.
  10808. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10809. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10810. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10811. else
  10812. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10813. fi~
  10814. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10815. linknames='
  10816. # The linker will not automatically build a static lib if we build a DLL.
  10817. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10818. enable_shared_with_static_runtimes_CXX=yes
  10819. # Don't use ranlib
  10820. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10821. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10822. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10823. case $lt_outputfile in
  10824. *.exe|*.EXE) ;;
  10825. *)
  10826. lt_outputfile="$lt_outputfile.exe"
  10827. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10828. ;;
  10829. esac~
  10830. func_to_tool_file "$lt_outputfile"~
  10831. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10832. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10833. $RM "$lt_outputfile.manifest";
  10834. fi'
  10835. ;;
  10836. *)
  10837. # g++
  10838. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10839. # as there is no search path for DLLs.
  10840. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10841. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10842. allow_undefined_flag_CXX=unsupported
  10843. always_export_symbols_CXX=no
  10844. enable_shared_with_static_runtimes_CXX=yes
  10845. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10846. 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'
  10847. # If the export-symbols file already is a .def file (1st line
  10848. # is EXPORTS), use it as is; otherwise, prepend...
  10849. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10850. cp $export_symbols $output_objdir/$soname.def;
  10851. else
  10852. echo EXPORTS > $output_objdir/$soname.def;
  10853. cat $export_symbols >> $output_objdir/$soname.def;
  10854. fi~
  10855. $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'
  10856. else
  10857. ld_shlibs_CXX=no
  10858. fi
  10859. ;;
  10860. esac
  10861. ;;
  10862. darwin* | rhapsody*)
  10863. archive_cmds_need_lc_CXX=no
  10864. hardcode_direct_CXX=no
  10865. hardcode_automatic_CXX=yes
  10866. hardcode_shlibpath_var_CXX=unsupported
  10867. if test "$lt_cv_ld_force_load" = "yes"; then
  10868. 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\"`'
  10869. else
  10870. whole_archive_flag_spec_CXX=''
  10871. fi
  10872. link_all_deplibs_CXX=yes
  10873. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10874. case $cc_basename in
  10875. ifort*) _lt_dar_can_shared=yes ;;
  10876. *) _lt_dar_can_shared=$GCC ;;
  10877. esac
  10878. if test "$_lt_dar_can_shared" = "yes"; then
  10879. output_verbose_link_cmd=func_echo_all
  10880. 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}"
  10881. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10882. 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}"
  10883. 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}"
  10884. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10885. 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}"
  10886. 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}"
  10887. fi
  10888. else
  10889. ld_shlibs_CXX=no
  10890. fi
  10891. ;;
  10892. dgux*)
  10893. case $cc_basename in
  10894. ec++*)
  10895. # FIXME: insert proper C++ library support
  10896. ld_shlibs_CXX=no
  10897. ;;
  10898. ghcx*)
  10899. # Green Hills C++ Compiler
  10900. # FIXME: insert proper C++ library support
  10901. ld_shlibs_CXX=no
  10902. ;;
  10903. *)
  10904. # FIXME: insert proper C++ library support
  10905. ld_shlibs_CXX=no
  10906. ;;
  10907. esac
  10908. ;;
  10909. freebsd[12]*)
  10910. # C++ shared libraries reported to be fairly broken before
  10911. # switch to ELF
  10912. ld_shlibs_CXX=no
  10913. ;;
  10914. freebsd-elf*)
  10915. archive_cmds_need_lc_CXX=no
  10916. ;;
  10917. freebsd* | dragonfly*)
  10918. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10919. # conventions
  10920. ld_shlibs_CXX=yes
  10921. ;;
  10922. gnu*)
  10923. ;;
  10924. haiku*)
  10925. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10926. link_all_deplibs_CXX=yes
  10927. ;;
  10928. hpux9*)
  10929. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10930. hardcode_libdir_separator_CXX=:
  10931. export_dynamic_flag_spec_CXX='${wl}-E'
  10932. hardcode_direct_CXX=yes
  10933. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10934. # but as the default
  10935. # location of the library.
  10936. case $cc_basename in
  10937. CC*)
  10938. # FIXME: insert proper C++ library support
  10939. ld_shlibs_CXX=no
  10940. ;;
  10941. aCC*)
  10942. 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'
  10943. # Commands to make compiler produce verbose output that lists
  10944. # what "hidden" libraries, object files and flags are used when
  10945. # linking a shared library.
  10946. #
  10947. # There doesn't appear to be a way to prevent this compiler from
  10948. # explicitly linking system object files so we need to strip them
  10949. # from the output so that they don't get included in the library
  10950. # dependencies.
  10951. 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"'
  10952. ;;
  10953. *)
  10954. if test "$GXX" = yes; then
  10955. 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'
  10956. else
  10957. # FIXME: insert proper C++ library support
  10958. ld_shlibs_CXX=no
  10959. fi
  10960. ;;
  10961. esac
  10962. ;;
  10963. hpux10*|hpux11*)
  10964. if test $with_gnu_ld = no; then
  10965. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10966. hardcode_libdir_separator_CXX=:
  10967. case $host_cpu in
  10968. hppa*64*|ia64*)
  10969. ;;
  10970. *)
  10971. export_dynamic_flag_spec_CXX='${wl}-E'
  10972. ;;
  10973. esac
  10974. fi
  10975. case $host_cpu in
  10976. hppa*64*|ia64*)
  10977. hardcode_direct_CXX=no
  10978. hardcode_shlibpath_var_CXX=no
  10979. ;;
  10980. *)
  10981. hardcode_direct_CXX=yes
  10982. hardcode_direct_absolute_CXX=yes
  10983. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10984. # but as the default
  10985. # location of the library.
  10986. ;;
  10987. esac
  10988. case $cc_basename in
  10989. CC*)
  10990. # FIXME: insert proper C++ library support
  10991. ld_shlibs_CXX=no
  10992. ;;
  10993. aCC*)
  10994. case $host_cpu in
  10995. hppa*64*)
  10996. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10997. ;;
  10998. ia64*)
  10999. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11000. ;;
  11001. *)
  11002. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11003. ;;
  11004. esac
  11005. # Commands to make compiler produce verbose output that lists
  11006. # what "hidden" libraries, object files and flags are used when
  11007. # linking a shared library.
  11008. #
  11009. # There doesn't appear to be a way to prevent this compiler from
  11010. # explicitly linking system object files so we need to strip them
  11011. # from the output so that they don't get included in the library
  11012. # dependencies.
  11013. 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"'
  11014. ;;
  11015. *)
  11016. if test "$GXX" = yes; then
  11017. if test $with_gnu_ld = no; then
  11018. case $host_cpu in
  11019. hppa*64*)
  11020. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11021. ;;
  11022. ia64*)
  11023. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11024. ;;
  11025. *)
  11026. 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'
  11027. ;;
  11028. esac
  11029. fi
  11030. else
  11031. # FIXME: insert proper C++ library support
  11032. ld_shlibs_CXX=no
  11033. fi
  11034. ;;
  11035. esac
  11036. ;;
  11037. interix[3-9]*)
  11038. hardcode_direct_CXX=no
  11039. hardcode_shlibpath_var_CXX=no
  11040. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11041. export_dynamic_flag_spec_CXX='${wl}-E'
  11042. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11043. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11044. # default) and relocated if they conflict, which is a slow very memory
  11045. # consuming and fragmenting process. To avoid this, we pick a random,
  11046. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11047. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11048. 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'
  11049. 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'
  11050. ;;
  11051. irix5* | irix6*)
  11052. case $cc_basename in
  11053. CC*)
  11054. # SGI C++
  11055. 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'
  11056. # Archives containing C++ object files must be created using
  11057. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11058. # necessary to make sure instantiated templates are included
  11059. # in the archive.
  11060. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11061. ;;
  11062. *)
  11063. if test "$GXX" = yes; then
  11064. if test "$with_gnu_ld" = no; then
  11065. 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'
  11066. else
  11067. 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'
  11068. fi
  11069. fi
  11070. link_all_deplibs_CXX=yes
  11071. ;;
  11072. esac
  11073. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11074. hardcode_libdir_separator_CXX=:
  11075. inherit_rpath_CXX=yes
  11076. ;;
  11077. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11078. case $cc_basename in
  11079. KCC*)
  11080. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11081. # KCC will only create a shared library if the output file
  11082. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11083. # to its proper name (with version) after linking.
  11084. 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'
  11085. 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'
  11086. # Commands to make compiler produce verbose output that lists
  11087. # what "hidden" libraries, object files and flags are used when
  11088. # linking a shared library.
  11089. #
  11090. # There doesn't appear to be a way to prevent this compiler from
  11091. # explicitly linking system object files so we need to strip them
  11092. # from the output so that they don't get included in the library
  11093. # dependencies.
  11094. 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"'
  11095. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11096. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11097. # Archives containing C++ object files must be created using
  11098. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11099. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11100. ;;
  11101. icpc* | ecpc* )
  11102. # Intel C++
  11103. with_gnu_ld=yes
  11104. # version 8.0 and above of icpc choke on multiply defined symbols
  11105. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11106. # earlier do not add the objects themselves.
  11107. case `$CC -V 2>&1` in
  11108. *"Version 7."*)
  11109. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11110. 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'
  11111. ;;
  11112. *) # Version 8.0 or newer
  11113. tmp_idyn=
  11114. case $host_cpu in
  11115. ia64*) tmp_idyn=' -i_dynamic';;
  11116. esac
  11117. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11118. 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'
  11119. ;;
  11120. esac
  11121. archive_cmds_need_lc_CXX=no
  11122. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11123. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11124. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11125. ;;
  11126. pgCC* | pgcpp*)
  11127. # Portland Group C++ compiler
  11128. case `$CC -V` in
  11129. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11130. prelink_cmds_CXX='tpldir=Template.dir~
  11131. rm -rf $tpldir~
  11132. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11133. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11134. old_archive_cmds_CXX='tpldir=Template.dir~
  11135. rm -rf $tpldir~
  11136. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11137. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11138. $RANLIB $oldlib'
  11139. archive_cmds_CXX='tpldir=Template.dir~
  11140. rm -rf $tpldir~
  11141. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11142. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11143. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11144. rm -rf $tpldir~
  11145. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11146. $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'
  11147. ;;
  11148. *) # Version 6 and above use weak symbols
  11149. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11150. 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'
  11151. ;;
  11152. esac
  11153. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11154. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11155. 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'
  11156. ;;
  11157. cxx*)
  11158. # Compaq C++
  11159. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11160. 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'
  11161. runpath_var=LD_RUN_PATH
  11162. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11163. hardcode_libdir_separator_CXX=:
  11164. # Commands to make compiler produce verbose output that lists
  11165. # what "hidden" libraries, object files and flags are used when
  11166. # linking a shared library.
  11167. #
  11168. # There doesn't appear to be a way to prevent this compiler from
  11169. # explicitly linking system object files so we need to strip them
  11170. # from the output so that they don't get included in the library
  11171. # dependencies.
  11172. 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'
  11173. ;;
  11174. xl* | mpixl* | bgxl*)
  11175. # IBM XL 8.0 on PPC, with GNU ld
  11176. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11177. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11178. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11179. if test "x$supports_anon_versioning" = xyes; then
  11180. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11181. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11182. echo "local: *; };" >> $output_objdir/$libname.ver~
  11183. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11184. fi
  11185. ;;
  11186. *)
  11187. case `$CC -V 2>&1 | sed 5q` in
  11188. *Sun\ C*)
  11189. # Sun C++ 5.9
  11190. no_undefined_flag_CXX=' -zdefs'
  11191. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11192. 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'
  11193. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11194. 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'
  11195. compiler_needs_object_CXX=yes
  11196. # Not sure whether something based on
  11197. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11198. # would be better.
  11199. output_verbose_link_cmd='func_echo_all'
  11200. # Archives containing C++ object files must be created using
  11201. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11202. # necessary to make sure instantiated templates are included
  11203. # in the archive.
  11204. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11205. ;;
  11206. esac
  11207. ;;
  11208. esac
  11209. ;;
  11210. lynxos*)
  11211. # FIXME: insert proper C++ library support
  11212. ld_shlibs_CXX=no
  11213. ;;
  11214. m88k*)
  11215. # FIXME: insert proper C++ library support
  11216. ld_shlibs_CXX=no
  11217. ;;
  11218. mvs*)
  11219. case $cc_basename in
  11220. cxx*)
  11221. # FIXME: insert proper C++ library support
  11222. ld_shlibs_CXX=no
  11223. ;;
  11224. *)
  11225. # FIXME: insert proper C++ library support
  11226. ld_shlibs_CXX=no
  11227. ;;
  11228. esac
  11229. ;;
  11230. netbsd*)
  11231. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11232. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11233. wlarc=
  11234. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11235. hardcode_direct_CXX=yes
  11236. hardcode_shlibpath_var_CXX=no
  11237. fi
  11238. # Workaround some broken pre-1.5 toolchains
  11239. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11240. ;;
  11241. *nto* | *qnx*)
  11242. ld_shlibs_CXX=yes
  11243. ;;
  11244. openbsd2*)
  11245. # C++ shared libraries are fairly broken
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. openbsd*)
  11249. if test -f /usr/libexec/ld.so; then
  11250. hardcode_direct_CXX=yes
  11251. hardcode_shlibpath_var_CXX=no
  11252. hardcode_direct_absolute_CXX=yes
  11253. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11254. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11255. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11256. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11257. export_dynamic_flag_spec_CXX='${wl}-E'
  11258. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11259. fi
  11260. output_verbose_link_cmd=func_echo_all
  11261. else
  11262. ld_shlibs_CXX=no
  11263. fi
  11264. ;;
  11265. osf3* | osf4* | osf5*)
  11266. case $cc_basename in
  11267. KCC*)
  11268. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11269. # KCC will only create a shared library if the output file
  11270. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11271. # to its proper name (with version) after linking.
  11272. 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'
  11273. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11274. hardcode_libdir_separator_CXX=:
  11275. # Archives containing C++ object files must be created using
  11276. # the KAI C++ compiler.
  11277. case $host in
  11278. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11279. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11280. esac
  11281. ;;
  11282. RCC*)
  11283. # Rational C++ 2.4.1
  11284. # FIXME: insert proper C++ library support
  11285. ld_shlibs_CXX=no
  11286. ;;
  11287. cxx*)
  11288. case $host in
  11289. osf3*)
  11290. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11291. 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'
  11292. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11293. ;;
  11294. *)
  11295. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11296. 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'
  11297. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11298. echo "-hidden">> $lib.exp~
  11299. $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~
  11300. $RM $lib.exp'
  11301. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11302. ;;
  11303. esac
  11304. hardcode_libdir_separator_CXX=:
  11305. # Commands to make compiler produce verbose output that lists
  11306. # what "hidden" libraries, object files and flags are used when
  11307. # linking a shared library.
  11308. #
  11309. # There doesn't appear to be a way to prevent this compiler from
  11310. # explicitly linking system object files so we need to strip them
  11311. # from the output so that they don't get included in the library
  11312. # dependencies.
  11313. 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"'
  11314. ;;
  11315. *)
  11316. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11317. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11318. case $host in
  11319. osf3*)
  11320. 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'
  11321. ;;
  11322. *)
  11323. 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'
  11324. ;;
  11325. esac
  11326. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11327. hardcode_libdir_separator_CXX=:
  11328. # Commands to make compiler produce verbose output that lists
  11329. # what "hidden" libraries, object files and flags are used when
  11330. # linking a shared library.
  11331. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11332. else
  11333. # FIXME: insert proper C++ library support
  11334. ld_shlibs_CXX=no
  11335. fi
  11336. ;;
  11337. esac
  11338. ;;
  11339. psos*)
  11340. # FIXME: insert proper C++ library support
  11341. ld_shlibs_CXX=no
  11342. ;;
  11343. sunos4*)
  11344. case $cc_basename in
  11345. CC*)
  11346. # Sun C++ 4.x
  11347. # FIXME: insert proper C++ library support
  11348. ld_shlibs_CXX=no
  11349. ;;
  11350. lcc*)
  11351. # Lucid
  11352. # FIXME: insert proper C++ library support
  11353. ld_shlibs_CXX=no
  11354. ;;
  11355. *)
  11356. # FIXME: insert proper C++ library support
  11357. ld_shlibs_CXX=no
  11358. ;;
  11359. esac
  11360. ;;
  11361. solaris*)
  11362. case $cc_basename in
  11363. CC* | sunCC*)
  11364. # Sun C++ 4.2, 5.x and Centerline C++
  11365. archive_cmds_need_lc_CXX=yes
  11366. no_undefined_flag_CXX=' -zdefs'
  11367. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11368. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11369. $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'
  11370. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11371. hardcode_shlibpath_var_CXX=no
  11372. case $host_os in
  11373. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11374. *)
  11375. # The compiler driver will combine and reorder linker options,
  11376. # but understands `-z linker_flag'.
  11377. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11378. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11379. ;;
  11380. esac
  11381. link_all_deplibs_CXX=yes
  11382. output_verbose_link_cmd='func_echo_all'
  11383. # Archives containing C++ object files must be created using
  11384. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11385. # necessary to make sure instantiated templates are included
  11386. # in the archive.
  11387. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11388. ;;
  11389. gcx*)
  11390. # Green Hills C++ Compiler
  11391. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11392. # The C++ compiler must be used to create the archive.
  11393. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11394. ;;
  11395. *)
  11396. # GNU C++ compiler with Solaris linker
  11397. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11398. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11399. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11400. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11401. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11402. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11403. # Commands to make compiler produce verbose output that lists
  11404. # what "hidden" libraries, object files and flags are used when
  11405. # linking a shared library.
  11406. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11407. else
  11408. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11409. # platform.
  11410. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11411. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11412. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11413. # Commands to make compiler produce verbose output that lists
  11414. # what "hidden" libraries, object files and flags are used when
  11415. # linking a shared library.
  11416. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11417. fi
  11418. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11419. case $host_os in
  11420. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11421. *)
  11422. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11423. ;;
  11424. esac
  11425. fi
  11426. ;;
  11427. esac
  11428. ;;
  11429. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11430. no_undefined_flag_CXX='${wl}-z,text'
  11431. archive_cmds_need_lc_CXX=no
  11432. hardcode_shlibpath_var_CXX=no
  11433. runpath_var='LD_RUN_PATH'
  11434. case $cc_basename in
  11435. CC*)
  11436. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11437. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11438. ;;
  11439. *)
  11440. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11441. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11442. ;;
  11443. esac
  11444. ;;
  11445. sysv5* | sco3.2v5* | sco5v6*)
  11446. # Note: We can NOT use -z defs as we might desire, because we do not
  11447. # link with -lc, and that would cause any symbols used from libc to
  11448. # always be unresolved, which means just about no library would
  11449. # ever link correctly. If we're not using GNU ld we use -z text
  11450. # though, which does catch some bad symbols but isn't as heavy-handed
  11451. # as -z defs.
  11452. no_undefined_flag_CXX='${wl}-z,text'
  11453. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11454. archive_cmds_need_lc_CXX=no
  11455. hardcode_shlibpath_var_CXX=no
  11456. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11457. hardcode_libdir_separator_CXX=':'
  11458. link_all_deplibs_CXX=yes
  11459. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11460. runpath_var='LD_RUN_PATH'
  11461. case $cc_basename in
  11462. CC*)
  11463. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11464. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11465. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11466. '"$old_archive_cmds_CXX"
  11467. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11468. '"$reload_cmds_CXX"
  11469. ;;
  11470. *)
  11471. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11472. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11473. ;;
  11474. esac
  11475. ;;
  11476. tandem*)
  11477. case $cc_basename in
  11478. NCC*)
  11479. # NonStop-UX NCC 3.20
  11480. # FIXME: insert proper C++ library support
  11481. ld_shlibs_CXX=no
  11482. ;;
  11483. *)
  11484. # FIXME: insert proper C++ library support
  11485. ld_shlibs_CXX=no
  11486. ;;
  11487. esac
  11488. ;;
  11489. vxworks*)
  11490. # FIXME: insert proper C++ library support
  11491. ld_shlibs_CXX=no
  11492. ;;
  11493. *)
  11494. # FIXME: insert proper C++ library support
  11495. ld_shlibs_CXX=no
  11496. ;;
  11497. esac
  11498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11499. $as_echo "$ld_shlibs_CXX" >&6; }
  11500. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11501. GCC_CXX="$GXX"
  11502. LD_CXX="$LD"
  11503. ## CAVEAT EMPTOR:
  11504. ## There is no encapsulation within the following macros, do not change
  11505. ## the running order or otherwise move them around unless you know exactly
  11506. ## what you are doing...
  11507. # Dependencies to place before and after the object being linked:
  11508. predep_objects_CXX=
  11509. postdep_objects_CXX=
  11510. predeps_CXX=
  11511. postdeps_CXX=
  11512. compiler_lib_search_path_CXX=
  11513. cat > conftest.$ac_ext <<_LT_EOF
  11514. class Foo
  11515. {
  11516. public:
  11517. Foo (void) { a = 0; }
  11518. private:
  11519. int a;
  11520. };
  11521. _LT_EOF
  11522. _lt_libdeps_save_CFLAGS=$CFLAGS
  11523. case "$CC $CFLAGS " in #(
  11524. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11525. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11526. esac
  11527. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11528. (eval $ac_compile) 2>&5
  11529. ac_status=$?
  11530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11531. test $ac_status = 0; }; then
  11532. # Parse the compiler output and extract the necessary
  11533. # objects, libraries and library flags.
  11534. # Sentinel used to keep track of whether or not we are before
  11535. # the conftest object file.
  11536. pre_test_object_deps_done=no
  11537. for p in `eval "$output_verbose_link_cmd"`; do
  11538. case ${prev}${p} in
  11539. -L* | -R* | -l*)
  11540. # Some compilers place space between "-{L,R}" and the path.
  11541. # Remove the space.
  11542. if test $p = "-L" ||
  11543. test $p = "-R"; then
  11544. prev=$p
  11545. continue
  11546. fi
  11547. # Expand the sysroot to ease extracting the directories later.
  11548. if test -z "$prev"; then
  11549. case $p in
  11550. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11551. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11552. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11553. esac
  11554. fi
  11555. case $p in
  11556. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11557. esac
  11558. if test "$pre_test_object_deps_done" = no; then
  11559. case ${prev} in
  11560. -L | -R)
  11561. # Internal compiler library paths should come after those
  11562. # provided the user. The postdeps already come after the
  11563. # user supplied libs so there is no need to process them.
  11564. if test -z "$compiler_lib_search_path_CXX"; then
  11565. compiler_lib_search_path_CXX="${prev}${p}"
  11566. else
  11567. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11568. fi
  11569. ;;
  11570. # The "-l" case would never come before the object being
  11571. # linked, so don't bother handling this case.
  11572. esac
  11573. else
  11574. if test -z "$postdeps_CXX"; then
  11575. postdeps_CXX="${prev}${p}"
  11576. else
  11577. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11578. fi
  11579. fi
  11580. prev=
  11581. ;;
  11582. *.lto.$objext) ;; # Ignore GCC LTO objects
  11583. *.$objext)
  11584. # This assumes that the test object file only shows up
  11585. # once in the compiler output.
  11586. if test "$p" = "conftest.$objext"; then
  11587. pre_test_object_deps_done=yes
  11588. continue
  11589. fi
  11590. if test "$pre_test_object_deps_done" = no; then
  11591. if test -z "$predep_objects_CXX"; then
  11592. predep_objects_CXX="$p"
  11593. else
  11594. predep_objects_CXX="$predep_objects_CXX $p"
  11595. fi
  11596. else
  11597. if test -z "$postdep_objects_CXX"; then
  11598. postdep_objects_CXX="$p"
  11599. else
  11600. postdep_objects_CXX="$postdep_objects_CXX $p"
  11601. fi
  11602. fi
  11603. ;;
  11604. *) ;; # Ignore the rest.
  11605. esac
  11606. done
  11607. # Clean up.
  11608. rm -f a.out a.exe
  11609. else
  11610. echo "libtool.m4: error: problem compiling CXX test program"
  11611. fi
  11612. $RM -f confest.$objext
  11613. CFLAGS=$_lt_libdeps_save_CFLAGS
  11614. # PORTME: override above test on systems where it is broken
  11615. case $host_os in
  11616. interix[3-9]*)
  11617. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11618. # hack all around it, let's just trust "g++" to DTRT.
  11619. predep_objects_CXX=
  11620. postdep_objects_CXX=
  11621. postdeps_CXX=
  11622. ;;
  11623. linux*)
  11624. case `$CC -V 2>&1 | sed 5q` in
  11625. *Sun\ C*)
  11626. # Sun C++ 5.9
  11627. # The more standards-conforming stlport4 library is
  11628. # incompatible with the Cstd library. Avoid specifying
  11629. # it if it's in CXXFLAGS. Ignore libCrun as
  11630. # -library=stlport4 depends on it.
  11631. case " $CXX $CXXFLAGS " in
  11632. *" -library=stlport4 "*)
  11633. solaris_use_stlport4=yes
  11634. ;;
  11635. esac
  11636. if test "$solaris_use_stlport4" != yes; then
  11637. postdeps_CXX='-library=Cstd -library=Crun'
  11638. fi
  11639. ;;
  11640. esac
  11641. ;;
  11642. solaris*)
  11643. case $cc_basename in
  11644. CC* | sunCC*)
  11645. # The more standards-conforming stlport4 library is
  11646. # incompatible with the Cstd library. Avoid specifying
  11647. # it if it's in CXXFLAGS. Ignore libCrun as
  11648. # -library=stlport4 depends on it.
  11649. case " $CXX $CXXFLAGS " in
  11650. *" -library=stlport4 "*)
  11651. solaris_use_stlport4=yes
  11652. ;;
  11653. esac
  11654. # Adding this requires a known-good setup of shared libraries for
  11655. # Sun compiler versions before 5.6, else PIC objects from an old
  11656. # archive will be linked into the output, leading to subtle bugs.
  11657. if test "$solaris_use_stlport4" != yes; then
  11658. postdeps_CXX='-library=Cstd -library=Crun'
  11659. fi
  11660. ;;
  11661. esac
  11662. ;;
  11663. esac
  11664. case " $postdeps_CXX " in
  11665. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11666. esac
  11667. compiler_lib_search_dirs_CXX=
  11668. if test -n "${compiler_lib_search_path_CXX}"; then
  11669. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11670. fi
  11671. lt_prog_compiler_wl_CXX=
  11672. lt_prog_compiler_pic_CXX=
  11673. lt_prog_compiler_static_CXX=
  11674. # C++ specific cases for pic, static, wl, etc.
  11675. if test "$GXX" = yes; then
  11676. lt_prog_compiler_wl_CXX='-Wl,'
  11677. lt_prog_compiler_static_CXX='-static'
  11678. case $host_os in
  11679. aix*)
  11680. # All AIX code is PIC.
  11681. if test "$host_cpu" = ia64; then
  11682. # AIX 5 now supports IA64 processor
  11683. lt_prog_compiler_static_CXX='-Bstatic'
  11684. fi
  11685. ;;
  11686. amigaos*)
  11687. case $host_cpu in
  11688. powerpc)
  11689. # see comment about AmigaOS4 .so support
  11690. lt_prog_compiler_pic_CXX='-fPIC'
  11691. ;;
  11692. m68k)
  11693. # FIXME: we need at least 68020 code to build shared libraries, but
  11694. # adding the `-m68020' flag to GCC prevents building anything better,
  11695. # like `-m68040'.
  11696. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11697. ;;
  11698. esac
  11699. ;;
  11700. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11701. # PIC is the default for these OSes.
  11702. ;;
  11703. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11704. # This hack is so that the source file can tell whether it is being
  11705. # built for inclusion in a dll (and should export symbols for example).
  11706. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11707. # (--disable-auto-import) libraries
  11708. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11709. ;;
  11710. darwin* | rhapsody*)
  11711. # PIC is the default on this platform
  11712. # Common symbols not allowed in MH_DYLIB files
  11713. lt_prog_compiler_pic_CXX='-fno-common'
  11714. ;;
  11715. *djgpp*)
  11716. # DJGPP does not support shared libraries at all
  11717. lt_prog_compiler_pic_CXX=
  11718. ;;
  11719. haiku*)
  11720. # PIC is the default for Haiku.
  11721. # The "-static" flag exists, but is broken.
  11722. lt_prog_compiler_static_CXX=
  11723. ;;
  11724. interix[3-9]*)
  11725. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11726. # Instead, we relocate shared libraries at runtime.
  11727. ;;
  11728. sysv4*MP*)
  11729. if test -d /usr/nec; then
  11730. lt_prog_compiler_pic_CXX=-Kconform_pic
  11731. fi
  11732. ;;
  11733. hpux*)
  11734. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11735. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11736. # sets the default TLS model and affects inlining.
  11737. case $host_cpu in
  11738. hppa*64*)
  11739. ;;
  11740. *)
  11741. lt_prog_compiler_pic_CXX='-fPIC'
  11742. ;;
  11743. esac
  11744. ;;
  11745. *qnx* | *nto*)
  11746. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11747. # it will coredump.
  11748. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11749. ;;
  11750. *)
  11751. lt_prog_compiler_pic_CXX='-fPIC'
  11752. ;;
  11753. esac
  11754. else
  11755. case $host_os in
  11756. aix[4-9]*)
  11757. # All AIX code is PIC.
  11758. if test "$host_cpu" = ia64; then
  11759. # AIX 5 now supports IA64 processor
  11760. lt_prog_compiler_static_CXX='-Bstatic'
  11761. else
  11762. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11763. fi
  11764. ;;
  11765. chorus*)
  11766. case $cc_basename in
  11767. cxch68*)
  11768. # Green Hills C++ Compiler
  11769. # _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"
  11770. ;;
  11771. esac
  11772. ;;
  11773. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11774. # This hack is so that the source file can tell whether it is being
  11775. # built for inclusion in a dll (and should export symbols for example).
  11776. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11777. ;;
  11778. dgux*)
  11779. case $cc_basename in
  11780. ec++*)
  11781. lt_prog_compiler_pic_CXX='-KPIC'
  11782. ;;
  11783. ghcx*)
  11784. # Green Hills C++ Compiler
  11785. lt_prog_compiler_pic_CXX='-pic'
  11786. ;;
  11787. *)
  11788. ;;
  11789. esac
  11790. ;;
  11791. freebsd* | dragonfly*)
  11792. # FreeBSD uses GNU C++
  11793. ;;
  11794. hpux9* | hpux10* | hpux11*)
  11795. case $cc_basename in
  11796. CC*)
  11797. lt_prog_compiler_wl_CXX='-Wl,'
  11798. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11799. if test "$host_cpu" != ia64; then
  11800. lt_prog_compiler_pic_CXX='+Z'
  11801. fi
  11802. ;;
  11803. aCC*)
  11804. lt_prog_compiler_wl_CXX='-Wl,'
  11805. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11806. case $host_cpu in
  11807. hppa*64*|ia64*)
  11808. # +Z the default
  11809. ;;
  11810. *)
  11811. lt_prog_compiler_pic_CXX='+Z'
  11812. ;;
  11813. esac
  11814. ;;
  11815. *)
  11816. ;;
  11817. esac
  11818. ;;
  11819. interix*)
  11820. # This is c89, which is MS Visual C++ (no shared libs)
  11821. # Anyone wants to do a port?
  11822. ;;
  11823. irix5* | irix6* | nonstopux*)
  11824. case $cc_basename in
  11825. CC*)
  11826. lt_prog_compiler_wl_CXX='-Wl,'
  11827. lt_prog_compiler_static_CXX='-non_shared'
  11828. # CC pic flag -KPIC is the default.
  11829. ;;
  11830. *)
  11831. ;;
  11832. esac
  11833. ;;
  11834. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11835. case $cc_basename in
  11836. KCC*)
  11837. # KAI C++ Compiler
  11838. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11839. lt_prog_compiler_pic_CXX='-fPIC'
  11840. ;;
  11841. ecpc* )
  11842. # old Intel C++ for x86_64 which still supported -KPIC.
  11843. lt_prog_compiler_wl_CXX='-Wl,'
  11844. lt_prog_compiler_pic_CXX='-KPIC'
  11845. lt_prog_compiler_static_CXX='-static'
  11846. ;;
  11847. icpc* )
  11848. # Intel C++, used to be incompatible with GCC.
  11849. # ICC 10 doesn't accept -KPIC any more.
  11850. lt_prog_compiler_wl_CXX='-Wl,'
  11851. lt_prog_compiler_pic_CXX='-fPIC'
  11852. lt_prog_compiler_static_CXX='-static'
  11853. ;;
  11854. pgCC* | pgcpp*)
  11855. # Portland Group C++ compiler
  11856. lt_prog_compiler_wl_CXX='-Wl,'
  11857. lt_prog_compiler_pic_CXX='-fpic'
  11858. lt_prog_compiler_static_CXX='-Bstatic'
  11859. ;;
  11860. cxx*)
  11861. # Compaq C++
  11862. # Make sure the PIC flag is empty. It appears that all Alpha
  11863. # Linux and Compaq Tru64 Unix objects are PIC.
  11864. lt_prog_compiler_pic_CXX=
  11865. lt_prog_compiler_static_CXX='-non_shared'
  11866. ;;
  11867. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11868. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11869. lt_prog_compiler_wl_CXX='-Wl,'
  11870. lt_prog_compiler_pic_CXX='-qpic'
  11871. lt_prog_compiler_static_CXX='-qstaticlink'
  11872. ;;
  11873. *)
  11874. case `$CC -V 2>&1 | sed 5q` in
  11875. *Sun\ C*)
  11876. # Sun C++ 5.9
  11877. lt_prog_compiler_pic_CXX='-KPIC'
  11878. lt_prog_compiler_static_CXX='-Bstatic'
  11879. lt_prog_compiler_wl_CXX='-Qoption ld '
  11880. ;;
  11881. esac
  11882. ;;
  11883. esac
  11884. ;;
  11885. lynxos*)
  11886. ;;
  11887. m88k*)
  11888. ;;
  11889. mvs*)
  11890. case $cc_basename in
  11891. cxx*)
  11892. lt_prog_compiler_pic_CXX='-W c,exportall'
  11893. ;;
  11894. *)
  11895. ;;
  11896. esac
  11897. ;;
  11898. netbsd* | netbsdelf*-gnu)
  11899. ;;
  11900. *qnx* | *nto*)
  11901. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11902. # it will coredump.
  11903. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11904. ;;
  11905. osf3* | osf4* | osf5*)
  11906. case $cc_basename in
  11907. KCC*)
  11908. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11909. ;;
  11910. RCC*)
  11911. # Rational C++ 2.4.1
  11912. lt_prog_compiler_pic_CXX='-pic'
  11913. ;;
  11914. cxx*)
  11915. # Digital/Compaq C++
  11916. lt_prog_compiler_wl_CXX='-Wl,'
  11917. # Make sure the PIC flag is empty. It appears that all Alpha
  11918. # Linux and Compaq Tru64 Unix objects are PIC.
  11919. lt_prog_compiler_pic_CXX=
  11920. lt_prog_compiler_static_CXX='-non_shared'
  11921. ;;
  11922. *)
  11923. ;;
  11924. esac
  11925. ;;
  11926. psos*)
  11927. ;;
  11928. solaris*)
  11929. case $cc_basename in
  11930. CC* | sunCC*)
  11931. # Sun C++ 4.2, 5.x and Centerline C++
  11932. lt_prog_compiler_pic_CXX='-KPIC'
  11933. lt_prog_compiler_static_CXX='-Bstatic'
  11934. lt_prog_compiler_wl_CXX='-Qoption ld '
  11935. ;;
  11936. gcx*)
  11937. # Green Hills C++ Compiler
  11938. lt_prog_compiler_pic_CXX='-PIC'
  11939. ;;
  11940. *)
  11941. ;;
  11942. esac
  11943. ;;
  11944. sunos4*)
  11945. case $cc_basename in
  11946. CC*)
  11947. # Sun C++ 4.x
  11948. lt_prog_compiler_pic_CXX='-pic'
  11949. lt_prog_compiler_static_CXX='-Bstatic'
  11950. ;;
  11951. lcc*)
  11952. # Lucid
  11953. lt_prog_compiler_pic_CXX='-pic'
  11954. ;;
  11955. *)
  11956. ;;
  11957. esac
  11958. ;;
  11959. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11960. case $cc_basename in
  11961. CC*)
  11962. lt_prog_compiler_wl_CXX='-Wl,'
  11963. lt_prog_compiler_pic_CXX='-KPIC'
  11964. lt_prog_compiler_static_CXX='-Bstatic'
  11965. ;;
  11966. esac
  11967. ;;
  11968. tandem*)
  11969. case $cc_basename in
  11970. NCC*)
  11971. # NonStop-UX NCC 3.20
  11972. lt_prog_compiler_pic_CXX='-KPIC'
  11973. ;;
  11974. *)
  11975. ;;
  11976. esac
  11977. ;;
  11978. vxworks*)
  11979. ;;
  11980. *)
  11981. lt_prog_compiler_can_build_shared_CXX=no
  11982. ;;
  11983. esac
  11984. fi
  11985. case $host_os in
  11986. # For platforms which do not support PIC, -DPIC is meaningless:
  11987. *djgpp*)
  11988. lt_prog_compiler_pic_CXX=
  11989. ;;
  11990. *)
  11991. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11992. ;;
  11993. esac
  11994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11995. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11996. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11997. $as_echo_n "(cached) " >&6
  11998. else
  11999. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12000. fi
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12002. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12003. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12004. #
  12005. # Check to make sure the PIC flag actually works.
  12006. #
  12007. if test -n "$lt_prog_compiler_pic_CXX"; then
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12009. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12010. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12011. $as_echo_n "(cached) " >&6
  12012. else
  12013. lt_cv_prog_compiler_pic_works_CXX=no
  12014. ac_outfile=conftest.$ac_objext
  12015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12016. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12017. # Insert the option either (1) after the last *FLAGS variable, or
  12018. # (2) before a word containing "conftest.", or (3) at the end.
  12019. # Note that $ac_compile itself does not contain backslashes and begins
  12020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12021. # The option is referenced via a variable to avoid confusing sed.
  12022. lt_compile=`echo "$ac_compile" | $SED \
  12023. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12024. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12025. -e 's:$: $lt_compiler_flag:'`
  12026. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12027. (eval "$lt_compile" 2>conftest.err)
  12028. ac_status=$?
  12029. cat conftest.err >&5
  12030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12031. if (exit $ac_status) && test -s "$ac_outfile"; then
  12032. # The compiler can only warn and ignore the option if not recognized
  12033. # So say no if there are warnings other than the usual output.
  12034. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12036. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12037. lt_cv_prog_compiler_pic_works_CXX=yes
  12038. fi
  12039. fi
  12040. $RM conftest*
  12041. fi
  12042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12043. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12044. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12045. case $lt_prog_compiler_pic_CXX in
  12046. "" | " "*) ;;
  12047. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12048. esac
  12049. else
  12050. lt_prog_compiler_pic_CXX=
  12051. lt_prog_compiler_can_build_shared_CXX=no
  12052. fi
  12053. fi
  12054. #
  12055. # Check to make sure the static flag actually works.
  12056. #
  12057. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12059. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12060. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12061. $as_echo_n "(cached) " >&6
  12062. else
  12063. lt_cv_prog_compiler_static_works_CXX=no
  12064. save_LDFLAGS="$LDFLAGS"
  12065. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12066. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12067. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12068. # The linker can only warn and ignore the option if not recognized
  12069. # So say no if there are warnings
  12070. if test -s conftest.err; then
  12071. # Append any errors to the config.log.
  12072. cat conftest.err 1>&5
  12073. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12074. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12075. if diff conftest.exp conftest.er2 >/dev/null; then
  12076. lt_cv_prog_compiler_static_works_CXX=yes
  12077. fi
  12078. else
  12079. lt_cv_prog_compiler_static_works_CXX=yes
  12080. fi
  12081. fi
  12082. $RM -r conftest*
  12083. LDFLAGS="$save_LDFLAGS"
  12084. fi
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12086. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12087. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12088. :
  12089. else
  12090. lt_prog_compiler_static_CXX=
  12091. fi
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12093. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12094. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12095. $as_echo_n "(cached) " >&6
  12096. else
  12097. lt_cv_prog_compiler_c_o_CXX=no
  12098. $RM -r conftest 2>/dev/null
  12099. mkdir conftest
  12100. cd conftest
  12101. mkdir out
  12102. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12103. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12104. # Insert the option either (1) after the last *FLAGS variable, or
  12105. # (2) before a word containing "conftest.", or (3) at the end.
  12106. # Note that $ac_compile itself does not contain backslashes and begins
  12107. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12108. lt_compile=`echo "$ac_compile" | $SED \
  12109. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12110. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12111. -e 's:$: $lt_compiler_flag:'`
  12112. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12113. (eval "$lt_compile" 2>out/conftest.err)
  12114. ac_status=$?
  12115. cat out/conftest.err >&5
  12116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12117. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12118. then
  12119. # The compiler can only warn and ignore the option if not recognized
  12120. # So say no if there are warnings
  12121. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12122. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12123. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12124. lt_cv_prog_compiler_c_o_CXX=yes
  12125. fi
  12126. fi
  12127. chmod u+w . 2>&5
  12128. $RM conftest*
  12129. # SGI C++ compiler will create directory out/ii_files/ for
  12130. # template instantiation
  12131. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12132. $RM out/* && rmdir out
  12133. cd ..
  12134. $RM -r conftest
  12135. $RM conftest*
  12136. fi
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12138. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12140. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12141. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12142. $as_echo_n "(cached) " >&6
  12143. else
  12144. lt_cv_prog_compiler_c_o_CXX=no
  12145. $RM -r conftest 2>/dev/null
  12146. mkdir conftest
  12147. cd conftest
  12148. mkdir out
  12149. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12150. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12151. # Insert the option either (1) after the last *FLAGS variable, or
  12152. # (2) before a word containing "conftest.", or (3) at the end.
  12153. # Note that $ac_compile itself does not contain backslashes and begins
  12154. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12155. lt_compile=`echo "$ac_compile" | $SED \
  12156. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12157. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12158. -e 's:$: $lt_compiler_flag:'`
  12159. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12160. (eval "$lt_compile" 2>out/conftest.err)
  12161. ac_status=$?
  12162. cat out/conftest.err >&5
  12163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12164. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12165. then
  12166. # The compiler can only warn and ignore the option if not recognized
  12167. # So say no if there are warnings
  12168. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12169. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12170. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12171. lt_cv_prog_compiler_c_o_CXX=yes
  12172. fi
  12173. fi
  12174. chmod u+w . 2>&5
  12175. $RM conftest*
  12176. # SGI C++ compiler will create directory out/ii_files/ for
  12177. # template instantiation
  12178. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12179. $RM out/* && rmdir out
  12180. cd ..
  12181. $RM -r conftest
  12182. $RM conftest*
  12183. fi
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12185. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12186. hard_links="nottested"
  12187. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12188. # do not overwrite the value of need_locks provided by the user
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12190. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12191. hard_links=yes
  12192. $RM conftest*
  12193. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12194. touch conftest.a
  12195. ln conftest.a conftest.b 2>&5 || hard_links=no
  12196. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12198. $as_echo "$hard_links" >&6; }
  12199. if test "$hard_links" = no; then
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12201. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12202. need_locks=warn
  12203. fi
  12204. else
  12205. need_locks=no
  12206. fi
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12208. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12209. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12210. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12211. case $host_os in
  12212. aix[4-9]*)
  12213. # If we're using GNU nm, then we don't want the "-C" option.
  12214. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12215. # Also, AIX nm treats weak defined symbols like other global defined
  12216. # symbols, whereas GNU nm marks them as "W".
  12217. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12218. 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'
  12219. else
  12220. 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'
  12221. fi
  12222. ;;
  12223. pw32*)
  12224. export_symbols_cmds_CXX="$ltdll_cmds"
  12225. ;;
  12226. cygwin* | mingw* | cegcc*)
  12227. case $cc_basename in
  12228. cl*) ;;
  12229. *)
  12230. 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'
  12231. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12232. ;;
  12233. esac
  12234. ;;
  12235. linux* | k*bsd*-gnu | gnu*)
  12236. link_all_deplibs_CXX=no
  12237. ;;
  12238. *)
  12239. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12240. ;;
  12241. esac
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12243. $as_echo "$ld_shlibs_CXX" >&6; }
  12244. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12245. with_gnu_ld_CXX=$with_gnu_ld
  12246. #
  12247. # Do we need to explicitly link libc?
  12248. #
  12249. case "x$archive_cmds_need_lc_CXX" in
  12250. x|xyes)
  12251. # Assume -lc should be added
  12252. archive_cmds_need_lc_CXX=yes
  12253. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12254. case $archive_cmds_CXX in
  12255. *'~'*)
  12256. # FIXME: we may have to deal with multi-command sequences.
  12257. ;;
  12258. '$CC '*)
  12259. # Test whether the compiler implicitly links with -lc since on some
  12260. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12261. # to ld, don't add -lc before -lgcc.
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12263. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12264. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12265. $as_echo_n "(cached) " >&6
  12266. else
  12267. $RM conftest*
  12268. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12270. (eval $ac_compile) 2>&5
  12271. ac_status=$?
  12272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12273. test $ac_status = 0; } 2>conftest.err; then
  12274. soname=conftest
  12275. lib=conftest
  12276. libobjs=conftest.$ac_objext
  12277. deplibs=
  12278. wl=$lt_prog_compiler_wl_CXX
  12279. pic_flag=$lt_prog_compiler_pic_CXX
  12280. compiler_flags=-v
  12281. linker_flags=-v
  12282. verstring=
  12283. output_objdir=.
  12284. libname=conftest
  12285. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12286. allow_undefined_flag_CXX=
  12287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12288. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12289. ac_status=$?
  12290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12291. test $ac_status = 0; }
  12292. then
  12293. lt_cv_archive_cmds_need_lc_CXX=no
  12294. else
  12295. lt_cv_archive_cmds_need_lc_CXX=yes
  12296. fi
  12297. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12298. else
  12299. cat conftest.err 1>&5
  12300. fi
  12301. $RM conftest*
  12302. fi
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12304. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12305. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12306. ;;
  12307. esac
  12308. fi
  12309. ;;
  12310. esac
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12312. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12313. library_names_spec=
  12314. libname_spec='lib$name'
  12315. soname_spec=
  12316. shrext_cmds=".so"
  12317. postinstall_cmds=
  12318. postuninstall_cmds=
  12319. finish_cmds=
  12320. finish_eval=
  12321. shlibpath_var=
  12322. shlibpath_overrides_runpath=unknown
  12323. version_type=none
  12324. dynamic_linker="$host_os ld.so"
  12325. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12326. need_lib_prefix=unknown
  12327. hardcode_into_libs=no
  12328. # when you set need_version to no, make sure it does not cause -set_version
  12329. # flags to be left without arguments
  12330. need_version=unknown
  12331. case $host_os in
  12332. aix3*)
  12333. version_type=linux
  12334. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12335. shlibpath_var=LIBPATH
  12336. # AIX 3 has no versioning support, so we append a major version to the name.
  12337. soname_spec='${libname}${release}${shared_ext}$major'
  12338. ;;
  12339. aix[4-9]*)
  12340. version_type=linux
  12341. need_lib_prefix=no
  12342. need_version=no
  12343. hardcode_into_libs=yes
  12344. if test "$host_cpu" = ia64; then
  12345. # AIX 5 supports IA64
  12346. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12347. shlibpath_var=LD_LIBRARY_PATH
  12348. else
  12349. # With GCC up to 2.95.x, collect2 would create an import file
  12350. # for dependence libraries. The import file would start with
  12351. # the line `#! .'. This would cause the generated library to
  12352. # depend on `.', always an invalid library. This was fixed in
  12353. # development snapshots of GCC prior to 3.0.
  12354. case $host_os in
  12355. aix4 | aix4.[01] | aix4.[01].*)
  12356. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12357. echo ' yes '
  12358. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12359. :
  12360. else
  12361. can_build_shared=no
  12362. fi
  12363. ;;
  12364. esac
  12365. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12366. # soname into executable. Probably we can add versioning support to
  12367. # collect2, so additional links can be useful in future.
  12368. if test "$aix_use_runtimelinking" = yes; then
  12369. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12370. # instead of lib<name>.a to let people know that these are not
  12371. # typical AIX shared libraries.
  12372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12373. else
  12374. # We preserve .a as extension for shared libraries through AIX4.2
  12375. # and later when we are not doing run time linking.
  12376. library_names_spec='${libname}${release}.a $libname.a'
  12377. soname_spec='${libname}${release}${shared_ext}$major'
  12378. fi
  12379. shlibpath_var=LIBPATH
  12380. fi
  12381. ;;
  12382. amigaos*)
  12383. case $host_cpu in
  12384. powerpc)
  12385. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12386. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12388. ;;
  12389. m68k)
  12390. library_names_spec='$libname.ixlibrary $libname.a'
  12391. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12392. 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'
  12393. ;;
  12394. esac
  12395. ;;
  12396. beos*)
  12397. library_names_spec='${libname}${shared_ext}'
  12398. dynamic_linker="$host_os ld.so"
  12399. shlibpath_var=LIBRARY_PATH
  12400. ;;
  12401. bsdi[45]*)
  12402. version_type=linux
  12403. need_version=no
  12404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12405. soname_spec='${libname}${release}${shared_ext}$major'
  12406. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12407. shlibpath_var=LD_LIBRARY_PATH
  12408. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12409. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12410. # the default ld.so.conf also contains /usr/contrib/lib and
  12411. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12412. # libtool to hard-code these into programs
  12413. ;;
  12414. cygwin* | mingw* | pw32* | cegcc*)
  12415. version_type=windows
  12416. shrext_cmds=".dll"
  12417. need_version=no
  12418. need_lib_prefix=no
  12419. case $GCC,$cc_basename in
  12420. yes,*)
  12421. # gcc
  12422. library_names_spec='$libname.dll.a'
  12423. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12424. postinstall_cmds='base_file=`basename \${file}`~
  12425. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12426. dldir=$destdir/`dirname \$dlpath`~
  12427. test -d \$dldir || mkdir -p \$dldir~
  12428. $install_prog $dir/$dlname \$dldir/$dlname~
  12429. chmod a+x \$dldir/$dlname~
  12430. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12431. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12432. fi'
  12433. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12434. dlpath=$dir/\$dldll~
  12435. $RM \$dlpath'
  12436. shlibpath_overrides_runpath=yes
  12437. case $host_os in
  12438. cygwin*)
  12439. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12440. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12441. ;;
  12442. mingw* | cegcc*)
  12443. # MinGW DLLs use traditional 'lib' prefix
  12444. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12445. ;;
  12446. pw32*)
  12447. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12448. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12449. ;;
  12450. esac
  12451. dynamic_linker='Win32 ld.exe'
  12452. ;;
  12453. *,cl*)
  12454. # Native MSVC
  12455. libname_spec='$name'
  12456. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12457. library_names_spec='${libname}.dll.lib'
  12458. case $build_os in
  12459. mingw*)
  12460. sys_lib_search_path_spec=
  12461. lt_save_ifs=$IFS
  12462. IFS=';'
  12463. for lt_path in $LIB
  12464. do
  12465. IFS=$lt_save_ifs
  12466. # Let DOS variable expansion print the short 8.3 style file name.
  12467. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12468. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12469. done
  12470. IFS=$lt_save_ifs
  12471. # Convert to MSYS style.
  12472. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12473. ;;
  12474. cygwin*)
  12475. # Convert to unix form, then to dos form, then back to unix form
  12476. # but this time dos style (no spaces!) so that the unix form looks
  12477. # like /cygdrive/c/PROGRA~1:/cygdr...
  12478. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12479. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12480. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12481. ;;
  12482. *)
  12483. sys_lib_search_path_spec="$LIB"
  12484. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12485. # It is most probably a Windows format PATH.
  12486. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12487. else
  12488. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12489. fi
  12490. # FIXME: find the short name or the path components, as spaces are
  12491. # common. (e.g. "Program Files" -> "PROGRA~1")
  12492. ;;
  12493. esac
  12494. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12495. postinstall_cmds='base_file=`basename \${file}`~
  12496. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12497. dldir=$destdir/`dirname \$dlpath`~
  12498. test -d \$dldir || mkdir -p \$dldir~
  12499. $install_prog $dir/$dlname \$dldir/$dlname'
  12500. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12501. dlpath=$dir/\$dldll~
  12502. $RM \$dlpath'
  12503. shlibpath_overrides_runpath=yes
  12504. dynamic_linker='Win32 link.exe'
  12505. ;;
  12506. *)
  12507. # Assume MSVC wrapper
  12508. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12509. dynamic_linker='Win32 ld.exe'
  12510. ;;
  12511. esac
  12512. # FIXME: first we should search . and the directory the executable is in
  12513. shlibpath_var=PATH
  12514. ;;
  12515. darwin* | rhapsody*)
  12516. dynamic_linker="$host_os dyld"
  12517. version_type=darwin
  12518. need_lib_prefix=no
  12519. need_version=no
  12520. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12521. soname_spec='${libname}${release}${major}$shared_ext'
  12522. shlibpath_overrides_runpath=yes
  12523. shlibpath_var=DYLD_LIBRARY_PATH
  12524. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12525. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12526. ;;
  12527. dgux*)
  12528. version_type=linux
  12529. need_lib_prefix=no
  12530. need_version=no
  12531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12532. soname_spec='${libname}${release}${shared_ext}$major'
  12533. shlibpath_var=LD_LIBRARY_PATH
  12534. ;;
  12535. freebsd1*)
  12536. dynamic_linker=no
  12537. ;;
  12538. freebsd* | dragonfly*)
  12539. # DragonFly does not have aout. When/if they implement a new
  12540. # versioning mechanism, adjust this.
  12541. if test -x /usr/bin/objformat; then
  12542. objformat=`/usr/bin/objformat`
  12543. else
  12544. case $host_os in
  12545. freebsd[123]*) objformat=aout ;;
  12546. *) objformat=elf ;;
  12547. esac
  12548. fi
  12549. version_type=freebsd-$objformat
  12550. case $version_type in
  12551. freebsd-elf*)
  12552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12553. need_version=no
  12554. need_lib_prefix=no
  12555. ;;
  12556. freebsd-*)
  12557. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12558. need_version=yes
  12559. ;;
  12560. esac
  12561. shlibpath_var=LD_LIBRARY_PATH
  12562. case $host_os in
  12563. freebsd2*)
  12564. shlibpath_overrides_runpath=yes
  12565. ;;
  12566. freebsd3.[01]* | freebsdelf3.[01]*)
  12567. shlibpath_overrides_runpath=yes
  12568. hardcode_into_libs=yes
  12569. ;;
  12570. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12571. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12572. shlibpath_overrides_runpath=no
  12573. hardcode_into_libs=yes
  12574. ;;
  12575. *) # from 4.6 on, and DragonFly
  12576. shlibpath_overrides_runpath=yes
  12577. hardcode_into_libs=yes
  12578. ;;
  12579. esac
  12580. ;;
  12581. gnu*)
  12582. version_type=linux
  12583. need_lib_prefix=no
  12584. need_version=no
  12585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12586. soname_spec='${libname}${release}${shared_ext}$major'
  12587. shlibpath_var=LD_LIBRARY_PATH
  12588. shlibpath_overrides_runpath=no
  12589. hardcode_into_libs=yes
  12590. ;;
  12591. haiku*)
  12592. version_type=linux
  12593. need_lib_prefix=no
  12594. need_version=no
  12595. dynamic_linker="$host_os runtime_loader"
  12596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12597. soname_spec='${libname}${release}${shared_ext}$major'
  12598. shlibpath_var=LIBRARY_PATH
  12599. shlibpath_overrides_runpath=yes
  12600. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12601. hardcode_into_libs=yes
  12602. ;;
  12603. hpux9* | hpux10* | hpux11*)
  12604. # Give a soname corresponding to the major version so that dld.sl refuses to
  12605. # link against other versions.
  12606. version_type=sunos
  12607. need_lib_prefix=no
  12608. need_version=no
  12609. case $host_cpu in
  12610. ia64*)
  12611. shrext_cmds='.so'
  12612. hardcode_into_libs=yes
  12613. dynamic_linker="$host_os dld.so"
  12614. shlibpath_var=LD_LIBRARY_PATH
  12615. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12617. soname_spec='${libname}${release}${shared_ext}$major'
  12618. if test "X$HPUX_IA64_MODE" = X32; then
  12619. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12620. else
  12621. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12622. fi
  12623. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12624. ;;
  12625. hppa*64*)
  12626. shrext_cmds='.sl'
  12627. hardcode_into_libs=yes
  12628. dynamic_linker="$host_os dld.sl"
  12629. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12630. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12632. soname_spec='${libname}${release}${shared_ext}$major'
  12633. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12634. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12635. ;;
  12636. *)
  12637. shrext_cmds='.sl'
  12638. dynamic_linker="$host_os dld.sl"
  12639. shlibpath_var=SHLIB_PATH
  12640. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12642. soname_spec='${libname}${release}${shared_ext}$major'
  12643. ;;
  12644. esac
  12645. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12646. postinstall_cmds='chmod 555 $lib'
  12647. # or fails outright, so override atomically:
  12648. install_override_mode=555
  12649. ;;
  12650. interix[3-9]*)
  12651. version_type=linux
  12652. need_lib_prefix=no
  12653. need_version=no
  12654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12655. soname_spec='${libname}${release}${shared_ext}$major'
  12656. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12657. shlibpath_var=LD_LIBRARY_PATH
  12658. shlibpath_overrides_runpath=no
  12659. hardcode_into_libs=yes
  12660. ;;
  12661. irix5* | irix6* | nonstopux*)
  12662. case $host_os in
  12663. nonstopux*) version_type=nonstopux ;;
  12664. *)
  12665. if test "$lt_cv_prog_gnu_ld" = yes; then
  12666. version_type=linux
  12667. else
  12668. version_type=irix
  12669. fi ;;
  12670. esac
  12671. need_lib_prefix=no
  12672. need_version=no
  12673. soname_spec='${libname}${release}${shared_ext}$major'
  12674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12675. case $host_os in
  12676. irix5* | nonstopux*)
  12677. libsuff= shlibsuff=
  12678. ;;
  12679. *)
  12680. case $LD in # libtool.m4 will add one of these switches to LD
  12681. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12682. libsuff= shlibsuff= libmagic=32-bit;;
  12683. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12684. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12685. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12686. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12687. *) libsuff= shlibsuff= libmagic=never-match;;
  12688. esac
  12689. ;;
  12690. esac
  12691. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12692. shlibpath_overrides_runpath=no
  12693. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12694. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12695. hardcode_into_libs=yes
  12696. ;;
  12697. # No shared lib support for Linux oldld, aout, or coff.
  12698. linux*oldld* | linux*aout* | linux*coff*)
  12699. dynamic_linker=no
  12700. ;;
  12701. # This must be Linux ELF.
  12702. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12703. version_type=linux
  12704. need_lib_prefix=no
  12705. need_version=no
  12706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12707. soname_spec='${libname}${release}${shared_ext}$major'
  12708. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12709. shlibpath_var=LD_LIBRARY_PATH
  12710. shlibpath_overrides_runpath=no
  12711. # Some binutils ld are patched to set DT_RUNPATH
  12712. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12713. $as_echo_n "(cached) " >&6
  12714. else
  12715. lt_cv_shlibpath_overrides_runpath=no
  12716. save_LDFLAGS=$LDFLAGS
  12717. save_libdir=$libdir
  12718. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12719. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12721. /* end confdefs.h. */
  12722. int
  12723. main ()
  12724. {
  12725. ;
  12726. return 0;
  12727. }
  12728. _ACEOF
  12729. if ac_fn_cxx_try_link "$LINENO"; then :
  12730. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12731. lt_cv_shlibpath_overrides_runpath=yes
  12732. fi
  12733. fi
  12734. rm -f core conftest.err conftest.$ac_objext \
  12735. conftest$ac_exeext conftest.$ac_ext
  12736. LDFLAGS=$save_LDFLAGS
  12737. libdir=$save_libdir
  12738. fi
  12739. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12740. # This implies no fast_install, which is unacceptable.
  12741. # Some rework will be needed to allow for fast_install
  12742. # before this can be enabled.
  12743. hardcode_into_libs=yes
  12744. # Append ld.so.conf contents to the search path
  12745. if test -f /etc/ld.so.conf; then
  12746. 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' ' '`
  12747. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12748. fi
  12749. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12750. # powerpc, because MkLinux only supported shared libraries with the
  12751. # GNU dynamic linker. Since this was broken with cross compilers,
  12752. # most powerpc-linux boxes support dynamic linking these days and
  12753. # people can always --disable-shared, the test was removed, and we
  12754. # assume the GNU/Linux dynamic linker is in use.
  12755. dynamic_linker='GNU/Linux ld.so'
  12756. ;;
  12757. netbsdelf*-gnu)
  12758. version_type=linux
  12759. need_lib_prefix=no
  12760. need_version=no
  12761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12762. soname_spec='${libname}${release}${shared_ext}$major'
  12763. shlibpath_var=LD_LIBRARY_PATH
  12764. shlibpath_overrides_runpath=no
  12765. hardcode_into_libs=yes
  12766. dynamic_linker='NetBSD ld.elf_so'
  12767. ;;
  12768. netbsd*)
  12769. version_type=sunos
  12770. need_lib_prefix=no
  12771. need_version=no
  12772. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12774. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12775. dynamic_linker='NetBSD (a.out) ld.so'
  12776. else
  12777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12778. soname_spec='${libname}${release}${shared_ext}$major'
  12779. dynamic_linker='NetBSD ld.elf_so'
  12780. fi
  12781. shlibpath_var=LD_LIBRARY_PATH
  12782. shlibpath_overrides_runpath=yes
  12783. hardcode_into_libs=yes
  12784. ;;
  12785. newsos6)
  12786. version_type=linux
  12787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12788. shlibpath_var=LD_LIBRARY_PATH
  12789. shlibpath_overrides_runpath=yes
  12790. ;;
  12791. *nto* | *qnx*)
  12792. version_type=qnx
  12793. need_lib_prefix=no
  12794. need_version=no
  12795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12796. soname_spec='${libname}${release}${shared_ext}$major'
  12797. shlibpath_var=LD_LIBRARY_PATH
  12798. shlibpath_overrides_runpath=no
  12799. hardcode_into_libs=yes
  12800. dynamic_linker='ldqnx.so'
  12801. ;;
  12802. openbsd*)
  12803. version_type=sunos
  12804. sys_lib_dlsearch_path_spec="/usr/lib"
  12805. need_lib_prefix=no
  12806. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12807. case $host_os in
  12808. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12809. *) need_version=no ;;
  12810. esac
  12811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12812. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12813. shlibpath_var=LD_LIBRARY_PATH
  12814. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12815. case $host_os in
  12816. openbsd2.[89] | openbsd2.[89].*)
  12817. shlibpath_overrides_runpath=no
  12818. ;;
  12819. *)
  12820. shlibpath_overrides_runpath=yes
  12821. ;;
  12822. esac
  12823. else
  12824. shlibpath_overrides_runpath=yes
  12825. fi
  12826. ;;
  12827. os2*)
  12828. libname_spec='$name'
  12829. shrext_cmds=".dll"
  12830. need_lib_prefix=no
  12831. library_names_spec='$libname${shared_ext} $libname.a'
  12832. dynamic_linker='OS/2 ld.exe'
  12833. shlibpath_var=LIBPATH
  12834. ;;
  12835. osf3* | osf4* | osf5*)
  12836. version_type=osf
  12837. need_lib_prefix=no
  12838. need_version=no
  12839. soname_spec='${libname}${release}${shared_ext}$major'
  12840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12841. shlibpath_var=LD_LIBRARY_PATH
  12842. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12843. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12844. ;;
  12845. rdos*)
  12846. dynamic_linker=no
  12847. ;;
  12848. solaris*)
  12849. version_type=linux
  12850. need_lib_prefix=no
  12851. need_version=no
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12853. soname_spec='${libname}${release}${shared_ext}$major'
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. shlibpath_overrides_runpath=yes
  12856. hardcode_into_libs=yes
  12857. # ldd complains unless libraries are executable
  12858. postinstall_cmds='chmod +x $lib'
  12859. ;;
  12860. sunos4*)
  12861. version_type=sunos
  12862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12863. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12864. shlibpath_var=LD_LIBRARY_PATH
  12865. shlibpath_overrides_runpath=yes
  12866. if test "$with_gnu_ld" = yes; then
  12867. need_lib_prefix=no
  12868. fi
  12869. need_version=yes
  12870. ;;
  12871. sysv4 | sysv4.3*)
  12872. version_type=linux
  12873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12874. soname_spec='${libname}${release}${shared_ext}$major'
  12875. shlibpath_var=LD_LIBRARY_PATH
  12876. case $host_vendor in
  12877. sni)
  12878. shlibpath_overrides_runpath=no
  12879. need_lib_prefix=no
  12880. runpath_var=LD_RUN_PATH
  12881. ;;
  12882. siemens)
  12883. need_lib_prefix=no
  12884. ;;
  12885. motorola)
  12886. need_lib_prefix=no
  12887. need_version=no
  12888. shlibpath_overrides_runpath=no
  12889. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12890. ;;
  12891. esac
  12892. ;;
  12893. sysv4*MP*)
  12894. if test -d /usr/nec ;then
  12895. version_type=linux
  12896. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12897. soname_spec='$libname${shared_ext}.$major'
  12898. shlibpath_var=LD_LIBRARY_PATH
  12899. fi
  12900. ;;
  12901. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12902. version_type=freebsd-elf
  12903. need_lib_prefix=no
  12904. need_version=no
  12905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12906. soname_spec='${libname}${release}${shared_ext}$major'
  12907. shlibpath_var=LD_LIBRARY_PATH
  12908. shlibpath_overrides_runpath=yes
  12909. hardcode_into_libs=yes
  12910. if test "$with_gnu_ld" = yes; then
  12911. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12912. else
  12913. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12914. case $host_os in
  12915. sco3.2v5*)
  12916. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12917. ;;
  12918. esac
  12919. fi
  12920. sys_lib_dlsearch_path_spec='/usr/lib'
  12921. ;;
  12922. tpf*)
  12923. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12924. version_type=linux
  12925. need_lib_prefix=no
  12926. need_version=no
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12928. shlibpath_var=LD_LIBRARY_PATH
  12929. shlibpath_overrides_runpath=no
  12930. hardcode_into_libs=yes
  12931. ;;
  12932. uts4*)
  12933. version_type=linux
  12934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12935. soname_spec='${libname}${release}${shared_ext}$major'
  12936. shlibpath_var=LD_LIBRARY_PATH
  12937. ;;
  12938. *)
  12939. dynamic_linker=no
  12940. ;;
  12941. esac
  12942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12943. $as_echo "$dynamic_linker" >&6; }
  12944. test "$dynamic_linker" = no && can_build_shared=no
  12945. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12946. if test "$GCC" = yes; then
  12947. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12948. fi
  12949. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12950. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12951. fi
  12952. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12953. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12954. fi
  12955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12956. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12957. hardcode_action_CXX=
  12958. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12959. test -n "$runpath_var_CXX" ||
  12960. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12961. # We can hardcode non-existent directories.
  12962. if test "$hardcode_direct_CXX" != no &&
  12963. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12964. # have to relink, otherwise we might link with an installed library
  12965. # when we should be linking with a yet-to-be-installed one
  12966. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12967. test "$hardcode_minus_L_CXX" != no; then
  12968. # Linking always hardcodes the temporary library directory.
  12969. hardcode_action_CXX=relink
  12970. else
  12971. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12972. hardcode_action_CXX=immediate
  12973. fi
  12974. else
  12975. # We cannot hardcode anything, or else we can only hardcode existing
  12976. # directories.
  12977. hardcode_action_CXX=unsupported
  12978. fi
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12980. $as_echo "$hardcode_action_CXX" >&6; }
  12981. if test "$hardcode_action_CXX" = relink ||
  12982. test "$inherit_rpath_CXX" = yes; then
  12983. # Fast installation is not supported
  12984. enable_fast_install=no
  12985. elif test "$shlibpath_overrides_runpath" = yes ||
  12986. test "$enable_shared" = no; then
  12987. # Fast installation is not necessary
  12988. enable_fast_install=needless
  12989. fi
  12990. fi # test -n "$compiler"
  12991. CC=$lt_save_CC
  12992. CFLAGS=$lt_save_CFLAGS
  12993. LDCXX=$LD
  12994. LD=$lt_save_LD
  12995. GCC=$lt_save_GCC
  12996. with_gnu_ld=$lt_save_with_gnu_ld
  12997. lt_cv_path_LDCXX=$lt_cv_path_LD
  12998. lt_cv_path_LD=$lt_save_path_LD
  12999. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13000. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13001. fi # test "$_lt_caught_CXX_error" != yes
  13002. ac_ext=cpp
  13003. ac_cpp='$CXXCPP $CPPFLAGS'
  13004. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13005. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13006. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13007. ac_config_commands="$ac_config_commands libtool"
  13008. # Only expand once:
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  13010. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  13011. if ${ax_cv_cxx_compiler_vendor+:} false; then :
  13012. $as_echo_n "(cached) " >&6
  13013. else
  13014. ax_cv_cxx_compiler_vendor=unknown
  13015. # note: don't check for gcc first since some other compilers define __GNUC__
  13016. 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
  13017. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  13018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13019. /* end confdefs.h. */
  13020. int
  13021. main ()
  13022. {
  13023. #if !($vencpp)
  13024. thisisanerror;
  13025. #endif
  13026. ;
  13027. return 0;
  13028. }
  13029. _ACEOF
  13030. if ac_fn_cxx_try_compile "$LINENO"; then :
  13031. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  13032. fi
  13033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13034. done
  13035. fi
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  13037. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  13038. # Use silent rules if supported.
  13039. # Check whether --enable-silent-rules was given.
  13040. if test "${enable_silent_rules+set}" = set; then :
  13041. enableval=$enable_silent_rules;
  13042. fi
  13043. case $enable_silent_rules in
  13044. yes) AM_DEFAULT_VERBOSITY=0;;
  13045. no) AM_DEFAULT_VERBOSITY=1;;
  13046. *) AM_DEFAULT_VERBOSITY=0;;
  13047. esac
  13048. AM_BACKSLASH='\'
  13049. # Check whether --enable-debug was given.
  13050. if test "${enable_debug+set}" = set; then :
  13051. enableval=$enable_debug; if test x$enableval = xyes ; then
  13052. enable_debug="yes"
  13053. else
  13054. enable_debug="no"
  13055. fi
  13056. else
  13057. enable_debug="yes"
  13058. fi
  13059. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13060. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  13061. fi
  13062. # For c++11 compatibility. Required at least in VCAI
  13063. CXXFLAGS="$CXXFLAGS -std=c++0x"
  13064. # For gcc and compatible compilers, enable compilation warnings, but
  13065. # selectively disable some because too many are generated.
  13066. if test "x$GXX" = "xyes" ; then
  13067. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith"
  13068. fi
  13069. # extra clang parameters
  13070. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  13071. CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-cast-align"
  13072. fi
  13073. # extra Intel icc parameters
  13074. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  13075. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  13076. fi
  13077. # Check for Boost libraries
  13078. # Check whether --with-boost was given.
  13079. if test "${with_boost+set}" = set; then :
  13080. withval=$with_boost;
  13081. if test "$withval" = "no"; then
  13082. want_boost="no"
  13083. elif test "$withval" = "yes"; then
  13084. want_boost="yes"
  13085. ac_boost_path=""
  13086. else
  13087. want_boost="yes"
  13088. ac_boost_path="$withval"
  13089. fi
  13090. else
  13091. want_boost="yes"
  13092. fi
  13093. # Check whether --with-boost-libdir was given.
  13094. if test "${with_boost_libdir+set}" = set; then :
  13095. withval=$with_boost_libdir;
  13096. if test -d "$withval"
  13097. then
  13098. ac_boost_lib_path="$withval"
  13099. else
  13100. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  13101. fi
  13102. else
  13103. ac_boost_lib_path=""
  13104. fi
  13105. if test "x$want_boost" = "xyes"; then
  13106. boost_lib_version_req=1.36
  13107. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13108. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13109. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13110. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13111. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13112. boost_lib_version_req_sub_minor="0"
  13113. fi
  13114. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  13116. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13117. succeeded=no
  13118. libsubdirs="lib"
  13119. ax_arch=`uname -m`
  13120. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  13121. libsubdirs="lib64 lib lib64"
  13122. fi
  13123. if test "$ac_boost_path" != ""; then
  13124. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13125. for ac_boost_path_tmp in $libsubdirs; do
  13126. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  13127. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  13128. break
  13129. fi
  13130. done
  13131. elif test "$cross_compiling" != yes; then
  13132. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13133. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13134. for libsubdir in $libsubdirs ; do
  13135. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13136. done
  13137. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  13138. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13139. break;
  13140. fi
  13141. done
  13142. fi
  13143. if test "$ac_boost_lib_path" != ""; then
  13144. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13145. fi
  13146. CPPFLAGS_SAVED="$CPPFLAGS"
  13147. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13148. export CPPFLAGS
  13149. LDFLAGS_SAVED="$LDFLAGS"
  13150. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13151. export LDFLAGS
  13152. ac_ext=cpp
  13153. ac_cpp='$CXXCPP $CPPFLAGS'
  13154. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13155. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13156. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13158. /* end confdefs.h. */
  13159. #include <boost/version.hpp>
  13160. int
  13161. main ()
  13162. {
  13163. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13164. // Everything is okay
  13165. #else
  13166. # error Boost version is too old
  13167. #endif
  13168. ;
  13169. return 0;
  13170. }
  13171. _ACEOF
  13172. if ac_fn_cxx_try_compile "$LINENO"; then :
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13174. $as_echo "yes" >&6; }
  13175. succeeded=yes
  13176. found_system=yes
  13177. fi
  13178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13179. ac_ext=cpp
  13180. ac_cpp='$CXXCPP $CPPFLAGS'
  13181. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13182. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13183. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13184. if test "x$succeeded" != "xyes"; then
  13185. _version=0
  13186. if test "$ac_boost_path" != ""; then
  13187. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13188. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13189. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13190. V_CHECK=`expr $_version_tmp \> $_version`
  13191. if test "$V_CHECK" = "1" ; then
  13192. _version=$_version_tmp
  13193. fi
  13194. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13195. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13196. done
  13197. fi
  13198. else
  13199. if test "$cross_compiling" != yes; then
  13200. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13201. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13202. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13203. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13204. V_CHECK=`expr $_version_tmp \> $_version`
  13205. if test "$V_CHECK" = "1" ; then
  13206. _version=$_version_tmp
  13207. best_path=$ac_boost_path
  13208. fi
  13209. done
  13210. fi
  13211. done
  13212. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13213. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13214. if test "$ac_boost_lib_path" = ""; then
  13215. for libsubdir in $libsubdirs ; do
  13216. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13217. done
  13218. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  13219. fi
  13220. fi
  13221. if test "x$BOOST_ROOT" != "x"; then
  13222. for libsubdir in $libsubdirs ; do
  13223. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13224. done
  13225. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  13226. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13227. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13228. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13229. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13230. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13231. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  13232. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13233. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13234. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  13235. fi
  13236. fi
  13237. fi
  13238. fi
  13239. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13240. export CPPFLAGS
  13241. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13242. export LDFLAGS
  13243. ac_ext=cpp
  13244. ac_cpp='$CXXCPP $CPPFLAGS'
  13245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13249. /* end confdefs.h. */
  13250. #include <boost/version.hpp>
  13251. int
  13252. main ()
  13253. {
  13254. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13255. // Everything is okay
  13256. #else
  13257. # error Boost version is too old
  13258. #endif
  13259. ;
  13260. return 0;
  13261. }
  13262. _ACEOF
  13263. if ac_fn_cxx_try_compile "$LINENO"; then :
  13264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13265. $as_echo "yes" >&6; }
  13266. succeeded=yes
  13267. found_system=yes
  13268. fi
  13269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13270. ac_ext=cpp
  13271. ac_cpp='$CXXCPP $CPPFLAGS'
  13272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13275. fi
  13276. if test "$succeeded" != "yes" ; then
  13277. if test "$_version" = "0" ; then
  13278. { $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
  13279. $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;}
  13280. else
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  13282. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13283. fi
  13284. # execute ACTION-IF-NOT-FOUND (if present):
  13285. :
  13286. else
  13287. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  13288. # execute ACTION-IF-FOUND (if present):
  13289. :
  13290. fi
  13291. CPPFLAGS="$CPPFLAGS_SAVED"
  13292. LDFLAGS="$LDFLAGS_SAVED"
  13293. fi
  13294. # Check whether --with-boost-system was given.
  13295. if test "${with_boost_system+set}" = set; then :
  13296. withval=$with_boost_system;
  13297. if test "$withval" = "no"; then
  13298. want_boost="no"
  13299. elif test "$withval" = "yes"; then
  13300. want_boost="yes"
  13301. ax_boost_user_system_lib=""
  13302. else
  13303. want_boost="yes"
  13304. ax_boost_user_system_lib="$withval"
  13305. fi
  13306. else
  13307. want_boost="yes"
  13308. fi
  13309. if test "x$want_boost" = "xyes"; then
  13310. CPPFLAGS_SAVED="$CPPFLAGS"
  13311. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13312. export CPPFLAGS
  13313. LDFLAGS_SAVED="$LDFLAGS"
  13314. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13315. export LDFLAGS
  13316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  13317. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13318. if ${ax_cv_boost_system+:} false; then :
  13319. $as_echo_n "(cached) " >&6
  13320. else
  13321. ac_ext=cpp
  13322. ac_cpp='$CXXCPP $CPPFLAGS'
  13323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13326. CXXFLAGS_SAVE=$CXXFLAGS
  13327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13328. /* end confdefs.h. */
  13329. #include <boost/system/error_code.hpp>
  13330. int
  13331. main ()
  13332. {
  13333. boost::system::system_category
  13334. ;
  13335. return 0;
  13336. }
  13337. _ACEOF
  13338. if ac_fn_cxx_try_compile "$LINENO"; then :
  13339. ax_cv_boost_system=yes
  13340. else
  13341. ax_cv_boost_system=no
  13342. fi
  13343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13344. CXXFLAGS=$CXXFLAGS_SAVE
  13345. ac_ext=cpp
  13346. ac_cpp='$CXXCPP $CPPFLAGS'
  13347. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13348. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13349. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13350. fi
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  13352. $as_echo "$ax_cv_boost_system" >&6; }
  13353. if test "x$ax_cv_boost_system" = "xyes"; then
  13354. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  13355. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13356. LDFLAGS_SAVE=$LDFLAGS
  13357. if test "x$ax_boost_user_system_lib" = "x"; then
  13358. 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
  13359. ax_lib=${libextension}
  13360. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13362. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13363. if eval \${$as_ac_Lib+:} false; then :
  13364. $as_echo_n "(cached) " >&6
  13365. else
  13366. ac_check_lib_save_LIBS=$LIBS
  13367. LIBS="-l$ax_lib $LIBS"
  13368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13369. /* end confdefs.h. */
  13370. /* Override any GCC internal prototype to avoid an error.
  13371. Use char because int might match the return type of a GCC
  13372. builtin and then its argument prototype would still apply. */
  13373. #ifdef __cplusplus
  13374. extern "C"
  13375. #endif
  13376. char exit ();
  13377. int
  13378. main ()
  13379. {
  13380. return exit ();
  13381. ;
  13382. return 0;
  13383. }
  13384. _ACEOF
  13385. if ac_fn_cxx_try_link "$LINENO"; then :
  13386. eval "$as_ac_Lib=yes"
  13387. else
  13388. eval "$as_ac_Lib=no"
  13389. fi
  13390. rm -f core conftest.err conftest.$ac_objext \
  13391. conftest$ac_exeext conftest.$ac_ext
  13392. LIBS=$ac_check_lib_save_LIBS
  13393. fi
  13394. eval ac_res=\$$as_ac_Lib
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13396. $as_echo "$ac_res" >&6; }
  13397. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13398. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13399. else
  13400. link_system="no"
  13401. fi
  13402. done
  13403. if test "x$link_system" != "xyes"; then
  13404. 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
  13405. ax_lib=${libextension}
  13406. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13408. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13409. if eval \${$as_ac_Lib+:} false; then :
  13410. $as_echo_n "(cached) " >&6
  13411. else
  13412. ac_check_lib_save_LIBS=$LIBS
  13413. LIBS="-l$ax_lib $LIBS"
  13414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13415. /* end confdefs.h. */
  13416. /* Override any GCC internal prototype to avoid an error.
  13417. Use char because int might match the return type of a GCC
  13418. builtin and then its argument prototype would still apply. */
  13419. #ifdef __cplusplus
  13420. extern "C"
  13421. #endif
  13422. char exit ();
  13423. int
  13424. main ()
  13425. {
  13426. return exit ();
  13427. ;
  13428. return 0;
  13429. }
  13430. _ACEOF
  13431. if ac_fn_cxx_try_link "$LINENO"; then :
  13432. eval "$as_ac_Lib=yes"
  13433. else
  13434. eval "$as_ac_Lib=no"
  13435. fi
  13436. rm -f core conftest.err conftest.$ac_objext \
  13437. conftest$ac_exeext conftest.$ac_ext
  13438. LIBS=$ac_check_lib_save_LIBS
  13439. fi
  13440. eval ac_res=\$$as_ac_Lib
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13442. $as_echo "$ac_res" >&6; }
  13443. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13444. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13445. else
  13446. link_system="no"
  13447. fi
  13448. done
  13449. fi
  13450. else
  13451. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13452. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13454. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13455. if eval \${$as_ac_Lib+:} false; then :
  13456. $as_echo_n "(cached) " >&6
  13457. else
  13458. ac_check_lib_save_LIBS=$LIBS
  13459. LIBS="-l$ax_lib $LIBS"
  13460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13461. /* end confdefs.h. */
  13462. /* Override any GCC internal prototype to avoid an error.
  13463. Use char because int might match the return type of a GCC
  13464. builtin and then its argument prototype would still apply. */
  13465. #ifdef __cplusplus
  13466. extern "C"
  13467. #endif
  13468. char exit ();
  13469. int
  13470. main ()
  13471. {
  13472. return exit ();
  13473. ;
  13474. return 0;
  13475. }
  13476. _ACEOF
  13477. if ac_fn_cxx_try_link "$LINENO"; then :
  13478. eval "$as_ac_Lib=yes"
  13479. else
  13480. eval "$as_ac_Lib=no"
  13481. fi
  13482. rm -f core conftest.err conftest.$ac_objext \
  13483. conftest$ac_exeext conftest.$ac_ext
  13484. LIBS=$ac_check_lib_save_LIBS
  13485. fi
  13486. eval ac_res=\$$as_ac_Lib
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13488. $as_echo "$ac_res" >&6; }
  13489. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13490. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13491. else
  13492. link_system="no"
  13493. fi
  13494. done
  13495. fi
  13496. if test "x$ax_lib" = "x"; then
  13497. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13498. fi
  13499. if test "x$link_system" = "xno"; then
  13500. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13501. fi
  13502. fi
  13503. CPPFLAGS="$CPPFLAGS_SAVED"
  13504. LDFLAGS="$LDFLAGS_SAVED"
  13505. fi
  13506. # Check whether --with-boost-filesystem was given.
  13507. if test "${with_boost_filesystem+set}" = set; then :
  13508. withval=$with_boost_filesystem;
  13509. if test "$withval" = "no"; then
  13510. want_boost="no"
  13511. elif test "$withval" = "yes"; then
  13512. want_boost="yes"
  13513. ax_boost_user_filesystem_lib=""
  13514. else
  13515. want_boost="yes"
  13516. ax_boost_user_filesystem_lib="$withval"
  13517. fi
  13518. else
  13519. want_boost="yes"
  13520. fi
  13521. if test "x$want_boost" = "xyes"; then
  13522. CPPFLAGS_SAVED="$CPPFLAGS"
  13523. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13524. export CPPFLAGS
  13525. LDFLAGS_SAVED="$LDFLAGS"
  13526. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13527. export LDFLAGS
  13528. LIBS_SAVED=$LIBS
  13529. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  13530. export LIBS
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  13532. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13533. if ${ax_cv_boost_filesystem+:} false; then :
  13534. $as_echo_n "(cached) " >&6
  13535. else
  13536. ac_ext=cpp
  13537. ac_cpp='$CXXCPP $CPPFLAGS'
  13538. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13539. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13540. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13542. /* end confdefs.h. */
  13543. #include <boost/filesystem/path.hpp>
  13544. int
  13545. main ()
  13546. {
  13547. using namespace boost::filesystem;
  13548. path my_path( "foo/bar/data.txt" );
  13549. return 0;
  13550. ;
  13551. return 0;
  13552. }
  13553. _ACEOF
  13554. if ac_fn_cxx_try_compile "$LINENO"; then :
  13555. ax_cv_boost_filesystem=yes
  13556. else
  13557. ax_cv_boost_filesystem=no
  13558. fi
  13559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13560. ac_ext=cpp
  13561. ac_cpp='$CXXCPP $CPPFLAGS'
  13562. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13563. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13564. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13565. fi
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  13567. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13568. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13569. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  13570. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13571. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13572. 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
  13573. ax_lib=${libextension}
  13574. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13576. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13577. if eval \${$as_ac_Lib+:} false; then :
  13578. $as_echo_n "(cached) " >&6
  13579. else
  13580. ac_check_lib_save_LIBS=$LIBS
  13581. LIBS="-l$ax_lib $LIBS"
  13582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13583. /* end confdefs.h. */
  13584. /* Override any GCC internal prototype to avoid an error.
  13585. Use char because int might match the return type of a GCC
  13586. builtin and then its argument prototype would still apply. */
  13587. #ifdef __cplusplus
  13588. extern "C"
  13589. #endif
  13590. char exit ();
  13591. int
  13592. main ()
  13593. {
  13594. return exit ();
  13595. ;
  13596. return 0;
  13597. }
  13598. _ACEOF
  13599. if ac_fn_cxx_try_link "$LINENO"; then :
  13600. eval "$as_ac_Lib=yes"
  13601. else
  13602. eval "$as_ac_Lib=no"
  13603. fi
  13604. rm -f core conftest.err conftest.$ac_objext \
  13605. conftest$ac_exeext conftest.$ac_ext
  13606. LIBS=$ac_check_lib_save_LIBS
  13607. fi
  13608. eval ac_res=\$$as_ac_Lib
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13610. $as_echo "$ac_res" >&6; }
  13611. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13612. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13613. else
  13614. link_filesystem="no"
  13615. fi
  13616. done
  13617. if test "x$link_program_options" != "xyes"; then
  13618. 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
  13619. ax_lib=${libextension}
  13620. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13622. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13623. if eval \${$as_ac_Lib+:} false; then :
  13624. $as_echo_n "(cached) " >&6
  13625. else
  13626. ac_check_lib_save_LIBS=$LIBS
  13627. LIBS="-l$ax_lib $LIBS"
  13628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13629. /* end confdefs.h. */
  13630. /* Override any GCC internal prototype to avoid an error.
  13631. Use char because int might match the return type of a GCC
  13632. builtin and then its argument prototype would still apply. */
  13633. #ifdef __cplusplus
  13634. extern "C"
  13635. #endif
  13636. char exit ();
  13637. int
  13638. main ()
  13639. {
  13640. return exit ();
  13641. ;
  13642. return 0;
  13643. }
  13644. _ACEOF
  13645. if ac_fn_cxx_try_link "$LINENO"; then :
  13646. eval "$as_ac_Lib=yes"
  13647. else
  13648. eval "$as_ac_Lib=no"
  13649. fi
  13650. rm -f core conftest.err conftest.$ac_objext \
  13651. conftest$ac_exeext conftest.$ac_ext
  13652. LIBS=$ac_check_lib_save_LIBS
  13653. fi
  13654. eval ac_res=\$$as_ac_Lib
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13656. $as_echo "$ac_res" >&6; }
  13657. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13658. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13659. else
  13660. link_filesystem="no"
  13661. fi
  13662. done
  13663. fi
  13664. else
  13665. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13666. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13668. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13669. if eval \${$as_ac_Lib+:} false; then :
  13670. $as_echo_n "(cached) " >&6
  13671. else
  13672. ac_check_lib_save_LIBS=$LIBS
  13673. LIBS="-l$ax_lib $LIBS"
  13674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13675. /* end confdefs.h. */
  13676. /* Override any GCC internal prototype to avoid an error.
  13677. Use char because int might match the return type of a GCC
  13678. builtin and then its argument prototype would still apply. */
  13679. #ifdef __cplusplus
  13680. extern "C"
  13681. #endif
  13682. char exit ();
  13683. int
  13684. main ()
  13685. {
  13686. return exit ();
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. if ac_fn_cxx_try_link "$LINENO"; then :
  13692. eval "$as_ac_Lib=yes"
  13693. else
  13694. eval "$as_ac_Lib=no"
  13695. fi
  13696. rm -f core conftest.err conftest.$ac_objext \
  13697. conftest$ac_exeext conftest.$ac_ext
  13698. LIBS=$ac_check_lib_save_LIBS
  13699. fi
  13700. eval ac_res=\$$as_ac_Lib
  13701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13702. $as_echo "$ac_res" >&6; }
  13703. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13704. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13705. else
  13706. link_filesystem="no"
  13707. fi
  13708. done
  13709. fi
  13710. if test "x$ax_lib" = "x"; then
  13711. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13712. fi
  13713. if test "x$link_filesystem" != "xyes"; then
  13714. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13715. fi
  13716. fi
  13717. CPPFLAGS="$CPPFLAGS_SAVED"
  13718. LDFLAGS="$LDFLAGS_SAVED"
  13719. LIBS="$LIBS_SAVED"
  13720. fi
  13721. # Check whether --with-boost-thread was given.
  13722. if test "${with_boost_thread+set}" = set; then :
  13723. withval=$with_boost_thread;
  13724. if test "$withval" = "no"; then
  13725. want_boost="no"
  13726. elif test "$withval" = "yes"; then
  13727. want_boost="yes"
  13728. ax_boost_user_thread_lib=""
  13729. else
  13730. want_boost="yes"
  13731. ax_boost_user_thread_lib="$withval"
  13732. fi
  13733. else
  13734. want_boost="yes"
  13735. fi
  13736. if test "x$want_boost" = "xyes"; then
  13737. CPPFLAGS_SAVED="$CPPFLAGS"
  13738. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13739. export CPPFLAGS
  13740. LDFLAGS_SAVED="$LDFLAGS"
  13741. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13742. export LDFLAGS
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13744. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13745. if ${ax_cv_boost_thread+:} false; then :
  13746. $as_echo_n "(cached) " >&6
  13747. else
  13748. ac_ext=cpp
  13749. ac_cpp='$CXXCPP $CPPFLAGS'
  13750. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13751. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13752. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13753. CXXFLAGS_SAVE=$CXXFLAGS
  13754. if test "x$build_os" = "xsolaris" ; then
  13755. CXXFLAGS="-pthreads $CXXFLAGS"
  13756. elif test "x$build_os" = "xming32" ; then
  13757. CXXFLAGS="-mthreads $CXXFLAGS"
  13758. else
  13759. CXXFLAGS="-pthread $CXXFLAGS"
  13760. fi
  13761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13762. /* end confdefs.h. */
  13763. #include <boost/thread/thread.hpp>
  13764. int
  13765. main ()
  13766. {
  13767. boost::thread_group thrds;
  13768. return 0;
  13769. ;
  13770. return 0;
  13771. }
  13772. _ACEOF
  13773. if ac_fn_cxx_try_compile "$LINENO"; then :
  13774. ax_cv_boost_thread=yes
  13775. else
  13776. ax_cv_boost_thread=no
  13777. fi
  13778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13779. CXXFLAGS=$CXXFLAGS_SAVE
  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. fi
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13787. $as_echo "$ax_cv_boost_thread" >&6; }
  13788. if test "x$ax_cv_boost_thread" = "xyes"; then
  13789. if test "x$build_os" = "xsolaris" ; then
  13790. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13791. elif test "x$build_os" = "xming32" ; then
  13792. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13793. else
  13794. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13795. fi
  13796. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13797. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13798. LDFLAGS_SAVE=$LDFLAGS
  13799. case "x$build_os" in
  13800. *bsd* )
  13801. LDFLAGS="-pthread $LDFLAGS"
  13802. break;
  13803. ;;
  13804. esac
  13805. if test "x$ax_boost_user_thread_lib" = "x"; then
  13806. 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
  13807. ax_lib=${libextension}
  13808. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13810. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13811. if eval \${$as_ac_Lib+:} false; then :
  13812. $as_echo_n "(cached) " >&6
  13813. else
  13814. ac_check_lib_save_LIBS=$LIBS
  13815. LIBS="-l$ax_lib $LIBS"
  13816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13817. /* end confdefs.h. */
  13818. /* Override any GCC internal prototype to avoid an error.
  13819. Use char because int might match the return type of a GCC
  13820. builtin and then its argument prototype would still apply. */
  13821. #ifdef __cplusplus
  13822. extern "C"
  13823. #endif
  13824. char exit ();
  13825. int
  13826. main ()
  13827. {
  13828. return exit ();
  13829. ;
  13830. return 0;
  13831. }
  13832. _ACEOF
  13833. if ac_fn_cxx_try_link "$LINENO"; then :
  13834. eval "$as_ac_Lib=yes"
  13835. else
  13836. eval "$as_ac_Lib=no"
  13837. fi
  13838. rm -f core conftest.err conftest.$ac_objext \
  13839. conftest$ac_exeext conftest.$ac_ext
  13840. LIBS=$ac_check_lib_save_LIBS
  13841. fi
  13842. eval ac_res=\$$as_ac_Lib
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13844. $as_echo "$ac_res" >&6; }
  13845. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13846. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13847. else
  13848. link_thread="no"
  13849. fi
  13850. done
  13851. if test "x$link_thread" != "xyes"; then
  13852. 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
  13853. ax_lib=${libextension}
  13854. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13856. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13857. if eval \${$as_ac_Lib+:} false; then :
  13858. $as_echo_n "(cached) " >&6
  13859. else
  13860. ac_check_lib_save_LIBS=$LIBS
  13861. LIBS="-l$ax_lib $LIBS"
  13862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13863. /* end confdefs.h. */
  13864. /* Override any GCC internal prototype to avoid an error.
  13865. Use char because int might match the return type of a GCC
  13866. builtin and then its argument prototype would still apply. */
  13867. #ifdef __cplusplus
  13868. extern "C"
  13869. #endif
  13870. char exit ();
  13871. int
  13872. main ()
  13873. {
  13874. return exit ();
  13875. ;
  13876. return 0;
  13877. }
  13878. _ACEOF
  13879. if ac_fn_cxx_try_link "$LINENO"; then :
  13880. eval "$as_ac_Lib=yes"
  13881. else
  13882. eval "$as_ac_Lib=no"
  13883. fi
  13884. rm -f core conftest.err conftest.$ac_objext \
  13885. conftest$ac_exeext conftest.$ac_ext
  13886. LIBS=$ac_check_lib_save_LIBS
  13887. fi
  13888. eval ac_res=\$$as_ac_Lib
  13889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13890. $as_echo "$ac_res" >&6; }
  13891. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13892. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13893. else
  13894. link_thread="no"
  13895. fi
  13896. done
  13897. fi
  13898. else
  13899. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13900. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13902. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13903. if eval \${$as_ac_Lib+:} false; then :
  13904. $as_echo_n "(cached) " >&6
  13905. else
  13906. ac_check_lib_save_LIBS=$LIBS
  13907. LIBS="-l$ax_lib $LIBS"
  13908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13909. /* end confdefs.h. */
  13910. /* Override any GCC internal prototype to avoid an error.
  13911. Use char because int might match the return type of a GCC
  13912. builtin and then its argument prototype would still apply. */
  13913. #ifdef __cplusplus
  13914. extern "C"
  13915. #endif
  13916. char exit ();
  13917. int
  13918. main ()
  13919. {
  13920. return exit ();
  13921. ;
  13922. return 0;
  13923. }
  13924. _ACEOF
  13925. if ac_fn_cxx_try_link "$LINENO"; then :
  13926. eval "$as_ac_Lib=yes"
  13927. else
  13928. eval "$as_ac_Lib=no"
  13929. fi
  13930. rm -f core conftest.err conftest.$ac_objext \
  13931. conftest$ac_exeext conftest.$ac_ext
  13932. LIBS=$ac_check_lib_save_LIBS
  13933. fi
  13934. eval ac_res=\$$as_ac_Lib
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13936. $as_echo "$ac_res" >&6; }
  13937. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13938. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13939. else
  13940. link_thread="no"
  13941. fi
  13942. done
  13943. fi
  13944. if test "x$ax_lib" = "x"; then
  13945. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13946. fi
  13947. if test "x$link_thread" = "xno"; then
  13948. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13949. else
  13950. case "x$build_os" in
  13951. *bsd* )
  13952. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13953. break;
  13954. ;;
  13955. esac
  13956. fi
  13957. fi
  13958. CPPFLAGS="$CPPFLAGS_SAVED"
  13959. LDFLAGS="$LDFLAGS_SAVED"
  13960. fi
  13961. # Check whether --with-boost-iostreams was given.
  13962. if test "${with_boost_iostreams+set}" = set; then :
  13963. withval=$with_boost_iostreams;
  13964. if test "$withval" = "no"; then
  13965. want_boost="no"
  13966. elif test "$withval" = "yes"; then
  13967. want_boost="yes"
  13968. ax_boost_user_iostreams_lib=""
  13969. else
  13970. want_boost="yes"
  13971. ax_boost_user_iostreams_lib="$withval"
  13972. fi
  13973. else
  13974. want_boost="yes"
  13975. fi
  13976. if test "x$want_boost" = "xyes"; then
  13977. CPPFLAGS_SAVED="$CPPFLAGS"
  13978. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13979. export CPPFLAGS
  13980. LDFLAGS_SAVED="$LDFLAGS"
  13981. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13982. export LDFLAGS
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13984. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13985. if ${ax_cv_boost_iostreams+:} false; then :
  13986. $as_echo_n "(cached) " >&6
  13987. else
  13988. ac_ext=cpp
  13989. ac_cpp='$CXXCPP $CPPFLAGS'
  13990. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13991. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13992. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13994. /* end confdefs.h. */
  13995. #include <boost/iostreams/filtering_stream.hpp>
  13996. #include <boost/range/iterator_range.hpp>
  13997. int
  13998. main ()
  13999. {
  14000. std::string input = "Hello World!";
  14001. namespace io = boost::iostreams;
  14002. io::filtering_istream in(boost::make_iterator_range(input));
  14003. return 0;
  14004. ;
  14005. return 0;
  14006. }
  14007. _ACEOF
  14008. if ac_fn_cxx_try_compile "$LINENO"; then :
  14009. ax_cv_boost_iostreams=yes
  14010. else
  14011. ax_cv_boost_iostreams=no
  14012. fi
  14013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14014. ac_ext=cpp
  14015. ac_cpp='$CXXCPP $CPPFLAGS'
  14016. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14017. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14018. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14019. fi
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  14021. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14022. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14023. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  14024. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14025. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14026. 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
  14027. ax_lib=${libextension}
  14028. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14030. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14031. if eval \${$as_ac_Lib+:} false; then :
  14032. $as_echo_n "(cached) " >&6
  14033. else
  14034. ac_check_lib_save_LIBS=$LIBS
  14035. LIBS="-l$ax_lib $LIBS"
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. /* Override any GCC internal prototype to avoid an error.
  14039. Use char because int might match the return type of a GCC
  14040. builtin and then its argument prototype would still apply. */
  14041. #ifdef __cplusplus
  14042. extern "C"
  14043. #endif
  14044. char exit ();
  14045. int
  14046. main ()
  14047. {
  14048. return exit ();
  14049. ;
  14050. return 0;
  14051. }
  14052. _ACEOF
  14053. if ac_fn_cxx_try_link "$LINENO"; then :
  14054. eval "$as_ac_Lib=yes"
  14055. else
  14056. eval "$as_ac_Lib=no"
  14057. fi
  14058. rm -f core conftest.err conftest.$ac_objext \
  14059. conftest$ac_exeext conftest.$ac_ext
  14060. LIBS=$ac_check_lib_save_LIBS
  14061. fi
  14062. eval ac_res=\$$as_ac_Lib
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14064. $as_echo "$ac_res" >&6; }
  14065. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14066. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14067. else
  14068. link_iostreams="no"
  14069. fi
  14070. done
  14071. if test "x$link_iostreams" != "xyes"; then
  14072. 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
  14073. ax_lib=${libextension}
  14074. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14076. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14077. if eval \${$as_ac_Lib+:} false; then :
  14078. $as_echo_n "(cached) " >&6
  14079. else
  14080. ac_check_lib_save_LIBS=$LIBS
  14081. LIBS="-l$ax_lib $LIBS"
  14082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14083. /* end confdefs.h. */
  14084. /* Override any GCC internal prototype to avoid an error.
  14085. Use char because int might match the return type of a GCC
  14086. builtin and then its argument prototype would still apply. */
  14087. #ifdef __cplusplus
  14088. extern "C"
  14089. #endif
  14090. char exit ();
  14091. int
  14092. main ()
  14093. {
  14094. return exit ();
  14095. ;
  14096. return 0;
  14097. }
  14098. _ACEOF
  14099. if ac_fn_cxx_try_link "$LINENO"; then :
  14100. eval "$as_ac_Lib=yes"
  14101. else
  14102. eval "$as_ac_Lib=no"
  14103. fi
  14104. rm -f core conftest.err conftest.$ac_objext \
  14105. conftest$ac_exeext conftest.$ac_ext
  14106. LIBS=$ac_check_lib_save_LIBS
  14107. fi
  14108. eval ac_res=\$$as_ac_Lib
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14110. $as_echo "$ac_res" >&6; }
  14111. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14112. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14113. else
  14114. link_iostreams="no"
  14115. fi
  14116. done
  14117. fi
  14118. else
  14119. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14120. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14122. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14123. if eval \${$as_ac_Lib+:} false; then :
  14124. $as_echo_n "(cached) " >&6
  14125. else
  14126. ac_check_lib_save_LIBS=$LIBS
  14127. LIBS="-l$ax_lib $LIBS"
  14128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14129. /* end confdefs.h. */
  14130. int
  14131. main ()
  14132. {
  14133. return main ();
  14134. ;
  14135. return 0;
  14136. }
  14137. _ACEOF
  14138. if ac_fn_cxx_try_link "$LINENO"; then :
  14139. eval "$as_ac_Lib=yes"
  14140. else
  14141. eval "$as_ac_Lib=no"
  14142. fi
  14143. rm -f core conftest.err conftest.$ac_objext \
  14144. conftest$ac_exeext conftest.$ac_ext
  14145. LIBS=$ac_check_lib_save_LIBS
  14146. fi
  14147. eval ac_res=\$$as_ac_Lib
  14148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14149. $as_echo "$ac_res" >&6; }
  14150. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14151. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14152. else
  14153. link_iostreams="no"
  14154. fi
  14155. done
  14156. fi
  14157. if test "x$ax_lib" = "x"; then
  14158. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14159. fi
  14160. if test "x$link_iostreams" != "xyes"; then
  14161. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14162. fi
  14163. fi
  14164. CPPFLAGS="$CPPFLAGS_SAVED"
  14165. LDFLAGS="$LDFLAGS_SAVED"
  14166. fi
  14167. # Check whether --with-boost-program-options was given.
  14168. if test "${with_boost_program_options+set}" = set; then :
  14169. withval=$with_boost_program_options;
  14170. if test "$withval" = "no"; then
  14171. want_boost="no"
  14172. elif test "$withval" = "yes"; then
  14173. want_boost="yes"
  14174. ax_boost_user_program_options_lib=""
  14175. else
  14176. want_boost="yes"
  14177. ax_boost_user_program_options_lib="$withval"
  14178. fi
  14179. else
  14180. want_boost="yes"
  14181. fi
  14182. if test "x$want_boost" = "xyes"; then
  14183. export want_boost
  14184. CPPFLAGS_SAVED="$CPPFLAGS"
  14185. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14186. export CPPFLAGS
  14187. LDFLAGS_SAVED="$LDFLAGS"
  14188. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14189. export LDFLAGS
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  14191. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  14192. if ${ax_cv_boost_program_options+:} false; then :
  14193. $as_echo_n "(cached) " >&6
  14194. else
  14195. ac_ext=cpp
  14196. ac_cpp='$CXXCPP $CPPFLAGS'
  14197. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14198. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14199. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14201. /* end confdefs.h. */
  14202. #include <boost/program_options.hpp>
  14203. int
  14204. main ()
  14205. {
  14206. boost::program_options::options_description generic("Generic options");
  14207. return 0;
  14208. ;
  14209. return 0;
  14210. }
  14211. _ACEOF
  14212. if ac_fn_cxx_try_compile "$LINENO"; then :
  14213. ax_cv_boost_program_options=yes
  14214. else
  14215. ax_cv_boost_program_options=no
  14216. fi
  14217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14218. ac_ext=cpp
  14219. ac_cpp='$CXXCPP $CPPFLAGS'
  14220. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14221. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14222. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14223. fi
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  14225. $as_echo "$ax_cv_boost_program_options" >&6; }
  14226. if test "$ax_cv_boost_program_options" = yes; then
  14227. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  14228. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14229. if test "x$ax_boost_user_program_options_lib" = "x"; then
  14230. 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
  14231. ax_lib=${libextension}
  14232. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14234. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14235. if eval \${$as_ac_Lib+:} false; then :
  14236. $as_echo_n "(cached) " >&6
  14237. else
  14238. ac_check_lib_save_LIBS=$LIBS
  14239. LIBS="-l$ax_lib $LIBS"
  14240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14241. /* end confdefs.h. */
  14242. /* Override any GCC internal prototype to avoid an error.
  14243. Use char because int might match the return type of a GCC
  14244. builtin and then its argument prototype would still apply. */
  14245. #ifdef __cplusplus
  14246. extern "C"
  14247. #endif
  14248. char exit ();
  14249. int
  14250. main ()
  14251. {
  14252. return exit ();
  14253. ;
  14254. return 0;
  14255. }
  14256. _ACEOF
  14257. if ac_fn_cxx_try_link "$LINENO"; then :
  14258. eval "$as_ac_Lib=yes"
  14259. else
  14260. eval "$as_ac_Lib=no"
  14261. fi
  14262. rm -f core conftest.err conftest.$ac_objext \
  14263. conftest$ac_exeext conftest.$ac_ext
  14264. LIBS=$ac_check_lib_save_LIBS
  14265. fi
  14266. eval ac_res=\$$as_ac_Lib
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14268. $as_echo "$ac_res" >&6; }
  14269. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14270. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14271. else
  14272. link_program_options="no"
  14273. fi
  14274. done
  14275. if test "x$link_program_options" != "xyes"; then
  14276. 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
  14277. ax_lib=${libextension}
  14278. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14280. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14281. if eval \${$as_ac_Lib+:} false; then :
  14282. $as_echo_n "(cached) " >&6
  14283. else
  14284. ac_check_lib_save_LIBS=$LIBS
  14285. LIBS="-l$ax_lib $LIBS"
  14286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14287. /* end confdefs.h. */
  14288. /* Override any GCC internal prototype to avoid an error.
  14289. Use char because int might match the return type of a GCC
  14290. builtin and then its argument prototype would still apply. */
  14291. #ifdef __cplusplus
  14292. extern "C"
  14293. #endif
  14294. char exit ();
  14295. int
  14296. main ()
  14297. {
  14298. return exit ();
  14299. ;
  14300. return 0;
  14301. }
  14302. _ACEOF
  14303. if ac_fn_cxx_try_link "$LINENO"; then :
  14304. eval "$as_ac_Lib=yes"
  14305. else
  14306. eval "$as_ac_Lib=no"
  14307. fi
  14308. rm -f core conftest.err conftest.$ac_objext \
  14309. conftest$ac_exeext conftest.$ac_ext
  14310. LIBS=$ac_check_lib_save_LIBS
  14311. fi
  14312. eval ac_res=\$$as_ac_Lib
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14314. $as_echo "$ac_res" >&6; }
  14315. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14316. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14317. else
  14318. link_program_options="no"
  14319. fi
  14320. done
  14321. fi
  14322. else
  14323. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  14324. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14326. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14327. if eval \${$as_ac_Lib+:} false; then :
  14328. $as_echo_n "(cached) " >&6
  14329. else
  14330. ac_check_lib_save_LIBS=$LIBS
  14331. LIBS="-l$ax_lib $LIBS"
  14332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14333. /* end confdefs.h. */
  14334. int
  14335. main ()
  14336. {
  14337. return main ();
  14338. ;
  14339. return 0;
  14340. }
  14341. _ACEOF
  14342. if ac_fn_cxx_try_link "$LINENO"; then :
  14343. eval "$as_ac_Lib=yes"
  14344. else
  14345. eval "$as_ac_Lib=no"
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext \
  14348. conftest$ac_exeext conftest.$ac_ext
  14349. LIBS=$ac_check_lib_save_LIBS
  14350. fi
  14351. eval ac_res=\$$as_ac_Lib
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14353. $as_echo "$ac_res" >&6; }
  14354. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14355. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14356. else
  14357. link_program_options="no"
  14358. fi
  14359. done
  14360. fi
  14361. if test "x$ax_lib" = "x"; then
  14362. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14363. fi
  14364. if test "x$link_program_options" != "xyes"; then
  14365. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14366. fi
  14367. fi
  14368. CPPFLAGS="$CPPFLAGS_SAVED"
  14369. LDFLAGS="$LDFLAGS_SAVED"
  14370. fi
  14371. # Check whether librt is necessary
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
  14373. $as_echo_n "checking for shm_open in -lrt... " >&6; }
  14374. if ${ac_cv_lib_rt_shm_open+:} false; then :
  14375. $as_echo_n "(cached) " >&6
  14376. else
  14377. ac_check_lib_save_LIBS=$LIBS
  14378. LIBS="-lrt $LIBS"
  14379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14380. /* end confdefs.h. */
  14381. /* Override any GCC internal prototype to avoid an error.
  14382. Use char because int might match the return type of a GCC
  14383. builtin and then its argument prototype would still apply. */
  14384. #ifdef __cplusplus
  14385. extern "C"
  14386. #endif
  14387. char shm_open ();
  14388. int
  14389. main ()
  14390. {
  14391. return shm_open ();
  14392. ;
  14393. return 0;
  14394. }
  14395. _ACEOF
  14396. if ac_fn_cxx_try_link "$LINENO"; then :
  14397. ac_cv_lib_rt_shm_open=yes
  14398. else
  14399. ac_cv_lib_rt_shm_open=no
  14400. fi
  14401. rm -f core conftest.err conftest.$ac_objext \
  14402. conftest$ac_exeext conftest.$ac_ext
  14403. LIBS=$ac_check_lib_save_LIBS
  14404. fi
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
  14406. $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
  14407. if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
  14408. cat >>confdefs.h <<_ACEOF
  14409. #define HAVE_LIBRT 1
  14410. _ACEOF
  14411. LIBS="-lrt $LIBS"
  14412. fi
  14413. # Check for SDL - Will accept 1.2 and 1.3
  14414. # Check whether --with-sdl-prefix was given.
  14415. if test "${with_sdl_prefix+set}" = set; then :
  14416. withval=$with_sdl_prefix; sdl_prefix="$withval"
  14417. else
  14418. sdl_prefix=""
  14419. fi
  14420. # Check whether --with-sdl-exec-prefix was given.
  14421. if test "${with_sdl_exec_prefix+set}" = set; then :
  14422. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  14423. else
  14424. sdl_exec_prefix=""
  14425. fi
  14426. # Check whether --enable-sdltest was given.
  14427. if test "${enable_sdltest+set}" = set; then :
  14428. enableval=$enable_sdltest;
  14429. else
  14430. enable_sdltest=yes
  14431. fi
  14432. if test x$sdl_exec_prefix != x ; then
  14433. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  14434. if test x${SDL_CONFIG+set} != xset ; then
  14435. SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  14436. fi
  14437. fi
  14438. if test x$sdl_prefix != x ; then
  14439. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  14440. if test x${SDL_CONFIG+set} != xset ; then
  14441. SDL_CONFIG=$sdl_prefix/bin/sdl-config
  14442. fi
  14443. fi
  14444. as_save_PATH="$PATH"
  14445. if test "x$prefix" != xNONE; then
  14446. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  14447. fi
  14448. # Extract the first word of "sdl-config", so it can be a program name with args.
  14449. set dummy sdl-config; ac_word=$2
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14451. $as_echo_n "checking for $ac_word... " >&6; }
  14452. if ${ac_cv_path_SDL_CONFIG+:} false; then :
  14453. $as_echo_n "(cached) " >&6
  14454. else
  14455. case $SDL_CONFIG in
  14456. [\\/]* | ?:[\\/]*)
  14457. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  14458. ;;
  14459. *)
  14460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14461. for as_dir in $PATH
  14462. do
  14463. IFS=$as_save_IFS
  14464. test -z "$as_dir" && as_dir=.
  14465. for ac_exec_ext in '' $ac_executable_extensions; do
  14466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14467. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14469. break 2
  14470. fi
  14471. done
  14472. done
  14473. IFS=$as_save_IFS
  14474. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  14475. ;;
  14476. esac
  14477. fi
  14478. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  14479. if test -n "$SDL_CONFIG"; then
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  14481. $as_echo "$SDL_CONFIG" >&6; }
  14482. else
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14484. $as_echo "no" >&6; }
  14485. fi
  14486. PATH="$as_save_PATH"
  14487. min_sdl_version="1.2.0"
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  14489. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  14490. no_sdl=""
  14491. if test "$SDL_CONFIG" = "no" ; then
  14492. no_sdl=yes
  14493. else
  14494. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  14495. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  14496. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  14497. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  14498. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  14499. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  14500. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  14501. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  14502. if test "x$enable_sdltest" = "xyes" ; then
  14503. ac_save_CFLAGS="$CFLAGS"
  14504. ac_save_CXXFLAGS="$CXXFLAGS"
  14505. ac_save_LIBS="$LIBS"
  14506. CFLAGS="$CFLAGS $SDL_CFLAGS"
  14507. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  14508. LIBS="$LIBS $SDL_LIBS"
  14509. rm -f conf.sdltest
  14510. if test "$cross_compiling" = yes; then :
  14511. echo $ac_n "cross compiling; assumed OK... $ac_c"
  14512. else
  14513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14514. /* end confdefs.h. */
  14515. #include <stdio.h>
  14516. #include <stdlib.h>
  14517. #include <string.h>
  14518. #include "SDL.h"
  14519. char*
  14520. my_strdup (char *str)
  14521. {
  14522. char *new_str;
  14523. if (str)
  14524. {
  14525. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  14526. strcpy (new_str, str);
  14527. }
  14528. else
  14529. new_str = NULL;
  14530. return new_str;
  14531. }
  14532. int main (int argc, char *argv[])
  14533. {
  14534. int major, minor, micro;
  14535. char *tmp_version;
  14536. /* This hangs on some systems (?)
  14537. system ("touch conf.sdltest");
  14538. */
  14539. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  14540. /* HP/UX 9 (%@#!) writes to sscanf strings */
  14541. tmp_version = my_strdup("$min_sdl_version");
  14542. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  14543. printf("%s, bad version string\n", "$min_sdl_version");
  14544. exit(1);
  14545. }
  14546. if (($sdl_major_version > major) ||
  14547. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  14548. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  14549. {
  14550. return 0;
  14551. }
  14552. else
  14553. {
  14554. printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  14555. printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  14556. printf("*** best to upgrade to the required version.\n");
  14557. printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  14558. printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  14559. printf("*** config.cache before re-running configure\n");
  14560. return 1;
  14561. }
  14562. }
  14563. _ACEOF
  14564. if ac_fn_cxx_try_run "$LINENO"; then :
  14565. else
  14566. no_sdl=yes
  14567. fi
  14568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14570. fi
  14571. CFLAGS="$ac_save_CFLAGS"
  14572. CXXFLAGS="$ac_save_CXXFLAGS"
  14573. LIBS="$ac_save_LIBS"
  14574. fi
  14575. fi
  14576. if test "x$no_sdl" = x ; then
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14578. $as_echo "yes" >&6; }
  14579. :
  14580. else
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14582. $as_echo "no" >&6; }
  14583. if test "$SDL_CONFIG" = "no" ; then
  14584. echo "*** The sdl-config script installed by SDL could not be found"
  14585. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  14586. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  14587. echo "*** full path to sdl-config."
  14588. else
  14589. if test -f conf.sdltest ; then
  14590. :
  14591. else
  14592. echo "*** Could not run SDL test program, checking why..."
  14593. CFLAGS="$CFLAGS $SDL_CFLAGS"
  14594. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  14595. LIBS="$LIBS $SDL_LIBS"
  14596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14597. /* end confdefs.h. */
  14598. #include <stdio.h>
  14599. #include "SDL.h"
  14600. int main(int argc, char *argv[])
  14601. { return 0; }
  14602. #undef main
  14603. #define main K_and_R_C_main
  14604. int
  14605. main ()
  14606. {
  14607. return 0;
  14608. ;
  14609. return 0;
  14610. }
  14611. _ACEOF
  14612. if ac_fn_cxx_try_link "$LINENO"; then :
  14613. echo "*** The test program compiled, but did not run. This usually means"
  14614. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  14615. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  14616. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  14617. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  14618. echo "*** is required on your system"
  14619. echo "***"
  14620. echo "*** If you have an old version installed, it is best to remove it, although"
  14621. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  14622. else
  14623. echo "*** The test program failed to compile or link. See the file config.log for the"
  14624. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  14625. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  14626. echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  14627. fi
  14628. rm -f core conftest.err conftest.$ac_objext \
  14629. conftest$ac_exeext conftest.$ac_ext
  14630. CFLAGS="$ac_save_CFLAGS"
  14631. CXXFLAGS="$ac_save_CXXFLAGS"
  14632. LIBS="$ac_save_LIBS"
  14633. fi
  14634. fi
  14635. SDL_CFLAGS=""
  14636. SDL_LIBS=""
  14637. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  14638. fi
  14639. rm -f conf.sdltest
  14640. # Check for SDL headers and libraries
  14641. for ac_header in SDL/SDL.h SDL/SDL_mixer.h SDL/SDL_image.h SDL/SDL_ttf.h
  14642. do :
  14643. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14644. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14645. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14646. cat >>confdefs.h <<_ACEOF
  14647. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14648. _ACEOF
  14649. else
  14650. as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
  14651. fi
  14652. done
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  14654. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14655. if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
  14656. $as_echo_n "(cached) " >&6
  14657. else
  14658. ac_check_lib_save_LIBS=$LIBS
  14659. LIBS="-lSDL $LIBS"
  14660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14661. /* end confdefs.h. */
  14662. /* Override any GCC internal prototype to avoid an error.
  14663. Use char because int might match the return type of a GCC
  14664. builtin and then its argument prototype would still apply. */
  14665. #ifdef __cplusplus
  14666. extern "C"
  14667. #endif
  14668. char SDL_Init ();
  14669. int
  14670. main ()
  14671. {
  14672. return SDL_Init ();
  14673. ;
  14674. return 0;
  14675. }
  14676. _ACEOF
  14677. if ac_fn_cxx_try_link "$LINENO"; then :
  14678. ac_cv_lib_SDL_SDL_Init=yes
  14679. else
  14680. ac_cv_lib_SDL_SDL_Init=no
  14681. fi
  14682. rm -f core conftest.err conftest.$ac_objext \
  14683. conftest$ac_exeext conftest.$ac_ext
  14684. LIBS=$ac_check_lib_save_LIBS
  14685. fi
  14686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14687. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14688. if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
  14689. cat >>confdefs.h <<_ACEOF
  14690. #define HAVE_LIBSDL 1
  14691. _ACEOF
  14692. LIBS="-lSDL $LIBS"
  14693. else
  14694. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  14695. fi
  14696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  14697. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14698. if ${ac_cv_lib_SDL_mixer_main+:} false; then :
  14699. $as_echo_n "(cached) " >&6
  14700. else
  14701. ac_check_lib_save_LIBS=$LIBS
  14702. LIBS="-lSDL_mixer $LIBS"
  14703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14704. /* end confdefs.h. */
  14705. int
  14706. main ()
  14707. {
  14708. return main ();
  14709. ;
  14710. return 0;
  14711. }
  14712. _ACEOF
  14713. if ac_fn_cxx_try_link "$LINENO"; then :
  14714. ac_cv_lib_SDL_mixer_main=yes
  14715. else
  14716. ac_cv_lib_SDL_mixer_main=no
  14717. fi
  14718. rm -f core conftest.err conftest.$ac_objext \
  14719. conftest$ac_exeext conftest.$ac_ext
  14720. LIBS=$ac_check_lib_save_LIBS
  14721. fi
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  14723. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14724. if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then :
  14725. cat >>confdefs.h <<_ACEOF
  14726. #define HAVE_LIBSDL_MIXER 1
  14727. _ACEOF
  14728. LIBS="-lSDL_mixer $LIBS"
  14729. else
  14730. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  14731. fi
  14732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  14733. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14734. if ${ac_cv_lib_SDL_image_IMG_Load+:} false; then :
  14735. $as_echo_n "(cached) " >&6
  14736. else
  14737. ac_check_lib_save_LIBS=$LIBS
  14738. LIBS="-lSDL_image $LIBS"
  14739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14740. /* end confdefs.h. */
  14741. /* Override any GCC internal prototype to avoid an error.
  14742. Use char because int might match the return type of a GCC
  14743. builtin and then its argument prototype would still apply. */
  14744. #ifdef __cplusplus
  14745. extern "C"
  14746. #endif
  14747. char IMG_Load ();
  14748. int
  14749. main ()
  14750. {
  14751. return IMG_Load ();
  14752. ;
  14753. return 0;
  14754. }
  14755. _ACEOF
  14756. if ac_fn_cxx_try_link "$LINENO"; then :
  14757. ac_cv_lib_SDL_image_IMG_Load=yes
  14758. else
  14759. ac_cv_lib_SDL_image_IMG_Load=no
  14760. fi
  14761. rm -f core conftest.err conftest.$ac_objext \
  14762. conftest$ac_exeext conftest.$ac_ext
  14763. LIBS=$ac_check_lib_save_LIBS
  14764. fi
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14766. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14767. if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes; then :
  14768. cat >>confdefs.h <<_ACEOF
  14769. #define HAVE_LIBSDL_IMAGE 1
  14770. _ACEOF
  14771. LIBS="-lSDL_image $LIBS"
  14772. else
  14773. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  14774. fi
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  14776. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14777. if ${ac_cv_lib_SDL_ttf_main+:} false; then :
  14778. $as_echo_n "(cached) " >&6
  14779. else
  14780. ac_check_lib_save_LIBS=$LIBS
  14781. LIBS="-lSDL_ttf $LIBS"
  14782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14783. /* end confdefs.h. */
  14784. int
  14785. main ()
  14786. {
  14787. return main ();
  14788. ;
  14789. return 0;
  14790. }
  14791. _ACEOF
  14792. if ac_fn_cxx_try_link "$LINENO"; then :
  14793. ac_cv_lib_SDL_ttf_main=yes
  14794. else
  14795. ac_cv_lib_SDL_ttf_main=no
  14796. fi
  14797. rm -f core conftest.err conftest.$ac_objext \
  14798. conftest$ac_exeext conftest.$ac_ext
  14799. LIBS=$ac_check_lib_save_LIBS
  14800. fi
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  14802. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14803. if test "x$ac_cv_lib_SDL_ttf_main" = xyes; then :
  14804. cat >>confdefs.h <<_ACEOF
  14805. #define HAVE_LIBSDL_TTF 1
  14806. _ACEOF
  14807. LIBS="-lSDL_ttf $LIBS"
  14808. else
  14809. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  14810. fi
  14811. # Check for ffmpeg libraries
  14812. saved_LIBS=$LIBS
  14813. saved_CFLAGS=$CFLAGS
  14814. FFMPEG_CXXFLAGS=""
  14815. FFMPEG_LIBS=
  14816. LIBS="$LIBS `pkg-config --libs libavcodec libavformat libavutil libswscale`"
  14817. CFLAGS="$CFLAGS `pkg-config --cflags libavformat libswscale`"
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  14819. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  14820. if ${ac_cv_lib_avformat_av_open_input_file+:} false; then :
  14821. $as_echo_n "(cached) " >&6
  14822. else
  14823. ac_check_lib_save_LIBS=$LIBS
  14824. LIBS="-lavformat $LIBS"
  14825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14826. /* end confdefs.h. */
  14827. /* Override any GCC internal prototype to avoid an error.
  14828. Use char because int might match the return type of a GCC
  14829. builtin and then its argument prototype would still apply. */
  14830. #ifdef __cplusplus
  14831. extern "C"
  14832. #endif
  14833. char av_open_input_file ();
  14834. int
  14835. main ()
  14836. {
  14837. return av_open_input_file ();
  14838. ;
  14839. return 0;
  14840. }
  14841. _ACEOF
  14842. if ac_fn_cxx_try_link "$LINENO"; then :
  14843. ac_cv_lib_avformat_av_open_input_file=yes
  14844. else
  14845. ac_cv_lib_avformat_av_open_input_file=no
  14846. fi
  14847. rm -f core conftest.err conftest.$ac_objext \
  14848. conftest$ac_exeext conftest.$ac_ext
  14849. LIBS=$ac_check_lib_save_LIBS
  14850. fi
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  14852. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  14853. if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes; then :
  14854. cat >>confdefs.h <<_ACEOF
  14855. #define HAVE_LIBAVFORMAT 1
  14856. _ACEOF
  14857. LIBS="-lavformat $LIBS"
  14858. else
  14859. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  14860. fi
  14861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  14862. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  14863. if ${ac_cv_lib_swscale_sws_getContext+:} false; then :
  14864. $as_echo_n "(cached) " >&6
  14865. else
  14866. ac_check_lib_save_LIBS=$LIBS
  14867. LIBS="-lswscale $LIBS"
  14868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14869. /* end confdefs.h. */
  14870. /* Override any GCC internal prototype to avoid an error.
  14871. Use char because int might match the return type of a GCC
  14872. builtin and then its argument prototype would still apply. */
  14873. #ifdef __cplusplus
  14874. extern "C"
  14875. #endif
  14876. char sws_getContext ();
  14877. int
  14878. main ()
  14879. {
  14880. return sws_getContext ();
  14881. ;
  14882. return 0;
  14883. }
  14884. _ACEOF
  14885. if ac_fn_cxx_try_link "$LINENO"; then :
  14886. ac_cv_lib_swscale_sws_getContext=yes
  14887. else
  14888. ac_cv_lib_swscale_sws_getContext=no
  14889. fi
  14890. rm -f core conftest.err conftest.$ac_objext \
  14891. conftest$ac_exeext conftest.$ac_ext
  14892. LIBS=$ac_check_lib_save_LIBS
  14893. fi
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  14895. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  14896. if test "x$ac_cv_lib_swscale_sws_getContext" = xyes; then :
  14897. cat >>confdefs.h <<_ACEOF
  14898. #define HAVE_LIBSWSCALE 1
  14899. _ACEOF
  14900. LIBS="-lswscale $LIBS"
  14901. else
  14902. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14903. fi
  14904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  14905. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  14906. if ${ac_cv_lib_avcodec_avcodec_decode_video2+:} false; then :
  14907. $as_echo_n "(cached) " >&6
  14908. else
  14909. ac_check_lib_save_LIBS=$LIBS
  14910. LIBS="-lavcodec $LIBS"
  14911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14912. /* end confdefs.h. */
  14913. /* Override any GCC internal prototype to avoid an error.
  14914. Use char because int might match the return type of a GCC
  14915. builtin and then its argument prototype would still apply. */
  14916. #ifdef __cplusplus
  14917. extern "C"
  14918. #endif
  14919. char avcodec_decode_video2 ();
  14920. int
  14921. main ()
  14922. {
  14923. return avcodec_decode_video2 ();
  14924. ;
  14925. return 0;
  14926. }
  14927. _ACEOF
  14928. if ac_fn_cxx_try_link "$LINENO"; then :
  14929. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  14930. else
  14931. ac_cv_lib_avcodec_avcodec_decode_video2=no
  14932. fi
  14933. rm -f core conftest.err conftest.$ac_objext \
  14934. conftest$ac_exeext conftest.$ac_ext
  14935. LIBS=$ac_check_lib_save_LIBS
  14936. fi
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  14938. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  14939. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = xyes; then :
  14940. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  14941. fi
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_protocol2 in -lavcodec" >&5
  14943. $as_echo_n "checking for av_register_protocol2 in -lavcodec... " >&6; }
  14944. if ${ac_cv_lib_avcodec_av_register_protocol2+:} false; then :
  14945. $as_echo_n "(cached) " >&6
  14946. else
  14947. ac_check_lib_save_LIBS=$LIBS
  14948. LIBS="-lavcodec $LIBS"
  14949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14950. /* end confdefs.h. */
  14951. /* Override any GCC internal prototype to avoid an error.
  14952. Use char because int might match the return type of a GCC
  14953. builtin and then its argument prototype would still apply. */
  14954. #ifdef __cplusplus
  14955. extern "C"
  14956. #endif
  14957. char av_register_protocol2 ();
  14958. int
  14959. main ()
  14960. {
  14961. return av_register_protocol2 ();
  14962. ;
  14963. return 0;
  14964. }
  14965. _ACEOF
  14966. if ac_fn_cxx_try_link "$LINENO"; then :
  14967. ac_cv_lib_avcodec_av_register_protocol2=yes
  14968. else
  14969. ac_cv_lib_avcodec_av_register_protocol2=no
  14970. fi
  14971. rm -f core conftest.err conftest.$ac_objext \
  14972. conftest$ac_exeext conftest.$ac_ext
  14973. LIBS=$ac_check_lib_save_LIBS
  14974. fi
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_register_protocol2" >&5
  14976. $as_echo "$ac_cv_lib_avcodec_av_register_protocol2" >&6; }
  14977. if test "x$ac_cv_lib_avcodec_av_register_protocol2" = xyes; then :
  14978. AV_REGISTER_PROTOCOL2="-DWITH_AV_REGISTER_PROTOCOL2"
  14979. fi
  14980. FFMPEG_LIBS="$LIBS"
  14981. FFMPEG_CXXFLAGS="$CFLAGS $AVCODEC_DECODE_VIDEO2 $AV_REGISTER_PROTOCOL2"
  14982. LIBS=$saved_LIBS
  14983. CFLAGS=$saved_CFLAGS
  14984. # Checks for header files.
  14985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14986. $as_echo_n "checking for ANSI C header files... " >&6; }
  14987. if ${ac_cv_header_stdc+:} false; then :
  14988. $as_echo_n "(cached) " >&6
  14989. else
  14990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14991. /* end confdefs.h. */
  14992. #include <stdlib.h>
  14993. #include <stdarg.h>
  14994. #include <string.h>
  14995. #include <float.h>
  14996. int
  14997. main ()
  14998. {
  14999. ;
  15000. return 0;
  15001. }
  15002. _ACEOF
  15003. if ac_fn_cxx_try_compile "$LINENO"; then :
  15004. ac_cv_header_stdc=yes
  15005. else
  15006. ac_cv_header_stdc=no
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15009. if test $ac_cv_header_stdc = yes; then
  15010. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15012. /* end confdefs.h. */
  15013. #include <string.h>
  15014. _ACEOF
  15015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15016. $EGREP "memchr" >/dev/null 2>&1; then :
  15017. else
  15018. ac_cv_header_stdc=no
  15019. fi
  15020. rm -f conftest*
  15021. fi
  15022. if test $ac_cv_header_stdc = yes; then
  15023. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15025. /* end confdefs.h. */
  15026. #include <stdlib.h>
  15027. _ACEOF
  15028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15029. $EGREP "free" >/dev/null 2>&1; then :
  15030. else
  15031. ac_cv_header_stdc=no
  15032. fi
  15033. rm -f conftest*
  15034. fi
  15035. if test $ac_cv_header_stdc = yes; then
  15036. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15037. if test "$cross_compiling" = yes; then :
  15038. :
  15039. else
  15040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15041. /* end confdefs.h. */
  15042. #include <ctype.h>
  15043. #include <stdlib.h>
  15044. #if ((' ' & 0x0FF) == 0x020)
  15045. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15046. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15047. #else
  15048. # define ISLOWER(c) \
  15049. (('a' <= (c) && (c) <= 'i') \
  15050. || ('j' <= (c) && (c) <= 'r') \
  15051. || ('s' <= (c) && (c) <= 'z'))
  15052. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15053. #endif
  15054. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15055. int
  15056. main ()
  15057. {
  15058. int i;
  15059. for (i = 0; i < 256; i++)
  15060. if (XOR (islower (i), ISLOWER (i))
  15061. || toupper (i) != TOUPPER (i))
  15062. return 2;
  15063. return 0;
  15064. }
  15065. _ACEOF
  15066. if ac_fn_cxx_try_run "$LINENO"; then :
  15067. else
  15068. ac_cv_header_stdc=no
  15069. fi
  15070. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15071. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15072. fi
  15073. fi
  15074. fi
  15075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15076. $as_echo "$ac_cv_header_stdc" >&6; }
  15077. if test $ac_cv_header_stdc = yes; then
  15078. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15079. fi
  15080. for ac_header in fcntl.h stdlib.h string.h
  15081. do :
  15082. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15083. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15084. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15085. cat >>confdefs.h <<_ACEOF
  15086. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15087. _ACEOF
  15088. fi
  15089. done
  15090. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15091. 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
  15092. do :
  15093. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15094. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15095. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15096. cat >>confdefs.h <<_ACEOF
  15097. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15098. _ACEOF
  15099. else
  15100. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  15101. fi
  15102. done
  15103. # Checks for library functions.
  15104. for ac_func in atexit memset pow select sqrt
  15105. do :
  15106. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15107. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15108. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15109. cat >>confdefs.h <<_ACEOF
  15110. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15111. _ACEOF
  15112. fi
  15113. done
  15114. CXXFLAGS="$CXXFLAGS -DM_DATA_DIR=\\\"\$(pkgdatadir)\\\" -DM_BIN_DIR=\\\"\$(bindir)\\\" -DM_LIB_DIR=\\\"\$(pkglibdir)\\\""
  15115. VCMI_AI_LIBS_DIR="$libdir/vcmi/AI"
  15116. VCMI_SCRIPTING_LIBS_DIR="$libdir/vcmi/Scripting"
  15117. 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"
  15118. cat >confcache <<\_ACEOF
  15119. # This file is a shell script that caches the results of configure
  15120. # tests run on this system so they can be shared between configure
  15121. # scripts and configure runs, see configure's option --config-cache.
  15122. # It is not useful on other systems. If it contains results you don't
  15123. # want to keep, you may remove or edit it.
  15124. #
  15125. # config.status only pays attention to the cache file if you give it
  15126. # the --recheck option to rerun configure.
  15127. #
  15128. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15129. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15130. # following values.
  15131. _ACEOF
  15132. # The following way of writing the cache mishandles newlines in values,
  15133. # but we know of no workaround that is simple, portable, and efficient.
  15134. # So, we kill variables containing newlines.
  15135. # Ultrix sh set writes to stderr and can't be redirected directly,
  15136. # and sets the high bit in the cache file unless we assign to the vars.
  15137. (
  15138. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15139. eval ac_val=\$$ac_var
  15140. case $ac_val in #(
  15141. *${as_nl}*)
  15142. case $ac_var in #(
  15143. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15144. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15145. esac
  15146. case $ac_var in #(
  15147. _ | IFS | as_nl) ;; #(
  15148. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15149. *) { eval $ac_var=; unset $ac_var;} ;;
  15150. esac ;;
  15151. esac
  15152. done
  15153. (set) 2>&1 |
  15154. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15155. *${as_nl}ac_space=\ *)
  15156. # `set' does not quote correctly, so add quotes: double-quote
  15157. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15158. sed -n \
  15159. "s/'/'\\\\''/g;
  15160. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15161. ;; #(
  15162. *)
  15163. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15164. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15165. ;;
  15166. esac |
  15167. sort
  15168. ) |
  15169. sed '
  15170. /^ac_cv_env_/b end
  15171. t clear
  15172. :clear
  15173. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15174. t end
  15175. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15176. :end' >>confcache
  15177. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15178. if test -w "$cache_file"; then
  15179. if test "x$cache_file" != "x/dev/null"; then
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15181. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15182. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15183. cat confcache >"$cache_file"
  15184. else
  15185. case $cache_file in #(
  15186. */* | ?:*)
  15187. mv -f confcache "$cache_file"$$ &&
  15188. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15189. *)
  15190. mv -f confcache "$cache_file" ;;
  15191. esac
  15192. fi
  15193. fi
  15194. else
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15196. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15197. fi
  15198. fi
  15199. rm -f confcache
  15200. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15201. # Let make expand exec_prefix.
  15202. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15203. # Transform confdefs.h into DEFS.
  15204. # Protect against shell expansion while executing Makefile rules.
  15205. # Protect against Makefile macro expansion.
  15206. #
  15207. # If the first sed substitution is executed (which looks for macros that
  15208. # take arguments), then branch to the quote section. Otherwise,
  15209. # look for a macro that doesn't take arguments.
  15210. ac_script='
  15211. :mline
  15212. /\\$/{
  15213. N
  15214. s,\\\n,,
  15215. b mline
  15216. }
  15217. t clear
  15218. :clear
  15219. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15220. t quote
  15221. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15222. t quote
  15223. b any
  15224. :quote
  15225. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15226. s/\[/\\&/g
  15227. s/\]/\\&/g
  15228. s/\$/$$/g
  15229. H
  15230. :any
  15231. ${
  15232. g
  15233. s/^\n//
  15234. s/\n/ /g
  15235. p
  15236. }
  15237. '
  15238. DEFS=`sed -n "$ac_script" confdefs.h`
  15239. ac_libobjs=
  15240. ac_ltlibobjs=
  15241. U=
  15242. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15243. # 1. Remove the extension, and $U if already installed.
  15244. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15245. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15246. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15247. # will be set to the directory where LIBOBJS objects are built.
  15248. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15249. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15250. done
  15251. LIBOBJS=$ac_libobjs
  15252. LTLIBOBJS=$ac_ltlibobjs
  15253. if test -n "$EXEEXT"; then
  15254. am__EXEEXT_TRUE=
  15255. am__EXEEXT_FALSE='#'
  15256. else
  15257. am__EXEEXT_TRUE='#'
  15258. am__EXEEXT_FALSE=
  15259. fi
  15260. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15261. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15262. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15263. fi
  15264. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15265. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15266. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15267. fi
  15268. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15269. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15270. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15271. fi
  15272. : "${CONFIG_STATUS=./config.status}"
  15273. ac_write_fail=0
  15274. ac_clean_files_save=$ac_clean_files
  15275. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15277. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15278. as_write_fail=0
  15279. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15280. #! $SHELL
  15281. # Generated by $as_me.
  15282. # Run this file to recreate the current configuration.
  15283. # Compiler output produced by configure, useful for debugging
  15284. # configure, is in config.log if it exists.
  15285. debug=false
  15286. ac_cs_recheck=false
  15287. ac_cs_silent=false
  15288. SHELL=\${CONFIG_SHELL-$SHELL}
  15289. export SHELL
  15290. _ASEOF
  15291. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15292. ## -------------------- ##
  15293. ## M4sh Initialization. ##
  15294. ## -------------------- ##
  15295. # Be more Bourne compatible
  15296. DUALCASE=1; export DUALCASE # for MKS sh
  15297. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15298. emulate sh
  15299. NULLCMD=:
  15300. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15301. # is contrary to our usage. Disable this feature.
  15302. alias -g '${1+"$@"}'='"$@"'
  15303. setopt NO_GLOB_SUBST
  15304. else
  15305. case `(set -o) 2>/dev/null` in #(
  15306. *posix*) :
  15307. set -o posix ;; #(
  15308. *) :
  15309. ;;
  15310. esac
  15311. fi
  15312. as_nl='
  15313. '
  15314. export as_nl
  15315. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15316. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15317. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15318. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15319. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15320. # but without wasting forks for bash or zsh.
  15321. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15322. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15323. as_echo='print -r --'
  15324. as_echo_n='print -rn --'
  15325. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15326. as_echo='printf %s\n'
  15327. as_echo_n='printf %s'
  15328. else
  15329. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15330. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15331. as_echo_n='/usr/ucb/echo -n'
  15332. else
  15333. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15334. as_echo_n_body='eval
  15335. arg=$1;
  15336. case $arg in #(
  15337. *"$as_nl"*)
  15338. expr "X$arg" : "X\\(.*\\)$as_nl";
  15339. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15340. esac;
  15341. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15342. '
  15343. export as_echo_n_body
  15344. as_echo_n='sh -c $as_echo_n_body as_echo'
  15345. fi
  15346. export as_echo_body
  15347. as_echo='sh -c $as_echo_body as_echo'
  15348. fi
  15349. # The user is always right.
  15350. if test "${PATH_SEPARATOR+set}" != set; then
  15351. PATH_SEPARATOR=:
  15352. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15353. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15354. PATH_SEPARATOR=';'
  15355. }
  15356. fi
  15357. # IFS
  15358. # We need space, tab and new line, in precisely that order. Quoting is
  15359. # there to prevent editors from complaining about space-tab.
  15360. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15361. # splitting by setting IFS to empty value.)
  15362. IFS=" "" $as_nl"
  15363. # Find who we are. Look in the path if we contain no directory separator.
  15364. as_myself=
  15365. case $0 in #((
  15366. *[\\/]* ) as_myself=$0 ;;
  15367. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15368. for as_dir in $PATH
  15369. do
  15370. IFS=$as_save_IFS
  15371. test -z "$as_dir" && as_dir=.
  15372. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15373. done
  15374. IFS=$as_save_IFS
  15375. ;;
  15376. esac
  15377. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15378. # in which case we are not to be found in the path.
  15379. if test "x$as_myself" = x; then
  15380. as_myself=$0
  15381. fi
  15382. if test ! -f "$as_myself"; then
  15383. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15384. exit 1
  15385. fi
  15386. # Unset variables that we do not need and which cause bugs (e.g. in
  15387. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15388. # suppresses any "Segmentation fault" message there. '((' could
  15389. # trigger a bug in pdksh 5.2.14.
  15390. for as_var in BASH_ENV ENV MAIL MAILPATH
  15391. do eval test x\${$as_var+set} = xset \
  15392. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15393. done
  15394. PS1='$ '
  15395. PS2='> '
  15396. PS4='+ '
  15397. # NLS nuisances.
  15398. LC_ALL=C
  15399. export LC_ALL
  15400. LANGUAGE=C
  15401. export LANGUAGE
  15402. # CDPATH.
  15403. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15404. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15405. # ----------------------------------------
  15406. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15407. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15408. # script with STATUS, using 1 if that was 0.
  15409. as_fn_error ()
  15410. {
  15411. as_status=$1; test $as_status -eq 0 && as_status=1
  15412. if test "$4"; then
  15413. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15414. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15415. fi
  15416. $as_echo "$as_me: error: $2" >&2
  15417. as_fn_exit $as_status
  15418. } # as_fn_error
  15419. # as_fn_set_status STATUS
  15420. # -----------------------
  15421. # Set $? to STATUS, without forking.
  15422. as_fn_set_status ()
  15423. {
  15424. return $1
  15425. } # as_fn_set_status
  15426. # as_fn_exit STATUS
  15427. # -----------------
  15428. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15429. as_fn_exit ()
  15430. {
  15431. set +e
  15432. as_fn_set_status $1
  15433. exit $1
  15434. } # as_fn_exit
  15435. # as_fn_unset VAR
  15436. # ---------------
  15437. # Portably unset VAR.
  15438. as_fn_unset ()
  15439. {
  15440. { eval $1=; unset $1;}
  15441. }
  15442. as_unset=as_fn_unset
  15443. # as_fn_append VAR VALUE
  15444. # ----------------------
  15445. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15446. # advantage of any shell optimizations that allow amortized linear growth over
  15447. # repeated appends, instead of the typical quadratic growth present in naive
  15448. # implementations.
  15449. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15450. eval 'as_fn_append ()
  15451. {
  15452. eval $1+=\$2
  15453. }'
  15454. else
  15455. as_fn_append ()
  15456. {
  15457. eval $1=\$$1\$2
  15458. }
  15459. fi # as_fn_append
  15460. # as_fn_arith ARG...
  15461. # ------------------
  15462. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15463. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15464. # must be portable across $(()) and expr.
  15465. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15466. eval 'as_fn_arith ()
  15467. {
  15468. as_val=$(( $* ))
  15469. }'
  15470. else
  15471. as_fn_arith ()
  15472. {
  15473. as_val=`expr "$@" || test $? -eq 1`
  15474. }
  15475. fi # as_fn_arith
  15476. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15477. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15478. as_expr=expr
  15479. else
  15480. as_expr=false
  15481. fi
  15482. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15483. as_basename=basename
  15484. else
  15485. as_basename=false
  15486. fi
  15487. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15488. as_dirname=dirname
  15489. else
  15490. as_dirname=false
  15491. fi
  15492. as_me=`$as_basename -- "$0" ||
  15493. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15494. X"$0" : 'X\(//\)$' \| \
  15495. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15496. $as_echo X/"$0" |
  15497. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15498. s//\1/
  15499. q
  15500. }
  15501. /^X\/\(\/\/\)$/{
  15502. s//\1/
  15503. q
  15504. }
  15505. /^X\/\(\/\).*/{
  15506. s//\1/
  15507. q
  15508. }
  15509. s/.*/./; q'`
  15510. # Avoid depending upon Character Ranges.
  15511. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15512. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15513. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15514. as_cr_digits='0123456789'
  15515. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15516. ECHO_C= ECHO_N= ECHO_T=
  15517. case `echo -n x` in #(((((
  15518. -n*)
  15519. case `echo 'xy\c'` in
  15520. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15521. xy) ECHO_C='\c';;
  15522. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15523. ECHO_T=' ';;
  15524. esac;;
  15525. *)
  15526. ECHO_N='-n';;
  15527. esac
  15528. rm -f conf$$ conf$$.exe conf$$.file
  15529. if test -d conf$$.dir; then
  15530. rm -f conf$$.dir/conf$$.file
  15531. else
  15532. rm -f conf$$.dir
  15533. mkdir conf$$.dir 2>/dev/null
  15534. fi
  15535. if (echo >conf$$.file) 2>/dev/null; then
  15536. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15537. as_ln_s='ln -s'
  15538. # ... but there are two gotchas:
  15539. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15540. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15541. # In both cases, we have to default to `cp -p'.
  15542. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15543. as_ln_s='cp -p'
  15544. elif ln conf$$.file conf$$ 2>/dev/null; then
  15545. as_ln_s=ln
  15546. else
  15547. as_ln_s='cp -p'
  15548. fi
  15549. else
  15550. as_ln_s='cp -p'
  15551. fi
  15552. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15553. rmdir conf$$.dir 2>/dev/null
  15554. # as_fn_mkdir_p
  15555. # -------------
  15556. # Create "$as_dir" as a directory, including parents if necessary.
  15557. as_fn_mkdir_p ()
  15558. {
  15559. case $as_dir in #(
  15560. -*) as_dir=./$as_dir;;
  15561. esac
  15562. test -d "$as_dir" || eval $as_mkdir_p || {
  15563. as_dirs=
  15564. while :; do
  15565. case $as_dir in #(
  15566. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15567. *) as_qdir=$as_dir;;
  15568. esac
  15569. as_dirs="'$as_qdir' $as_dirs"
  15570. as_dir=`$as_dirname -- "$as_dir" ||
  15571. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15572. X"$as_dir" : 'X\(//\)[^/]' \| \
  15573. X"$as_dir" : 'X\(//\)$' \| \
  15574. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15575. $as_echo X"$as_dir" |
  15576. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15577. s//\1/
  15578. q
  15579. }
  15580. /^X\(\/\/\)[^/].*/{
  15581. s//\1/
  15582. q
  15583. }
  15584. /^X\(\/\/\)$/{
  15585. s//\1/
  15586. q
  15587. }
  15588. /^X\(\/\).*/{
  15589. s//\1/
  15590. q
  15591. }
  15592. s/.*/./; q'`
  15593. test -d "$as_dir" && break
  15594. done
  15595. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15596. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15597. } # as_fn_mkdir_p
  15598. if mkdir -p . 2>/dev/null; then
  15599. as_mkdir_p='mkdir -p "$as_dir"'
  15600. else
  15601. test -d ./-p && rmdir ./-p
  15602. as_mkdir_p=false
  15603. fi
  15604. if test -x / >/dev/null 2>&1; then
  15605. as_test_x='test -x'
  15606. else
  15607. if ls -dL / >/dev/null 2>&1; then
  15608. as_ls_L_option=L
  15609. else
  15610. as_ls_L_option=
  15611. fi
  15612. as_test_x='
  15613. eval sh -c '\''
  15614. if test -d "$1"; then
  15615. test -d "$1/.";
  15616. else
  15617. case $1 in #(
  15618. -*)set "./$1";;
  15619. esac;
  15620. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15621. ???[sx]*):;;*)false;;esac;fi
  15622. '\'' sh
  15623. '
  15624. fi
  15625. as_executable_p=$as_test_x
  15626. # Sed expression to map a string onto a valid CPP name.
  15627. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15628. # Sed expression to map a string onto a valid variable name.
  15629. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15630. exec 6>&1
  15631. ## ----------------------------------- ##
  15632. ## Main body of $CONFIG_STATUS script. ##
  15633. ## ----------------------------------- ##
  15634. _ASEOF
  15635. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15636. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15637. # Save the log message, to keep $0 and so on meaningful, and to
  15638. # report actual input values of CONFIG_FILES etc. instead of their
  15639. # values after options handling.
  15640. ac_log="
  15641. This file was extended by vcmi $as_me 0.88b, which was
  15642. generated by GNU Autoconf 2.68. Invocation command line was
  15643. CONFIG_FILES = $CONFIG_FILES
  15644. CONFIG_HEADERS = $CONFIG_HEADERS
  15645. CONFIG_LINKS = $CONFIG_LINKS
  15646. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15647. $ $0 $@
  15648. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15649. "
  15650. _ACEOF
  15651. case $ac_config_files in *"
  15652. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15653. esac
  15654. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15655. # Files that config.status was made for.
  15656. config_files="$ac_config_files"
  15657. config_commands="$ac_config_commands"
  15658. _ACEOF
  15659. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15660. ac_cs_usage="\
  15661. \`$as_me' instantiates files and other configuration actions
  15662. from templates according to the current configuration. Unless the files
  15663. and actions are specified as TAGs, all are instantiated by default.
  15664. Usage: $0 [OPTION]... [TAG]...
  15665. -h, --help print this help, then exit
  15666. -V, --version print version number and configuration settings, then exit
  15667. --config print configuration, then exit
  15668. -q, --quiet, --silent
  15669. do not print progress messages
  15670. -d, --debug don't remove temporary files
  15671. --recheck update $as_me by reconfiguring in the same conditions
  15672. --file=FILE[:TEMPLATE]
  15673. instantiate the configuration file FILE
  15674. Configuration files:
  15675. $config_files
  15676. Configuration commands:
  15677. $config_commands
  15678. Report bugs to the package provider."
  15679. _ACEOF
  15680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15681. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15682. ac_cs_version="\\
  15683. vcmi config.status 0.88b
  15684. configured by $0, generated by GNU Autoconf 2.68,
  15685. with options \\"\$ac_cs_config\\"
  15686. Copyright (C) 2010 Free Software Foundation, Inc.
  15687. This config.status script is free software; the Free Software Foundation
  15688. gives unlimited permission to copy, distribute and modify it."
  15689. ac_pwd='$ac_pwd'
  15690. srcdir='$srcdir'
  15691. INSTALL='$INSTALL'
  15692. MKDIR_P='$MKDIR_P'
  15693. AWK='$AWK'
  15694. test -n "\$AWK" || AWK=awk
  15695. _ACEOF
  15696. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15697. # The default lists apply if the user does not specify any file.
  15698. ac_need_defaults=:
  15699. while test $# != 0
  15700. do
  15701. case $1 in
  15702. --*=?*)
  15703. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15704. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15705. ac_shift=:
  15706. ;;
  15707. --*=)
  15708. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15709. ac_optarg=
  15710. ac_shift=:
  15711. ;;
  15712. *)
  15713. ac_option=$1
  15714. ac_optarg=$2
  15715. ac_shift=shift
  15716. ;;
  15717. esac
  15718. case $ac_option in
  15719. # Handling of the options.
  15720. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15721. ac_cs_recheck=: ;;
  15722. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15723. $as_echo "$ac_cs_version"; exit ;;
  15724. --config | --confi | --conf | --con | --co | --c )
  15725. $as_echo "$ac_cs_config"; exit ;;
  15726. --debug | --debu | --deb | --de | --d | -d )
  15727. debug=: ;;
  15728. --file | --fil | --fi | --f )
  15729. $ac_shift
  15730. case $ac_optarg in
  15731. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15732. '') as_fn_error $? "missing file argument" ;;
  15733. esac
  15734. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15735. ac_need_defaults=false;;
  15736. --he | --h | --help | --hel | -h )
  15737. $as_echo "$ac_cs_usage"; exit ;;
  15738. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15739. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15740. ac_cs_silent=: ;;
  15741. # This is an error.
  15742. -*) as_fn_error $? "unrecognized option: \`$1'
  15743. Try \`$0 --help' for more information." ;;
  15744. *) as_fn_append ac_config_targets " $1"
  15745. ac_need_defaults=false ;;
  15746. esac
  15747. shift
  15748. done
  15749. ac_configure_extra_args=
  15750. if $ac_cs_silent; then
  15751. exec 6>/dev/null
  15752. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15753. fi
  15754. _ACEOF
  15755. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15756. if \$ac_cs_recheck; then
  15757. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15758. shift
  15759. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15760. CONFIG_SHELL='$SHELL'
  15761. export CONFIG_SHELL
  15762. exec "\$@"
  15763. fi
  15764. _ACEOF
  15765. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15766. exec 5>>config.log
  15767. {
  15768. echo
  15769. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15770. ## Running $as_me. ##
  15771. _ASBOX
  15772. $as_echo "$ac_log"
  15773. } >&5
  15774. _ACEOF
  15775. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15776. #
  15777. # INIT-COMMANDS
  15778. #
  15779. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15780. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15781. # if CDPATH is set.
  15782. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15783. sed_quote_subst='$sed_quote_subst'
  15784. double_quote_subst='$double_quote_subst'
  15785. delay_variable_subst='$delay_variable_subst'
  15786. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15787. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15788. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15789. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15790. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15791. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15792. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15793. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15794. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15795. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15796. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15797. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15798. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15799. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15800. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15801. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15802. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15803. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15804. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15805. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15806. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15807. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15808. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15809. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15810. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15811. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15812. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15813. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15814. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15815. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15816. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15817. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15818. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15819. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15820. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15821. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15822. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15823. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15824. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15825. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15826. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15827. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15828. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15829. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15830. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15831. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15832. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15833. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15834. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15835. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15836. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15837. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15838. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15839. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15840. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15841. 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"`'
  15842. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15843. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15844. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15845. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15846. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15847. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15848. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15849. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15850. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15851. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15852. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15853. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15854. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15855. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15856. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15857. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15858. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15859. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15860. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15861. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15862. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15863. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15864. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15865. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15866. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15867. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15868. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15869. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15870. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15871. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15872. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15873. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15874. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15875. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15876. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15877. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15878. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15879. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15880. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15881. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15882. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15883. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15884. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15885. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15886. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15887. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15888. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15889. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15890. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15891. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15892. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15893. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15894. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15895. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15896. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15897. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15898. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15899. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15900. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15901. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15902. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15903. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15904. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15905. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15906. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15907. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15908. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15909. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15910. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15911. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15912. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15913. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15914. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15915. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15916. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15917. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15918. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15919. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15920. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15921. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15922. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15923. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15924. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15925. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15926. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15927. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15928. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15929. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15930. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15931. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15932. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15933. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15934. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15935. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15936. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15937. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15938. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15939. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15940. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15941. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15942. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15943. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15944. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15945. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15946. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15947. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15948. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15949. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15950. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15951. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15952. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15953. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15954. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15955. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15956. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15957. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15958. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15959. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15960. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15961. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15962. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15963. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15964. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15965. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15966. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15967. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15968. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15969. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15970. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15971. LTCC='$LTCC'
  15972. LTCFLAGS='$LTCFLAGS'
  15973. compiler='$compiler_DEFAULT'
  15974. # A function that is used when there is no print builtin or printf.
  15975. func_fallback_echo ()
  15976. {
  15977. eval 'cat <<_LTECHO_EOF
  15978. \$1
  15979. _LTECHO_EOF'
  15980. }
  15981. # Quote evaled strings.
  15982. for var in SHELL \
  15983. ECHO \
  15984. SED \
  15985. GREP \
  15986. EGREP \
  15987. FGREP \
  15988. LD \
  15989. NM \
  15990. LN_S \
  15991. lt_SP2NL \
  15992. lt_NL2SP \
  15993. reload_flag \
  15994. OBJDUMP \
  15995. deplibs_check_method \
  15996. file_magic_cmd \
  15997. file_magic_glob \
  15998. want_nocaseglob \
  15999. DLLTOOL \
  16000. sharedlib_from_linklib_cmd \
  16001. AR \
  16002. AR_FLAGS \
  16003. archiver_list_spec \
  16004. STRIP \
  16005. RANLIB \
  16006. CC \
  16007. CFLAGS \
  16008. compiler \
  16009. lt_cv_sys_global_symbol_pipe \
  16010. lt_cv_sys_global_symbol_to_cdecl \
  16011. lt_cv_sys_global_symbol_to_c_name_address \
  16012. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16013. nm_file_list_spec \
  16014. lt_prog_compiler_no_builtin_flag \
  16015. lt_prog_compiler_pic \
  16016. lt_prog_compiler_wl \
  16017. lt_prog_compiler_static \
  16018. lt_cv_prog_compiler_c_o \
  16019. need_locks \
  16020. MANIFEST_TOOL \
  16021. DSYMUTIL \
  16022. NMEDIT \
  16023. LIPO \
  16024. OTOOL \
  16025. OTOOL64 \
  16026. shrext_cmds \
  16027. export_dynamic_flag_spec \
  16028. whole_archive_flag_spec \
  16029. compiler_needs_object \
  16030. with_gnu_ld \
  16031. allow_undefined_flag \
  16032. no_undefined_flag \
  16033. hardcode_libdir_flag_spec \
  16034. hardcode_libdir_flag_spec_ld \
  16035. hardcode_libdir_separator \
  16036. exclude_expsyms \
  16037. include_expsyms \
  16038. file_list_spec \
  16039. variables_saved_for_relink \
  16040. libname_spec \
  16041. library_names_spec \
  16042. soname_spec \
  16043. install_override_mode \
  16044. finish_eval \
  16045. old_striplib \
  16046. striplib \
  16047. compiler_lib_search_dirs \
  16048. predep_objects \
  16049. postdep_objects \
  16050. predeps \
  16051. postdeps \
  16052. compiler_lib_search_path \
  16053. LD_CXX \
  16054. reload_flag_CXX \
  16055. compiler_CXX \
  16056. lt_prog_compiler_no_builtin_flag_CXX \
  16057. lt_prog_compiler_pic_CXX \
  16058. lt_prog_compiler_wl_CXX \
  16059. lt_prog_compiler_static_CXX \
  16060. lt_cv_prog_compiler_c_o_CXX \
  16061. export_dynamic_flag_spec_CXX \
  16062. whole_archive_flag_spec_CXX \
  16063. compiler_needs_object_CXX \
  16064. with_gnu_ld_CXX \
  16065. allow_undefined_flag_CXX \
  16066. no_undefined_flag_CXX \
  16067. hardcode_libdir_flag_spec_CXX \
  16068. hardcode_libdir_flag_spec_ld_CXX \
  16069. hardcode_libdir_separator_CXX \
  16070. exclude_expsyms_CXX \
  16071. include_expsyms_CXX \
  16072. file_list_spec_CXX \
  16073. compiler_lib_search_dirs_CXX \
  16074. predep_objects_CXX \
  16075. postdep_objects_CXX \
  16076. predeps_CXX \
  16077. postdeps_CXX \
  16078. compiler_lib_search_path_CXX; do
  16079. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16080. *[\\\\\\\`\\"\\\$]*)
  16081. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16082. ;;
  16083. *)
  16084. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16085. ;;
  16086. esac
  16087. done
  16088. # Double-quote double-evaled strings.
  16089. for var in reload_cmds \
  16090. old_postinstall_cmds \
  16091. old_postuninstall_cmds \
  16092. old_archive_cmds \
  16093. extract_expsyms_cmds \
  16094. old_archive_from_new_cmds \
  16095. old_archive_from_expsyms_cmds \
  16096. archive_cmds \
  16097. archive_expsym_cmds \
  16098. module_cmds \
  16099. module_expsym_cmds \
  16100. export_symbols_cmds \
  16101. prelink_cmds \
  16102. postlink_cmds \
  16103. postinstall_cmds \
  16104. postuninstall_cmds \
  16105. finish_cmds \
  16106. sys_lib_search_path_spec \
  16107. sys_lib_dlsearch_path_spec \
  16108. reload_cmds_CXX \
  16109. old_archive_cmds_CXX \
  16110. old_archive_from_new_cmds_CXX \
  16111. old_archive_from_expsyms_cmds_CXX \
  16112. archive_cmds_CXX \
  16113. archive_expsym_cmds_CXX \
  16114. module_cmds_CXX \
  16115. module_expsym_cmds_CXX \
  16116. export_symbols_cmds_CXX \
  16117. prelink_cmds_CXX \
  16118. postlink_cmds_CXX; do
  16119. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16120. *[\\\\\\\`\\"\\\$]*)
  16121. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16122. ;;
  16123. *)
  16124. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16125. ;;
  16126. esac
  16127. done
  16128. ac_aux_dir='$ac_aux_dir'
  16129. xsi_shell='$xsi_shell'
  16130. lt_shell_append='$lt_shell_append'
  16131. # See if we are running on zsh, and set the options which allow our
  16132. # commands through without removal of \ escapes INIT.
  16133. if test -n "\${ZSH_VERSION+set}" ; then
  16134. setopt NO_GLOB_SUBST
  16135. fi
  16136. PACKAGE='$PACKAGE'
  16137. VERSION='$VERSION'
  16138. TIMESTAMP='$TIMESTAMP'
  16139. RM='$RM'
  16140. ofile='$ofile'
  16141. _ACEOF
  16142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16143. # Handling of arguments.
  16144. for ac_config_target in $ac_config_targets
  16145. do
  16146. case $ac_config_target in
  16147. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16148. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16149. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16150. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16151. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16152. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16153. "AI/FuzzyLite/Makefile") CONFIG_FILES="$CONFIG_FILES AI/FuzzyLite/Makefile" ;;
  16154. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16155. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  16156. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16157. "AI/VCAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/VCAI/Makefile" ;;
  16158. "Scripting/ERM/Makefile") CONFIG_FILES="$CONFIG_FILES Scripting/ERM/Makefile" ;;
  16159. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16160. esac
  16161. done
  16162. # If the user did not use the arguments to specify the items to instantiate,
  16163. # then the envvar interface is used. Set only those that are not.
  16164. # We use the long form for the default assignment because of an extremely
  16165. # bizarre bug on SunOS 4.1.3.
  16166. if $ac_need_defaults; then
  16167. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16168. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16169. fi
  16170. # Have a temporary directory for convenience. Make it in the build tree
  16171. # simply because there is no reason against having it here, and in addition,
  16172. # creating and moving files from /tmp can sometimes cause problems.
  16173. # Hook for its removal unless debugging.
  16174. # Note that there is a small window in which the directory will not be cleaned:
  16175. # after its creation but before its name has been assigned to `$tmp'.
  16176. $debug ||
  16177. {
  16178. tmp= ac_tmp=
  16179. trap 'exit_status=$?
  16180. : "${ac_tmp:=$tmp}"
  16181. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16182. ' 0
  16183. trap 'as_fn_exit 1' 1 2 13 15
  16184. }
  16185. # Create a (secure) tmp directory for tmp files.
  16186. {
  16187. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16188. test -d "$tmp"
  16189. } ||
  16190. {
  16191. tmp=./conf$$-$RANDOM
  16192. (umask 077 && mkdir "$tmp")
  16193. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16194. ac_tmp=$tmp
  16195. # Set up the scripts for CONFIG_FILES section.
  16196. # No need to generate them if there are no CONFIG_FILES.
  16197. # This happens for instance with `./config.status config.h'.
  16198. if test -n "$CONFIG_FILES"; then
  16199. ac_cr=`echo X | tr X '\015'`
  16200. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16201. # But we know of no other shell where ac_cr would be empty at this
  16202. # point, so we can use a bashism as a fallback.
  16203. if test "x$ac_cr" = x; then
  16204. eval ac_cr=\$\'\\r\'
  16205. fi
  16206. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16207. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16208. ac_cs_awk_cr='\\r'
  16209. else
  16210. ac_cs_awk_cr=$ac_cr
  16211. fi
  16212. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16213. _ACEOF
  16214. {
  16215. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16216. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16217. echo "_ACEOF"
  16218. } >conf$$subs.sh ||
  16219. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16220. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16221. ac_delim='%!_!# '
  16222. for ac_last_try in false false false false false :; do
  16223. . ./conf$$subs.sh ||
  16224. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16225. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16226. if test $ac_delim_n = $ac_delim_num; then
  16227. break
  16228. elif $ac_last_try; then
  16229. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16230. else
  16231. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16232. fi
  16233. done
  16234. rm -f conf$$subs.sh
  16235. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16236. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16237. _ACEOF
  16238. sed -n '
  16239. h
  16240. s/^/S["/; s/!.*/"]=/
  16241. p
  16242. g
  16243. s/^[^!]*!//
  16244. :repl
  16245. t repl
  16246. s/'"$ac_delim"'$//
  16247. t delim
  16248. :nl
  16249. h
  16250. s/\(.\{148\}\)..*/\1/
  16251. t more1
  16252. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16253. p
  16254. n
  16255. b repl
  16256. :more1
  16257. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16258. p
  16259. g
  16260. s/.\{148\}//
  16261. t nl
  16262. :delim
  16263. h
  16264. s/\(.\{148\}\)..*/\1/
  16265. t more2
  16266. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16267. p
  16268. b
  16269. :more2
  16270. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16271. p
  16272. g
  16273. s/.\{148\}//
  16274. t delim
  16275. ' <conf$$subs.awk | sed '
  16276. /^[^""]/{
  16277. N
  16278. s/\n//
  16279. }
  16280. ' >>$CONFIG_STATUS || ac_write_fail=1
  16281. rm -f conf$$subs.awk
  16282. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16283. _ACAWK
  16284. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16285. for (key in S) S_is_set[key] = 1
  16286. FS = ""
  16287. }
  16288. {
  16289. line = $ 0
  16290. nfields = split(line, field, "@")
  16291. substed = 0
  16292. len = length(field[1])
  16293. for (i = 2; i < nfields; i++) {
  16294. key = field[i]
  16295. keylen = length(key)
  16296. if (S_is_set[key]) {
  16297. value = S[key]
  16298. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16299. len += length(value) + length(field[++i])
  16300. substed = 1
  16301. } else
  16302. len += 1 + keylen
  16303. }
  16304. print line
  16305. }
  16306. _ACAWK
  16307. _ACEOF
  16308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16309. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16310. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16311. else
  16312. cat
  16313. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16314. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16315. _ACEOF
  16316. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16317. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16318. # trailing colons and then remove the whole line if VPATH becomes empty
  16319. # (actually we leave an empty line to preserve line numbers).
  16320. if test "x$srcdir" = x.; then
  16321. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16322. h
  16323. s///
  16324. s/^/:/
  16325. s/[ ]*$/:/
  16326. s/:\$(srcdir):/:/g
  16327. s/:\${srcdir}:/:/g
  16328. s/:@srcdir@:/:/g
  16329. s/^:*//
  16330. s/:*$//
  16331. x
  16332. s/\(=[ ]*\).*/\1/
  16333. G
  16334. s/\n//
  16335. s/^[^=]*=[ ]*$//
  16336. }'
  16337. fi
  16338. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16339. fi # test -n "$CONFIG_FILES"
  16340. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16341. shift
  16342. for ac_tag
  16343. do
  16344. case $ac_tag in
  16345. :[FHLC]) ac_mode=$ac_tag; continue;;
  16346. esac
  16347. case $ac_mode$ac_tag in
  16348. :[FHL]*:*);;
  16349. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16350. :[FH]-) ac_tag=-:-;;
  16351. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16352. esac
  16353. ac_save_IFS=$IFS
  16354. IFS=:
  16355. set x $ac_tag
  16356. IFS=$ac_save_IFS
  16357. shift
  16358. ac_file=$1
  16359. shift
  16360. case $ac_mode in
  16361. :L) ac_source=$1;;
  16362. :[FH])
  16363. ac_file_inputs=
  16364. for ac_f
  16365. do
  16366. case $ac_f in
  16367. -) ac_f="$ac_tmp/stdin";;
  16368. *) # Look for the file first in the build tree, then in the source tree
  16369. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16370. # because $ac_f cannot contain `:'.
  16371. test -f "$ac_f" ||
  16372. case $ac_f in
  16373. [\\/$]*) false;;
  16374. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16375. esac ||
  16376. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16377. esac
  16378. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16379. as_fn_append ac_file_inputs " '$ac_f'"
  16380. done
  16381. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16382. # use $as_me), people would be surprised to read:
  16383. # /* config.h. Generated by config.status. */
  16384. configure_input='Generated from '`
  16385. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16386. `' by configure.'
  16387. if test x"$ac_file" != x-; then
  16388. configure_input="$ac_file. $configure_input"
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16390. $as_echo "$as_me: creating $ac_file" >&6;}
  16391. fi
  16392. # Neutralize special characters interpreted by sed in replacement strings.
  16393. case $configure_input in #(
  16394. *\&* | *\|* | *\\* )
  16395. ac_sed_conf_input=`$as_echo "$configure_input" |
  16396. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16397. *) ac_sed_conf_input=$configure_input;;
  16398. esac
  16399. case $ac_tag in
  16400. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16401. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16402. esac
  16403. ;;
  16404. esac
  16405. ac_dir=`$as_dirname -- "$ac_file" ||
  16406. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16407. X"$ac_file" : 'X\(//\)[^/]' \| \
  16408. X"$ac_file" : 'X\(//\)$' \| \
  16409. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16410. $as_echo X"$ac_file" |
  16411. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16412. s//\1/
  16413. q
  16414. }
  16415. /^X\(\/\/\)[^/].*/{
  16416. s//\1/
  16417. q
  16418. }
  16419. /^X\(\/\/\)$/{
  16420. s//\1/
  16421. q
  16422. }
  16423. /^X\(\/\).*/{
  16424. s//\1/
  16425. q
  16426. }
  16427. s/.*/./; q'`
  16428. as_dir="$ac_dir"; as_fn_mkdir_p
  16429. ac_builddir=.
  16430. case "$ac_dir" in
  16431. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16432. *)
  16433. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16434. # A ".." for each directory in $ac_dir_suffix.
  16435. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16436. case $ac_top_builddir_sub in
  16437. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16438. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16439. esac ;;
  16440. esac
  16441. ac_abs_top_builddir=$ac_pwd
  16442. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16443. # for backward compatibility:
  16444. ac_top_builddir=$ac_top_build_prefix
  16445. case $srcdir in
  16446. .) # We are building in place.
  16447. ac_srcdir=.
  16448. ac_top_srcdir=$ac_top_builddir_sub
  16449. ac_abs_top_srcdir=$ac_pwd ;;
  16450. [\\/]* | ?:[\\/]* ) # Absolute name.
  16451. ac_srcdir=$srcdir$ac_dir_suffix;
  16452. ac_top_srcdir=$srcdir
  16453. ac_abs_top_srcdir=$srcdir ;;
  16454. *) # Relative name.
  16455. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16456. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16457. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16458. esac
  16459. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16460. case $ac_mode in
  16461. :F)
  16462. #
  16463. # CONFIG_FILE
  16464. #
  16465. case $INSTALL in
  16466. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16467. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16468. esac
  16469. ac_MKDIR_P=$MKDIR_P
  16470. case $MKDIR_P in
  16471. [\\/$]* | ?:[\\/]* ) ;;
  16472. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16473. esac
  16474. _ACEOF
  16475. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16476. # If the template does not know about datarootdir, expand it.
  16477. # FIXME: This hack should be removed a few years after 2.60.
  16478. ac_datarootdir_hack=; ac_datarootdir_seen=
  16479. ac_sed_dataroot='
  16480. /datarootdir/ {
  16481. p
  16482. q
  16483. }
  16484. /@datadir@/p
  16485. /@docdir@/p
  16486. /@infodir@/p
  16487. /@localedir@/p
  16488. /@mandir@/p'
  16489. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16490. *datarootdir*) ac_datarootdir_seen=yes;;
  16491. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16493. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16494. _ACEOF
  16495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16496. ac_datarootdir_hack='
  16497. s&@datadir@&$datadir&g
  16498. s&@docdir@&$docdir&g
  16499. s&@infodir@&$infodir&g
  16500. s&@localedir@&$localedir&g
  16501. s&@mandir@&$mandir&g
  16502. s&\\\${datarootdir}&$datarootdir&g' ;;
  16503. esac
  16504. _ACEOF
  16505. # Neutralize VPATH when `$srcdir' = `.'.
  16506. # Shell code in configure.ac might set extrasub.
  16507. # FIXME: do we really want to maintain this feature?
  16508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16509. ac_sed_extra="$ac_vpsub
  16510. $extrasub
  16511. _ACEOF
  16512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16513. :t
  16514. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16515. s|@configure_input@|$ac_sed_conf_input|;t t
  16516. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16517. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16518. s&@srcdir@&$ac_srcdir&;t t
  16519. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16520. s&@top_srcdir@&$ac_top_srcdir&;t t
  16521. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16522. s&@builddir@&$ac_builddir&;t t
  16523. s&@abs_builddir@&$ac_abs_builddir&;t t
  16524. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16525. s&@INSTALL@&$ac_INSTALL&;t t
  16526. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16527. $ac_datarootdir_hack
  16528. "
  16529. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16530. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16531. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16532. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16533. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16534. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16536. which seems to be undefined. Please make sure it is defined" >&5
  16537. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16538. which seems to be undefined. Please make sure it is defined" >&2;}
  16539. rm -f "$ac_tmp/stdin"
  16540. case $ac_file in
  16541. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16542. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16543. esac \
  16544. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16545. ;;
  16546. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16547. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16548. ;;
  16549. esac
  16550. case $ac_file$ac_mode in
  16551. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16552. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16553. # are listed without --file. Let's play safe and only enable the eval
  16554. # if we detect the quoting.
  16555. case $CONFIG_FILES in
  16556. *\'*) eval set x "$CONFIG_FILES" ;;
  16557. *) set x $CONFIG_FILES ;;
  16558. esac
  16559. shift
  16560. for mf
  16561. do
  16562. # Strip MF so we end up with the name of the file.
  16563. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16564. # Check whether this is an Automake generated Makefile or not.
  16565. # We used to match only the files named `Makefile.in', but
  16566. # some people rename them; so instead we look at the file content.
  16567. # Grep'ing the first line is not enough: some people post-process
  16568. # each Makefile.in and add a new line on top of each file to say so.
  16569. # Grep'ing the whole file is not good either: AIX grep has a line
  16570. # limit of 2048, but all sed's we know have understand at least 4000.
  16571. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16572. dirpart=`$as_dirname -- "$mf" ||
  16573. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16574. X"$mf" : 'X\(//\)[^/]' \| \
  16575. X"$mf" : 'X\(//\)$' \| \
  16576. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16577. $as_echo X"$mf" |
  16578. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16579. s//\1/
  16580. q
  16581. }
  16582. /^X\(\/\/\)[^/].*/{
  16583. s//\1/
  16584. q
  16585. }
  16586. /^X\(\/\/\)$/{
  16587. s//\1/
  16588. q
  16589. }
  16590. /^X\(\/\).*/{
  16591. s//\1/
  16592. q
  16593. }
  16594. s/.*/./; q'`
  16595. else
  16596. continue
  16597. fi
  16598. # Extract the definition of DEPDIR, am__include, and am__quote
  16599. # from the Makefile without running `make'.
  16600. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16601. test -z "$DEPDIR" && continue
  16602. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16603. test -z "am__include" && continue
  16604. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16605. # When using ansi2knr, U may be empty or an underscore; expand it
  16606. U=`sed -n 's/^U = //p' < "$mf"`
  16607. # Find all dependency output files, they are included files with
  16608. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16609. # simplest approach to changing $(DEPDIR) to its actual value in the
  16610. # expansion.
  16611. for file in `sed -n "
  16612. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16613. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16614. # Make sure the directory exists.
  16615. test -f "$dirpart/$file" && continue
  16616. fdir=`$as_dirname -- "$file" ||
  16617. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16618. X"$file" : 'X\(//\)[^/]' \| \
  16619. X"$file" : 'X\(//\)$' \| \
  16620. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16621. $as_echo X"$file" |
  16622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16623. s//\1/
  16624. q
  16625. }
  16626. /^X\(\/\/\)[^/].*/{
  16627. s//\1/
  16628. q
  16629. }
  16630. /^X\(\/\/\)$/{
  16631. s//\1/
  16632. q
  16633. }
  16634. /^X\(\/\).*/{
  16635. s//\1/
  16636. q
  16637. }
  16638. s/.*/./; q'`
  16639. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16640. # echo "creating $dirpart/$file"
  16641. echo '# dummy' > "$dirpart/$file"
  16642. done
  16643. done
  16644. }
  16645. ;;
  16646. "libtool":C)
  16647. # See if we are running on zsh, and set the options which allow our
  16648. # commands through without removal of \ escapes.
  16649. if test -n "${ZSH_VERSION+set}" ; then
  16650. setopt NO_GLOB_SUBST
  16651. fi
  16652. cfgfile="${ofile}T"
  16653. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16654. $RM "$cfgfile"
  16655. cat <<_LT_EOF >> "$cfgfile"
  16656. #! $SHELL
  16657. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16658. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16659. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16660. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16661. #
  16662. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16663. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  16664. # Inc.
  16665. # Written by Gordon Matzigkeit, 1996
  16666. #
  16667. # This file is part of GNU Libtool.
  16668. #
  16669. # GNU Libtool is free software; you can redistribute it and/or
  16670. # modify it under the terms of the GNU General Public License as
  16671. # published by the Free Software Foundation; either version 2 of
  16672. # the License, or (at your option) any later version.
  16673. #
  16674. # As a special exception to the GNU General Public License,
  16675. # if you distribute this file as part of a program or library that
  16676. # is built using GNU Libtool, you may include this file under the
  16677. # same distribution terms that you use for the rest of that program.
  16678. #
  16679. # GNU Libtool is distributed in the hope that it will be useful,
  16680. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16681. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16682. # GNU General Public License for more details.
  16683. #
  16684. # You should have received a copy of the GNU General Public License
  16685. # along with GNU Libtool; see the file COPYING. If not, a copy
  16686. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16687. # obtained by writing to the Free Software Foundation, Inc.,
  16688. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16689. # The names of the tagged configurations supported by this script.
  16690. available_tags="CXX "
  16691. # ### BEGIN LIBTOOL CONFIG
  16692. # Whether or not to build shared libraries.
  16693. build_libtool_libs=$enable_shared
  16694. # Whether or not to build static libraries.
  16695. build_old_libs=$enable_static
  16696. # Which release of libtool.m4 was used?
  16697. macro_version=$macro_version
  16698. macro_revision=$macro_revision
  16699. # What type of objects to build.
  16700. pic_mode=$pic_mode
  16701. # Whether or not to optimize for fast installation.
  16702. fast_install=$enable_fast_install
  16703. # Shell to use when invoking shell scripts.
  16704. SHELL=$lt_SHELL
  16705. # An echo program that protects backslashes.
  16706. ECHO=$lt_ECHO
  16707. # The host system.
  16708. host_alias=$host_alias
  16709. host=$host
  16710. host_os=$host_os
  16711. # The build system.
  16712. build_alias=$build_alias
  16713. build=$build
  16714. build_os=$build_os
  16715. # A sed program that does not truncate output.
  16716. SED=$lt_SED
  16717. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16718. Xsed="\$SED -e 1s/^X//"
  16719. # A grep program that handles long lines.
  16720. GREP=$lt_GREP
  16721. # An ERE matcher.
  16722. EGREP=$lt_EGREP
  16723. # A literal string matcher.
  16724. FGREP=$lt_FGREP
  16725. # A BSD- or MS-compatible name lister.
  16726. NM=$lt_NM
  16727. # Whether we need soft or hard links.
  16728. LN_S=$lt_LN_S
  16729. # What is the maximum length of a command?
  16730. max_cmd_len=$max_cmd_len
  16731. # Object file suffix (normally "o").
  16732. objext=$ac_objext
  16733. # Executable file suffix (normally "").
  16734. exeext=$exeext
  16735. # whether the shell understands "unset".
  16736. lt_unset=$lt_unset
  16737. # turn spaces into newlines.
  16738. SP2NL=$lt_lt_SP2NL
  16739. # turn newlines into spaces.
  16740. NL2SP=$lt_lt_NL2SP
  16741. # convert \$build file names to \$host format.
  16742. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16743. # convert \$build files to toolchain format.
  16744. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16745. # An object symbol dumper.
  16746. OBJDUMP=$lt_OBJDUMP
  16747. # Method to check whether dependent libraries are shared objects.
  16748. deplibs_check_method=$lt_deplibs_check_method
  16749. # Command to use when deplibs_check_method = "file_magic".
  16750. file_magic_cmd=$lt_file_magic_cmd
  16751. # How to find potential files when deplibs_check_method = "file_magic".
  16752. file_magic_glob=$lt_file_magic_glob
  16753. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16754. want_nocaseglob=$lt_want_nocaseglob
  16755. # DLL creation program.
  16756. DLLTOOL=$lt_DLLTOOL
  16757. # Command to associate shared and link libraries.
  16758. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16759. # The archiver.
  16760. AR=$lt_AR
  16761. # Flags to create an archive.
  16762. AR_FLAGS=$lt_AR_FLAGS
  16763. # How to feed a file listing to the archiver.
  16764. archiver_list_spec=$lt_archiver_list_spec
  16765. # A symbol stripping program.
  16766. STRIP=$lt_STRIP
  16767. # Commands used to install an old-style archive.
  16768. RANLIB=$lt_RANLIB
  16769. old_postinstall_cmds=$lt_old_postinstall_cmds
  16770. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16771. # Whether to use a lock for old archive extraction.
  16772. lock_old_archive_extraction=$lock_old_archive_extraction
  16773. # A C compiler.
  16774. LTCC=$lt_CC
  16775. # LTCC compiler flags.
  16776. LTCFLAGS=$lt_CFLAGS
  16777. # Take the output of nm and produce a listing of raw symbols and C names.
  16778. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16779. # Transform the output of nm in a proper C declaration.
  16780. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16781. # Transform the output of nm in a C name address pair.
  16782. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16783. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16784. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16785. # Specify filename containing input files for \$NM.
  16786. nm_file_list_spec=$lt_nm_file_list_spec
  16787. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16788. lt_sysroot=$lt_sysroot
  16789. # The name of the directory that contains temporary libtool files.
  16790. objdir=$objdir
  16791. # Used to examine libraries when file_magic_cmd begins with "file".
  16792. MAGIC_CMD=$MAGIC_CMD
  16793. # Must we lock files when doing compilation?
  16794. need_locks=$lt_need_locks
  16795. # Manifest tool.
  16796. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16797. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16798. DSYMUTIL=$lt_DSYMUTIL
  16799. # Tool to change global to local symbols on Mac OS X.
  16800. NMEDIT=$lt_NMEDIT
  16801. # Tool to manipulate fat objects and archives on Mac OS X.
  16802. LIPO=$lt_LIPO
  16803. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16804. OTOOL=$lt_OTOOL
  16805. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16806. OTOOL64=$lt_OTOOL64
  16807. # Old archive suffix (normally "a").
  16808. libext=$libext
  16809. # Shared library suffix (normally ".so").
  16810. shrext_cmds=$lt_shrext_cmds
  16811. # The commands to extract the exported symbol list from a shared archive.
  16812. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16813. # Variables whose values should be saved in libtool wrapper scripts and
  16814. # restored at link time.
  16815. variables_saved_for_relink=$lt_variables_saved_for_relink
  16816. # Do we need the "lib" prefix for modules?
  16817. need_lib_prefix=$need_lib_prefix
  16818. # Do we need a version for libraries?
  16819. need_version=$need_version
  16820. # Library versioning type.
  16821. version_type=$version_type
  16822. # Shared library runtime path variable.
  16823. runpath_var=$runpath_var
  16824. # Shared library path variable.
  16825. shlibpath_var=$shlibpath_var
  16826. # Is shlibpath searched before the hard-coded library search path?
  16827. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16828. # Format of library name prefix.
  16829. libname_spec=$lt_libname_spec
  16830. # List of archive names. First name is the real one, the rest are links.
  16831. # The last name is the one that the linker finds with -lNAME
  16832. library_names_spec=$lt_library_names_spec
  16833. # The coded name of the library, if different from the real name.
  16834. soname_spec=$lt_soname_spec
  16835. # Permission mode override for installation of shared libraries.
  16836. install_override_mode=$lt_install_override_mode
  16837. # Command to use after installation of a shared archive.
  16838. postinstall_cmds=$lt_postinstall_cmds
  16839. # Command to use after uninstallation of a shared archive.
  16840. postuninstall_cmds=$lt_postuninstall_cmds
  16841. # Commands used to finish a libtool library installation in a directory.
  16842. finish_cmds=$lt_finish_cmds
  16843. # As "finish_cmds", except a single script fragment to be evaled but
  16844. # not shown.
  16845. finish_eval=$lt_finish_eval
  16846. # Whether we should hardcode library paths into libraries.
  16847. hardcode_into_libs=$hardcode_into_libs
  16848. # Compile-time system search path for libraries.
  16849. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16850. # Run-time system search path for libraries.
  16851. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16852. # Whether dlopen is supported.
  16853. dlopen_support=$enable_dlopen
  16854. # Whether dlopen of programs is supported.
  16855. dlopen_self=$enable_dlopen_self
  16856. # Whether dlopen of statically linked programs is supported.
  16857. dlopen_self_static=$enable_dlopen_self_static
  16858. # Commands to strip libraries.
  16859. old_striplib=$lt_old_striplib
  16860. striplib=$lt_striplib
  16861. # The linker used to build libraries.
  16862. LD=$lt_LD
  16863. # How to create reloadable object files.
  16864. reload_flag=$lt_reload_flag
  16865. reload_cmds=$lt_reload_cmds
  16866. # Commands used to build an old-style archive.
  16867. old_archive_cmds=$lt_old_archive_cmds
  16868. # A language specific compiler.
  16869. CC=$lt_compiler
  16870. # Is the compiler the GNU compiler?
  16871. with_gcc=$GCC
  16872. # Compiler flag to turn off builtin functions.
  16873. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16874. # Additional compiler flags for building library objects.
  16875. pic_flag=$lt_lt_prog_compiler_pic
  16876. # How to pass a linker flag through the compiler.
  16877. wl=$lt_lt_prog_compiler_wl
  16878. # Compiler flag to prevent dynamic linking.
  16879. link_static_flag=$lt_lt_prog_compiler_static
  16880. # Does compiler simultaneously support -c and -o options?
  16881. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16882. # Whether or not to add -lc for building shared libraries.
  16883. build_libtool_need_lc=$archive_cmds_need_lc
  16884. # Whether or not to disallow shared libs when runtime libs are static.
  16885. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16886. # Compiler flag to allow reflexive dlopens.
  16887. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16888. # Compiler flag to generate shared objects directly from archives.
  16889. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16890. # Whether the compiler copes with passing no objects directly.
  16891. compiler_needs_object=$lt_compiler_needs_object
  16892. # Create an old-style archive from a shared archive.
  16893. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16894. # Create a temporary old-style archive to link instead of a shared archive.
  16895. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16896. # Commands used to build a shared archive.
  16897. archive_cmds=$lt_archive_cmds
  16898. archive_expsym_cmds=$lt_archive_expsym_cmds
  16899. # Commands used to build a loadable module if different from building
  16900. # a shared archive.
  16901. module_cmds=$lt_module_cmds
  16902. module_expsym_cmds=$lt_module_expsym_cmds
  16903. # Whether we are building with GNU ld or not.
  16904. with_gnu_ld=$lt_with_gnu_ld
  16905. # Flag that allows shared libraries with undefined symbols to be built.
  16906. allow_undefined_flag=$lt_allow_undefined_flag
  16907. # Flag that enforces no undefined symbols.
  16908. no_undefined_flag=$lt_no_undefined_flag
  16909. # Flag to hardcode \$libdir into a binary during linking.
  16910. # This must work even if \$libdir does not exist
  16911. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16912. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16913. # during linking. This must work even if \$libdir does not exist.
  16914. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16915. # Whether we need a single "-rpath" flag with a separated argument.
  16916. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16917. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16918. # DIR into the resulting binary.
  16919. hardcode_direct=$hardcode_direct
  16920. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16921. # DIR into the resulting binary and the resulting library dependency is
  16922. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16923. # library is relocated.
  16924. hardcode_direct_absolute=$hardcode_direct_absolute
  16925. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16926. # into the resulting binary.
  16927. hardcode_minus_L=$hardcode_minus_L
  16928. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16929. # into the resulting binary.
  16930. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16931. # Set to "yes" if building a shared library automatically hardcodes DIR
  16932. # into the library and all subsequent libraries and executables linked
  16933. # against it.
  16934. hardcode_automatic=$hardcode_automatic
  16935. # Set to yes if linker adds runtime paths of dependent libraries
  16936. # to runtime path list.
  16937. inherit_rpath=$inherit_rpath
  16938. # Whether libtool must link a program against all its dependency libraries.
  16939. link_all_deplibs=$link_all_deplibs
  16940. # Set to "yes" if exported symbols are required.
  16941. always_export_symbols=$always_export_symbols
  16942. # The commands to list exported symbols.
  16943. export_symbols_cmds=$lt_export_symbols_cmds
  16944. # Symbols that should not be listed in the preloaded symbols.
  16945. exclude_expsyms=$lt_exclude_expsyms
  16946. # Symbols that must always be exported.
  16947. include_expsyms=$lt_include_expsyms
  16948. # Commands necessary for linking programs (against libraries) with templates.
  16949. prelink_cmds=$lt_prelink_cmds
  16950. # Commands necessary for finishing linking programs.
  16951. postlink_cmds=$lt_postlink_cmds
  16952. # Specify filename containing input files.
  16953. file_list_spec=$lt_file_list_spec
  16954. # How to hardcode a shared library path into an executable.
  16955. hardcode_action=$hardcode_action
  16956. # The directories searched by this compiler when creating a shared library.
  16957. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16958. # Dependencies to place before and after the objects being linked to
  16959. # create a shared library.
  16960. predep_objects=$lt_predep_objects
  16961. postdep_objects=$lt_postdep_objects
  16962. predeps=$lt_predeps
  16963. postdeps=$lt_postdeps
  16964. # The library search path used internally by the compiler when linking
  16965. # a shared library.
  16966. compiler_lib_search_path=$lt_compiler_lib_search_path
  16967. # ### END LIBTOOL CONFIG
  16968. _LT_EOF
  16969. case $host_os in
  16970. aix3*)
  16971. cat <<\_LT_EOF >> "$cfgfile"
  16972. # AIX sometimes has problems with the GCC collect2 program. For some
  16973. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16974. # vanish in a puff of smoke.
  16975. if test "X${COLLECT_NAMES+set}" != Xset; then
  16976. COLLECT_NAMES=
  16977. export COLLECT_NAMES
  16978. fi
  16979. _LT_EOF
  16980. ;;
  16981. esac
  16982. ltmain="$ac_aux_dir/ltmain.sh"
  16983. # We use sed instead of cat because bash on DJGPP gets confused if
  16984. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16985. # text mode, it properly converts lines to CR/LF. This bash problem
  16986. # is reportedly fixed, but why not run on old versions too?
  16987. sed '$q' "$ltmain" >> "$cfgfile" \
  16988. || (rm -f "$cfgfile"; exit 1)
  16989. if test x"$xsi_shell" = xyes; then
  16990. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16991. func_dirname ()\
  16992. {\
  16993. \ case ${1} in\
  16994. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16995. \ * ) func_dirname_result="${3}" ;;\
  16996. \ esac\
  16997. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16998. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16999. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17000. test 0 -eq $? || _lt_function_replace_fail=:
  17001. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17002. func_basename ()\
  17003. {\
  17004. \ func_basename_result="${1##*/}"\
  17005. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17006. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17007. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17008. test 0 -eq $? || _lt_function_replace_fail=:
  17009. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17010. func_dirname_and_basename ()\
  17011. {\
  17012. \ case ${1} in\
  17013. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17014. \ * ) func_dirname_result="${3}" ;;\
  17015. \ esac\
  17016. \ func_basename_result="${1##*/}"\
  17017. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17018. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17019. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17020. test 0 -eq $? || _lt_function_replace_fail=:
  17021. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17022. func_stripname ()\
  17023. {\
  17024. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17025. \ # positional parameters, so assign one to ordinary parameter first.\
  17026. \ func_stripname_result=${3}\
  17027. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17028. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17029. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17030. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17031. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17032. test 0 -eq $? || _lt_function_replace_fail=:
  17033. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17034. func_split_long_opt ()\
  17035. {\
  17036. \ func_split_long_opt_name=${1%%=*}\
  17037. \ func_split_long_opt_arg=${1#*=}\
  17038. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17039. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17040. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17041. test 0 -eq $? || _lt_function_replace_fail=:
  17042. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17043. func_split_short_opt ()\
  17044. {\
  17045. \ func_split_short_opt_arg=${1#??}\
  17046. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17047. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17048. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17049. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17050. test 0 -eq $? || _lt_function_replace_fail=:
  17051. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17052. func_lo2o ()\
  17053. {\
  17054. \ case ${1} in\
  17055. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17056. \ *) func_lo2o_result=${1} ;;\
  17057. \ esac\
  17058. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17059. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17060. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17061. test 0 -eq $? || _lt_function_replace_fail=:
  17062. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17063. func_xform ()\
  17064. {\
  17065. func_xform_result=${1%.*}.lo\
  17066. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17067. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17068. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17069. test 0 -eq $? || _lt_function_replace_fail=:
  17070. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17071. func_arith ()\
  17072. {\
  17073. func_arith_result=$(( $* ))\
  17074. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17075. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17076. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17077. test 0 -eq $? || _lt_function_replace_fail=:
  17078. sed -e '/^func_len ()$/,/^} # func_len /c\
  17079. func_len ()\
  17080. {\
  17081. func_len_result=${#1}\
  17082. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17083. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17084. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17085. test 0 -eq $? || _lt_function_replace_fail=:
  17086. fi
  17087. if test x"$lt_shell_append" = xyes; then
  17088. sed -e '/^func_append ()$/,/^} # func_append /c\
  17089. func_append ()\
  17090. {\
  17091. eval "${1}+=\\${2}"\
  17092. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17093. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17094. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17095. test 0 -eq $? || _lt_function_replace_fail=:
  17096. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17097. func_append_quoted ()\
  17098. {\
  17099. \ func_quote_for_eval "${2}"\
  17100. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17101. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17102. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17103. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17104. test 0 -eq $? || _lt_function_replace_fail=:
  17105. # Save a `func_append' function call where possible by direct use of '+='
  17106. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17107. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17108. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17109. test 0 -eq $? || _lt_function_replace_fail=:
  17110. else
  17111. # Save a `func_append' function call even when '+=' is not available
  17112. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17113. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17114. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17115. test 0 -eq $? || _lt_function_replace_fail=:
  17116. fi
  17117. if test x"$_lt_function_replace_fail" = x":"; then
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17119. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17120. fi
  17121. mv -f "$cfgfile" "$ofile" ||
  17122. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17123. chmod +x "$ofile"
  17124. cat <<_LT_EOF >> "$ofile"
  17125. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17126. # The linker used to build libraries.
  17127. LD=$lt_LD_CXX
  17128. # How to create reloadable object files.
  17129. reload_flag=$lt_reload_flag_CXX
  17130. reload_cmds=$lt_reload_cmds_CXX
  17131. # Commands used to build an old-style archive.
  17132. old_archive_cmds=$lt_old_archive_cmds_CXX
  17133. # A language specific compiler.
  17134. CC=$lt_compiler_CXX
  17135. # Is the compiler the GNU compiler?
  17136. with_gcc=$GCC_CXX
  17137. # Compiler flag to turn off builtin functions.
  17138. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17139. # Additional compiler flags for building library objects.
  17140. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17141. # How to pass a linker flag through the compiler.
  17142. wl=$lt_lt_prog_compiler_wl_CXX
  17143. # Compiler flag to prevent dynamic linking.
  17144. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17145. # Does compiler simultaneously support -c and -o options?
  17146. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17147. # Whether or not to add -lc for building shared libraries.
  17148. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17149. # Whether or not to disallow shared libs when runtime libs are static.
  17150. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17151. # Compiler flag to allow reflexive dlopens.
  17152. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17153. # Compiler flag to generate shared objects directly from archives.
  17154. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17155. # Whether the compiler copes with passing no objects directly.
  17156. compiler_needs_object=$lt_compiler_needs_object_CXX
  17157. # Create an old-style archive from a shared archive.
  17158. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17159. # Create a temporary old-style archive to link instead of a shared archive.
  17160. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17161. # Commands used to build a shared archive.
  17162. archive_cmds=$lt_archive_cmds_CXX
  17163. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17164. # Commands used to build a loadable module if different from building
  17165. # a shared archive.
  17166. module_cmds=$lt_module_cmds_CXX
  17167. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17168. # Whether we are building with GNU ld or not.
  17169. with_gnu_ld=$lt_with_gnu_ld_CXX
  17170. # Flag that allows shared libraries with undefined symbols to be built.
  17171. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17172. # Flag that enforces no undefined symbols.
  17173. no_undefined_flag=$lt_no_undefined_flag_CXX
  17174. # Flag to hardcode \$libdir into a binary during linking.
  17175. # This must work even if \$libdir does not exist
  17176. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17177. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17178. # during linking. This must work even if \$libdir does not exist.
  17179. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17180. # Whether we need a single "-rpath" flag with a separated argument.
  17181. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17182. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17183. # DIR into the resulting binary.
  17184. hardcode_direct=$hardcode_direct_CXX
  17185. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17186. # DIR into the resulting binary and the resulting library dependency is
  17187. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17188. # library is relocated.
  17189. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17190. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17191. # into the resulting binary.
  17192. hardcode_minus_L=$hardcode_minus_L_CXX
  17193. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17194. # into the resulting binary.
  17195. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17196. # Set to "yes" if building a shared library automatically hardcodes DIR
  17197. # into the library and all subsequent libraries and executables linked
  17198. # against it.
  17199. hardcode_automatic=$hardcode_automatic_CXX
  17200. # Set to yes if linker adds runtime paths of dependent libraries
  17201. # to runtime path list.
  17202. inherit_rpath=$inherit_rpath_CXX
  17203. # Whether libtool must link a program against all its dependency libraries.
  17204. link_all_deplibs=$link_all_deplibs_CXX
  17205. # Set to "yes" if exported symbols are required.
  17206. always_export_symbols=$always_export_symbols_CXX
  17207. # The commands to list exported symbols.
  17208. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17209. # Symbols that should not be listed in the preloaded symbols.
  17210. exclude_expsyms=$lt_exclude_expsyms_CXX
  17211. # Symbols that must always be exported.
  17212. include_expsyms=$lt_include_expsyms_CXX
  17213. # Commands necessary for linking programs (against libraries) with templates.
  17214. prelink_cmds=$lt_prelink_cmds_CXX
  17215. # Commands necessary for finishing linking programs.
  17216. postlink_cmds=$lt_postlink_cmds_CXX
  17217. # Specify filename containing input files.
  17218. file_list_spec=$lt_file_list_spec_CXX
  17219. # How to hardcode a shared library path into an executable.
  17220. hardcode_action=$hardcode_action_CXX
  17221. # The directories searched by this compiler when creating a shared library.
  17222. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17223. # Dependencies to place before and after the objects being linked to
  17224. # create a shared library.
  17225. predep_objects=$lt_predep_objects_CXX
  17226. postdep_objects=$lt_postdep_objects_CXX
  17227. predeps=$lt_predeps_CXX
  17228. postdeps=$lt_postdeps_CXX
  17229. # The library search path used internally by the compiler when linking
  17230. # a shared library.
  17231. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17232. # ### END LIBTOOL TAG CONFIG: CXX
  17233. _LT_EOF
  17234. ;;
  17235. esac
  17236. done # for ac_tag
  17237. as_fn_exit 0
  17238. _ACEOF
  17239. ac_clean_files=$ac_clean_files_save
  17240. test $ac_write_fail = 0 ||
  17241. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17242. # configure is writing to config.log, and then calls config.status.
  17243. # config.status does its own redirection, appending to config.log.
  17244. # Unfortunately, on DOS this fails, as config.log is still kept open
  17245. # by configure, so config.status won't be able to write to it; its
  17246. # output is simply discarded. So we exec the FD to /dev/null,
  17247. # effectively closing config.log, so it can be properly (re)opened and
  17248. # appended to by config.status. When coming back to configure, we
  17249. # need to make the FD available again.
  17250. if test "$no_create" != yes; then
  17251. ac_cs_success=:
  17252. ac_config_status_args=
  17253. test "$silent" = yes &&
  17254. ac_config_status_args="$ac_config_status_args --quiet"
  17255. exec 5>/dev/null
  17256. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17257. exec 5>>config.log
  17258. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17259. # would make configure fail if this is the last instruction.
  17260. $ac_cs_success || as_fn_exit 1
  17261. fi
  17262. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17264. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17265. fi