configure 595 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for vcmi 0.84b.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. 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.84b'
  522. PACKAGE_STRING='vcmi 0.84b'
  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. HAVE_SDL_CONFIG
  571. BOOST_PROGRAM_OPTIONS_LIB
  572. BOOST_IOSTREAMS_LIB
  573. BOOST_THREAD_LIB
  574. BOOST_FILESYSTEM_LIB
  575. BOOST_SYSTEM_LIB
  576. BOOST_LDFLAGS
  577. BOOST_CPPFLAGS
  578. AM_BACKSLASH
  579. AM_DEFAULT_VERBOSITY
  580. CXXCPP
  581. CPP
  582. OTOOL64
  583. OTOOL
  584. LIPO
  585. NMEDIT
  586. DSYMUTIL
  587. MANIFEST_TOOL
  588. RANLIB
  589. ac_ct_AR
  590. AR
  591. DLLTOOL
  592. OBJDUMP
  593. LN_S
  594. NM
  595. ac_ct_DUMPBIN
  596. DUMPBIN
  597. LD
  598. FGREP
  599. EGREP
  600. GREP
  601. SED
  602. am__fastdepCC_FALSE
  603. am__fastdepCC_TRUE
  604. CCDEPMODE
  605. ac_ct_CC
  606. CFLAGS
  607. CC
  608. host_os
  609. host_vendor
  610. host_cpu
  611. host
  612. build_os
  613. build_vendor
  614. build_cpu
  615. build
  616. LIBTOOL
  617. am__fastdepCXX_FALSE
  618. am__fastdepCXX_TRUE
  619. CXXDEPMODE
  620. AMDEPBACKSLASH
  621. AMDEP_FALSE
  622. AMDEP_TRUE
  623. am__quote
  624. am__include
  625. DEPDIR
  626. OBJEXT
  627. EXEEXT
  628. ac_ct_CXX
  629. CPPFLAGS
  630. LDFLAGS
  631. CXXFLAGS
  632. CXX
  633. am__untar
  634. am__tar
  635. AMTAR
  636. am__leading_dot
  637. SET_MAKE
  638. AWK
  639. mkdir_p
  640. MKDIR_P
  641. INSTALL_STRIP_PROGRAM
  642. STRIP
  643. install_sh
  644. MAKEINFO
  645. AUTOHEADER
  646. AUTOMAKE
  647. AUTOCONF
  648. ACLOCAL
  649. VERSION
  650. PACKAGE
  651. CYGPATH_W
  652. am__isrc
  653. INSTALL_DATA
  654. INSTALL_SCRIPT
  655. INSTALL_PROGRAM
  656. target_alias
  657. host_alias
  658. build_alias
  659. LIBS
  660. ECHO_T
  661. ECHO_N
  662. ECHO_C
  663. DEFS
  664. mandir
  665. localedir
  666. libdir
  667. psdir
  668. pdfdir
  669. dvidir
  670. htmldir
  671. infodir
  672. docdir
  673. oldincludedir
  674. includedir
  675. localstatedir
  676. sharedstatedir
  677. sysconfdir
  678. datadir
  679. datarootdir
  680. libexecdir
  681. sbindir
  682. bindir
  683. program_transform_name
  684. prefix
  685. exec_prefix
  686. PACKAGE_URL
  687. PACKAGE_BUGREPORT
  688. PACKAGE_STRING
  689. PACKAGE_VERSION
  690. PACKAGE_TARNAME
  691. PACKAGE_NAME
  692. PATH_SEPARATOR
  693. SHELL'
  694. ac_subst_files=''
  695. ac_user_opts='
  696. enable_option_checking
  697. enable_dependency_tracking
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. with_sysroot
  704. enable_libtool_lock
  705. enable_silent_rules
  706. enable_debug
  707. with_boost
  708. with_boost_libdir
  709. with_boost_system
  710. with_boost_filesystem
  711. with_boost_thread
  712. with_boost_iostreams
  713. with_boost_program_options
  714. '
  715. ac_precious_vars='build_alias
  716. host_alias
  717. target_alias
  718. CXX
  719. CXXFLAGS
  720. LDFLAGS
  721. LIBS
  722. CPPFLAGS
  723. CCC
  724. CC
  725. CFLAGS
  726. CPP
  727. CXXCPP'
  728. # Initialize some variables set by options.
  729. ac_init_help=
  730. ac_init_version=false
  731. ac_unrecognized_opts=
  732. ac_unrecognized_sep=
  733. # The variables have the same names as the options, with
  734. # dashes changed to underlines.
  735. cache_file=/dev/null
  736. exec_prefix=NONE
  737. no_create=
  738. no_recursion=
  739. prefix=NONE
  740. program_prefix=NONE
  741. program_suffix=NONE
  742. program_transform_name=s,x,x,
  743. silent=
  744. site=
  745. srcdir=
  746. verbose=
  747. x_includes=NONE
  748. x_libraries=NONE
  749. # Installation directory options.
  750. # These are left unexpanded so users can "make install exec_prefix=/foo"
  751. # and all the variables that are supposed to be based on exec_prefix
  752. # by default will actually change.
  753. # Use braces instead of parens because sh, perl, etc. also accept them.
  754. # (The list follows the same order as the GNU Coding Standards.)
  755. bindir='${exec_prefix}/bin'
  756. sbindir='${exec_prefix}/sbin'
  757. libexecdir='${exec_prefix}/libexec'
  758. datarootdir='${prefix}/share'
  759. datadir='${datarootdir}'
  760. sysconfdir='${prefix}/etc'
  761. sharedstatedir='${prefix}/com'
  762. localstatedir='${prefix}/var'
  763. includedir='${prefix}/include'
  764. oldincludedir='/usr/include'
  765. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  766. infodir='${datarootdir}/info'
  767. htmldir='${docdir}'
  768. dvidir='${docdir}'
  769. pdfdir='${docdir}'
  770. psdir='${docdir}'
  771. libdir='${exec_prefix}/lib'
  772. localedir='${datarootdir}/locale'
  773. mandir='${datarootdir}/man'
  774. ac_prev=
  775. ac_dashdash=
  776. for ac_option
  777. do
  778. # If the previous option needs an argument, assign it.
  779. if test -n "$ac_prev"; then
  780. eval $ac_prev=\$ac_option
  781. ac_prev=
  782. continue
  783. fi
  784. case $ac_option in
  785. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  786. *=) ac_optarg= ;;
  787. *) ac_optarg=yes ;;
  788. esac
  789. # Accept the important Cygnus configure options, so we can diagnose typos.
  790. case $ac_dashdash$ac_option in
  791. --)
  792. ac_dashdash=yes ;;
  793. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  794. ac_prev=bindir ;;
  795. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  796. bindir=$ac_optarg ;;
  797. -build | --build | --buil | --bui | --bu)
  798. ac_prev=build_alias ;;
  799. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  800. build_alias=$ac_optarg ;;
  801. -cache-file | --cache-file | --cache-fil | --cache-fi \
  802. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  803. ac_prev=cache_file ;;
  804. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  805. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  806. cache_file=$ac_optarg ;;
  807. --config-cache | -C)
  808. cache_file=config.cache ;;
  809. -datadir | --datadir | --datadi | --datad)
  810. ac_prev=datadir ;;
  811. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  812. datadir=$ac_optarg ;;
  813. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  814. | --dataroo | --dataro | --datar)
  815. ac_prev=datarootdir ;;
  816. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  817. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  818. datarootdir=$ac_optarg ;;
  819. -disable-* | --disable-*)
  820. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  821. # Reject names that are not valid shell variable names.
  822. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  823. as_fn_error $? "invalid feature name: $ac_useropt"
  824. ac_useropt_orig=$ac_useropt
  825. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  826. case $ac_user_opts in
  827. *"
  828. "enable_$ac_useropt"
  829. "*) ;;
  830. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  831. ac_unrecognized_sep=', ';;
  832. esac
  833. eval enable_$ac_useropt=no ;;
  834. -docdir | --docdir | --docdi | --doc | --do)
  835. ac_prev=docdir ;;
  836. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  837. docdir=$ac_optarg ;;
  838. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  839. ac_prev=dvidir ;;
  840. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  841. dvidir=$ac_optarg ;;
  842. -enable-* | --enable-*)
  843. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  844. # Reject names that are not valid shell variable names.
  845. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  846. as_fn_error $? "invalid feature name: $ac_useropt"
  847. ac_useropt_orig=$ac_useropt
  848. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  849. case $ac_user_opts in
  850. *"
  851. "enable_$ac_useropt"
  852. "*) ;;
  853. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  854. ac_unrecognized_sep=', ';;
  855. esac
  856. eval enable_$ac_useropt=\$ac_optarg ;;
  857. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  858. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  859. | --exec | --exe | --ex)
  860. ac_prev=exec_prefix ;;
  861. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  862. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  863. | --exec=* | --exe=* | --ex=*)
  864. exec_prefix=$ac_optarg ;;
  865. -gas | --gas | --ga | --g)
  866. # Obsolete; use --with-gas.
  867. with_gas=yes ;;
  868. -help | --help | --hel | --he | -h)
  869. ac_init_help=long ;;
  870. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  871. ac_init_help=recursive ;;
  872. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  873. ac_init_help=short ;;
  874. -host | --host | --hos | --ho)
  875. ac_prev=host_alias ;;
  876. -host=* | --host=* | --hos=* | --ho=*)
  877. host_alias=$ac_optarg ;;
  878. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  879. ac_prev=htmldir ;;
  880. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  881. | --ht=*)
  882. htmldir=$ac_optarg ;;
  883. -includedir | --includedir | --includedi | --included | --include \
  884. | --includ | --inclu | --incl | --inc)
  885. ac_prev=includedir ;;
  886. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  887. | --includ=* | --inclu=* | --incl=* | --inc=*)
  888. includedir=$ac_optarg ;;
  889. -infodir | --infodir | --infodi | --infod | --info | --inf)
  890. ac_prev=infodir ;;
  891. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  892. infodir=$ac_optarg ;;
  893. -libdir | --libdir | --libdi | --libd)
  894. ac_prev=libdir ;;
  895. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  896. libdir=$ac_optarg ;;
  897. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  898. | --libexe | --libex | --libe)
  899. ac_prev=libexecdir ;;
  900. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  901. | --libexe=* | --libex=* | --libe=*)
  902. libexecdir=$ac_optarg ;;
  903. -localedir | --localedir | --localedi | --localed | --locale)
  904. ac_prev=localedir ;;
  905. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  906. localedir=$ac_optarg ;;
  907. -localstatedir | --localstatedir | --localstatedi | --localstated \
  908. | --localstate | --localstat | --localsta | --localst | --locals)
  909. ac_prev=localstatedir ;;
  910. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  911. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  912. localstatedir=$ac_optarg ;;
  913. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  914. ac_prev=mandir ;;
  915. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  916. mandir=$ac_optarg ;;
  917. -nfp | --nfp | --nf)
  918. # Obsolete; use --without-fp.
  919. with_fp=no ;;
  920. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  921. | --no-cr | --no-c | -n)
  922. no_create=yes ;;
  923. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  924. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  925. no_recursion=yes ;;
  926. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  927. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  928. | --oldin | --oldi | --old | --ol | --o)
  929. ac_prev=oldincludedir ;;
  930. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  931. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  932. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  933. oldincludedir=$ac_optarg ;;
  934. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  935. ac_prev=prefix ;;
  936. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  937. prefix=$ac_optarg ;;
  938. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  939. | --program-pre | --program-pr | --program-p)
  940. ac_prev=program_prefix ;;
  941. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  942. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  943. program_prefix=$ac_optarg ;;
  944. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  945. | --program-suf | --program-su | --program-s)
  946. ac_prev=program_suffix ;;
  947. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  948. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  949. program_suffix=$ac_optarg ;;
  950. -program-transform-name | --program-transform-name \
  951. | --program-transform-nam | --program-transform-na \
  952. | --program-transform-n | --program-transform- \
  953. | --program-transform | --program-transfor \
  954. | --program-transfo | --program-transf \
  955. | --program-trans | --program-tran \
  956. | --progr-tra | --program-tr | --program-t)
  957. ac_prev=program_transform_name ;;
  958. -program-transform-name=* | --program-transform-name=* \
  959. | --program-transform-nam=* | --program-transform-na=* \
  960. | --program-transform-n=* | --program-transform-=* \
  961. | --program-transform=* | --program-transfor=* \
  962. | --program-transfo=* | --program-transf=* \
  963. | --program-trans=* | --program-tran=* \
  964. | --progr-tra=* | --program-tr=* | --program-t=*)
  965. program_transform_name=$ac_optarg ;;
  966. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  967. ac_prev=pdfdir ;;
  968. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  969. pdfdir=$ac_optarg ;;
  970. -psdir | --psdir | --psdi | --psd | --ps)
  971. ac_prev=psdir ;;
  972. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  973. psdir=$ac_optarg ;;
  974. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  975. | -silent | --silent | --silen | --sile | --sil)
  976. silent=yes ;;
  977. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  978. ac_prev=sbindir ;;
  979. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  980. | --sbi=* | --sb=*)
  981. sbindir=$ac_optarg ;;
  982. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  983. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  984. | --sharedst | --shareds | --shared | --share | --shar \
  985. | --sha | --sh)
  986. ac_prev=sharedstatedir ;;
  987. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  988. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  989. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  990. | --sha=* | --sh=*)
  991. sharedstatedir=$ac_optarg ;;
  992. -site | --site | --sit)
  993. ac_prev=site ;;
  994. -site=* | --site=* | --sit=*)
  995. site=$ac_optarg ;;
  996. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  997. ac_prev=srcdir ;;
  998. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  999. srcdir=$ac_optarg ;;
  1000. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1001. | --syscon | --sysco | --sysc | --sys | --sy)
  1002. ac_prev=sysconfdir ;;
  1003. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1004. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1005. sysconfdir=$ac_optarg ;;
  1006. -target | --target | --targe | --targ | --tar | --ta | --t)
  1007. ac_prev=target_alias ;;
  1008. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1009. target_alias=$ac_optarg ;;
  1010. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1011. verbose=yes ;;
  1012. -version | --version | --versio | --versi | --vers | -V)
  1013. ac_init_version=: ;;
  1014. -with-* | --with-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. as_fn_error $? "invalid package name: $ac_useropt"
  1019. ac_useropt_orig=$ac_useropt
  1020. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1021. case $ac_user_opts in
  1022. *"
  1023. "with_$ac_useropt"
  1024. "*) ;;
  1025. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1026. ac_unrecognized_sep=', ';;
  1027. esac
  1028. eval with_$ac_useropt=\$ac_optarg ;;
  1029. -without-* | --without-*)
  1030. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1031. # Reject names that are not valid shell variable names.
  1032. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1033. as_fn_error $? "invalid package name: $ac_useropt"
  1034. ac_useropt_orig=$ac_useropt
  1035. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1036. case $ac_user_opts in
  1037. *"
  1038. "with_$ac_useropt"
  1039. "*) ;;
  1040. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1041. ac_unrecognized_sep=', ';;
  1042. esac
  1043. eval with_$ac_useropt=no ;;
  1044. --x)
  1045. # Obsolete; use --with-x.
  1046. with_x=yes ;;
  1047. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1048. | --x-incl | --x-inc | --x-in | --x-i)
  1049. ac_prev=x_includes ;;
  1050. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1051. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1052. x_includes=$ac_optarg ;;
  1053. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1054. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1055. ac_prev=x_libraries ;;
  1056. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1057. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1058. x_libraries=$ac_optarg ;;
  1059. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1060. Try \`$0 --help' for more information"
  1061. ;;
  1062. *=*)
  1063. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1064. # Reject names that are not valid shell variable names.
  1065. case $ac_envvar in #(
  1066. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1067. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1068. esac
  1069. eval $ac_envvar=\$ac_optarg
  1070. export $ac_envvar ;;
  1071. *)
  1072. # FIXME: should be removed in autoconf 3.0.
  1073. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1074. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1076. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1077. ;;
  1078. esac
  1079. done
  1080. if test -n "$ac_prev"; then
  1081. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1082. as_fn_error $? "missing argument to $ac_option"
  1083. fi
  1084. if test -n "$ac_unrecognized_opts"; then
  1085. case $enable_option_checking in
  1086. no) ;;
  1087. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1088. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1089. esac
  1090. fi
  1091. # Check all directory arguments for consistency.
  1092. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1093. datadir sysconfdir sharedstatedir localstatedir includedir \
  1094. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1095. libdir localedir mandir
  1096. do
  1097. eval ac_val=\$$ac_var
  1098. # Remove trailing slashes.
  1099. case $ac_val in
  1100. */ )
  1101. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1102. eval $ac_var=\$ac_val;;
  1103. esac
  1104. # Be sure to have absolute directory names.
  1105. case $ac_val in
  1106. [\\/$]* | ?:[\\/]* ) continue;;
  1107. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1108. esac
  1109. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1110. done
  1111. # There might be people who depend on the old broken behavior: `$host'
  1112. # used to hold the argument of --host etc.
  1113. # FIXME: To remove some day.
  1114. build=$build_alias
  1115. host=$host_alias
  1116. target=$target_alias
  1117. # FIXME: To remove some day.
  1118. if test "x$host_alias" != x; then
  1119. if test "x$build_alias" = x; then
  1120. cross_compiling=maybe
  1121. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1122. If a cross compiler is detected then cross compile mode will be used" >&2
  1123. elif test "x$build_alias" != "x$host_alias"; then
  1124. cross_compiling=yes
  1125. fi
  1126. fi
  1127. ac_tool_prefix=
  1128. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1129. test "$silent" = yes && exec 6>/dev/null
  1130. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1131. ac_ls_di=`ls -di .` &&
  1132. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1133. as_fn_error $? "working directory cannot be determined"
  1134. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1135. as_fn_error $? "pwd does not report name of working directory"
  1136. # Find the source files, if location was not specified.
  1137. if test -z "$srcdir"; then
  1138. ac_srcdir_defaulted=yes
  1139. # Try the directory containing this script, then the parent directory.
  1140. ac_confdir=`$as_dirname -- "$as_myself" ||
  1141. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1142. X"$as_myself" : 'X\(//\)[^/]' \| \
  1143. X"$as_myself" : 'X\(//\)$' \| \
  1144. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1145. $as_echo X"$as_myself" |
  1146. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\/\)[^/].*/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\).*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. s/.*/./; q'`
  1163. srcdir=$ac_confdir
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. srcdir=..
  1166. fi
  1167. else
  1168. ac_srcdir_defaulted=no
  1169. fi
  1170. if test ! -r "$srcdir/$ac_unique_file"; then
  1171. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1172. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1173. fi
  1174. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1175. ac_abs_confdir=`(
  1176. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1177. pwd)`
  1178. # When building in place, set srcdir=.
  1179. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1180. srcdir=.
  1181. fi
  1182. # Remove unnecessary trailing slashes from srcdir.
  1183. # Double slashes in file names in object file debugging info
  1184. # mess up M-x gdb in Emacs.
  1185. case $srcdir in
  1186. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1187. esac
  1188. for ac_var in $ac_precious_vars; do
  1189. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1190. eval ac_env_${ac_var}_value=\$${ac_var}
  1191. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1192. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1193. done
  1194. #
  1195. # Report the --help message.
  1196. #
  1197. if test "$ac_init_help" = "long"; then
  1198. # Omit some internal or obsolete options to make the list less imposing.
  1199. # This message is too long to be a string in the A/UX 3.1 sh.
  1200. cat <<_ACEOF
  1201. \`configure' configures vcmi 0.84b to adapt to many kinds of systems.
  1202. Usage: $0 [OPTION]... [VAR=VALUE]...
  1203. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1204. VAR=VALUE. See below for descriptions of some of the useful variables.
  1205. Defaults for the options are specified in brackets.
  1206. Configuration:
  1207. -h, --help display this help and exit
  1208. --help=short display options specific to this package
  1209. --help=recursive display the short help of all the included packages
  1210. -V, --version display version information and exit
  1211. -q, --quiet, --silent do not print \`checking ...' messages
  1212. --cache-file=FILE cache test results in FILE [disabled]
  1213. -C, --config-cache alias for \`--cache-file=config.cache'
  1214. -n, --no-create do not create output files
  1215. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1216. Installation directories:
  1217. --prefix=PREFIX install architecture-independent files in PREFIX
  1218. [$ac_default_prefix]
  1219. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1220. [PREFIX]
  1221. By default, \`make install' will install all the files in
  1222. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1223. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1224. for instance \`--prefix=\$HOME'.
  1225. For better control, use the options below.
  1226. Fine tuning of the installation directories:
  1227. --bindir=DIR user executables [EPREFIX/bin]
  1228. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1229. --libexecdir=DIR program executables [EPREFIX/libexec]
  1230. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1231. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1232. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1233. --libdir=DIR object code libraries [EPREFIX/lib]
  1234. --includedir=DIR C header files [PREFIX/include]
  1235. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1236. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1237. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1238. --infodir=DIR info documentation [DATAROOTDIR/info]
  1239. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1240. --mandir=DIR man documentation [DATAROOTDIR/man]
  1241. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1242. --htmldir=DIR html documentation [DOCDIR]
  1243. --dvidir=DIR dvi documentation [DOCDIR]
  1244. --pdfdir=DIR pdf documentation [DOCDIR]
  1245. --psdir=DIR ps documentation [DOCDIR]
  1246. _ACEOF
  1247. cat <<\_ACEOF
  1248. Program names:
  1249. --program-prefix=PREFIX prepend PREFIX to installed program names
  1250. --program-suffix=SUFFIX append SUFFIX to installed program names
  1251. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1252. System types:
  1253. --build=BUILD configure for building on BUILD [guessed]
  1254. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1255. _ACEOF
  1256. fi
  1257. if test -n "$ac_init_help"; then
  1258. case $ac_init_help in
  1259. short | recursive ) echo "Configuration of vcmi 0.84b:";;
  1260. esac
  1261. cat <<\_ACEOF
  1262. Optional Features:
  1263. --disable-option-checking ignore unrecognized --enable/--with options
  1264. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1265. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1266. --disable-dependency-tracking speeds up one-time build
  1267. --enable-dependency-tracking do not reject slow dependency extractors
  1268. --enable-shared[=PKGS] build shared libraries [default=yes]
  1269. --enable-static[=PKGS] build static libraries [default=no]
  1270. --enable-fast-install[=PKGS]
  1271. optimize for fast installation [default=yes]
  1272. --disable-libtool-lock avoid locking (might break parallel builds)
  1273. --enable-silent-rules less verbose build output (undo: `make V=1')
  1274. --disable-silent-rules verbose build output (undo: `make V=0')
  1275. --disable-debug turn off debugging (default=enable)
  1276. Optional Packages:
  1277. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1278. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1279. --with-pic try to use only PIC/non-PIC objects [default=use
  1280. both]
  1281. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1282. --with-sysroot=DIR Search for dependent libraries within DIR
  1283. (or the compiler's sysroot if not specified).
  1284. --with-boost[=ARG] use Boost library from a standard location
  1285. (ARG=yes), from the specified location (ARG=<path>),
  1286. or disable it (ARG=no) [ARG=yes]
  1287. --with-boost-libdir=LIB_DIR
  1288. Force given directory for boost libraries. Note that
  1289. this will override library path detection, so use
  1290. this parameter only if default library detection
  1291. fails and you know exactly where your boost
  1292. libraries are located.
  1293. --with-boost-system[=special-lib]
  1294. use the System library from boost - it is possible
  1295. to specify a certain library for the linker e.g.
  1296. --with-boost-system=boost_system-gcc-mt
  1297. --with-boost-filesystem[=special-lib]
  1298. use the Filesystem library from boost - it is
  1299. possible to specify a certain library for the linker
  1300. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1301. --with-boost-thread[=special-lib]
  1302. use the Thread library from boost - it is possible
  1303. to specify a certain library for the linker e.g.
  1304. --with-boost-thread=boost_thread-gcc-mt
  1305. --with-boost-iostreams[=special-lib]
  1306. use the IOStreams library from boost - it is
  1307. possible to specify a certain library for the linker
  1308. e.g.
  1309. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1310. --with-boost-program-options[=special-lib]
  1311. use the program options library from boost - it is
  1312. possible to specify a certain library for the linker
  1313. e.g.
  1314. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1315. Some influential environment variables:
  1316. CXX C++ compiler command
  1317. CXXFLAGS C++ compiler flags
  1318. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1319. nonstandard directory <lib dir>
  1320. LIBS libraries to pass to the linker, e.g. -l<library>
  1321. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1322. you have headers in a nonstandard directory <include dir>
  1323. CC C compiler command
  1324. CFLAGS C compiler flags
  1325. CPP C preprocessor
  1326. CXXCPP C++ preprocessor
  1327. Use these variables to override the choices made by `configure' or to help
  1328. it to find libraries and programs with nonstandard names/locations.
  1329. Report bugs to the package provider.
  1330. _ACEOF
  1331. ac_status=$?
  1332. fi
  1333. if test "$ac_init_help" = "recursive"; then
  1334. # If there are subdirs, report their specific --help.
  1335. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1336. test -d "$ac_dir" ||
  1337. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1338. continue
  1339. ac_builddir=.
  1340. case "$ac_dir" in
  1341. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *)
  1343. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1344. # A ".." for each directory in $ac_dir_suffix.
  1345. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1346. case $ac_top_builddir_sub in
  1347. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1349. esac ;;
  1350. esac
  1351. ac_abs_top_builddir=$ac_pwd
  1352. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1353. # for backward compatibility:
  1354. ac_top_builddir=$ac_top_build_prefix
  1355. case $srcdir in
  1356. .) # We are building in place.
  1357. ac_srcdir=.
  1358. ac_top_srcdir=$ac_top_builddir_sub
  1359. ac_abs_top_srcdir=$ac_pwd ;;
  1360. [\\/]* | ?:[\\/]* ) # Absolute name.
  1361. ac_srcdir=$srcdir$ac_dir_suffix;
  1362. ac_top_srcdir=$srcdir
  1363. ac_abs_top_srcdir=$srcdir ;;
  1364. *) # Relative name.
  1365. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1366. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1367. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1368. esac
  1369. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1370. cd "$ac_dir" || { ac_status=$?; continue; }
  1371. # Check for guested configure.
  1372. if test -f "$ac_srcdir/configure.gnu"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1375. elif test -f "$ac_srcdir/configure"; then
  1376. echo &&
  1377. $SHELL "$ac_srcdir/configure" --help=recursive
  1378. else
  1379. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1380. fi || ac_status=$?
  1381. cd "$ac_pwd" || { ac_status=$?; break; }
  1382. done
  1383. fi
  1384. test -n "$ac_init_help" && exit $ac_status
  1385. if $ac_init_version; then
  1386. cat <<\_ACEOF
  1387. vcmi configure 0.84b
  1388. generated by GNU Autoconf 2.68
  1389. Copyright (C) 2010 Free Software Foundation, Inc.
  1390. This configure script is free software; the Free Software Foundation
  1391. gives unlimited permission to copy, distribute and modify it.
  1392. _ACEOF
  1393. exit
  1394. fi
  1395. ## ------------------------ ##
  1396. ## Autoconf initialization. ##
  1397. ## ------------------------ ##
  1398. # ac_fn_cxx_try_compile LINENO
  1399. # ----------------------------
  1400. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_cxx_try_compile ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. rm -f conftest.$ac_objext
  1405. if { { ac_try="$ac_compile"
  1406. case "(($ac_try" in
  1407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1408. *) ac_try_echo=$ac_try;;
  1409. esac
  1410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1411. $as_echo "$ac_try_echo"; } >&5
  1412. (eval "$ac_compile") 2>conftest.err
  1413. ac_status=$?
  1414. if test -s conftest.err; then
  1415. grep -v '^ *+' conftest.err >conftest.er1
  1416. cat conftest.er1 >&5
  1417. mv -f conftest.er1 conftest.err
  1418. fi
  1419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1420. test $ac_status = 0; } && {
  1421. test -z "$ac_cxx_werror_flag" ||
  1422. test ! -s conftest.err
  1423. } && test -s conftest.$ac_objext; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } # ac_fn_cxx_try_compile
  1433. # ac_fn_c_try_compile LINENO
  1434. # --------------------------
  1435. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1436. ac_fn_c_try_compile ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. rm -f conftest.$ac_objext
  1440. if { { ac_try="$ac_compile"
  1441. case "(($ac_try" in
  1442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1443. *) ac_try_echo=$ac_try;;
  1444. esac
  1445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1446. $as_echo "$ac_try_echo"; } >&5
  1447. (eval "$ac_compile") 2>conftest.err
  1448. ac_status=$?
  1449. if test -s conftest.err; then
  1450. grep -v '^ *+' conftest.err >conftest.er1
  1451. cat conftest.er1 >&5
  1452. mv -f conftest.er1 conftest.err
  1453. fi
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. test $ac_status = 0; } && {
  1456. test -z "$ac_c_werror_flag" ||
  1457. test ! -s conftest.err
  1458. } && test -s conftest.$ac_objext; then :
  1459. ac_retval=0
  1460. else
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=1
  1464. fi
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_compile
  1468. # ac_fn_c_try_link LINENO
  1469. # -----------------------
  1470. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1471. ac_fn_c_try_link ()
  1472. {
  1473. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1474. rm -f conftest.$ac_objext conftest$ac_exeext
  1475. if { { ac_try="$ac_link"
  1476. case "(($ac_try" in
  1477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1478. *) ac_try_echo=$ac_try;;
  1479. esac
  1480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1481. $as_echo "$ac_try_echo"; } >&5
  1482. (eval "$ac_link") 2>conftest.err
  1483. ac_status=$?
  1484. if test -s conftest.err; then
  1485. grep -v '^ *+' conftest.err >conftest.er1
  1486. cat conftest.er1 >&5
  1487. mv -f conftest.er1 conftest.err
  1488. fi
  1489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1490. test $ac_status = 0; } && {
  1491. test -z "$ac_c_werror_flag" ||
  1492. test ! -s conftest.err
  1493. } && test -s conftest$ac_exeext && {
  1494. test "$cross_compiling" = yes ||
  1495. $as_test_x conftest$ac_exeext
  1496. }; then :
  1497. ac_retval=0
  1498. else
  1499. $as_echo "$as_me: failed program was:" >&5
  1500. sed 's/^/| /' conftest.$ac_ext >&5
  1501. ac_retval=1
  1502. fi
  1503. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1504. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1505. # interfere with the next link command; also delete a directory that is
  1506. # left behind by Apple's compiler. We do this before executing the actions.
  1507. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1508. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1509. as_fn_set_status $ac_retval
  1510. } # ac_fn_c_try_link
  1511. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1512. # -------------------------------------------------------
  1513. # Tests whether HEADER exists and can be compiled using the include files in
  1514. # INCLUDES, setting the cache variable VAR accordingly.
  1515. ac_fn_c_check_header_compile ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1519. $as_echo_n "checking for $2... " >&6; }
  1520. if eval \${$3+:} false; then :
  1521. $as_echo_n "(cached) " >&6
  1522. else
  1523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1524. /* end confdefs.h. */
  1525. $4
  1526. #include <$2>
  1527. _ACEOF
  1528. if ac_fn_c_try_compile "$LINENO"; then :
  1529. eval "$3=yes"
  1530. else
  1531. eval "$3=no"
  1532. fi
  1533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1534. fi
  1535. eval ac_res=\$$3
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1537. $as_echo "$ac_res" >&6; }
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. } # ac_fn_c_check_header_compile
  1540. # ac_fn_c_try_cpp LINENO
  1541. # ----------------------
  1542. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1543. ac_fn_c_try_cpp ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1547. case "(($ac_try" in
  1548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1549. *) ac_try_echo=$ac_try;;
  1550. esac
  1551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1552. $as_echo "$ac_try_echo"; } >&5
  1553. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1554. ac_status=$?
  1555. if test -s conftest.err; then
  1556. grep -v '^ *+' conftest.err >conftest.er1
  1557. cat conftest.er1 >&5
  1558. mv -f conftest.er1 conftest.err
  1559. fi
  1560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1561. test $ac_status = 0; } > conftest.i && {
  1562. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1563. test ! -s conftest.err
  1564. }; then :
  1565. ac_retval=0
  1566. else
  1567. $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569. ac_retval=1
  1570. fi
  1571. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1572. as_fn_set_status $ac_retval
  1573. } # ac_fn_c_try_cpp
  1574. # ac_fn_c_try_run LINENO
  1575. # ----------------------
  1576. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1577. # that executables *can* be run.
  1578. ac_fn_c_try_run ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. if { { ac_try="$ac_link"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_link") 2>&5
  1589. ac_status=$?
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1592. { { case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_try") 2>&5
  1599. ac_status=$?
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; }; }; then :
  1602. ac_retval=0
  1603. else
  1604. $as_echo "$as_me: program exited with status $ac_status" >&5
  1605. $as_echo "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=$ac_status
  1608. fi
  1609. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1610. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1611. as_fn_set_status $ac_retval
  1612. } # ac_fn_c_try_run
  1613. # ac_fn_c_check_func LINENO FUNC VAR
  1614. # ----------------------------------
  1615. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1616. ac_fn_c_check_func ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if eval \${$3+:} false; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1628. #define $2 innocuous_$2
  1629. /* System header to define __stub macros and hopefully few prototypes,
  1630. which can conflict with char $2 (); below.
  1631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1632. <limits.h> exists even on freestanding compilers. */
  1633. #ifdef __STDC__
  1634. # include <limits.h>
  1635. #else
  1636. # include <assert.h>
  1637. #endif
  1638. #undef $2
  1639. /* Override any GCC internal prototype to avoid an error.
  1640. Use char because int might match the return type of a GCC
  1641. builtin and then its argument prototype would still apply. */
  1642. #ifdef __cplusplus
  1643. extern "C"
  1644. #endif
  1645. char $2 ();
  1646. /* The GNU C library defines this for functions which it implements
  1647. to always fail with ENOSYS. Some functions are actually named
  1648. something starting with __ and the normal name is an alias. */
  1649. #if defined __stub_$2 || defined __stub___$2
  1650. choke me
  1651. #endif
  1652. int
  1653. main ()
  1654. {
  1655. return $2 ();
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_c_try_link "$LINENO"; then :
  1661. eval "$3=yes"
  1662. else
  1663. eval "$3=no"
  1664. fi
  1665. rm -f core conftest.err conftest.$ac_objext \
  1666. conftest$ac_exeext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_func
  1673. # ac_fn_cxx_try_cpp LINENO
  1674. # ------------------------
  1675. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1676. ac_fn_cxx_try_cpp ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1680. case "(($ac_try" in
  1681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1682. *) ac_try_echo=$ac_try;;
  1683. esac
  1684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1685. $as_echo "$ac_try_echo"; } >&5
  1686. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1687. ac_status=$?
  1688. if test -s conftest.err; then
  1689. grep -v '^ *+' conftest.err >conftest.er1
  1690. cat conftest.er1 >&5
  1691. mv -f conftest.er1 conftest.err
  1692. fi
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; } > conftest.i && {
  1695. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1696. test ! -s conftest.err
  1697. }; then :
  1698. ac_retval=0
  1699. else
  1700. $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_retval=1
  1703. fi
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. as_fn_set_status $ac_retval
  1706. } # ac_fn_cxx_try_cpp
  1707. # ac_fn_cxx_try_link LINENO
  1708. # -------------------------
  1709. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1710. ac_fn_cxx_try_link ()
  1711. {
  1712. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713. rm -f conftest.$ac_objext conftest$ac_exeext
  1714. if { { ac_try="$ac_link"
  1715. case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_link") 2>conftest.err
  1722. ac_status=$?
  1723. if test -s conftest.err; then
  1724. grep -v '^ *+' conftest.err >conftest.er1
  1725. cat conftest.er1 >&5
  1726. mv -f conftest.er1 conftest.err
  1727. fi
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; } && {
  1730. test -z "$ac_cxx_werror_flag" ||
  1731. test ! -s conftest.err
  1732. } && test -s conftest$ac_exeext && {
  1733. test "$cross_compiling" = yes ||
  1734. $as_test_x conftest$ac_exeext
  1735. }; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: failed program was:" >&5
  1739. sed 's/^/| /' conftest.$ac_ext >&5
  1740. ac_retval=1
  1741. fi
  1742. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1743. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1744. # interfere with the next link command; also delete a directory that is
  1745. # left behind by Apple's compiler. We do this before executing the actions.
  1746. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1747. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1748. as_fn_set_status $ac_retval
  1749. } # ac_fn_cxx_try_link
  1750. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1751. # ---------------------------------------------------------
  1752. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1753. # the include files in INCLUDES and setting the cache variable VAR
  1754. # accordingly.
  1755. ac_fn_cxx_check_header_mongrel ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. if eval \${$3+:} false; then :
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1760. $as_echo_n "checking for $2... " >&6; }
  1761. if eval \${$3+:} false; then :
  1762. $as_echo_n "(cached) " >&6
  1763. fi
  1764. eval ac_res=\$$3
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1766. $as_echo "$ac_res" >&6; }
  1767. else
  1768. # Is the header compilable?
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1770. $as_echo_n "checking $2 usability... " >&6; }
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. $4
  1774. #include <$2>
  1775. _ACEOF
  1776. if ac_fn_cxx_try_compile "$LINENO"; then :
  1777. ac_header_compiler=yes
  1778. else
  1779. ac_header_compiler=no
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1783. $as_echo "$ac_header_compiler" >&6; }
  1784. # Is the header present?
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1786. $as_echo_n "checking $2 presence... " >&6; }
  1787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1788. /* end confdefs.h. */
  1789. #include <$2>
  1790. _ACEOF
  1791. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1792. ac_header_preproc=yes
  1793. else
  1794. ac_header_preproc=no
  1795. fi
  1796. rm -f conftest.err conftest.i conftest.$ac_ext
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1798. $as_echo "$ac_header_preproc" >&6; }
  1799. # So? What about this header?
  1800. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1801. yes:no: )
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1803. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1805. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1806. ;;
  1807. no:yes:* )
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1809. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1811. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1813. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1815. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1817. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1818. ;;
  1819. esac
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1821. $as_echo_n "checking for $2... " >&6; }
  1822. if eval \${$3+:} false; then :
  1823. $as_echo_n "(cached) " >&6
  1824. else
  1825. eval "$3=\$ac_header_compiler"
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_cxx_check_header_mongrel
  1833. # ac_fn_cxx_try_run LINENO
  1834. # ------------------------
  1835. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1836. # that executables *can* be run.
  1837. ac_fn_cxx_try_run ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_link"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_link") 2>&5
  1848. ac_status=$?
  1849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1850. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1851. { { case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_try") 2>&5
  1858. ac_status=$?
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; }; }; then :
  1861. ac_retval=0
  1862. else
  1863. $as_echo "$as_me: program exited with status $ac_status" >&5
  1864. $as_echo "$as_me: failed program was:" >&5
  1865. sed 's/^/| /' conftest.$ac_ext >&5
  1866. ac_retval=$ac_status
  1867. fi
  1868. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_cxx_try_run
  1872. # ac_fn_cxx_check_func LINENO FUNC VAR
  1873. # ------------------------------------
  1874. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1875. ac_fn_cxx_check_func ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1879. $as_echo_n "checking for $2... " >&6; }
  1880. if eval \${$3+:} false; then :
  1881. $as_echo_n "(cached) " >&6
  1882. else
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1887. #define $2 innocuous_$2
  1888. /* System header to define __stub macros and hopefully few prototypes,
  1889. which can conflict with char $2 (); below.
  1890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1891. <limits.h> exists even on freestanding compilers. */
  1892. #ifdef __STDC__
  1893. # include <limits.h>
  1894. #else
  1895. # include <assert.h>
  1896. #endif
  1897. #undef $2
  1898. /* Override any GCC internal prototype to avoid an error.
  1899. Use char because int might match the return type of a GCC
  1900. builtin and then its argument prototype would still apply. */
  1901. #ifdef __cplusplus
  1902. extern "C"
  1903. #endif
  1904. char $2 ();
  1905. /* The GNU C library defines this for functions which it implements
  1906. to always fail with ENOSYS. Some functions are actually named
  1907. something starting with __ and the normal name is an alias. */
  1908. #if defined __stub_$2 || defined __stub___$2
  1909. choke me
  1910. #endif
  1911. int
  1912. main ()
  1913. {
  1914. return $2 ();
  1915. ;
  1916. return 0;
  1917. }
  1918. _ACEOF
  1919. if ac_fn_cxx_try_link "$LINENO"; then :
  1920. eval "$3=yes"
  1921. else
  1922. eval "$3=no"
  1923. fi
  1924. rm -f core conftest.err conftest.$ac_objext \
  1925. conftest$ac_exeext conftest.$ac_ext
  1926. fi
  1927. eval ac_res=\$$3
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1929. $as_echo "$ac_res" >&6; }
  1930. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1931. } # ac_fn_cxx_check_func
  1932. cat >config.log <<_ACEOF
  1933. This file contains any messages produced by compilers while
  1934. running configure, to aid debugging if configure makes a mistake.
  1935. It was created by vcmi $as_me 0.84b, which was
  1936. generated by GNU Autoconf 2.68. Invocation command line was
  1937. $ $0 $@
  1938. _ACEOF
  1939. exec 5>>config.log
  1940. {
  1941. cat <<_ASUNAME
  1942. ## --------- ##
  1943. ## Platform. ##
  1944. ## --------- ##
  1945. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1946. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1947. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1948. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1949. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1950. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1951. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1952. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1953. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1954. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1955. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1956. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1957. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1958. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1959. _ASUNAME
  1960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1961. for as_dir in $PATH
  1962. do
  1963. IFS=$as_save_IFS
  1964. test -z "$as_dir" && as_dir=.
  1965. $as_echo "PATH: $as_dir"
  1966. done
  1967. IFS=$as_save_IFS
  1968. } >&5
  1969. cat >&5 <<_ACEOF
  1970. ## ----------- ##
  1971. ## Core tests. ##
  1972. ## ----------- ##
  1973. _ACEOF
  1974. # Keep a trace of the command line.
  1975. # Strip out --no-create and --no-recursion so they do not pile up.
  1976. # Strip out --silent because we don't want to record it for future runs.
  1977. # Also quote any args containing shell meta-characters.
  1978. # Make two passes to allow for proper duplicate-argument suppression.
  1979. ac_configure_args=
  1980. ac_configure_args0=
  1981. ac_configure_args1=
  1982. ac_must_keep_next=false
  1983. for ac_pass in 1 2
  1984. do
  1985. for ac_arg
  1986. do
  1987. case $ac_arg in
  1988. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1989. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1990. | -silent | --silent | --silen | --sile | --sil)
  1991. continue ;;
  1992. *\'*)
  1993. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1994. esac
  1995. case $ac_pass in
  1996. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1997. 2)
  1998. as_fn_append ac_configure_args1 " '$ac_arg'"
  1999. if test $ac_must_keep_next = true; then
  2000. ac_must_keep_next=false # Got value, back to normal.
  2001. else
  2002. case $ac_arg in
  2003. *=* | --config-cache | -C | -disable-* | --disable-* \
  2004. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2005. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2006. | -with-* | --with-* | -without-* | --without-* | --x)
  2007. case "$ac_configure_args0 " in
  2008. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2009. esac
  2010. ;;
  2011. -* ) ac_must_keep_next=true ;;
  2012. esac
  2013. fi
  2014. as_fn_append ac_configure_args " '$ac_arg'"
  2015. ;;
  2016. esac
  2017. done
  2018. done
  2019. { ac_configure_args0=; unset ac_configure_args0;}
  2020. { ac_configure_args1=; unset ac_configure_args1;}
  2021. # When interrupted or exit'd, cleanup temporary files, and complete
  2022. # config.log. We remove comments because anyway the quotes in there
  2023. # would cause problems or look ugly.
  2024. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2025. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2026. trap 'exit_status=$?
  2027. # Save into config.log some information that might help in debugging.
  2028. {
  2029. echo
  2030. $as_echo "## ---------------- ##
  2031. ## Cache variables. ##
  2032. ## ---------------- ##"
  2033. echo
  2034. # The following way of writing the cache mishandles newlines in values,
  2035. (
  2036. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2037. eval ac_val=\$$ac_var
  2038. case $ac_val in #(
  2039. *${as_nl}*)
  2040. case $ac_var in #(
  2041. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2042. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2043. esac
  2044. case $ac_var in #(
  2045. _ | IFS | as_nl) ;; #(
  2046. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2047. *) { eval $ac_var=; unset $ac_var;} ;;
  2048. esac ;;
  2049. esac
  2050. done
  2051. (set) 2>&1 |
  2052. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2053. *${as_nl}ac_space=\ *)
  2054. sed -n \
  2055. "s/'\''/'\''\\\\'\'''\''/g;
  2056. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2057. ;; #(
  2058. *)
  2059. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2060. ;;
  2061. esac |
  2062. sort
  2063. )
  2064. echo
  2065. $as_echo "## ----------------- ##
  2066. ## Output variables. ##
  2067. ## ----------------- ##"
  2068. echo
  2069. for ac_var in $ac_subst_vars
  2070. do
  2071. eval ac_val=\$$ac_var
  2072. case $ac_val in
  2073. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2074. esac
  2075. $as_echo "$ac_var='\''$ac_val'\''"
  2076. done | sort
  2077. echo
  2078. if test -n "$ac_subst_files"; then
  2079. $as_echo "## ------------------- ##
  2080. ## File substitutions. ##
  2081. ## ------------------- ##"
  2082. echo
  2083. for ac_var in $ac_subst_files
  2084. do
  2085. eval ac_val=\$$ac_var
  2086. case $ac_val in
  2087. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2088. esac
  2089. $as_echo "$ac_var='\''$ac_val'\''"
  2090. done | sort
  2091. echo
  2092. fi
  2093. if test -s confdefs.h; then
  2094. $as_echo "## ----------- ##
  2095. ## confdefs.h. ##
  2096. ## ----------- ##"
  2097. echo
  2098. cat confdefs.h
  2099. echo
  2100. fi
  2101. test "$ac_signal" != 0 &&
  2102. $as_echo "$as_me: caught signal $ac_signal"
  2103. $as_echo "$as_me: exit $exit_status"
  2104. } >&5
  2105. rm -f core *.core core.conftest.* &&
  2106. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2107. exit $exit_status
  2108. ' 0
  2109. for ac_signal in 1 2 13 15; do
  2110. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2111. done
  2112. ac_signal=0
  2113. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2114. rm -f -r conftest* confdefs.h
  2115. $as_echo "/* confdefs.h */" > confdefs.h
  2116. # Predefined preprocessor variables.
  2117. cat >>confdefs.h <<_ACEOF
  2118. #define PACKAGE_NAME "$PACKAGE_NAME"
  2119. _ACEOF
  2120. cat >>confdefs.h <<_ACEOF
  2121. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2122. _ACEOF
  2123. cat >>confdefs.h <<_ACEOF
  2124. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2125. _ACEOF
  2126. cat >>confdefs.h <<_ACEOF
  2127. #define PACKAGE_STRING "$PACKAGE_STRING"
  2128. _ACEOF
  2129. cat >>confdefs.h <<_ACEOF
  2130. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2131. _ACEOF
  2132. cat >>confdefs.h <<_ACEOF
  2133. #define PACKAGE_URL "$PACKAGE_URL"
  2134. _ACEOF
  2135. # Let the site file select an alternate cache file if it wants to.
  2136. # Prefer an explicitly selected file to automatically selected ones.
  2137. ac_site_file1=NONE
  2138. ac_site_file2=NONE
  2139. if test -n "$CONFIG_SITE"; then
  2140. # We do not want a PATH search for config.site.
  2141. case $CONFIG_SITE in #((
  2142. -*) ac_site_file1=./$CONFIG_SITE;;
  2143. */*) ac_site_file1=$CONFIG_SITE;;
  2144. *) ac_site_file1=./$CONFIG_SITE;;
  2145. esac
  2146. elif test "x$prefix" != xNONE; then
  2147. ac_site_file1=$prefix/share/config.site
  2148. ac_site_file2=$prefix/etc/config.site
  2149. else
  2150. ac_site_file1=$ac_default_prefix/share/config.site
  2151. ac_site_file2=$ac_default_prefix/etc/config.site
  2152. fi
  2153. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2154. do
  2155. test "x$ac_site_file" = xNONE && continue
  2156. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2158. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2159. sed 's/^/| /' "$ac_site_file" >&5
  2160. . "$ac_site_file" \
  2161. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2163. as_fn_error $? "failed to load site script $ac_site_file
  2164. See \`config.log' for more details" "$LINENO" 5; }
  2165. fi
  2166. done
  2167. if test -r "$cache_file"; then
  2168. # Some versions of bash will fail to source /dev/null (special files
  2169. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2170. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2172. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2173. case $cache_file in
  2174. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2175. *) . "./$cache_file";;
  2176. esac
  2177. fi
  2178. else
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2180. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2181. >$cache_file
  2182. fi
  2183. # Check that the precious variables saved in the cache have kept the same
  2184. # value.
  2185. ac_cache_corrupted=false
  2186. for ac_var in $ac_precious_vars; do
  2187. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2188. eval ac_new_set=\$ac_env_${ac_var}_set
  2189. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2190. eval ac_new_val=\$ac_env_${ac_var}_value
  2191. case $ac_old_set,$ac_new_set in
  2192. set,)
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2194. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2195. ac_cache_corrupted=: ;;
  2196. ,set)
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2198. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2199. ac_cache_corrupted=: ;;
  2200. ,);;
  2201. *)
  2202. if test "x$ac_old_val" != "x$ac_new_val"; then
  2203. # differences in whitespace do not lead to failure.
  2204. ac_old_val_w=`echo x $ac_old_val`
  2205. ac_new_val_w=`echo x $ac_new_val`
  2206. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2208. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2209. ac_cache_corrupted=:
  2210. else
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2212. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2213. eval $ac_var=\$ac_old_val
  2214. fi
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2216. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2218. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2219. fi;;
  2220. esac
  2221. # Pass precious variables to config.status.
  2222. if test "$ac_new_set" = set; then
  2223. case $ac_new_val in
  2224. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2225. *) ac_arg=$ac_var=$ac_new_val ;;
  2226. esac
  2227. case " $ac_configure_args " in
  2228. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2229. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2230. esac
  2231. fi
  2232. done
  2233. if $ac_cache_corrupted; then
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2237. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2238. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2239. fi
  2240. ## -------------------- ##
  2241. ## Main body of script. ##
  2242. ## -------------------- ##
  2243. ac_ext=c
  2244. ac_cpp='$CPP $CPPFLAGS'
  2245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2248. # Follow NAME_VER in global.h
  2249. am__api_version='1.11'
  2250. ac_aux_dir=
  2251. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2252. if test -f "$ac_dir/install-sh"; then
  2253. ac_aux_dir=$ac_dir
  2254. ac_install_sh="$ac_aux_dir/install-sh -c"
  2255. break
  2256. elif test -f "$ac_dir/install.sh"; then
  2257. ac_aux_dir=$ac_dir
  2258. ac_install_sh="$ac_aux_dir/install.sh -c"
  2259. break
  2260. elif test -f "$ac_dir/shtool"; then
  2261. ac_aux_dir=$ac_dir
  2262. ac_install_sh="$ac_aux_dir/shtool install -c"
  2263. break
  2264. fi
  2265. done
  2266. if test -z "$ac_aux_dir"; then
  2267. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2268. fi
  2269. # These three variables are undocumented and unsupported,
  2270. # and are intended to be withdrawn in a future Autoconf release.
  2271. # They can cause serious problems if a builder's source tree is in a directory
  2272. # whose full name contains unusual characters.
  2273. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2274. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2275. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2276. # Find a good install program. We prefer a C program (faster),
  2277. # so one script is as good as another. But avoid the broken or
  2278. # incompatible versions:
  2279. # SysV /etc/install, /usr/sbin/install
  2280. # SunOS /usr/etc/install
  2281. # IRIX /sbin/install
  2282. # AIX /bin/install
  2283. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2284. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2285. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2286. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2287. # OS/2's system install, which has a completely different semantic
  2288. # ./install, which can be erroneously created by make from ./install.sh.
  2289. # Reject install programs that cannot install multiple files.
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2291. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2292. if test -z "$INSTALL"; then
  2293. if ${ac_cv_path_install+:} false; then :
  2294. $as_echo_n "(cached) " >&6
  2295. else
  2296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2297. for as_dir in $PATH
  2298. do
  2299. IFS=$as_save_IFS
  2300. test -z "$as_dir" && as_dir=.
  2301. # Account for people who put trailing slashes in PATH elements.
  2302. case $as_dir/ in #((
  2303. ./ | .// | /[cC]/* | \
  2304. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2305. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2306. /usr/ucb/* ) ;;
  2307. *)
  2308. # OSF1 and SCO ODT 3.0 have their own names for install.
  2309. # Don't use installbsd from OSF since it installs stuff as root
  2310. # by default.
  2311. for ac_prog in ginstall scoinst install; do
  2312. for ac_exec_ext in '' $ac_executable_extensions; do
  2313. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2314. if test $ac_prog = install &&
  2315. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2316. # AIX install. It has an incompatible calling convention.
  2317. :
  2318. elif test $ac_prog = install &&
  2319. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2320. # program-specific install script used by HP pwplus--don't use.
  2321. :
  2322. else
  2323. rm -rf conftest.one conftest.two conftest.dir
  2324. echo one > conftest.one
  2325. echo two > conftest.two
  2326. mkdir conftest.dir
  2327. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2328. test -s conftest.one && test -s conftest.two &&
  2329. test -s conftest.dir/conftest.one &&
  2330. test -s conftest.dir/conftest.two
  2331. then
  2332. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2333. break 3
  2334. fi
  2335. fi
  2336. fi
  2337. done
  2338. done
  2339. ;;
  2340. esac
  2341. done
  2342. IFS=$as_save_IFS
  2343. rm -rf conftest.one conftest.two conftest.dir
  2344. fi
  2345. if test "${ac_cv_path_install+set}" = set; then
  2346. INSTALL=$ac_cv_path_install
  2347. else
  2348. # As a last resort, use the slow shell script. Don't cache a
  2349. # value for INSTALL within a source directory, because that will
  2350. # break other packages using the cache if that directory is
  2351. # removed, or if the value is a relative name.
  2352. INSTALL=$ac_install_sh
  2353. fi
  2354. fi
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2356. $as_echo "$INSTALL" >&6; }
  2357. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2358. # It thinks the first close brace ends the variable substitution.
  2359. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2360. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2361. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2363. $as_echo_n "checking whether build environment is sane... " >&6; }
  2364. # Just in case
  2365. sleep 1
  2366. echo timestamp > conftest.file
  2367. # Reject unsafe characters in $srcdir or the absolute working directory
  2368. # name. Accept space and tab only in the latter.
  2369. am_lf='
  2370. '
  2371. case `pwd` in
  2372. *[\\\"\#\$\&\'\`$am_lf]*)
  2373. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2374. esac
  2375. case $srcdir in
  2376. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2377. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2378. esac
  2379. # Do `set' in a subshell so we don't clobber the current shell's
  2380. # arguments. Must try -L first in case configure is actually a
  2381. # symlink; some systems play weird games with the mod time of symlinks
  2382. # (eg FreeBSD returns the mod time of the symlink's containing
  2383. # directory).
  2384. if (
  2385. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2386. if test "$*" = "X"; then
  2387. # -L didn't work.
  2388. set X `ls -t "$srcdir/configure" conftest.file`
  2389. fi
  2390. rm -f conftest.file
  2391. if test "$*" != "X $srcdir/configure conftest.file" \
  2392. && test "$*" != "X conftest.file $srcdir/configure"; then
  2393. # If neither matched, then we have a broken ls. This can happen
  2394. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2395. # broken ls alias from the environment. This has actually
  2396. # happened. Such a system could not be considered "sane".
  2397. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2398. alias in your environment" "$LINENO" 5
  2399. fi
  2400. test "$2" = conftest.file
  2401. )
  2402. then
  2403. # Ok.
  2404. :
  2405. else
  2406. as_fn_error $? "newly created file is older than distributed files!
  2407. Check your system clock" "$LINENO" 5
  2408. fi
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2410. $as_echo "yes" >&6; }
  2411. test "$program_prefix" != NONE &&
  2412. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2413. # Use a double $ so make ignores it.
  2414. test "$program_suffix" != NONE &&
  2415. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2416. # Double any \ or $.
  2417. # By default was `s,x,x', remove it if useless.
  2418. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2419. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2420. # expand $ac_aux_dir to an absolute path
  2421. am_aux_dir=`cd $ac_aux_dir && pwd`
  2422. if test x"${MISSING+set}" != xset; then
  2423. case $am_aux_dir in
  2424. *\ * | *\ *)
  2425. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2426. *)
  2427. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2428. esac
  2429. fi
  2430. # Use eval to expand $SHELL
  2431. if eval "$MISSING --run true"; then
  2432. am_missing_run="$MISSING --run "
  2433. else
  2434. am_missing_run=
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2436. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2437. fi
  2438. if test x"${install_sh}" != xset; then
  2439. case $am_aux_dir in
  2440. *\ * | *\ *)
  2441. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2442. *)
  2443. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2444. esac
  2445. fi
  2446. # Installed binaries are usually stripped using `strip' when the user
  2447. # run `make install-strip'. However `strip' might not be the right
  2448. # tool to use in cross-compilation environments, therefore Automake
  2449. # will honor the `STRIP' environment variable to overrule this program.
  2450. if test "$cross_compiling" != no; then
  2451. if test -n "$ac_tool_prefix"; then
  2452. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2453. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2455. $as_echo_n "checking for $ac_word... " >&6; }
  2456. if ${ac_cv_prog_STRIP+:} false; then :
  2457. $as_echo_n "(cached) " >&6
  2458. else
  2459. if test -n "$STRIP"; then
  2460. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2461. else
  2462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2463. for as_dir in $PATH
  2464. do
  2465. IFS=$as_save_IFS
  2466. test -z "$as_dir" && as_dir=.
  2467. for ac_exec_ext in '' $ac_executable_extensions; do
  2468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2469. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2471. break 2
  2472. fi
  2473. done
  2474. done
  2475. IFS=$as_save_IFS
  2476. fi
  2477. fi
  2478. STRIP=$ac_cv_prog_STRIP
  2479. if test -n "$STRIP"; then
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2481. $as_echo "$STRIP" >&6; }
  2482. else
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2484. $as_echo "no" >&6; }
  2485. fi
  2486. fi
  2487. if test -z "$ac_cv_prog_STRIP"; then
  2488. ac_ct_STRIP=$STRIP
  2489. # Extract the first word of "strip", so it can be a program name with args.
  2490. set dummy strip; ac_word=$2
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2492. $as_echo_n "checking for $ac_word... " >&6; }
  2493. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2494. $as_echo_n "(cached) " >&6
  2495. else
  2496. if test -n "$ac_ct_STRIP"; then
  2497. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2498. else
  2499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2500. for as_dir in $PATH
  2501. do
  2502. IFS=$as_save_IFS
  2503. test -z "$as_dir" && as_dir=.
  2504. for ac_exec_ext in '' $ac_executable_extensions; do
  2505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2506. ac_cv_prog_ac_ct_STRIP="strip"
  2507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2508. break 2
  2509. fi
  2510. done
  2511. done
  2512. IFS=$as_save_IFS
  2513. fi
  2514. fi
  2515. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2516. if test -n "$ac_ct_STRIP"; then
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2518. $as_echo "$ac_ct_STRIP" >&6; }
  2519. else
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2521. $as_echo "no" >&6; }
  2522. fi
  2523. if test "x$ac_ct_STRIP" = x; then
  2524. STRIP=":"
  2525. else
  2526. case $cross_compiling:$ac_tool_warned in
  2527. yes:)
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2529. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2530. ac_tool_warned=yes ;;
  2531. esac
  2532. STRIP=$ac_ct_STRIP
  2533. fi
  2534. else
  2535. STRIP="$ac_cv_prog_STRIP"
  2536. fi
  2537. fi
  2538. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2540. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2541. if test -z "$MKDIR_P"; then
  2542. if ${ac_cv_path_mkdir+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2546. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2547. do
  2548. IFS=$as_save_IFS
  2549. test -z "$as_dir" && as_dir=.
  2550. for ac_prog in mkdir gmkdir; do
  2551. for ac_exec_ext in '' $ac_executable_extensions; do
  2552. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2553. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2554. 'mkdir (GNU coreutils) '* | \
  2555. 'mkdir (coreutils) '* | \
  2556. 'mkdir (fileutils) '4.1*)
  2557. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2558. break 3;;
  2559. esac
  2560. done
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. test -d ./--version && rmdir ./--version
  2566. if test "${ac_cv_path_mkdir+set}" = set; then
  2567. MKDIR_P="$ac_cv_path_mkdir -p"
  2568. else
  2569. # As a last resort, use the slow shell script. Don't cache a
  2570. # value for MKDIR_P within a source directory, because that will
  2571. # break other packages using the cache if that directory is
  2572. # removed, or if the value is a relative name.
  2573. MKDIR_P="$ac_install_sh -d"
  2574. fi
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2577. $as_echo "$MKDIR_P" >&6; }
  2578. mkdir_p="$MKDIR_P"
  2579. case $mkdir_p in
  2580. [\\/$]* | ?:[\\/]*) ;;
  2581. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2582. esac
  2583. for ac_prog in gawk mawk nawk awk
  2584. do
  2585. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2586. set dummy $ac_prog; ac_word=$2
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2588. $as_echo_n "checking for $ac_word... " >&6; }
  2589. if ${ac_cv_prog_AWK+:} false; then :
  2590. $as_echo_n "(cached) " >&6
  2591. else
  2592. if test -n "$AWK"; then
  2593. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2594. else
  2595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2596. for as_dir in $PATH
  2597. do
  2598. IFS=$as_save_IFS
  2599. test -z "$as_dir" && as_dir=.
  2600. for ac_exec_ext in '' $ac_executable_extensions; do
  2601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2602. ac_cv_prog_AWK="$ac_prog"
  2603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2604. break 2
  2605. fi
  2606. done
  2607. done
  2608. IFS=$as_save_IFS
  2609. fi
  2610. fi
  2611. AWK=$ac_cv_prog_AWK
  2612. if test -n "$AWK"; then
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2614. $as_echo "$AWK" >&6; }
  2615. else
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2617. $as_echo "no" >&6; }
  2618. fi
  2619. test -n "$AWK" && break
  2620. done
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2622. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2623. set x ${MAKE-make}
  2624. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2625. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. cat >conftest.make <<\_ACEOF
  2629. SHELL = /bin/sh
  2630. all:
  2631. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2632. _ACEOF
  2633. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2634. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2635. *@@@%%%=?*=@@@%%%*)
  2636. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2637. *)
  2638. eval ac_cv_prog_make_${ac_make}_set=no;;
  2639. esac
  2640. rm -f conftest.make
  2641. fi
  2642. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2644. $as_echo "yes" >&6; }
  2645. SET_MAKE=
  2646. else
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2648. $as_echo "no" >&6; }
  2649. SET_MAKE="MAKE=${MAKE-make}"
  2650. fi
  2651. rm -rf .tst 2>/dev/null
  2652. mkdir .tst 2>/dev/null
  2653. if test -d .tst; then
  2654. am__leading_dot=.
  2655. else
  2656. am__leading_dot=_
  2657. fi
  2658. rmdir .tst 2>/dev/null
  2659. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2660. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2661. # is not polluted with repeated "-I."
  2662. am__isrc=' -I$(srcdir)'
  2663. # test to see if srcdir already configured
  2664. if test -f $srcdir/config.status; then
  2665. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2666. fi
  2667. fi
  2668. # test whether we have cygpath
  2669. if test -z "$CYGPATH_W"; then
  2670. if (cygpath --version) >/dev/null 2>/dev/null; then
  2671. CYGPATH_W='cygpath -w'
  2672. else
  2673. CYGPATH_W=echo
  2674. fi
  2675. fi
  2676. # Define the identity of the package.
  2677. PACKAGE='vcmi'
  2678. VERSION='0.84b'
  2679. cat >>confdefs.h <<_ACEOF
  2680. #define PACKAGE "$PACKAGE"
  2681. _ACEOF
  2682. cat >>confdefs.h <<_ACEOF
  2683. #define VERSION "$VERSION"
  2684. _ACEOF
  2685. # Some tools Automake needs.
  2686. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2687. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2688. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2689. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2690. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2691. # We need awk for the "check" target. The system "awk" is bad on
  2692. # some platforms.
  2693. # Always define AMTAR for backward compatibility.
  2694. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2695. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2696. # Checks for build toolchain
  2697. ac_ext=cpp
  2698. ac_cpp='$CXXCPP $CPPFLAGS'
  2699. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2700. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2701. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2702. ac_ext=cpp
  2703. ac_cpp='$CXXCPP $CPPFLAGS'
  2704. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2705. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2706. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2707. if test -z "$CXX"; then
  2708. if test -n "$CCC"; then
  2709. CXX=$CCC
  2710. else
  2711. if test -n "$ac_tool_prefix"; then
  2712. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2713. do
  2714. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2715. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2717. $as_echo_n "checking for $ac_word... " >&6; }
  2718. if ${ac_cv_prog_CXX+:} false; then :
  2719. $as_echo_n "(cached) " >&6
  2720. else
  2721. if test -n "$CXX"; then
  2722. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2723. else
  2724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2725. for as_dir in $PATH
  2726. do
  2727. IFS=$as_save_IFS
  2728. test -z "$as_dir" && as_dir=.
  2729. for ac_exec_ext in '' $ac_executable_extensions; do
  2730. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2731. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2733. break 2
  2734. fi
  2735. done
  2736. done
  2737. IFS=$as_save_IFS
  2738. fi
  2739. fi
  2740. CXX=$ac_cv_prog_CXX
  2741. if test -n "$CXX"; then
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2743. $as_echo "$CXX" >&6; }
  2744. else
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2746. $as_echo "no" >&6; }
  2747. fi
  2748. test -n "$CXX" && break
  2749. done
  2750. fi
  2751. if test -z "$CXX"; then
  2752. ac_ct_CXX=$CXX
  2753. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2754. do
  2755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2756. set dummy $ac_prog; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2760. $as_echo_n "(cached) " >&6
  2761. else
  2762. if test -n "$ac_ct_CXX"; then
  2763. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2764. else
  2765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2766. for as_dir in $PATH
  2767. do
  2768. IFS=$as_save_IFS
  2769. test -z "$as_dir" && as_dir=.
  2770. for ac_exec_ext in '' $ac_executable_extensions; do
  2771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2772. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774. break 2
  2775. fi
  2776. done
  2777. done
  2778. IFS=$as_save_IFS
  2779. fi
  2780. fi
  2781. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2782. if test -n "$ac_ct_CXX"; then
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2784. $as_echo "$ac_ct_CXX" >&6; }
  2785. else
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2787. $as_echo "no" >&6; }
  2788. fi
  2789. test -n "$ac_ct_CXX" && break
  2790. done
  2791. if test "x$ac_ct_CXX" = x; then
  2792. CXX="g++"
  2793. else
  2794. case $cross_compiling:$ac_tool_warned in
  2795. yes:)
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2798. ac_tool_warned=yes ;;
  2799. esac
  2800. CXX=$ac_ct_CXX
  2801. fi
  2802. fi
  2803. fi
  2804. fi
  2805. # Provide some information about the compiler.
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2807. set X $ac_compile
  2808. ac_compiler=$2
  2809. for ac_option in --version -v -V -qversion; do
  2810. { { ac_try="$ac_compiler $ac_option >&5"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2816. $as_echo "$ac_try_echo"; } >&5
  2817. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2818. ac_status=$?
  2819. if test -s conftest.err; then
  2820. sed '10a\
  2821. ... rest of stderr output deleted ...
  2822. 10q' conftest.err >conftest.er1
  2823. cat conftest.er1 >&5
  2824. fi
  2825. rm -f conftest.er1 conftest.err
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2827. test $ac_status = 0; }
  2828. done
  2829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2830. /* end confdefs.h. */
  2831. int
  2832. main ()
  2833. {
  2834. ;
  2835. return 0;
  2836. }
  2837. _ACEOF
  2838. ac_clean_files_save=$ac_clean_files
  2839. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2840. # Try to create an executable without -o first, disregard a.out.
  2841. # It will help us diagnose broken compilers, and finding out an intuition
  2842. # of exeext.
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2844. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2845. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2846. # The possible output files:
  2847. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2848. ac_rmfiles=
  2849. for ac_file in $ac_files
  2850. do
  2851. case $ac_file in
  2852. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2853. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2854. esac
  2855. done
  2856. rm -f $ac_rmfiles
  2857. if { { ac_try="$ac_link_default"
  2858. case "(($ac_try" in
  2859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2860. *) ac_try_echo=$ac_try;;
  2861. esac
  2862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2863. $as_echo "$ac_try_echo"; } >&5
  2864. (eval "$ac_link_default") 2>&5
  2865. ac_status=$?
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2867. test $ac_status = 0; }; then :
  2868. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2869. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2870. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2871. # so that the user can short-circuit this test for compilers unknown to
  2872. # Autoconf.
  2873. for ac_file in $ac_files ''
  2874. do
  2875. test -f "$ac_file" || continue
  2876. case $ac_file in
  2877. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2878. ;;
  2879. [ab].out )
  2880. # We found the default executable, but exeext='' is most
  2881. # certainly right.
  2882. break;;
  2883. *.* )
  2884. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2885. then :; else
  2886. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2887. fi
  2888. # We set ac_cv_exeext here because the later test for it is not
  2889. # safe: cross compilers may not add the suffix if given an `-o'
  2890. # argument, so we may need to know it at that point already.
  2891. # Even if this section looks crufty: it has the advantage of
  2892. # actually working.
  2893. break;;
  2894. * )
  2895. break;;
  2896. esac
  2897. done
  2898. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2899. else
  2900. ac_file=''
  2901. fi
  2902. if test -z "$ac_file"; then :
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2904. $as_echo "no" >&6; }
  2905. $as_echo "$as_me: failed program was:" >&5
  2906. sed 's/^/| /' conftest.$ac_ext >&5
  2907. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2908. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2909. as_fn_error 77 "C++ compiler cannot create executables
  2910. See \`config.log' for more details" "$LINENO" 5; }
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2913. $as_echo "yes" >&6; }
  2914. fi
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2916. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2918. $as_echo "$ac_file" >&6; }
  2919. ac_exeext=$ac_cv_exeext
  2920. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2921. ac_clean_files=$ac_clean_files_save
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2923. $as_echo_n "checking for suffix of executables... " >&6; }
  2924. if { { ac_try="$ac_link"
  2925. case "(($ac_try" in
  2926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2927. *) ac_try_echo=$ac_try;;
  2928. esac
  2929. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2930. $as_echo "$ac_try_echo"; } >&5
  2931. (eval "$ac_link") 2>&5
  2932. ac_status=$?
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2934. test $ac_status = 0; }; then :
  2935. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2936. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2937. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2938. # `rm'.
  2939. for ac_file in conftest.exe conftest conftest.*; do
  2940. test -f "$ac_file" || continue
  2941. case $ac_file in
  2942. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2943. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2944. break;;
  2945. * ) break;;
  2946. esac
  2947. done
  2948. else
  2949. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2950. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2951. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2952. See \`config.log' for more details" "$LINENO" 5; }
  2953. fi
  2954. rm -f conftest conftest$ac_cv_exeext
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2956. $as_echo "$ac_cv_exeext" >&6; }
  2957. rm -f conftest.$ac_ext
  2958. EXEEXT=$ac_cv_exeext
  2959. ac_exeext=$EXEEXT
  2960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2961. /* end confdefs.h. */
  2962. #include <stdio.h>
  2963. int
  2964. main ()
  2965. {
  2966. FILE *f = fopen ("conftest.out", "w");
  2967. return ferror (f) || fclose (f) != 0;
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. ac_clean_files="$ac_clean_files conftest.out"
  2973. # Check that the compiler produces executables we can run. If not, either
  2974. # the compiler is broken, or we cross compile.
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2976. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2977. if test "$cross_compiling" != yes; then
  2978. { { ac_try="$ac_link"
  2979. case "(($ac_try" in
  2980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2981. *) ac_try_echo=$ac_try;;
  2982. esac
  2983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2984. $as_echo "$ac_try_echo"; } >&5
  2985. (eval "$ac_link") 2>&5
  2986. ac_status=$?
  2987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2988. test $ac_status = 0; }
  2989. if { ac_try='./conftest$ac_cv_exeext'
  2990. { { case "(($ac_try" in
  2991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2992. *) ac_try_echo=$ac_try;;
  2993. esac
  2994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2995. $as_echo "$ac_try_echo"; } >&5
  2996. (eval "$ac_try") 2>&5
  2997. ac_status=$?
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2999. test $ac_status = 0; }; }; then
  3000. cross_compiling=no
  3001. else
  3002. if test "$cross_compiling" = maybe; then
  3003. cross_compiling=yes
  3004. else
  3005. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3007. as_fn_error $? "cannot run C++ compiled programs.
  3008. If you meant to cross compile, use \`--host'.
  3009. See \`config.log' for more details" "$LINENO" 5; }
  3010. fi
  3011. fi
  3012. fi
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3014. $as_echo "$cross_compiling" >&6; }
  3015. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3016. ac_clean_files=$ac_clean_files_save
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3018. $as_echo_n "checking for suffix of object files... " >&6; }
  3019. if ${ac_cv_objext+:} false; then :
  3020. $as_echo_n "(cached) " >&6
  3021. else
  3022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3023. /* end confdefs.h. */
  3024. int
  3025. main ()
  3026. {
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. rm -f conftest.o conftest.obj
  3032. if { { ac_try="$ac_compile"
  3033. case "(($ac_try" in
  3034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3035. *) ac_try_echo=$ac_try;;
  3036. esac
  3037. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3038. $as_echo "$ac_try_echo"; } >&5
  3039. (eval "$ac_compile") 2>&5
  3040. ac_status=$?
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3042. test $ac_status = 0; }; then :
  3043. for ac_file in conftest.o conftest.obj conftest.*; do
  3044. test -f "$ac_file" || continue;
  3045. case $ac_file in
  3046. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3047. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3048. break;;
  3049. esac
  3050. done
  3051. else
  3052. $as_echo "$as_me: failed program was:" >&5
  3053. sed 's/^/| /' conftest.$ac_ext >&5
  3054. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3056. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3057. See \`config.log' for more details" "$LINENO" 5; }
  3058. fi
  3059. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3060. fi
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3062. $as_echo "$ac_cv_objext" >&6; }
  3063. OBJEXT=$ac_cv_objext
  3064. ac_objext=$OBJEXT
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3066. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3067. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3068. $as_echo_n "(cached) " >&6
  3069. else
  3070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3071. /* end confdefs.h. */
  3072. int
  3073. main ()
  3074. {
  3075. #ifndef __GNUC__
  3076. choke me
  3077. #endif
  3078. ;
  3079. return 0;
  3080. }
  3081. _ACEOF
  3082. if ac_fn_cxx_try_compile "$LINENO"; then :
  3083. ac_compiler_gnu=yes
  3084. else
  3085. ac_compiler_gnu=no
  3086. fi
  3087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3088. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3089. fi
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3091. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3092. if test $ac_compiler_gnu = yes; then
  3093. GXX=yes
  3094. else
  3095. GXX=
  3096. fi
  3097. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3098. ac_save_CXXFLAGS=$CXXFLAGS
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3100. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3101. if ${ac_cv_prog_cxx_g+:} false; then :
  3102. $as_echo_n "(cached) " >&6
  3103. else
  3104. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3105. ac_cxx_werror_flag=yes
  3106. ac_cv_prog_cxx_g=no
  3107. CXXFLAGS="-g"
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. int
  3111. main ()
  3112. {
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. if ac_fn_cxx_try_compile "$LINENO"; then :
  3118. ac_cv_prog_cxx_g=yes
  3119. else
  3120. CXXFLAGS=""
  3121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3122. /* end confdefs.h. */
  3123. int
  3124. main ()
  3125. {
  3126. ;
  3127. return 0;
  3128. }
  3129. _ACEOF
  3130. if ac_fn_cxx_try_compile "$LINENO"; then :
  3131. else
  3132. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3133. CXXFLAGS="-g"
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136. int
  3137. main ()
  3138. {
  3139. ;
  3140. return 0;
  3141. }
  3142. _ACEOF
  3143. if ac_fn_cxx_try_compile "$LINENO"; then :
  3144. ac_cv_prog_cxx_g=yes
  3145. fi
  3146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3147. fi
  3148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3149. fi
  3150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3151. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3152. fi
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3154. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3155. if test "$ac_test_CXXFLAGS" = set; then
  3156. CXXFLAGS=$ac_save_CXXFLAGS
  3157. elif test $ac_cv_prog_cxx_g = yes; then
  3158. if test "$GXX" = yes; then
  3159. CXXFLAGS="-g -O2"
  3160. else
  3161. CXXFLAGS="-g"
  3162. fi
  3163. else
  3164. if test "$GXX" = yes; then
  3165. CXXFLAGS="-O2"
  3166. else
  3167. CXXFLAGS=
  3168. fi
  3169. fi
  3170. ac_ext=cpp
  3171. ac_cpp='$CXXCPP $CPPFLAGS'
  3172. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3173. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3174. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3175. DEPDIR="${am__leading_dot}deps"
  3176. ac_config_commands="$ac_config_commands depfiles"
  3177. am_make=${MAKE-make}
  3178. cat > confinc << 'END'
  3179. am__doit:
  3180. @echo this is the am__doit target
  3181. .PHONY: am__doit
  3182. END
  3183. # If we don't find an include directive, just comment out the code.
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3185. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3186. am__include="#"
  3187. am__quote=
  3188. _am_result=none
  3189. # First try GNU make style include.
  3190. echo "include confinc" > confmf
  3191. # Ignore all kinds of additional output from `make'.
  3192. case `$am_make -s -f confmf 2> /dev/null` in #(
  3193. *the\ am__doit\ target*)
  3194. am__include=include
  3195. am__quote=
  3196. _am_result=GNU
  3197. ;;
  3198. esac
  3199. # Now try BSD make style include.
  3200. if test "$am__include" = "#"; then
  3201. echo '.include "confinc"' > confmf
  3202. case `$am_make -s -f confmf 2> /dev/null` in #(
  3203. *the\ am__doit\ target*)
  3204. am__include=.include
  3205. am__quote="\""
  3206. _am_result=BSD
  3207. ;;
  3208. esac
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3211. $as_echo "$_am_result" >&6; }
  3212. rm -f confinc confmf
  3213. # Check whether --enable-dependency-tracking was given.
  3214. if test "${enable_dependency_tracking+set}" = set; then :
  3215. enableval=$enable_dependency_tracking;
  3216. fi
  3217. if test "x$enable_dependency_tracking" != xno; then
  3218. am_depcomp="$ac_aux_dir/depcomp"
  3219. AMDEPBACKSLASH='\'
  3220. fi
  3221. if test "x$enable_dependency_tracking" != xno; then
  3222. AMDEP_TRUE=
  3223. AMDEP_FALSE='#'
  3224. else
  3225. AMDEP_TRUE='#'
  3226. AMDEP_FALSE=
  3227. fi
  3228. depcc="$CXX" am_compiler_list=
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3230. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3231. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3235. # We make a subdir and do the tests there. Otherwise we can end up
  3236. # making bogus files that we don't know about and never remove. For
  3237. # instance it was reported that on HP-UX the gcc test will end up
  3238. # making a dummy file named `D' -- because `-MD' means `put the output
  3239. # in D'.
  3240. mkdir conftest.dir
  3241. # Copy depcomp to subdir because otherwise we won't find it if we're
  3242. # using a relative directory.
  3243. cp "$am_depcomp" conftest.dir
  3244. cd conftest.dir
  3245. # We will build objects and dependencies in a subdirectory because
  3246. # it helps to detect inapplicable dependency modes. For instance
  3247. # both Tru64's cc and ICC support -MD to output dependencies as a
  3248. # side effect of compilation, but ICC will put the dependencies in
  3249. # the current directory while Tru64 will put them in the object
  3250. # directory.
  3251. mkdir sub
  3252. am_cv_CXX_dependencies_compiler_type=none
  3253. if test "$am_compiler_list" = ""; then
  3254. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3255. fi
  3256. am__universal=false
  3257. case " $depcc " in #(
  3258. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3259. esac
  3260. for depmode in $am_compiler_list; do
  3261. # Setup a source with many dependencies, because some compilers
  3262. # like to wrap large dependency lists on column 80 (with \), and
  3263. # we should not choose a depcomp mode which is confused by this.
  3264. #
  3265. # We need to recreate these files for each test, as the compiler may
  3266. # overwrite some of them when testing with obscure command lines.
  3267. # This happens at least with the AIX C compiler.
  3268. : > sub/conftest.c
  3269. for i in 1 2 3 4 5 6; do
  3270. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3271. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3272. # Solaris 8's {/usr,}/bin/sh.
  3273. touch sub/conftst$i.h
  3274. done
  3275. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3276. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3277. # mode. It turns out that the SunPro C++ compiler does not properly
  3278. # handle `-M -o', and we need to detect this. Also, some Intel
  3279. # versions had trouble with output in subdirs
  3280. am__obj=sub/conftest.${OBJEXT-o}
  3281. am__minus_obj="-o $am__obj"
  3282. case $depmode in
  3283. gcc)
  3284. # This depmode causes a compiler race in universal mode.
  3285. test "$am__universal" = false || continue
  3286. ;;
  3287. nosideeffect)
  3288. # after this tag, mechanisms are not by side-effect, so they'll
  3289. # only be used when explicitly requested
  3290. if test "x$enable_dependency_tracking" = xyes; then
  3291. continue
  3292. else
  3293. break
  3294. fi
  3295. ;;
  3296. msvisualcpp | msvcmsys)
  3297. # This compiler won't grok `-c -o', but also, the minuso test has
  3298. # not run yet. These depmodes are late enough in the game, and
  3299. # so weak that their functioning should not be impacted.
  3300. am__obj=conftest.${OBJEXT-o}
  3301. am__minus_obj=
  3302. ;;
  3303. none) break ;;
  3304. esac
  3305. if depmode=$depmode \
  3306. source=sub/conftest.c object=$am__obj \
  3307. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3308. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3309. >/dev/null 2>conftest.err &&
  3310. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3311. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3312. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3313. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3314. # icc doesn't choke on unknown options, it will just issue warnings
  3315. # or remarks (even with -Werror). So we grep stderr for any message
  3316. # that says an option was ignored or not supported.
  3317. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3318. # icc: Command line warning: ignoring option '-M'; no argument required
  3319. # The diagnosis changed in icc 8.0:
  3320. # icc: Command line remark: option '-MP' not supported
  3321. if (grep 'ignoring option' conftest.err ||
  3322. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3323. am_cv_CXX_dependencies_compiler_type=$depmode
  3324. break
  3325. fi
  3326. fi
  3327. done
  3328. cd ..
  3329. rm -rf conftest.dir
  3330. else
  3331. am_cv_CXX_dependencies_compiler_type=none
  3332. fi
  3333. fi
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3335. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3336. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3337. if
  3338. test "x$enable_dependency_tracking" != xno \
  3339. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3340. am__fastdepCXX_TRUE=
  3341. am__fastdepCXX_FALSE='#'
  3342. else
  3343. am__fastdepCXX_TRUE='#'
  3344. am__fastdepCXX_FALSE=
  3345. fi
  3346. # Check whether --enable-shared was given.
  3347. if test "${enable_shared+set}" = set; then :
  3348. enableval=$enable_shared; p=${PACKAGE-default}
  3349. case $enableval in
  3350. yes) enable_shared=yes ;;
  3351. no) enable_shared=no ;;
  3352. *)
  3353. enable_shared=no
  3354. # Look at the argument we got. We use all the common list separators.
  3355. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3356. for pkg in $enableval; do
  3357. IFS="$lt_save_ifs"
  3358. if test "X$pkg" = "X$p"; then
  3359. enable_shared=yes
  3360. fi
  3361. done
  3362. IFS="$lt_save_ifs"
  3363. ;;
  3364. esac
  3365. else
  3366. enable_shared=yes
  3367. fi
  3368. # Check whether --enable-static was given.
  3369. if test "${enable_static+set}" = set; then :
  3370. enableval=$enable_static; p=${PACKAGE-default}
  3371. case $enableval in
  3372. yes) enable_static=yes ;;
  3373. no) enable_static=no ;;
  3374. *)
  3375. enable_static=no
  3376. # Look at the argument we got. We use all the common list separators.
  3377. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3378. for pkg in $enableval; do
  3379. IFS="$lt_save_ifs"
  3380. if test "X$pkg" = "X$p"; then
  3381. enable_static=yes
  3382. fi
  3383. done
  3384. IFS="$lt_save_ifs"
  3385. ;;
  3386. esac
  3387. else
  3388. enable_static=no
  3389. fi
  3390. case `pwd` in
  3391. *\ * | *\ *)
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3393. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3394. esac
  3395. macro_version='2.4'
  3396. macro_revision='1.3293'
  3397. ltmain="$ac_aux_dir/ltmain.sh"
  3398. # Make sure we can run config.sub.
  3399. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3400. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3402. $as_echo_n "checking build system type... " >&6; }
  3403. if ${ac_cv_build+:} false; then :
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. ac_build_alias=$build_alias
  3407. test "x$ac_build_alias" = x &&
  3408. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3409. test "x$ac_build_alias" = x &&
  3410. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3411. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3412. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3415. $as_echo "$ac_cv_build" >&6; }
  3416. case $ac_cv_build in
  3417. *-*-*) ;;
  3418. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3419. esac
  3420. build=$ac_cv_build
  3421. ac_save_IFS=$IFS; IFS='-'
  3422. set x $ac_cv_build
  3423. shift
  3424. build_cpu=$1
  3425. build_vendor=$2
  3426. shift; shift
  3427. # Remember, the first character of IFS is used to create $*,
  3428. # except with old shells:
  3429. build_os=$*
  3430. IFS=$ac_save_IFS
  3431. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3433. $as_echo_n "checking host system type... " >&6; }
  3434. if ${ac_cv_host+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. if test "x$host_alias" = x; then
  3438. ac_cv_host=$ac_cv_build
  3439. else
  3440. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3441. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3442. fi
  3443. fi
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3445. $as_echo "$ac_cv_host" >&6; }
  3446. case $ac_cv_host in
  3447. *-*-*) ;;
  3448. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3449. esac
  3450. host=$ac_cv_host
  3451. ac_save_IFS=$IFS; IFS='-'
  3452. set x $ac_cv_host
  3453. shift
  3454. host_cpu=$1
  3455. host_vendor=$2
  3456. shift; shift
  3457. # Remember, the first character of IFS is used to create $*,
  3458. # except with old shells:
  3459. host_os=$*
  3460. IFS=$ac_save_IFS
  3461. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3462. # Backslashify metacharacters that are still active within
  3463. # double-quoted strings.
  3464. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3465. # Same as above, but do not quote variable references.
  3466. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3467. # Sed substitution to delay expansion of an escaped shell variable in a
  3468. # double_quote_subst'ed string.
  3469. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3470. # Sed substitution to delay expansion of an escaped single quote.
  3471. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3472. # Sed substitution to avoid accidental globbing in evaled expressions
  3473. no_glob_subst='s/\*/\\\*/g'
  3474. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3475. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3476. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3478. $as_echo_n "checking how to print strings... " >&6; }
  3479. # Test print first, because it will be a builtin if present.
  3480. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3481. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3482. ECHO='print -r --'
  3483. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3484. ECHO='printf %s\n'
  3485. else
  3486. # Use this function as a fallback that always works.
  3487. func_fallback_echo ()
  3488. {
  3489. eval 'cat <<_LTECHO_EOF
  3490. $1
  3491. _LTECHO_EOF'
  3492. }
  3493. ECHO='func_fallback_echo'
  3494. fi
  3495. # func_echo_all arg...
  3496. # Invoke $ECHO with all args, space-separated.
  3497. func_echo_all ()
  3498. {
  3499. $ECHO ""
  3500. }
  3501. case "$ECHO" in
  3502. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3503. $as_echo "printf" >&6; } ;;
  3504. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3505. $as_echo "print -r" >&6; } ;;
  3506. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3507. $as_echo "cat" >&6; } ;;
  3508. esac
  3509. ac_ext=c
  3510. ac_cpp='$CPP $CPPFLAGS'
  3511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3514. if test -n "$ac_tool_prefix"; then
  3515. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3516. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3518. $as_echo_n "checking for $ac_word... " >&6; }
  3519. if ${ac_cv_prog_CC+:} false; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. if test -n "$CC"; then
  3523. ac_cv_prog_CC="$CC" # Let the user override the test.
  3524. else
  3525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3526. for as_dir in $PATH
  3527. do
  3528. IFS=$as_save_IFS
  3529. test -z "$as_dir" && as_dir=.
  3530. for ac_exec_ext in '' $ac_executable_extensions; do
  3531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3532. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3534. break 2
  3535. fi
  3536. done
  3537. done
  3538. IFS=$as_save_IFS
  3539. fi
  3540. fi
  3541. CC=$ac_cv_prog_CC
  3542. if test -n "$CC"; then
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3544. $as_echo "$CC" >&6; }
  3545. else
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3547. $as_echo "no" >&6; }
  3548. fi
  3549. fi
  3550. if test -z "$ac_cv_prog_CC"; then
  3551. ac_ct_CC=$CC
  3552. # Extract the first word of "gcc", so it can be a program name with args.
  3553. set dummy gcc; ac_word=$2
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3555. $as_echo_n "checking for $ac_word... " >&6; }
  3556. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3557. $as_echo_n "(cached) " >&6
  3558. else
  3559. if test -n "$ac_ct_CC"; then
  3560. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3561. else
  3562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563. for as_dir in $PATH
  3564. do
  3565. IFS=$as_save_IFS
  3566. test -z "$as_dir" && as_dir=.
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3569. ac_cv_prog_ac_ct_CC="gcc"
  3570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3571. break 2
  3572. fi
  3573. done
  3574. done
  3575. IFS=$as_save_IFS
  3576. fi
  3577. fi
  3578. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3579. if test -n "$ac_ct_CC"; then
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3581. $as_echo "$ac_ct_CC" >&6; }
  3582. else
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3584. $as_echo "no" >&6; }
  3585. fi
  3586. if test "x$ac_ct_CC" = x; then
  3587. CC=""
  3588. else
  3589. case $cross_compiling:$ac_tool_warned in
  3590. yes:)
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3593. ac_tool_warned=yes ;;
  3594. esac
  3595. CC=$ac_ct_CC
  3596. fi
  3597. else
  3598. CC="$ac_cv_prog_CC"
  3599. fi
  3600. if test -z "$CC"; then
  3601. if test -n "$ac_tool_prefix"; then
  3602. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3603. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3605. $as_echo_n "checking for $ac_word... " >&6; }
  3606. if ${ac_cv_prog_CC+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. if test -n "$CC"; then
  3610. ac_cv_prog_CC="$CC" # Let the user override the test.
  3611. else
  3612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3613. for as_dir in $PATH
  3614. do
  3615. IFS=$as_save_IFS
  3616. test -z "$as_dir" && as_dir=.
  3617. for ac_exec_ext in '' $ac_executable_extensions; do
  3618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3619. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3621. break 2
  3622. fi
  3623. done
  3624. done
  3625. IFS=$as_save_IFS
  3626. fi
  3627. fi
  3628. CC=$ac_cv_prog_CC
  3629. if test -n "$CC"; then
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3631. $as_echo "$CC" >&6; }
  3632. else
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3634. $as_echo "no" >&6; }
  3635. fi
  3636. fi
  3637. fi
  3638. if test -z "$CC"; then
  3639. # Extract the first word of "cc", so it can be a program name with args.
  3640. set dummy cc; ac_word=$2
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3642. $as_echo_n "checking for $ac_word... " >&6; }
  3643. if ${ac_cv_prog_CC+:} false; then :
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. if test -n "$CC"; then
  3647. ac_cv_prog_CC="$CC" # Let the user override the test.
  3648. else
  3649. ac_prog_rejected=no
  3650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3651. for as_dir in $PATH
  3652. do
  3653. IFS=$as_save_IFS
  3654. test -z "$as_dir" && as_dir=.
  3655. for ac_exec_ext in '' $ac_executable_extensions; do
  3656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3657. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3658. ac_prog_rejected=yes
  3659. continue
  3660. fi
  3661. ac_cv_prog_CC="cc"
  3662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3663. break 2
  3664. fi
  3665. done
  3666. done
  3667. IFS=$as_save_IFS
  3668. if test $ac_prog_rejected = yes; then
  3669. # We found a bogon in the path, so make sure we never use it.
  3670. set dummy $ac_cv_prog_CC
  3671. shift
  3672. if test $# != 0; then
  3673. # We chose a different compiler from the bogus one.
  3674. # However, it has the same basename, so the bogon will be chosen
  3675. # first if we set CC to just the basename; use the full file name.
  3676. shift
  3677. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3678. fi
  3679. fi
  3680. fi
  3681. fi
  3682. CC=$ac_cv_prog_CC
  3683. if test -n "$CC"; then
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3685. $as_echo "$CC" >&6; }
  3686. else
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3688. $as_echo "no" >&6; }
  3689. fi
  3690. fi
  3691. if test -z "$CC"; then
  3692. if test -n "$ac_tool_prefix"; then
  3693. for ac_prog in cl.exe
  3694. do
  3695. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3696. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3698. $as_echo_n "checking for $ac_word... " >&6; }
  3699. if ${ac_cv_prog_CC+:} false; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. if test -n "$CC"; then
  3703. ac_cv_prog_CC="$CC" # Let the user override the test.
  3704. else
  3705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3706. for as_dir in $PATH
  3707. do
  3708. IFS=$as_save_IFS
  3709. test -z "$as_dir" && as_dir=.
  3710. for ac_exec_ext in '' $ac_executable_extensions; do
  3711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3712. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3714. break 2
  3715. fi
  3716. done
  3717. done
  3718. IFS=$as_save_IFS
  3719. fi
  3720. fi
  3721. CC=$ac_cv_prog_CC
  3722. if test -n "$CC"; then
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3724. $as_echo "$CC" >&6; }
  3725. else
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3727. $as_echo "no" >&6; }
  3728. fi
  3729. test -n "$CC" && break
  3730. done
  3731. fi
  3732. if test -z "$CC"; then
  3733. ac_ct_CC=$CC
  3734. for ac_prog in cl.exe
  3735. do
  3736. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3737. set dummy $ac_prog; ac_word=$2
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3739. $as_echo_n "checking for $ac_word... " >&6; }
  3740. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if test -n "$ac_ct_CC"; then
  3744. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3745. else
  3746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3747. for as_dir in $PATH
  3748. do
  3749. IFS=$as_save_IFS
  3750. test -z "$as_dir" && as_dir=.
  3751. for ac_exec_ext in '' $ac_executable_extensions; do
  3752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3753. ac_cv_prog_ac_ct_CC="$ac_prog"
  3754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3755. break 2
  3756. fi
  3757. done
  3758. done
  3759. IFS=$as_save_IFS
  3760. fi
  3761. fi
  3762. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3763. if test -n "$ac_ct_CC"; then
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3765. $as_echo "$ac_ct_CC" >&6; }
  3766. else
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3768. $as_echo "no" >&6; }
  3769. fi
  3770. test -n "$ac_ct_CC" && break
  3771. done
  3772. if test "x$ac_ct_CC" = x; then
  3773. CC=""
  3774. else
  3775. case $cross_compiling:$ac_tool_warned in
  3776. yes:)
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3779. ac_tool_warned=yes ;;
  3780. esac
  3781. CC=$ac_ct_CC
  3782. fi
  3783. fi
  3784. fi
  3785. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3786. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3787. as_fn_error $? "no acceptable C compiler found in \$PATH
  3788. See \`config.log' for more details" "$LINENO" 5; }
  3789. # Provide some information about the compiler.
  3790. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3791. set X $ac_compile
  3792. ac_compiler=$2
  3793. for ac_option in --version -v -V -qversion; do
  3794. { { ac_try="$ac_compiler $ac_option >&5"
  3795. case "(($ac_try" in
  3796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3797. *) ac_try_echo=$ac_try;;
  3798. esac
  3799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3800. $as_echo "$ac_try_echo"; } >&5
  3801. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3802. ac_status=$?
  3803. if test -s conftest.err; then
  3804. sed '10a\
  3805. ... rest of stderr output deleted ...
  3806. 10q' conftest.err >conftest.er1
  3807. cat conftest.er1 >&5
  3808. fi
  3809. rm -f conftest.er1 conftest.err
  3810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3811. test $ac_status = 0; }
  3812. done
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3814. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3815. if ${ac_cv_c_compiler_gnu+:} false; then :
  3816. $as_echo_n "(cached) " >&6
  3817. else
  3818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3819. /* end confdefs.h. */
  3820. int
  3821. main ()
  3822. {
  3823. #ifndef __GNUC__
  3824. choke me
  3825. #endif
  3826. ;
  3827. return 0;
  3828. }
  3829. _ACEOF
  3830. if ac_fn_c_try_compile "$LINENO"; then :
  3831. ac_compiler_gnu=yes
  3832. else
  3833. ac_compiler_gnu=no
  3834. fi
  3835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3836. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3839. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3840. if test $ac_compiler_gnu = yes; then
  3841. GCC=yes
  3842. else
  3843. GCC=
  3844. fi
  3845. ac_test_CFLAGS=${CFLAGS+set}
  3846. ac_save_CFLAGS=$CFLAGS
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3848. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3849. if ${ac_cv_prog_cc_g+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. ac_save_c_werror_flag=$ac_c_werror_flag
  3853. ac_c_werror_flag=yes
  3854. ac_cv_prog_cc_g=no
  3855. CFLAGS="-g"
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. int
  3859. main ()
  3860. {
  3861. ;
  3862. return 0;
  3863. }
  3864. _ACEOF
  3865. if ac_fn_c_try_compile "$LINENO"; then :
  3866. ac_cv_prog_cc_g=yes
  3867. else
  3868. CFLAGS=""
  3869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3870. /* end confdefs.h. */
  3871. int
  3872. main ()
  3873. {
  3874. ;
  3875. return 0;
  3876. }
  3877. _ACEOF
  3878. if ac_fn_c_try_compile "$LINENO"; then :
  3879. else
  3880. ac_c_werror_flag=$ac_save_c_werror_flag
  3881. CFLAGS="-g"
  3882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3883. /* end confdefs.h. */
  3884. int
  3885. main ()
  3886. {
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. if ac_fn_c_try_compile "$LINENO"; then :
  3892. ac_cv_prog_cc_g=yes
  3893. fi
  3894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3895. fi
  3896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3897. fi
  3898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3899. ac_c_werror_flag=$ac_save_c_werror_flag
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3902. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3903. if test "$ac_test_CFLAGS" = set; then
  3904. CFLAGS=$ac_save_CFLAGS
  3905. elif test $ac_cv_prog_cc_g = yes; then
  3906. if test "$GCC" = yes; then
  3907. CFLAGS="-g -O2"
  3908. else
  3909. CFLAGS="-g"
  3910. fi
  3911. else
  3912. if test "$GCC" = yes; then
  3913. CFLAGS="-O2"
  3914. else
  3915. CFLAGS=
  3916. fi
  3917. fi
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3919. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3920. if ${ac_cv_prog_cc_c89+:} false; then :
  3921. $as_echo_n "(cached) " >&6
  3922. else
  3923. ac_cv_prog_cc_c89=no
  3924. ac_save_CC=$CC
  3925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3926. /* end confdefs.h. */
  3927. #include <stdarg.h>
  3928. #include <stdio.h>
  3929. #include <sys/types.h>
  3930. #include <sys/stat.h>
  3931. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3932. struct buf { int x; };
  3933. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3934. static char *e (p, i)
  3935. char **p;
  3936. int i;
  3937. {
  3938. return p[i];
  3939. }
  3940. static char *f (char * (*g) (char **, int), char **p, ...)
  3941. {
  3942. char *s;
  3943. va_list v;
  3944. va_start (v,p);
  3945. s = g (p, va_arg (v,int));
  3946. va_end (v);
  3947. return s;
  3948. }
  3949. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3950. function prototypes and stuff, but not '\xHH' hex character constants.
  3951. These don't provoke an error unfortunately, instead are silently treated
  3952. as 'x'. The following induces an error, until -std is added to get
  3953. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3954. array size at least. It's necessary to write '\x00'==0 to get something
  3955. that's true only with -std. */
  3956. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3957. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3958. inside strings and character constants. */
  3959. #define FOO(x) 'x'
  3960. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3961. int test (int i, double x);
  3962. struct s1 {int (*f) (int a);};
  3963. struct s2 {int (*f) (double a);};
  3964. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3965. int argc;
  3966. char **argv;
  3967. int
  3968. main ()
  3969. {
  3970. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3971. ;
  3972. return 0;
  3973. }
  3974. _ACEOF
  3975. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3976. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3977. do
  3978. CC="$ac_save_CC $ac_arg"
  3979. if ac_fn_c_try_compile "$LINENO"; then :
  3980. ac_cv_prog_cc_c89=$ac_arg
  3981. fi
  3982. rm -f core conftest.err conftest.$ac_objext
  3983. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3984. done
  3985. rm -f conftest.$ac_ext
  3986. CC=$ac_save_CC
  3987. fi
  3988. # AC_CACHE_VAL
  3989. case "x$ac_cv_prog_cc_c89" in
  3990. x)
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3992. $as_echo "none needed" >&6; } ;;
  3993. xno)
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3995. $as_echo "unsupported" >&6; } ;;
  3996. *)
  3997. CC="$CC $ac_cv_prog_cc_c89"
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3999. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4000. esac
  4001. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4002. fi
  4003. ac_ext=cpp
  4004. ac_cpp='$CXXCPP $CPPFLAGS'
  4005. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4006. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4007. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4008. depcc="$CC" am_compiler_list=
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4010. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4011. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4012. $as_echo_n "(cached) " >&6
  4013. else
  4014. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4015. # We make a subdir and do the tests there. Otherwise we can end up
  4016. # making bogus files that we don't know about and never remove. For
  4017. # instance it was reported that on HP-UX the gcc test will end up
  4018. # making a dummy file named `D' -- because `-MD' means `put the output
  4019. # in D'.
  4020. mkdir conftest.dir
  4021. # Copy depcomp to subdir because otherwise we won't find it if we're
  4022. # using a relative directory.
  4023. cp "$am_depcomp" conftest.dir
  4024. cd conftest.dir
  4025. # We will build objects and dependencies in a subdirectory because
  4026. # it helps to detect inapplicable dependency modes. For instance
  4027. # both Tru64's cc and ICC support -MD to output dependencies as a
  4028. # side effect of compilation, but ICC will put the dependencies in
  4029. # the current directory while Tru64 will put them in the object
  4030. # directory.
  4031. mkdir sub
  4032. am_cv_CC_dependencies_compiler_type=none
  4033. if test "$am_compiler_list" = ""; then
  4034. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4035. fi
  4036. am__universal=false
  4037. case " $depcc " in #(
  4038. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4039. esac
  4040. for depmode in $am_compiler_list; do
  4041. # Setup a source with many dependencies, because some compilers
  4042. # like to wrap large dependency lists on column 80 (with \), and
  4043. # we should not choose a depcomp mode which is confused by this.
  4044. #
  4045. # We need to recreate these files for each test, as the compiler may
  4046. # overwrite some of them when testing with obscure command lines.
  4047. # This happens at least with the AIX C compiler.
  4048. : > sub/conftest.c
  4049. for i in 1 2 3 4 5 6; do
  4050. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4051. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4052. # Solaris 8's {/usr,}/bin/sh.
  4053. touch sub/conftst$i.h
  4054. done
  4055. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4056. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4057. # mode. It turns out that the SunPro C++ compiler does not properly
  4058. # handle `-M -o', and we need to detect this. Also, some Intel
  4059. # versions had trouble with output in subdirs
  4060. am__obj=sub/conftest.${OBJEXT-o}
  4061. am__minus_obj="-o $am__obj"
  4062. case $depmode in
  4063. gcc)
  4064. # This depmode causes a compiler race in universal mode.
  4065. test "$am__universal" = false || continue
  4066. ;;
  4067. nosideeffect)
  4068. # after this tag, mechanisms are not by side-effect, so they'll
  4069. # only be used when explicitly requested
  4070. if test "x$enable_dependency_tracking" = xyes; then
  4071. continue
  4072. else
  4073. break
  4074. fi
  4075. ;;
  4076. msvisualcpp | msvcmsys)
  4077. # This compiler won't grok `-c -o', but also, the minuso test has
  4078. # not run yet. These depmodes are late enough in the game, and
  4079. # so weak that their functioning should not be impacted.
  4080. am__obj=conftest.${OBJEXT-o}
  4081. am__minus_obj=
  4082. ;;
  4083. none) break ;;
  4084. esac
  4085. if depmode=$depmode \
  4086. source=sub/conftest.c object=$am__obj \
  4087. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4088. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4089. >/dev/null 2>conftest.err &&
  4090. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4091. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4092. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4093. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4094. # icc doesn't choke on unknown options, it will just issue warnings
  4095. # or remarks (even with -Werror). So we grep stderr for any message
  4096. # that says an option was ignored or not supported.
  4097. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4098. # icc: Command line warning: ignoring option '-M'; no argument required
  4099. # The diagnosis changed in icc 8.0:
  4100. # icc: Command line remark: option '-MP' not supported
  4101. if (grep 'ignoring option' conftest.err ||
  4102. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4103. am_cv_CC_dependencies_compiler_type=$depmode
  4104. break
  4105. fi
  4106. fi
  4107. done
  4108. cd ..
  4109. rm -rf conftest.dir
  4110. else
  4111. am_cv_CC_dependencies_compiler_type=none
  4112. fi
  4113. fi
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4115. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4116. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4117. if
  4118. test "x$enable_dependency_tracking" != xno \
  4119. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4120. am__fastdepCC_TRUE=
  4121. am__fastdepCC_FALSE='#'
  4122. else
  4123. am__fastdepCC_TRUE='#'
  4124. am__fastdepCC_FALSE=
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4127. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4128. if ${ac_cv_path_SED+:} false; then :
  4129. $as_echo_n "(cached) " >&6
  4130. else
  4131. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4132. for ac_i in 1 2 3 4 5 6 7; do
  4133. ac_script="$ac_script$as_nl$ac_script"
  4134. done
  4135. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4136. { ac_script=; unset ac_script;}
  4137. if test -z "$SED"; then
  4138. ac_path_SED_found=false
  4139. # Loop through the user's path and test for each of PROGNAME-LIST
  4140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4141. for as_dir in $PATH
  4142. do
  4143. IFS=$as_save_IFS
  4144. test -z "$as_dir" && as_dir=.
  4145. for ac_prog in sed gsed; do
  4146. for ac_exec_ext in '' $ac_executable_extensions; do
  4147. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4148. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4149. # Check for GNU ac_path_SED and select it if it is found.
  4150. # Check for GNU $ac_path_SED
  4151. case `"$ac_path_SED" --version 2>&1` in
  4152. *GNU*)
  4153. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4154. *)
  4155. ac_count=0
  4156. $as_echo_n 0123456789 >"conftest.in"
  4157. while :
  4158. do
  4159. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4160. mv "conftest.tmp" "conftest.in"
  4161. cp "conftest.in" "conftest.nl"
  4162. $as_echo '' >> "conftest.nl"
  4163. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4164. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4165. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4166. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4167. # Best one so far, save it but keep looking for a better one
  4168. ac_cv_path_SED="$ac_path_SED"
  4169. ac_path_SED_max=$ac_count
  4170. fi
  4171. # 10*(2^10) chars as input seems more than enough
  4172. test $ac_count -gt 10 && break
  4173. done
  4174. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4175. esac
  4176. $ac_path_SED_found && break 3
  4177. done
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. if test -z "$ac_cv_path_SED"; then
  4182. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4183. fi
  4184. else
  4185. ac_cv_path_SED=$SED
  4186. fi
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4189. $as_echo "$ac_cv_path_SED" >&6; }
  4190. SED="$ac_cv_path_SED"
  4191. rm -f conftest.sed
  4192. test -z "$SED" && SED=sed
  4193. Xsed="$SED -e 1s/^X//"
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4195. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4196. if ${ac_cv_path_GREP+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. if test -z "$GREP"; then
  4200. ac_path_GREP_found=false
  4201. # Loop through the user's path and test for each of PROGNAME-LIST
  4202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4203. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4204. do
  4205. IFS=$as_save_IFS
  4206. test -z "$as_dir" && as_dir=.
  4207. for ac_prog in grep ggrep; do
  4208. for ac_exec_ext in '' $ac_executable_extensions; do
  4209. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4210. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4211. # Check for GNU ac_path_GREP and select it if it is found.
  4212. # Check for GNU $ac_path_GREP
  4213. case `"$ac_path_GREP" --version 2>&1` in
  4214. *GNU*)
  4215. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4216. *)
  4217. ac_count=0
  4218. $as_echo_n 0123456789 >"conftest.in"
  4219. while :
  4220. do
  4221. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4222. mv "conftest.tmp" "conftest.in"
  4223. cp "conftest.in" "conftest.nl"
  4224. $as_echo 'GREP' >> "conftest.nl"
  4225. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4226. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4227. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4228. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4229. # Best one so far, save it but keep looking for a better one
  4230. ac_cv_path_GREP="$ac_path_GREP"
  4231. ac_path_GREP_max=$ac_count
  4232. fi
  4233. # 10*(2^10) chars as input seems more than enough
  4234. test $ac_count -gt 10 && break
  4235. done
  4236. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4237. esac
  4238. $ac_path_GREP_found && break 3
  4239. done
  4240. done
  4241. done
  4242. IFS=$as_save_IFS
  4243. if test -z "$ac_cv_path_GREP"; then
  4244. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4245. fi
  4246. else
  4247. ac_cv_path_GREP=$GREP
  4248. fi
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4251. $as_echo "$ac_cv_path_GREP" >&6; }
  4252. GREP="$ac_cv_path_GREP"
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4254. $as_echo_n "checking for egrep... " >&6; }
  4255. if ${ac_cv_path_EGREP+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4259. then ac_cv_path_EGREP="$GREP -E"
  4260. else
  4261. if test -z "$EGREP"; then
  4262. ac_path_EGREP_found=false
  4263. # Loop through the user's path and test for each of PROGNAME-LIST
  4264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4265. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4266. do
  4267. IFS=$as_save_IFS
  4268. test -z "$as_dir" && as_dir=.
  4269. for ac_prog in egrep; do
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4272. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4273. # Check for GNU ac_path_EGREP and select it if it is found.
  4274. # Check for GNU $ac_path_EGREP
  4275. case `"$ac_path_EGREP" --version 2>&1` in
  4276. *GNU*)
  4277. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4278. *)
  4279. ac_count=0
  4280. $as_echo_n 0123456789 >"conftest.in"
  4281. while :
  4282. do
  4283. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4284. mv "conftest.tmp" "conftest.in"
  4285. cp "conftest.in" "conftest.nl"
  4286. $as_echo 'EGREP' >> "conftest.nl"
  4287. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4288. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4289. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4290. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4291. # Best one so far, save it but keep looking for a better one
  4292. ac_cv_path_EGREP="$ac_path_EGREP"
  4293. ac_path_EGREP_max=$ac_count
  4294. fi
  4295. # 10*(2^10) chars as input seems more than enough
  4296. test $ac_count -gt 10 && break
  4297. done
  4298. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4299. esac
  4300. $ac_path_EGREP_found && break 3
  4301. done
  4302. done
  4303. done
  4304. IFS=$as_save_IFS
  4305. if test -z "$ac_cv_path_EGREP"; then
  4306. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4307. fi
  4308. else
  4309. ac_cv_path_EGREP=$EGREP
  4310. fi
  4311. fi
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4314. $as_echo "$ac_cv_path_EGREP" >&6; }
  4315. EGREP="$ac_cv_path_EGREP"
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4317. $as_echo_n "checking for fgrep... " >&6; }
  4318. if ${ac_cv_path_FGREP+:} false; then :
  4319. $as_echo_n "(cached) " >&6
  4320. else
  4321. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4322. then ac_cv_path_FGREP="$GREP -F"
  4323. else
  4324. if test -z "$FGREP"; then
  4325. ac_path_FGREP_found=false
  4326. # Loop through the user's path and test for each of PROGNAME-LIST
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_prog in fgrep; do
  4333. for ac_exec_ext in '' $ac_executable_extensions; do
  4334. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4335. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4336. # Check for GNU ac_path_FGREP and select it if it is found.
  4337. # Check for GNU $ac_path_FGREP
  4338. case `"$ac_path_FGREP" --version 2>&1` in
  4339. *GNU*)
  4340. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4341. *)
  4342. ac_count=0
  4343. $as_echo_n 0123456789 >"conftest.in"
  4344. while :
  4345. do
  4346. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4347. mv "conftest.tmp" "conftest.in"
  4348. cp "conftest.in" "conftest.nl"
  4349. $as_echo 'FGREP' >> "conftest.nl"
  4350. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4351. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4352. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4353. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4354. # Best one so far, save it but keep looking for a better one
  4355. ac_cv_path_FGREP="$ac_path_FGREP"
  4356. ac_path_FGREP_max=$ac_count
  4357. fi
  4358. # 10*(2^10) chars as input seems more than enough
  4359. test $ac_count -gt 10 && break
  4360. done
  4361. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4362. esac
  4363. $ac_path_FGREP_found && break 3
  4364. done
  4365. done
  4366. done
  4367. IFS=$as_save_IFS
  4368. if test -z "$ac_cv_path_FGREP"; then
  4369. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4370. fi
  4371. else
  4372. ac_cv_path_FGREP=$FGREP
  4373. fi
  4374. fi
  4375. fi
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4377. $as_echo "$ac_cv_path_FGREP" >&6; }
  4378. FGREP="$ac_cv_path_FGREP"
  4379. test -z "$GREP" && GREP=grep
  4380. # Check whether --with-gnu-ld was given.
  4381. if test "${with_gnu_ld+set}" = set; then :
  4382. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4383. else
  4384. with_gnu_ld=no
  4385. fi
  4386. ac_prog=ld
  4387. if test "$GCC" = yes; then
  4388. # Check if gcc -print-prog-name=ld gives a path.
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4390. $as_echo_n "checking for ld used by $CC... " >&6; }
  4391. case $host in
  4392. *-*-mingw*)
  4393. # gcc leaves a trailing carriage return which upsets mingw
  4394. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4395. *)
  4396. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4397. esac
  4398. case $ac_prog in
  4399. # Accept absolute paths.
  4400. [\\/]* | ?:[\\/]*)
  4401. re_direlt='/[^/][^/]*/\.\./'
  4402. # Canonicalize the pathname of ld
  4403. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4404. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4405. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4406. done
  4407. test -z "$LD" && LD="$ac_prog"
  4408. ;;
  4409. "")
  4410. # If it fails, then pretend we aren't using GCC.
  4411. ac_prog=ld
  4412. ;;
  4413. *)
  4414. # If it is relative, then search for the first ld in PATH.
  4415. with_gnu_ld=unknown
  4416. ;;
  4417. esac
  4418. elif test "$with_gnu_ld" = yes; then
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4420. $as_echo_n "checking for GNU ld... " >&6; }
  4421. else
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4423. $as_echo_n "checking for non-GNU ld... " >&6; }
  4424. fi
  4425. if ${lt_cv_path_LD+:} false; then :
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. if test -z "$LD"; then
  4429. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4430. for ac_dir in $PATH; do
  4431. IFS="$lt_save_ifs"
  4432. test -z "$ac_dir" && ac_dir=.
  4433. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4434. lt_cv_path_LD="$ac_dir/$ac_prog"
  4435. # Check to see if the program is GNU ld. I'd rather use --version,
  4436. # but apparently some variants of GNU ld only accept -v.
  4437. # Break only if it was the GNU/non-GNU ld that we prefer.
  4438. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4439. *GNU* | *'with BFD'*)
  4440. test "$with_gnu_ld" != no && break
  4441. ;;
  4442. *)
  4443. test "$with_gnu_ld" != yes && break
  4444. ;;
  4445. esac
  4446. fi
  4447. done
  4448. IFS="$lt_save_ifs"
  4449. else
  4450. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4451. fi
  4452. fi
  4453. LD="$lt_cv_path_LD"
  4454. if test -n "$LD"; then
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4456. $as_echo "$LD" >&6; }
  4457. else
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4459. $as_echo "no" >&6; }
  4460. fi
  4461. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4463. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4464. if ${lt_cv_prog_gnu_ld+:} false; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4468. case `$LD -v 2>&1 </dev/null` in
  4469. *GNU* | *'with BFD'*)
  4470. lt_cv_prog_gnu_ld=yes
  4471. ;;
  4472. *)
  4473. lt_cv_prog_gnu_ld=no
  4474. ;;
  4475. esac
  4476. fi
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4478. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4479. with_gnu_ld=$lt_cv_prog_gnu_ld
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4481. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4482. if ${lt_cv_path_NM+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$NM"; then
  4486. # Let the user override the test.
  4487. lt_cv_path_NM="$NM"
  4488. else
  4489. lt_nm_to_check="${ac_tool_prefix}nm"
  4490. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4491. lt_nm_to_check="$lt_nm_to_check nm"
  4492. fi
  4493. for lt_tmp_nm in $lt_nm_to_check; do
  4494. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4495. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4496. IFS="$lt_save_ifs"
  4497. test -z "$ac_dir" && ac_dir=.
  4498. tmp_nm="$ac_dir/$lt_tmp_nm"
  4499. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4500. # Check to see if the nm accepts a BSD-compat flag.
  4501. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4502. # nm: unknown option "B" ignored
  4503. # Tru64's nm complains that /dev/null is an invalid object file
  4504. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4505. */dev/null* | *'Invalid file or object type'*)
  4506. lt_cv_path_NM="$tmp_nm -B"
  4507. break
  4508. ;;
  4509. *)
  4510. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4511. */dev/null*)
  4512. lt_cv_path_NM="$tmp_nm -p"
  4513. break
  4514. ;;
  4515. *)
  4516. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4517. continue # so that we can try to find one that supports BSD flags
  4518. ;;
  4519. esac
  4520. ;;
  4521. esac
  4522. fi
  4523. done
  4524. IFS="$lt_save_ifs"
  4525. done
  4526. : ${lt_cv_path_NM=no}
  4527. fi
  4528. fi
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4530. $as_echo "$lt_cv_path_NM" >&6; }
  4531. if test "$lt_cv_path_NM" != "no"; then
  4532. NM="$lt_cv_path_NM"
  4533. else
  4534. # Didn't find any BSD compatible name lister, look for dumpbin.
  4535. if test -n "$DUMPBIN"; then :
  4536. # Let the user override the test.
  4537. else
  4538. if test -n "$ac_tool_prefix"; then
  4539. for ac_prog in dumpbin "link -dump"
  4540. do
  4541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4544. $as_echo_n "checking for $ac_word... " >&6; }
  4545. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if test -n "$DUMPBIN"; then
  4549. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4550. else
  4551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4552. for as_dir in $PATH
  4553. do
  4554. IFS=$as_save_IFS
  4555. test -z "$as_dir" && as_dir=.
  4556. for ac_exec_ext in '' $ac_executable_extensions; do
  4557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4558. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4560. break 2
  4561. fi
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. fi
  4566. fi
  4567. DUMPBIN=$ac_cv_prog_DUMPBIN
  4568. if test -n "$DUMPBIN"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4570. $as_echo "$DUMPBIN" >&6; }
  4571. else
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4573. $as_echo "no" >&6; }
  4574. fi
  4575. test -n "$DUMPBIN" && break
  4576. done
  4577. fi
  4578. if test -z "$DUMPBIN"; then
  4579. ac_ct_DUMPBIN=$DUMPBIN
  4580. for ac_prog in dumpbin "link -dump"
  4581. do
  4582. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4583. set dummy $ac_prog; ac_word=$2
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. $as_echo_n "checking for $ac_word... " >&6; }
  4586. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if test -n "$ac_ct_DUMPBIN"; then
  4590. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4591. else
  4592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4593. for as_dir in $PATH
  4594. do
  4595. IFS=$as_save_IFS
  4596. test -z "$as_dir" && as_dir=.
  4597. for ac_exec_ext in '' $ac_executable_extensions; do
  4598. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4599. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4601. break 2
  4602. fi
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. fi
  4607. fi
  4608. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4609. if test -n "$ac_ct_DUMPBIN"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4611. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. test -n "$ac_ct_DUMPBIN" && break
  4617. done
  4618. if test "x$ac_ct_DUMPBIN" = x; then
  4619. DUMPBIN=":"
  4620. else
  4621. case $cross_compiling:$ac_tool_warned in
  4622. yes:)
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4625. ac_tool_warned=yes ;;
  4626. esac
  4627. DUMPBIN=$ac_ct_DUMPBIN
  4628. fi
  4629. fi
  4630. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4631. *COFF*)
  4632. DUMPBIN="$DUMPBIN -symbols"
  4633. ;;
  4634. *)
  4635. DUMPBIN=:
  4636. ;;
  4637. esac
  4638. fi
  4639. if test "$DUMPBIN" != ":"; then
  4640. NM="$DUMPBIN"
  4641. fi
  4642. fi
  4643. test -z "$NM" && NM=nm
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4645. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4646. if ${lt_cv_nm_interface+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. lt_cv_nm_interface="BSD nm"
  4650. echo "int some_variable = 0;" > conftest.$ac_ext
  4651. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4652. (eval "$ac_compile" 2>conftest.err)
  4653. cat conftest.err >&5
  4654. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4655. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4656. cat conftest.err >&5
  4657. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4658. cat conftest.out >&5
  4659. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4660. lt_cv_nm_interface="MS dumpbin"
  4661. fi
  4662. rm -f conftest*
  4663. fi
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4665. $as_echo "$lt_cv_nm_interface" >&6; }
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4667. $as_echo_n "checking whether ln -s works... " >&6; }
  4668. LN_S=$as_ln_s
  4669. if test "$LN_S" = "ln -s"; then
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4671. $as_echo "yes" >&6; }
  4672. else
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4674. $as_echo "no, using $LN_S" >&6; }
  4675. fi
  4676. # find the maximum length of command line arguments
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4678. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4679. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. i=0
  4683. teststring="ABCD"
  4684. case $build_os in
  4685. msdosdjgpp*)
  4686. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4687. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4688. # during glob expansion). Even if it were fixed, the result of this
  4689. # check would be larger than it should be.
  4690. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4691. ;;
  4692. gnu*)
  4693. # Under GNU Hurd, this test is not required because there is
  4694. # no limit to the length of command line arguments.
  4695. # Libtool will interpret -1 as no limit whatsoever
  4696. lt_cv_sys_max_cmd_len=-1;
  4697. ;;
  4698. cygwin* | mingw* | cegcc*)
  4699. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4700. # about 5 minutes as the teststring grows exponentially.
  4701. # Worse, since 9x/ME are not pre-emptively multitasking,
  4702. # you end up with a "frozen" computer, even though with patience
  4703. # the test eventually succeeds (with a max line length of 256k).
  4704. # Instead, let's just punt: use the minimum linelength reported by
  4705. # all of the supported platforms: 8192 (on NT/2K/XP).
  4706. lt_cv_sys_max_cmd_len=8192;
  4707. ;;
  4708. mint*)
  4709. # On MiNT this can take a long time and run out of memory.
  4710. lt_cv_sys_max_cmd_len=8192;
  4711. ;;
  4712. amigaos*)
  4713. # On AmigaOS with pdksh, this test takes hours, literally.
  4714. # So we just punt and use a minimum line length of 8192.
  4715. lt_cv_sys_max_cmd_len=8192;
  4716. ;;
  4717. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4718. # This has been around since 386BSD, at least. Likely further.
  4719. if test -x /sbin/sysctl; then
  4720. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4721. elif test -x /usr/sbin/sysctl; then
  4722. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4723. else
  4724. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4725. fi
  4726. # And add a safety zone
  4727. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4728. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4729. ;;
  4730. interix*)
  4731. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4732. lt_cv_sys_max_cmd_len=196608
  4733. ;;
  4734. osf*)
  4735. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4736. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4737. # nice to cause kernel panics so lets avoid the loop below.
  4738. # First set a reasonable default.
  4739. lt_cv_sys_max_cmd_len=16384
  4740. #
  4741. if test -x /sbin/sysconfig; then
  4742. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4743. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4744. esac
  4745. fi
  4746. ;;
  4747. sco3.2v5*)
  4748. lt_cv_sys_max_cmd_len=102400
  4749. ;;
  4750. sysv5* | sco5v6* | sysv4.2uw2*)
  4751. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4752. if test -n "$kargmax"; then
  4753. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4754. else
  4755. lt_cv_sys_max_cmd_len=32768
  4756. fi
  4757. ;;
  4758. *)
  4759. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4760. if test -n "$lt_cv_sys_max_cmd_len"; then
  4761. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4762. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4763. else
  4764. # Make teststring a little bigger before we do anything with it.
  4765. # a 1K string should be a reasonable start.
  4766. for i in 1 2 3 4 5 6 7 8 ; do
  4767. teststring=$teststring$teststring
  4768. done
  4769. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4770. # If test is not a shell built-in, we'll probably end up computing a
  4771. # maximum length that is only half of the actual maximum length, but
  4772. # we can't tell.
  4773. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4774. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4775. test $i != 17 # 1/2 MB should be enough
  4776. do
  4777. i=`expr $i + 1`
  4778. teststring=$teststring$teststring
  4779. done
  4780. # Only check the string length outside the loop.
  4781. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4782. teststring=
  4783. # Add a significant safety factor because C++ compilers can tack on
  4784. # massive amounts of additional arguments before passing them to the
  4785. # linker. It appears as though 1/2 is a usable value.
  4786. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4787. fi
  4788. ;;
  4789. esac
  4790. fi
  4791. if test -n $lt_cv_sys_max_cmd_len ; then
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4793. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4794. else
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4796. $as_echo "none" >&6; }
  4797. fi
  4798. max_cmd_len=$lt_cv_sys_max_cmd_len
  4799. : ${CP="cp -f"}
  4800. : ${MV="mv -f"}
  4801. : ${RM="rm -f"}
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4803. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4804. # Try some XSI features
  4805. xsi_shell=no
  4806. ( _lt_dummy="a/b/c"
  4807. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4808. = c,a/b,b/c, \
  4809. && eval 'test $(( 1 + 1 )) -eq 2 \
  4810. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4811. && xsi_shell=yes
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4813. $as_echo "$xsi_shell" >&6; }
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4815. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4816. lt_shell_append=no
  4817. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4818. >/dev/null 2>&1 \
  4819. && lt_shell_append=yes
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4821. $as_echo "$lt_shell_append" >&6; }
  4822. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4823. lt_unset=unset
  4824. else
  4825. lt_unset=false
  4826. fi
  4827. # test EBCDIC or ASCII
  4828. case `echo X|tr X '\101'` in
  4829. A) # ASCII based system
  4830. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4831. lt_SP2NL='tr \040 \012'
  4832. lt_NL2SP='tr \015\012 \040\040'
  4833. ;;
  4834. *) # EBCDIC based system
  4835. lt_SP2NL='tr \100 \n'
  4836. lt_NL2SP='tr \r\n \100\100'
  4837. ;;
  4838. esac
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4840. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4841. if ${lt_cv_to_host_file_cmd+:} false; then :
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. case $host in
  4845. *-*-mingw* )
  4846. case $build in
  4847. *-*-mingw* ) # actually msys
  4848. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4849. ;;
  4850. *-*-cygwin* )
  4851. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4852. ;;
  4853. * ) # otherwise, assume *nix
  4854. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4855. ;;
  4856. esac
  4857. ;;
  4858. *-*-cygwin* )
  4859. case $build in
  4860. *-*-mingw* ) # actually msys
  4861. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4862. ;;
  4863. *-*-cygwin* )
  4864. lt_cv_to_host_file_cmd=func_convert_file_noop
  4865. ;;
  4866. * ) # otherwise, assume *nix
  4867. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4868. ;;
  4869. esac
  4870. ;;
  4871. * ) # unhandled hosts (and "normal" native builds)
  4872. lt_cv_to_host_file_cmd=func_convert_file_noop
  4873. ;;
  4874. esac
  4875. fi
  4876. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4878. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4880. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4881. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. #assume ordinary cross tools, or native build.
  4885. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4886. case $host in
  4887. *-*-mingw* )
  4888. case $build in
  4889. *-*-mingw* ) # actually msys
  4890. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4891. ;;
  4892. esac
  4893. ;;
  4894. esac
  4895. fi
  4896. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4898. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4900. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4901. if ${lt_cv_ld_reload_flag+:} false; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. lt_cv_ld_reload_flag='-r'
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4907. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4908. reload_flag=$lt_cv_ld_reload_flag
  4909. case $reload_flag in
  4910. "" | " "*) ;;
  4911. *) reload_flag=" $reload_flag" ;;
  4912. esac
  4913. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4914. case $host_os in
  4915. cygwin* | mingw* | pw32* | cegcc*)
  4916. if test "$GCC" != yes; then
  4917. reload_cmds=false
  4918. fi
  4919. ;;
  4920. darwin*)
  4921. if test "$GCC" = yes; then
  4922. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4923. else
  4924. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4925. fi
  4926. ;;
  4927. esac
  4928. if test -n "$ac_tool_prefix"; then
  4929. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4930. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4932. $as_echo_n "checking for $ac_word... " >&6; }
  4933. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. if test -n "$OBJDUMP"; then
  4937. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4938. else
  4939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4940. for as_dir in $PATH
  4941. do
  4942. IFS=$as_save_IFS
  4943. test -z "$as_dir" && as_dir=.
  4944. for ac_exec_ext in '' $ac_executable_extensions; do
  4945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4946. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4948. break 2
  4949. fi
  4950. done
  4951. done
  4952. IFS=$as_save_IFS
  4953. fi
  4954. fi
  4955. OBJDUMP=$ac_cv_prog_OBJDUMP
  4956. if test -n "$OBJDUMP"; then
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4958. $as_echo "$OBJDUMP" >&6; }
  4959. else
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4961. $as_echo "no" >&6; }
  4962. fi
  4963. fi
  4964. if test -z "$ac_cv_prog_OBJDUMP"; then
  4965. ac_ct_OBJDUMP=$OBJDUMP
  4966. # Extract the first word of "objdump", so it can be a program name with args.
  4967. set dummy objdump; ac_word=$2
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4969. $as_echo_n "checking for $ac_word... " >&6; }
  4970. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. if test -n "$ac_ct_OBJDUMP"; then
  4974. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4975. else
  4976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4977. for as_dir in $PATH
  4978. do
  4979. IFS=$as_save_IFS
  4980. test -z "$as_dir" && as_dir=.
  4981. for ac_exec_ext in '' $ac_executable_extensions; do
  4982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4983. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4985. break 2
  4986. fi
  4987. done
  4988. done
  4989. IFS=$as_save_IFS
  4990. fi
  4991. fi
  4992. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4993. if test -n "$ac_ct_OBJDUMP"; then
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4995. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4996. else
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4998. $as_echo "no" >&6; }
  4999. fi
  5000. if test "x$ac_ct_OBJDUMP" = x; then
  5001. OBJDUMP="false"
  5002. else
  5003. case $cross_compiling:$ac_tool_warned in
  5004. yes:)
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5007. ac_tool_warned=yes ;;
  5008. esac
  5009. OBJDUMP=$ac_ct_OBJDUMP
  5010. fi
  5011. else
  5012. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5013. fi
  5014. test -z "$OBJDUMP" && OBJDUMP=objdump
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5016. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5017. if ${lt_cv_deplibs_check_method+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5021. lt_cv_file_magic_test_file=
  5022. lt_cv_deplibs_check_method='unknown'
  5023. # Need to set the preceding variable on all platforms that support
  5024. # interlibrary dependencies.
  5025. # 'none' -- dependencies not supported.
  5026. # `unknown' -- same as none, but documents that we really don't know.
  5027. # 'pass_all' -- all dependencies passed with no checks.
  5028. # 'test_compile' -- check by making test program.
  5029. # 'file_magic [[regex]]' -- check by looking for files in library path
  5030. # which responds to the $file_magic_cmd with a given extended regex.
  5031. # If you have `file' or equivalent on your system and you're not sure
  5032. # whether `pass_all' will *always* work, you probably want this one.
  5033. case $host_os in
  5034. aix[4-9]*)
  5035. lt_cv_deplibs_check_method=pass_all
  5036. ;;
  5037. beos*)
  5038. lt_cv_deplibs_check_method=pass_all
  5039. ;;
  5040. bsdi[45]*)
  5041. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5042. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5043. lt_cv_file_magic_test_file=/shlib/libc.so
  5044. ;;
  5045. cygwin*)
  5046. # func_win32_libid is a shell function defined in ltmain.sh
  5047. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5048. lt_cv_file_magic_cmd='func_win32_libid'
  5049. ;;
  5050. mingw* | pw32*)
  5051. # Base MSYS/MinGW do not provide the 'file' command needed by
  5052. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5053. # unless we find 'file', for example because we are cross-compiling.
  5054. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5055. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5056. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5057. lt_cv_file_magic_cmd='func_win32_libid'
  5058. else
  5059. # Keep this pattern in sync with the one in func_win32_libid.
  5060. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5061. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5062. fi
  5063. ;;
  5064. cegcc*)
  5065. # use the weaker test based on 'objdump'. See mingw*.
  5066. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5067. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5068. ;;
  5069. darwin* | rhapsody*)
  5070. lt_cv_deplibs_check_method=pass_all
  5071. ;;
  5072. freebsd* | dragonfly*)
  5073. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5074. case $host_cpu in
  5075. i*86 )
  5076. # Not sure whether the presence of OpenBSD here was a mistake.
  5077. # Let's accept both of them until this is cleared up.
  5078. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5079. lt_cv_file_magic_cmd=/usr/bin/file
  5080. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5081. ;;
  5082. esac
  5083. else
  5084. lt_cv_deplibs_check_method=pass_all
  5085. fi
  5086. ;;
  5087. gnu*)
  5088. lt_cv_deplibs_check_method=pass_all
  5089. ;;
  5090. haiku*)
  5091. lt_cv_deplibs_check_method=pass_all
  5092. ;;
  5093. hpux10.20* | hpux11*)
  5094. lt_cv_file_magic_cmd=/usr/bin/file
  5095. case $host_cpu in
  5096. ia64*)
  5097. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5098. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5099. ;;
  5100. hppa*64*)
  5101. 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]'
  5102. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5103. ;;
  5104. *)
  5105. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5106. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5107. ;;
  5108. esac
  5109. ;;
  5110. interix[3-9]*)
  5111. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5112. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5113. ;;
  5114. irix5* | irix6* | nonstopux*)
  5115. case $LD in
  5116. *-32|*"-32 ") libmagic=32-bit;;
  5117. *-n32|*"-n32 ") libmagic=N32;;
  5118. *-64|*"-64 ") libmagic=64-bit;;
  5119. *) libmagic=never-match;;
  5120. esac
  5121. lt_cv_deplibs_check_method=pass_all
  5122. ;;
  5123. # This must be Linux ELF.
  5124. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5125. lt_cv_deplibs_check_method=pass_all
  5126. ;;
  5127. netbsd* | netbsdelf*-gnu)
  5128. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5129. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5130. else
  5131. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5132. fi
  5133. ;;
  5134. newos6*)
  5135. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5136. lt_cv_file_magic_cmd=/usr/bin/file
  5137. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5138. ;;
  5139. *nto* | *qnx*)
  5140. lt_cv_deplibs_check_method=pass_all
  5141. ;;
  5142. openbsd*)
  5143. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5144. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5145. else
  5146. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5147. fi
  5148. ;;
  5149. osf3* | osf4* | osf5*)
  5150. lt_cv_deplibs_check_method=pass_all
  5151. ;;
  5152. rdos*)
  5153. lt_cv_deplibs_check_method=pass_all
  5154. ;;
  5155. solaris*)
  5156. lt_cv_deplibs_check_method=pass_all
  5157. ;;
  5158. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5159. lt_cv_deplibs_check_method=pass_all
  5160. ;;
  5161. sysv4 | sysv4.3*)
  5162. case $host_vendor in
  5163. motorola)
  5164. 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]'
  5165. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5166. ;;
  5167. ncr)
  5168. lt_cv_deplibs_check_method=pass_all
  5169. ;;
  5170. sequent)
  5171. lt_cv_file_magic_cmd='/bin/file'
  5172. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5173. ;;
  5174. sni)
  5175. lt_cv_file_magic_cmd='/bin/file'
  5176. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5177. lt_cv_file_magic_test_file=/lib/libc.so
  5178. ;;
  5179. siemens)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. pc)
  5183. lt_cv_deplibs_check_method=pass_all
  5184. ;;
  5185. esac
  5186. ;;
  5187. tpf*)
  5188. lt_cv_deplibs_check_method=pass_all
  5189. ;;
  5190. esac
  5191. fi
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5193. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5194. file_magic_glob=
  5195. want_nocaseglob=no
  5196. if test "$build" = "$host"; then
  5197. case $host_os in
  5198. mingw* | pw32*)
  5199. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5200. want_nocaseglob=yes
  5201. else
  5202. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5203. fi
  5204. ;;
  5205. esac
  5206. fi
  5207. file_magic_cmd=$lt_cv_file_magic_cmd
  5208. deplibs_check_method=$lt_cv_deplibs_check_method
  5209. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5210. if test -n "$ac_tool_prefix"; then
  5211. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5212. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5214. $as_echo_n "checking for $ac_word... " >&6; }
  5215. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. if test -n "$DLLTOOL"; then
  5219. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5220. else
  5221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5222. for as_dir in $PATH
  5223. do
  5224. IFS=$as_save_IFS
  5225. test -z "$as_dir" && as_dir=.
  5226. for ac_exec_ext in '' $ac_executable_extensions; do
  5227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5228. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5230. break 2
  5231. fi
  5232. done
  5233. done
  5234. IFS=$as_save_IFS
  5235. fi
  5236. fi
  5237. DLLTOOL=$ac_cv_prog_DLLTOOL
  5238. if test -n "$DLLTOOL"; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5240. $as_echo "$DLLTOOL" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. fi
  5245. fi
  5246. if test -z "$ac_cv_prog_DLLTOOL"; then
  5247. ac_ct_DLLTOOL=$DLLTOOL
  5248. # Extract the first word of "dlltool", so it can be a program name with args.
  5249. set dummy dlltool; ac_word=$2
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5251. $as_echo_n "checking for $ac_word... " >&6; }
  5252. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5253. $as_echo_n "(cached) " >&6
  5254. else
  5255. if test -n "$ac_ct_DLLTOOL"; then
  5256. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5257. else
  5258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5259. for as_dir in $PATH
  5260. do
  5261. IFS=$as_save_IFS
  5262. test -z "$as_dir" && as_dir=.
  5263. for ac_exec_ext in '' $ac_executable_extensions; do
  5264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5265. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5267. break 2
  5268. fi
  5269. done
  5270. done
  5271. IFS=$as_save_IFS
  5272. fi
  5273. fi
  5274. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5275. if test -n "$ac_ct_DLLTOOL"; then
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5277. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5278. else
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5280. $as_echo "no" >&6; }
  5281. fi
  5282. if test "x$ac_ct_DLLTOOL" = x; then
  5283. DLLTOOL="false"
  5284. else
  5285. case $cross_compiling:$ac_tool_warned in
  5286. yes:)
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5289. ac_tool_warned=yes ;;
  5290. esac
  5291. DLLTOOL=$ac_ct_DLLTOOL
  5292. fi
  5293. else
  5294. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5295. fi
  5296. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5298. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5299. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5300. $as_echo_n "(cached) " >&6
  5301. else
  5302. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5303. case $host_os in
  5304. cygwin* | mingw* | pw32* | cegcc*)
  5305. # two different shell functions defined in ltmain.sh
  5306. # decide which to use based on capabilities of $DLLTOOL
  5307. case `$DLLTOOL --help 2>&1` in
  5308. *--identify-strict*)
  5309. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5310. ;;
  5311. *)
  5312. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5313. ;;
  5314. esac
  5315. ;;
  5316. *)
  5317. # fallback: assume linklib IS sharedlib
  5318. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5319. ;;
  5320. esac
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5323. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5324. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5325. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5326. if test -n "$ac_tool_prefix"; then
  5327. for ac_prog in ar
  5328. do
  5329. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5330. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5332. $as_echo_n "checking for $ac_word... " >&6; }
  5333. if ${ac_cv_prog_AR+:} false; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. if test -n "$AR"; then
  5337. ac_cv_prog_AR="$AR" # Let the user override the test.
  5338. else
  5339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. for as_dir in $PATH
  5341. do
  5342. IFS=$as_save_IFS
  5343. test -z "$as_dir" && as_dir=.
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5346. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. AR=$ac_cv_prog_AR
  5356. if test -n "$AR"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5358. $as_echo "$AR" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5361. $as_echo "no" >&6; }
  5362. fi
  5363. test -n "$AR" && break
  5364. done
  5365. fi
  5366. if test -z "$AR"; then
  5367. ac_ct_AR=$AR
  5368. for ac_prog in ar
  5369. do
  5370. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5371. set dummy $ac_prog; ac_word=$2
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5373. $as_echo_n "checking for $ac_word... " >&6; }
  5374. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5375. $as_echo_n "(cached) " >&6
  5376. else
  5377. if test -n "$ac_ct_AR"; then
  5378. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5379. else
  5380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5381. for as_dir in $PATH
  5382. do
  5383. IFS=$as_save_IFS
  5384. test -z "$as_dir" && as_dir=.
  5385. for ac_exec_ext in '' $ac_executable_extensions; do
  5386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5387. ac_cv_prog_ac_ct_AR="$ac_prog"
  5388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5389. break 2
  5390. fi
  5391. done
  5392. done
  5393. IFS=$as_save_IFS
  5394. fi
  5395. fi
  5396. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5397. if test -n "$ac_ct_AR"; then
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5399. $as_echo "$ac_ct_AR" >&6; }
  5400. else
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5402. $as_echo "no" >&6; }
  5403. fi
  5404. test -n "$ac_ct_AR" && break
  5405. done
  5406. if test "x$ac_ct_AR" = x; then
  5407. AR="false"
  5408. else
  5409. case $cross_compiling:$ac_tool_warned in
  5410. yes:)
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5413. ac_tool_warned=yes ;;
  5414. esac
  5415. AR=$ac_ct_AR
  5416. fi
  5417. fi
  5418. : ${AR=ar}
  5419. : ${AR_FLAGS=cru}
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5421. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5422. if ${lt_cv_ar_at_file+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. lt_cv_ar_at_file=no
  5426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5427. /* end confdefs.h. */
  5428. int
  5429. main ()
  5430. {
  5431. ;
  5432. return 0;
  5433. }
  5434. _ACEOF
  5435. if ac_fn_cxx_try_compile "$LINENO"; then :
  5436. echo conftest.$ac_objext > conftest.lst
  5437. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5438. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5439. (eval $lt_ar_try) 2>&5
  5440. ac_status=$?
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5442. test $ac_status = 0; }
  5443. if test "$ac_status" -eq 0; then
  5444. # Ensure the archiver fails upon bogus file names.
  5445. rm -f conftest.$ac_objext libconftest.a
  5446. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5447. (eval $lt_ar_try) 2>&5
  5448. ac_status=$?
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5450. test $ac_status = 0; }
  5451. if test "$ac_status" -ne 0; then
  5452. lt_cv_ar_at_file=@
  5453. fi
  5454. fi
  5455. rm -f conftest.* libconftest.a
  5456. fi
  5457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5458. fi
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5460. $as_echo "$lt_cv_ar_at_file" >&6; }
  5461. if test "x$lt_cv_ar_at_file" = xno; then
  5462. archiver_list_spec=
  5463. else
  5464. archiver_list_spec=$lt_cv_ar_at_file
  5465. fi
  5466. if test -n "$ac_tool_prefix"; then
  5467. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5468. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5470. $as_echo_n "checking for $ac_word... " >&6; }
  5471. if ${ac_cv_prog_STRIP+:} false; then :
  5472. $as_echo_n "(cached) " >&6
  5473. else
  5474. if test -n "$STRIP"; then
  5475. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5476. else
  5477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5478. for as_dir in $PATH
  5479. do
  5480. IFS=$as_save_IFS
  5481. test -z "$as_dir" && as_dir=.
  5482. for ac_exec_ext in '' $ac_executable_extensions; do
  5483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5484. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5486. break 2
  5487. fi
  5488. done
  5489. done
  5490. IFS=$as_save_IFS
  5491. fi
  5492. fi
  5493. STRIP=$ac_cv_prog_STRIP
  5494. if test -n "$STRIP"; then
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5496. $as_echo "$STRIP" >&6; }
  5497. else
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5499. $as_echo "no" >&6; }
  5500. fi
  5501. fi
  5502. if test -z "$ac_cv_prog_STRIP"; then
  5503. ac_ct_STRIP=$STRIP
  5504. # Extract the first word of "strip", so it can be a program name with args.
  5505. set dummy strip; ac_word=$2
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5507. $as_echo_n "checking for $ac_word... " >&6; }
  5508. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5509. $as_echo_n "(cached) " >&6
  5510. else
  5511. if test -n "$ac_ct_STRIP"; then
  5512. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5513. else
  5514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5515. for as_dir in $PATH
  5516. do
  5517. IFS=$as_save_IFS
  5518. test -z "$as_dir" && as_dir=.
  5519. for ac_exec_ext in '' $ac_executable_extensions; do
  5520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5521. ac_cv_prog_ac_ct_STRIP="strip"
  5522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5523. break 2
  5524. fi
  5525. done
  5526. done
  5527. IFS=$as_save_IFS
  5528. fi
  5529. fi
  5530. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5531. if test -n "$ac_ct_STRIP"; then
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5533. $as_echo "$ac_ct_STRIP" >&6; }
  5534. else
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5536. $as_echo "no" >&6; }
  5537. fi
  5538. if test "x$ac_ct_STRIP" = x; then
  5539. STRIP=":"
  5540. else
  5541. case $cross_compiling:$ac_tool_warned in
  5542. yes:)
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5545. ac_tool_warned=yes ;;
  5546. esac
  5547. STRIP=$ac_ct_STRIP
  5548. fi
  5549. else
  5550. STRIP="$ac_cv_prog_STRIP"
  5551. fi
  5552. test -z "$STRIP" && STRIP=:
  5553. if test -n "$ac_tool_prefix"; then
  5554. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5555. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5557. $as_echo_n "checking for $ac_word... " >&6; }
  5558. if ${ac_cv_prog_RANLIB+:} false; then :
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. if test -n "$RANLIB"; then
  5562. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5563. else
  5564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5565. for as_dir in $PATH
  5566. do
  5567. IFS=$as_save_IFS
  5568. test -z "$as_dir" && as_dir=.
  5569. for ac_exec_ext in '' $ac_executable_extensions; do
  5570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5571. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5573. break 2
  5574. fi
  5575. done
  5576. done
  5577. IFS=$as_save_IFS
  5578. fi
  5579. fi
  5580. RANLIB=$ac_cv_prog_RANLIB
  5581. if test -n "$RANLIB"; then
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5583. $as_echo "$RANLIB" >&6; }
  5584. else
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5586. $as_echo "no" >&6; }
  5587. fi
  5588. fi
  5589. if test -z "$ac_cv_prog_RANLIB"; then
  5590. ac_ct_RANLIB=$RANLIB
  5591. # Extract the first word of "ranlib", so it can be a program name with args.
  5592. set dummy ranlib; ac_word=$2
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5594. $as_echo_n "checking for $ac_word... " >&6; }
  5595. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. if test -n "$ac_ct_RANLIB"; then
  5599. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5600. else
  5601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5602. for as_dir in $PATH
  5603. do
  5604. IFS=$as_save_IFS
  5605. test -z "$as_dir" && as_dir=.
  5606. for ac_exec_ext in '' $ac_executable_extensions; do
  5607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5608. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5610. break 2
  5611. fi
  5612. done
  5613. done
  5614. IFS=$as_save_IFS
  5615. fi
  5616. fi
  5617. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5618. if test -n "$ac_ct_RANLIB"; then
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5620. $as_echo "$ac_ct_RANLIB" >&6; }
  5621. else
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5623. $as_echo "no" >&6; }
  5624. fi
  5625. if test "x$ac_ct_RANLIB" = x; then
  5626. RANLIB=":"
  5627. else
  5628. case $cross_compiling:$ac_tool_warned in
  5629. yes:)
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5632. ac_tool_warned=yes ;;
  5633. esac
  5634. RANLIB=$ac_ct_RANLIB
  5635. fi
  5636. else
  5637. RANLIB="$ac_cv_prog_RANLIB"
  5638. fi
  5639. test -z "$RANLIB" && RANLIB=:
  5640. # Determine commands to create old-style static archives.
  5641. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5642. old_postinstall_cmds='chmod 644 $oldlib'
  5643. old_postuninstall_cmds=
  5644. if test -n "$RANLIB"; then
  5645. case $host_os in
  5646. openbsd*)
  5647. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5648. ;;
  5649. *)
  5650. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5651. ;;
  5652. esac
  5653. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5654. fi
  5655. case $host_os in
  5656. darwin*)
  5657. lock_old_archive_extraction=yes ;;
  5658. *)
  5659. lock_old_archive_extraction=no ;;
  5660. esac
  5661. # If no C compiler was specified, use CC.
  5662. LTCC=${LTCC-"$CC"}
  5663. # If no C compiler flags were specified, use CFLAGS.
  5664. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5665. # Allow CC to be a program name with arguments.
  5666. compiler=$CC
  5667. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5669. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5670. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. # These are sane defaults that work on at least a few old systems.
  5674. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5675. # Character class describing NM global symbol codes.
  5676. symcode='[BCDEGRST]'
  5677. # Regexp to match symbols that can be accessed directly from C.
  5678. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5679. # Define system-specific variables.
  5680. case $host_os in
  5681. aix*)
  5682. symcode='[BCDT]'
  5683. ;;
  5684. cygwin* | mingw* | pw32* | cegcc*)
  5685. symcode='[ABCDGISTW]'
  5686. ;;
  5687. hpux*)
  5688. if test "$host_cpu" = ia64; then
  5689. symcode='[ABCDEGRST]'
  5690. fi
  5691. ;;
  5692. irix* | nonstopux*)
  5693. symcode='[BCDEGRST]'
  5694. ;;
  5695. osf*)
  5696. symcode='[BCDEGQRST]'
  5697. ;;
  5698. solaris*)
  5699. symcode='[BDRT]'
  5700. ;;
  5701. sco3.2v5*)
  5702. symcode='[DT]'
  5703. ;;
  5704. sysv4.2uw2*)
  5705. symcode='[DT]'
  5706. ;;
  5707. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5708. symcode='[ABDT]'
  5709. ;;
  5710. sysv4)
  5711. symcode='[DFNSTU]'
  5712. ;;
  5713. esac
  5714. # If we're using GNU nm, then use its standard symbol codes.
  5715. case `$NM -V 2>&1` in
  5716. *GNU* | *'with BFD'*)
  5717. symcode='[ABCDGIRSTW]' ;;
  5718. esac
  5719. # Transform an extracted symbol line into a proper C declaration.
  5720. # Some systems (esp. on ia64) link data and code symbols differently,
  5721. # so use this general approach.
  5722. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5723. # Transform an extracted symbol line into symbol name and symbol address
  5724. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5725. 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'"
  5726. # Handle CRLF in mingw tool chain
  5727. opt_cr=
  5728. case $build_os in
  5729. mingw*)
  5730. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5731. ;;
  5732. esac
  5733. # Try without a prefix underscore, then with it.
  5734. for ac_symprfx in "" "_"; do
  5735. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5736. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5737. # Write the raw and C identifiers.
  5738. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5739. # Fake it for dumpbin and say T for any non-static function
  5740. # and D for any global variable.
  5741. # Also find C++ and __fastcall symbols from MSVC++,
  5742. # which start with @ or ?.
  5743. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5744. " {last_section=section; section=\$ 3};"\
  5745. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5746. " \$ 0!~/External *\|/{next};"\
  5747. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5748. " {if(hide[section]) next};"\
  5749. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5750. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5751. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5752. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5753. " ' prfx=^$ac_symprfx"
  5754. else
  5755. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5756. fi
  5757. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5758. # Check to see that the pipe works correctly.
  5759. pipe_works=no
  5760. rm -f conftest*
  5761. cat > conftest.$ac_ext <<_LT_EOF
  5762. #ifdef __cplusplus
  5763. extern "C" {
  5764. #endif
  5765. char nm_test_var;
  5766. void nm_test_func(void);
  5767. void nm_test_func(void){}
  5768. #ifdef __cplusplus
  5769. }
  5770. #endif
  5771. int main(){nm_test_var='a';nm_test_func();return(0);}
  5772. _LT_EOF
  5773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5774. (eval $ac_compile) 2>&5
  5775. ac_status=$?
  5776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5777. test $ac_status = 0; }; then
  5778. # Now try to grab the symbols.
  5779. nlist=conftest.nm
  5780. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5781. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5782. ac_status=$?
  5783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5784. test $ac_status = 0; } && test -s "$nlist"; then
  5785. # Try sorting and uniquifying the output.
  5786. if sort "$nlist" | uniq > "$nlist"T; then
  5787. mv -f "$nlist"T "$nlist"
  5788. else
  5789. rm -f "$nlist"T
  5790. fi
  5791. # Make sure that we snagged all the symbols we need.
  5792. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5793. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5794. cat <<_LT_EOF > conftest.$ac_ext
  5795. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5796. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5797. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5798. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5799. # define LT_DLSYM_CONST
  5800. #elif defined(__osf__)
  5801. /* This system does not cope well with relocations in const data. */
  5802. # define LT_DLSYM_CONST
  5803. #else
  5804. # define LT_DLSYM_CONST const
  5805. #endif
  5806. #ifdef __cplusplus
  5807. extern "C" {
  5808. #endif
  5809. _LT_EOF
  5810. # Now generate the symbol file.
  5811. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5812. cat <<_LT_EOF >> conftest.$ac_ext
  5813. /* The mapping between symbol names and symbols. */
  5814. LT_DLSYM_CONST struct {
  5815. const char *name;
  5816. void *address;
  5817. }
  5818. lt__PROGRAM__LTX_preloaded_symbols[] =
  5819. {
  5820. { "@PROGRAM@", (void *) 0 },
  5821. _LT_EOF
  5822. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5823. cat <<\_LT_EOF >> conftest.$ac_ext
  5824. {0, (void *) 0}
  5825. };
  5826. /* This works around a problem in FreeBSD linker */
  5827. #ifdef FREEBSD_WORKAROUND
  5828. static const void *lt_preloaded_setup() {
  5829. return lt__PROGRAM__LTX_preloaded_symbols;
  5830. }
  5831. #endif
  5832. #ifdef __cplusplus
  5833. }
  5834. #endif
  5835. _LT_EOF
  5836. # Now try linking the two files.
  5837. mv conftest.$ac_objext conftstm.$ac_objext
  5838. lt_globsym_save_LIBS=$LIBS
  5839. lt_globsym_save_CFLAGS=$CFLAGS
  5840. LIBS="conftstm.$ac_objext"
  5841. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5843. (eval $ac_link) 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5846. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5847. pipe_works=yes
  5848. fi
  5849. LIBS=$lt_globsym_save_LIBS
  5850. CFLAGS=$lt_globsym_save_CFLAGS
  5851. else
  5852. echo "cannot find nm_test_func in $nlist" >&5
  5853. fi
  5854. else
  5855. echo "cannot find nm_test_var in $nlist" >&5
  5856. fi
  5857. else
  5858. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5859. fi
  5860. else
  5861. echo "$progname: failed program was:" >&5
  5862. cat conftest.$ac_ext >&5
  5863. fi
  5864. rm -rf conftest* conftst*
  5865. # Do not use the global_symbol_pipe unless it works.
  5866. if test "$pipe_works" = yes; then
  5867. break
  5868. else
  5869. lt_cv_sys_global_symbol_pipe=
  5870. fi
  5871. done
  5872. fi
  5873. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5874. lt_cv_sys_global_symbol_to_cdecl=
  5875. fi
  5876. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5878. $as_echo "failed" >&6; }
  5879. else
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5881. $as_echo "ok" >&6; }
  5882. fi
  5883. # Response file support.
  5884. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5885. nm_file_list_spec='@'
  5886. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5887. nm_file_list_spec='@'
  5888. fi
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5890. $as_echo_n "checking for sysroot... " >&6; }
  5891. # Check whether --with-sysroot was given.
  5892. if test "${with_sysroot+set}" = set; then :
  5893. withval=$with_sysroot;
  5894. else
  5895. with_sysroot=no
  5896. fi
  5897. lt_sysroot=
  5898. case ${with_sysroot} in #(
  5899. yes)
  5900. if test "$GCC" = yes; then
  5901. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5902. fi
  5903. ;; #(
  5904. /*)
  5905. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5906. ;; #(
  5907. no|'')
  5908. ;; #(
  5909. *)
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5911. $as_echo "${with_sysroot}" >&6; }
  5912. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5913. ;;
  5914. esac
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5916. $as_echo "${lt_sysroot:-no}" >&6; }
  5917. # Check whether --enable-libtool-lock was given.
  5918. if test "${enable_libtool_lock+set}" = set; then :
  5919. enableval=$enable_libtool_lock;
  5920. fi
  5921. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5922. # Some flags need to be propagated to the compiler or linker for good
  5923. # libtool support.
  5924. case $host in
  5925. ia64-*-hpux*)
  5926. # Find out which ABI we are using.
  5927. echo 'int i;' > conftest.$ac_ext
  5928. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5929. (eval $ac_compile) 2>&5
  5930. ac_status=$?
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5932. test $ac_status = 0; }; then
  5933. case `/usr/bin/file conftest.$ac_objext` in
  5934. *ELF-32*)
  5935. HPUX_IA64_MODE="32"
  5936. ;;
  5937. *ELF-64*)
  5938. HPUX_IA64_MODE="64"
  5939. ;;
  5940. esac
  5941. fi
  5942. rm -rf conftest*
  5943. ;;
  5944. *-*-irix6*)
  5945. # Find out which ABI we are using.
  5946. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5948. (eval $ac_compile) 2>&5
  5949. ac_status=$?
  5950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5951. test $ac_status = 0; }; then
  5952. if test "$lt_cv_prog_gnu_ld" = yes; then
  5953. case `/usr/bin/file conftest.$ac_objext` in
  5954. *32-bit*)
  5955. LD="${LD-ld} -melf32bsmip"
  5956. ;;
  5957. *N32*)
  5958. LD="${LD-ld} -melf32bmipn32"
  5959. ;;
  5960. *64-bit*)
  5961. LD="${LD-ld} -melf64bmip"
  5962. ;;
  5963. esac
  5964. else
  5965. case `/usr/bin/file conftest.$ac_objext` in
  5966. *32-bit*)
  5967. LD="${LD-ld} -32"
  5968. ;;
  5969. *N32*)
  5970. LD="${LD-ld} -n32"
  5971. ;;
  5972. *64-bit*)
  5973. LD="${LD-ld} -64"
  5974. ;;
  5975. esac
  5976. fi
  5977. fi
  5978. rm -rf conftest*
  5979. ;;
  5980. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5981. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5982. # Find out which ABI we are using.
  5983. echo 'int i;' > conftest.$ac_ext
  5984. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5985. (eval $ac_compile) 2>&5
  5986. ac_status=$?
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5988. test $ac_status = 0; }; then
  5989. case `/usr/bin/file conftest.o` in
  5990. *32-bit*)
  5991. case $host in
  5992. x86_64-*kfreebsd*-gnu)
  5993. LD="${LD-ld} -m elf_i386_fbsd"
  5994. ;;
  5995. x86_64-*linux*)
  5996. LD="${LD-ld} -m elf_i386"
  5997. ;;
  5998. ppc64-*linux*|powerpc64-*linux*)
  5999. LD="${LD-ld} -m elf32ppclinux"
  6000. ;;
  6001. s390x-*linux*)
  6002. LD="${LD-ld} -m elf_s390"
  6003. ;;
  6004. sparc64-*linux*)
  6005. LD="${LD-ld} -m elf32_sparc"
  6006. ;;
  6007. esac
  6008. ;;
  6009. *64-bit*)
  6010. case $host in
  6011. x86_64-*kfreebsd*-gnu)
  6012. LD="${LD-ld} -m elf_x86_64_fbsd"
  6013. ;;
  6014. x86_64-*linux*)
  6015. LD="${LD-ld} -m elf_x86_64"
  6016. ;;
  6017. ppc*-*linux*|powerpc*-*linux*)
  6018. LD="${LD-ld} -m elf64ppc"
  6019. ;;
  6020. s390*-*linux*|s390*-*tpf*)
  6021. LD="${LD-ld} -m elf64_s390"
  6022. ;;
  6023. sparc*-*linux*)
  6024. LD="${LD-ld} -m elf64_sparc"
  6025. ;;
  6026. esac
  6027. ;;
  6028. esac
  6029. fi
  6030. rm -rf conftest*
  6031. ;;
  6032. *-*-sco3.2v5*)
  6033. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6034. SAVE_CFLAGS="$CFLAGS"
  6035. CFLAGS="$CFLAGS -belf"
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6037. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6038. if ${lt_cv_cc_needs_belf+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. ac_ext=c
  6042. ac_cpp='$CPP $CPPFLAGS'
  6043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6047. /* end confdefs.h. */
  6048. int
  6049. main ()
  6050. {
  6051. ;
  6052. return 0;
  6053. }
  6054. _ACEOF
  6055. if ac_fn_c_try_link "$LINENO"; then :
  6056. lt_cv_cc_needs_belf=yes
  6057. else
  6058. lt_cv_cc_needs_belf=no
  6059. fi
  6060. rm -f core conftest.err conftest.$ac_objext \
  6061. conftest$ac_exeext conftest.$ac_ext
  6062. ac_ext=c
  6063. ac_cpp='$CPP $CPPFLAGS'
  6064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6067. fi
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6069. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6070. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6071. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6072. CFLAGS="$SAVE_CFLAGS"
  6073. fi
  6074. ;;
  6075. sparc*-*solaris*)
  6076. # Find out which ABI we are using.
  6077. echo 'int i;' > conftest.$ac_ext
  6078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6079. (eval $ac_compile) 2>&5
  6080. ac_status=$?
  6081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6082. test $ac_status = 0; }; then
  6083. case `/usr/bin/file conftest.o` in
  6084. *64-bit*)
  6085. case $lt_cv_prog_gnu_ld in
  6086. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6087. *)
  6088. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6089. LD="${LD-ld} -64"
  6090. fi
  6091. ;;
  6092. esac
  6093. ;;
  6094. esac
  6095. fi
  6096. rm -rf conftest*
  6097. ;;
  6098. esac
  6099. need_locks="$enable_libtool_lock"
  6100. if test -n "$ac_tool_prefix"; then
  6101. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6102. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6104. $as_echo_n "checking for $ac_word... " >&6; }
  6105. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. if test -n "$MANIFEST_TOOL"; then
  6109. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6110. else
  6111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6112. for as_dir in $PATH
  6113. do
  6114. IFS=$as_save_IFS
  6115. test -z "$as_dir" && as_dir=.
  6116. for ac_exec_ext in '' $ac_executable_extensions; do
  6117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6118. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6120. break 2
  6121. fi
  6122. done
  6123. done
  6124. IFS=$as_save_IFS
  6125. fi
  6126. fi
  6127. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6128. if test -n "$MANIFEST_TOOL"; then
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6130. $as_echo "$MANIFEST_TOOL" >&6; }
  6131. else
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6133. $as_echo "no" >&6; }
  6134. fi
  6135. fi
  6136. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6137. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6138. # Extract the first word of "mt", so it can be a program name with args.
  6139. set dummy mt; ac_word=$2
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6141. $as_echo_n "checking for $ac_word... " >&6; }
  6142. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6146. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6147. else
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6155. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. fi
  6163. fi
  6164. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6165. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6167. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6168. else
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6170. $as_echo "no" >&6; }
  6171. fi
  6172. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6173. MANIFEST_TOOL=":"
  6174. else
  6175. case $cross_compiling:$ac_tool_warned in
  6176. yes:)
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6179. ac_tool_warned=yes ;;
  6180. esac
  6181. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6182. fi
  6183. else
  6184. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6185. fi
  6186. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6188. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6189. if ${lt_cv_path_mainfest_tool+:} false; then :
  6190. $as_echo_n "(cached) " >&6
  6191. else
  6192. lt_cv_path_mainfest_tool=no
  6193. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6194. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6195. cat conftest.err >&5
  6196. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6197. lt_cv_path_mainfest_tool=yes
  6198. fi
  6199. rm -f conftest*
  6200. fi
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6202. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6203. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6204. MANIFEST_TOOL=:
  6205. fi
  6206. case $host_os in
  6207. rhapsody* | darwin*)
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$DSYMUTIL"; then
  6217. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6226. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6236. if test -n "$DSYMUTIL"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6238. $as_echo "$DSYMUTIL" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6245. ac_ct_DSYMUTIL=$DSYMUTIL
  6246. # Extract the first word of "dsymutil", so it can be a program name with args.
  6247. set dummy dsymutil; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$ac_ct_DSYMUTIL"; then
  6254. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6263. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6273. if test -n "$ac_ct_DSYMUTIL"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6275. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_DSYMUTIL" = x; then
  6281. DSYMUTIL=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6287. ac_tool_warned=yes ;;
  6288. esac
  6289. DSYMUTIL=$ac_ct_DSYMUTIL
  6290. fi
  6291. else
  6292. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6293. fi
  6294. if test -n "$ac_tool_prefix"; then
  6295. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6296. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if ${ac_cv_prog_NMEDIT+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$NMEDIT"; then
  6303. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6312. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. NMEDIT=$ac_cv_prog_NMEDIT
  6322. if test -n "$NMEDIT"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6324. $as_echo "$NMEDIT" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. fi
  6330. if test -z "$ac_cv_prog_NMEDIT"; then
  6331. ac_ct_NMEDIT=$NMEDIT
  6332. # Extract the first word of "nmedit", so it can be a program name with args.
  6333. set dummy nmedit; ac_word=$2
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6335. $as_echo_n "checking for $ac_word... " >&6; }
  6336. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. if test -n "$ac_ct_NMEDIT"; then
  6340. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6341. else
  6342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6343. for as_dir in $PATH
  6344. do
  6345. IFS=$as_save_IFS
  6346. test -z "$as_dir" && as_dir=.
  6347. for ac_exec_ext in '' $ac_executable_extensions; do
  6348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6349. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6351. break 2
  6352. fi
  6353. done
  6354. done
  6355. IFS=$as_save_IFS
  6356. fi
  6357. fi
  6358. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6359. if test -n "$ac_ct_NMEDIT"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6361. $as_echo "$ac_ct_NMEDIT" >&6; }
  6362. else
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. $as_echo "no" >&6; }
  6365. fi
  6366. if test "x$ac_ct_NMEDIT" = x; then
  6367. NMEDIT=":"
  6368. else
  6369. case $cross_compiling:$ac_tool_warned in
  6370. yes:)
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6373. ac_tool_warned=yes ;;
  6374. esac
  6375. NMEDIT=$ac_ct_NMEDIT
  6376. fi
  6377. else
  6378. NMEDIT="$ac_cv_prog_NMEDIT"
  6379. fi
  6380. if test -n "$ac_tool_prefix"; then
  6381. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6382. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if ${ac_cv_prog_LIPO+:} false; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$LIPO"; then
  6389. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6398. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. LIPO=$ac_cv_prog_LIPO
  6408. if test -n "$LIPO"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6410. $as_echo "$LIPO" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. fi
  6416. if test -z "$ac_cv_prog_LIPO"; then
  6417. ac_ct_LIPO=$LIPO
  6418. # Extract the first word of "lipo", so it can be a program name with args.
  6419. set dummy lipo; ac_word=$2
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6421. $as_echo_n "checking for $ac_word... " >&6; }
  6422. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. if test -n "$ac_ct_LIPO"; then
  6426. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435. ac_cv_prog_ac_ct_LIPO="lipo"
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. fi
  6443. fi
  6444. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6445. if test -n "$ac_ct_LIPO"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6447. $as_echo "$ac_ct_LIPO" >&6; }
  6448. else
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6450. $as_echo "no" >&6; }
  6451. fi
  6452. if test "x$ac_ct_LIPO" = x; then
  6453. LIPO=":"
  6454. else
  6455. case $cross_compiling:$ac_tool_warned in
  6456. yes:)
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6459. ac_tool_warned=yes ;;
  6460. esac
  6461. LIPO=$ac_ct_LIPO
  6462. fi
  6463. else
  6464. LIPO="$ac_cv_prog_LIPO"
  6465. fi
  6466. if test -n "$ac_tool_prefix"; then
  6467. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6468. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if ${ac_cv_prog_OTOOL+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$OTOOL"; then
  6475. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6484. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. OTOOL=$ac_cv_prog_OTOOL
  6494. if test -n "$OTOOL"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6496. $as_echo "$OTOOL" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. fi
  6502. if test -z "$ac_cv_prog_OTOOL"; then
  6503. ac_ct_OTOOL=$OTOOL
  6504. # Extract the first word of "otool", so it can be a program name with args.
  6505. set dummy otool; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$ac_ct_OTOOL"; then
  6512. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6521. ac_cv_prog_ac_ct_OTOOL="otool"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6531. if test -n "$ac_ct_OTOOL"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6533. $as_echo "$ac_ct_OTOOL" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. if test "x$ac_ct_OTOOL" = x; then
  6539. OTOOL=":"
  6540. else
  6541. case $cross_compiling:$ac_tool_warned in
  6542. yes:)
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6545. ac_tool_warned=yes ;;
  6546. esac
  6547. OTOOL=$ac_ct_OTOOL
  6548. fi
  6549. else
  6550. OTOOL="$ac_cv_prog_OTOOL"
  6551. fi
  6552. if test -n "$ac_tool_prefix"; then
  6553. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6554. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6556. $as_echo_n "checking for $ac_word... " >&6; }
  6557. if ${ac_cv_prog_OTOOL64+:} false; then :
  6558. $as_echo_n "(cached) " >&6
  6559. else
  6560. if test -n "$OTOOL64"; then
  6561. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6562. else
  6563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6564. for as_dir in $PATH
  6565. do
  6566. IFS=$as_save_IFS
  6567. test -z "$as_dir" && as_dir=.
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6570. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. fi
  6578. fi
  6579. OTOOL64=$ac_cv_prog_OTOOL64
  6580. if test -n "$OTOOL64"; then
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6582. $as_echo "$OTOOL64" >&6; }
  6583. else
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6585. $as_echo "no" >&6; }
  6586. fi
  6587. fi
  6588. if test -z "$ac_cv_prog_OTOOL64"; then
  6589. ac_ct_OTOOL64=$OTOOL64
  6590. # Extract the first word of "otool64", so it can be a program name with args.
  6591. set dummy otool64; ac_word=$2
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6593. $as_echo_n "checking for $ac_word... " >&6; }
  6594. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. if test -n "$ac_ct_OTOOL64"; then
  6598. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6599. else
  6600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6601. for as_dir in $PATH
  6602. do
  6603. IFS=$as_save_IFS
  6604. test -z "$as_dir" && as_dir=.
  6605. for ac_exec_ext in '' $ac_executable_extensions; do
  6606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6607. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6609. break 2
  6610. fi
  6611. done
  6612. done
  6613. IFS=$as_save_IFS
  6614. fi
  6615. fi
  6616. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6617. if test -n "$ac_ct_OTOOL64"; then
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6619. $as_echo "$ac_ct_OTOOL64" >&6; }
  6620. else
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6622. $as_echo "no" >&6; }
  6623. fi
  6624. if test "x$ac_ct_OTOOL64" = x; then
  6625. OTOOL64=":"
  6626. else
  6627. case $cross_compiling:$ac_tool_warned in
  6628. yes:)
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6631. ac_tool_warned=yes ;;
  6632. esac
  6633. OTOOL64=$ac_ct_OTOOL64
  6634. fi
  6635. else
  6636. OTOOL64="$ac_cv_prog_OTOOL64"
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6639. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6640. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. lt_cv_apple_cc_single_mod=no
  6644. if test -z "${LT_MULTI_MODULE}"; then
  6645. # By default we will add the -single_module flag. You can override
  6646. # by either setting the environment variable LT_MULTI_MODULE
  6647. # non-empty at configure time, or by adding -multi_module to the
  6648. # link flags.
  6649. rm -rf libconftest.dylib*
  6650. echo "int foo(void){return 1;}" > conftest.c
  6651. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6652. -dynamiclib -Wl,-single_module conftest.c" >&5
  6653. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6654. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6655. _lt_result=$?
  6656. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6657. lt_cv_apple_cc_single_mod=yes
  6658. else
  6659. cat conftest.err >&5
  6660. fi
  6661. rm -rf libconftest.dylib*
  6662. rm -f conftest.*
  6663. fi
  6664. fi
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6666. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6668. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6669. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. lt_cv_ld_exported_symbols_list=no
  6673. save_LDFLAGS=$LDFLAGS
  6674. echo "_main" > conftest.sym
  6675. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6677. /* end confdefs.h. */
  6678. int
  6679. main ()
  6680. {
  6681. ;
  6682. return 0;
  6683. }
  6684. _ACEOF
  6685. if ac_fn_c_try_link "$LINENO"; then :
  6686. lt_cv_ld_exported_symbols_list=yes
  6687. else
  6688. lt_cv_ld_exported_symbols_list=no
  6689. fi
  6690. rm -f core conftest.err conftest.$ac_objext \
  6691. conftest$ac_exeext conftest.$ac_ext
  6692. LDFLAGS="$save_LDFLAGS"
  6693. fi
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6695. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6697. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6698. if ${lt_cv_ld_force_load+:} false; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. lt_cv_ld_force_load=no
  6702. cat > conftest.c << _LT_EOF
  6703. int forced_loaded() { return 2;}
  6704. _LT_EOF
  6705. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6706. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6707. echo "$AR cru libconftest.a conftest.o" >&5
  6708. $AR cru libconftest.a conftest.o 2>&5
  6709. echo "$RANLIB libconftest.a" >&5
  6710. $RANLIB libconftest.a 2>&5
  6711. cat > conftest.c << _LT_EOF
  6712. int main() { return 0;}
  6713. _LT_EOF
  6714. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6715. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6716. _lt_result=$?
  6717. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6718. lt_cv_ld_force_load=yes
  6719. else
  6720. cat conftest.err >&5
  6721. fi
  6722. rm -f conftest.err libconftest.a conftest conftest.c
  6723. rm -rf conftest.dSYM
  6724. fi
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6726. $as_echo "$lt_cv_ld_force_load" >&6; }
  6727. case $host_os in
  6728. rhapsody* | darwin1.[012])
  6729. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6730. darwin1.*)
  6731. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6732. darwin*) # darwin 5.x on
  6733. # if running on 10.5 or later, the deployment target defaults
  6734. # to the OS version, if on x86, and 10.4, the deployment
  6735. # target defaults to 10.4. Don't you love it?
  6736. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6737. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6738. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6739. 10.[012]*)
  6740. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6741. 10.*)
  6742. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6743. esac
  6744. ;;
  6745. esac
  6746. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6747. _lt_dar_single_mod='$single_module'
  6748. fi
  6749. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6750. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6751. else
  6752. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6753. fi
  6754. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6755. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6756. else
  6757. _lt_dsymutil=
  6758. fi
  6759. ;;
  6760. esac
  6761. ac_ext=c
  6762. ac_cpp='$CPP $CPPFLAGS'
  6763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6767. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6768. # On Suns, sometimes $CPP names a directory.
  6769. if test -n "$CPP" && test -d "$CPP"; then
  6770. CPP=
  6771. fi
  6772. if test -z "$CPP"; then
  6773. if ${ac_cv_prog_CPP+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. # Double quotes because CPP needs to be expanded
  6777. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6778. do
  6779. ac_preproc_ok=false
  6780. for ac_c_preproc_warn_flag in '' yes
  6781. do
  6782. # Use a header file that comes with gcc, so configuring glibc
  6783. # with a fresh cross-compiler works.
  6784. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6785. # <limits.h> exists even on freestanding compilers.
  6786. # On the NeXT, cc -E runs the code through the compiler's parser,
  6787. # not just through cpp. "Syntax error" is here to catch this case.
  6788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6789. /* end confdefs.h. */
  6790. #ifdef __STDC__
  6791. # include <limits.h>
  6792. #else
  6793. # include <assert.h>
  6794. #endif
  6795. Syntax error
  6796. _ACEOF
  6797. if ac_fn_c_try_cpp "$LINENO"; then :
  6798. else
  6799. # Broken: fails on valid input.
  6800. continue
  6801. fi
  6802. rm -f conftest.err conftest.i conftest.$ac_ext
  6803. # OK, works on sane cases. Now check whether nonexistent headers
  6804. # can be detected and how.
  6805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6806. /* end confdefs.h. */
  6807. #include <ac_nonexistent.h>
  6808. _ACEOF
  6809. if ac_fn_c_try_cpp "$LINENO"; then :
  6810. # Broken: success on invalid input.
  6811. continue
  6812. else
  6813. # Passes both tests.
  6814. ac_preproc_ok=:
  6815. break
  6816. fi
  6817. rm -f conftest.err conftest.i conftest.$ac_ext
  6818. done
  6819. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6820. rm -f conftest.i conftest.err conftest.$ac_ext
  6821. if $ac_preproc_ok; then :
  6822. break
  6823. fi
  6824. done
  6825. ac_cv_prog_CPP=$CPP
  6826. fi
  6827. CPP=$ac_cv_prog_CPP
  6828. else
  6829. ac_cv_prog_CPP=$CPP
  6830. fi
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6832. $as_echo "$CPP" >&6; }
  6833. ac_preproc_ok=false
  6834. for ac_c_preproc_warn_flag in '' yes
  6835. do
  6836. # Use a header file that comes with gcc, so configuring glibc
  6837. # with a fresh cross-compiler works.
  6838. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6839. # <limits.h> exists even on freestanding compilers.
  6840. # On the NeXT, cc -E runs the code through the compiler's parser,
  6841. # not just through cpp. "Syntax error" is here to catch this case.
  6842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6843. /* end confdefs.h. */
  6844. #ifdef __STDC__
  6845. # include <limits.h>
  6846. #else
  6847. # include <assert.h>
  6848. #endif
  6849. Syntax error
  6850. _ACEOF
  6851. if ac_fn_c_try_cpp "$LINENO"; then :
  6852. else
  6853. # Broken: fails on valid input.
  6854. continue
  6855. fi
  6856. rm -f conftest.err conftest.i conftest.$ac_ext
  6857. # OK, works on sane cases. Now check whether nonexistent headers
  6858. # can be detected and how.
  6859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6860. /* end confdefs.h. */
  6861. #include <ac_nonexistent.h>
  6862. _ACEOF
  6863. if ac_fn_c_try_cpp "$LINENO"; then :
  6864. # Broken: success on invalid input.
  6865. continue
  6866. else
  6867. # Passes both tests.
  6868. ac_preproc_ok=:
  6869. break
  6870. fi
  6871. rm -f conftest.err conftest.i conftest.$ac_ext
  6872. done
  6873. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6874. rm -f conftest.i conftest.err conftest.$ac_ext
  6875. if $ac_preproc_ok; then :
  6876. else
  6877. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6879. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6880. See \`config.log' for more details" "$LINENO" 5; }
  6881. fi
  6882. ac_ext=c
  6883. ac_cpp='$CPP $CPPFLAGS'
  6884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6888. $as_echo_n "checking for ANSI C header files... " >&6; }
  6889. if ${ac_cv_header_stdc+:} false; then :
  6890. $as_echo_n "(cached) " >&6
  6891. else
  6892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6893. /* end confdefs.h. */
  6894. #include <stdlib.h>
  6895. #include <stdarg.h>
  6896. #include <string.h>
  6897. #include <float.h>
  6898. int
  6899. main ()
  6900. {
  6901. ;
  6902. return 0;
  6903. }
  6904. _ACEOF
  6905. if ac_fn_c_try_compile "$LINENO"; then :
  6906. ac_cv_header_stdc=yes
  6907. else
  6908. ac_cv_header_stdc=no
  6909. fi
  6910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6911. if test $ac_cv_header_stdc = yes; then
  6912. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6914. /* end confdefs.h. */
  6915. #include <string.h>
  6916. _ACEOF
  6917. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6918. $EGREP "memchr" >/dev/null 2>&1; then :
  6919. else
  6920. ac_cv_header_stdc=no
  6921. fi
  6922. rm -f conftest*
  6923. fi
  6924. if test $ac_cv_header_stdc = yes; then
  6925. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6927. /* end confdefs.h. */
  6928. #include <stdlib.h>
  6929. _ACEOF
  6930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6931. $EGREP "free" >/dev/null 2>&1; then :
  6932. else
  6933. ac_cv_header_stdc=no
  6934. fi
  6935. rm -f conftest*
  6936. fi
  6937. if test $ac_cv_header_stdc = yes; then
  6938. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6939. if test "$cross_compiling" = yes; then :
  6940. :
  6941. else
  6942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6943. /* end confdefs.h. */
  6944. #include <ctype.h>
  6945. #include <stdlib.h>
  6946. #if ((' ' & 0x0FF) == 0x020)
  6947. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6948. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6949. #else
  6950. # define ISLOWER(c) \
  6951. (('a' <= (c) && (c) <= 'i') \
  6952. || ('j' <= (c) && (c) <= 'r') \
  6953. || ('s' <= (c) && (c) <= 'z'))
  6954. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6955. #endif
  6956. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6957. int
  6958. main ()
  6959. {
  6960. int i;
  6961. for (i = 0; i < 256; i++)
  6962. if (XOR (islower (i), ISLOWER (i))
  6963. || toupper (i) != TOUPPER (i))
  6964. return 2;
  6965. return 0;
  6966. }
  6967. _ACEOF
  6968. if ac_fn_c_try_run "$LINENO"; then :
  6969. else
  6970. ac_cv_header_stdc=no
  6971. fi
  6972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6974. fi
  6975. fi
  6976. fi
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6978. $as_echo "$ac_cv_header_stdc" >&6; }
  6979. if test $ac_cv_header_stdc = yes; then
  6980. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6981. fi
  6982. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6983. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6984. inttypes.h stdint.h unistd.h
  6985. do :
  6986. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6987. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6988. "
  6989. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6990. cat >>confdefs.h <<_ACEOF
  6991. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6992. _ACEOF
  6993. fi
  6994. done
  6995. for ac_header in dlfcn.h
  6996. do :
  6997. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6998. "
  6999. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7000. cat >>confdefs.h <<_ACEOF
  7001. #define HAVE_DLFCN_H 1
  7002. _ACEOF
  7003. fi
  7004. done
  7005. func_stripname_cnf ()
  7006. {
  7007. case ${2} in
  7008. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7009. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7010. esac
  7011. } # func_stripname_cnf
  7012. # Set options
  7013. enable_dlopen=no
  7014. enable_win32_dll=no
  7015. # Check whether --with-pic was given.
  7016. if test "${with_pic+set}" = set; then :
  7017. withval=$with_pic; pic_mode="$withval"
  7018. else
  7019. pic_mode=default
  7020. fi
  7021. test -z "$pic_mode" && pic_mode=default
  7022. # Check whether --enable-fast-install was given.
  7023. if test "${enable_fast_install+set}" = set; then :
  7024. enableval=$enable_fast_install; p=${PACKAGE-default}
  7025. case $enableval in
  7026. yes) enable_fast_install=yes ;;
  7027. no) enable_fast_install=no ;;
  7028. *)
  7029. enable_fast_install=no
  7030. # Look at the argument we got. We use all the common list separators.
  7031. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7032. for pkg in $enableval; do
  7033. IFS="$lt_save_ifs"
  7034. if test "X$pkg" = "X$p"; then
  7035. enable_fast_install=yes
  7036. fi
  7037. done
  7038. IFS="$lt_save_ifs"
  7039. ;;
  7040. esac
  7041. else
  7042. enable_fast_install=yes
  7043. fi
  7044. # This can be used to rebuild libtool when needed
  7045. LIBTOOL_DEPS="$ltmain"
  7046. # Always use our own libtool.
  7047. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7048. test -z "$LN_S" && LN_S="ln -s"
  7049. if test -n "${ZSH_VERSION+set}" ; then
  7050. setopt NO_GLOB_SUBST
  7051. fi
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7053. $as_echo_n "checking for objdir... " >&6; }
  7054. if ${lt_cv_objdir+:} false; then :
  7055. $as_echo_n "(cached) " >&6
  7056. else
  7057. rm -f .libs 2>/dev/null
  7058. mkdir .libs 2>/dev/null
  7059. if test -d .libs; then
  7060. lt_cv_objdir=.libs
  7061. else
  7062. # MS-DOS does not allow filenames that begin with a dot.
  7063. lt_cv_objdir=_libs
  7064. fi
  7065. rmdir .libs 2>/dev/null
  7066. fi
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7068. $as_echo "$lt_cv_objdir" >&6; }
  7069. objdir=$lt_cv_objdir
  7070. cat >>confdefs.h <<_ACEOF
  7071. #define LT_OBJDIR "$lt_cv_objdir/"
  7072. _ACEOF
  7073. case $host_os in
  7074. aix3*)
  7075. # AIX sometimes has problems with the GCC collect2 program. For some
  7076. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7077. # vanish in a puff of smoke.
  7078. if test "X${COLLECT_NAMES+set}" != Xset; then
  7079. COLLECT_NAMES=
  7080. export COLLECT_NAMES
  7081. fi
  7082. ;;
  7083. esac
  7084. # Global variables:
  7085. ofile=libtool
  7086. can_build_shared=yes
  7087. # All known linkers require a `.a' archive for static linking (except MSVC,
  7088. # which needs '.lib').
  7089. libext=a
  7090. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7091. old_CC="$CC"
  7092. old_CFLAGS="$CFLAGS"
  7093. # Set sane defaults for various variables
  7094. test -z "$CC" && CC=cc
  7095. test -z "$LTCC" && LTCC=$CC
  7096. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7097. test -z "$LD" && LD=ld
  7098. test -z "$ac_objext" && ac_objext=o
  7099. for cc_temp in $compiler""; do
  7100. case $cc_temp in
  7101. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7102. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7103. \-*) ;;
  7104. *) break;;
  7105. esac
  7106. done
  7107. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7108. # Only perform the check for file, if the check method requires it
  7109. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7110. case $deplibs_check_method in
  7111. file_magic*)
  7112. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7114. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7115. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. case $MAGIC_CMD in
  7119. [\\/*] | ?:[\\/]*)
  7120. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7121. ;;
  7122. *)
  7123. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7124. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7125. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7126. for ac_dir in $ac_dummy; do
  7127. IFS="$lt_save_ifs"
  7128. test -z "$ac_dir" && ac_dir=.
  7129. if test -f $ac_dir/${ac_tool_prefix}file; then
  7130. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7131. if test -n "$file_magic_test_file"; then
  7132. case $deplibs_check_method in
  7133. "file_magic "*)
  7134. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7135. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7136. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7137. $EGREP "$file_magic_regex" > /dev/null; then
  7138. :
  7139. else
  7140. cat <<_LT_EOF 1>&2
  7141. *** Warning: the command libtool uses to detect shared libraries,
  7142. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7143. *** The result is that libtool may fail to recognize shared libraries
  7144. *** as such. This will affect the creation of libtool libraries that
  7145. *** depend on shared libraries, but programs linked with such libtool
  7146. *** libraries will work regardless of this problem. Nevertheless, you
  7147. *** may want to report the problem to your system manager and/or to
  7148. *** [email protected]
  7149. _LT_EOF
  7150. fi ;;
  7151. esac
  7152. fi
  7153. break
  7154. fi
  7155. done
  7156. IFS="$lt_save_ifs"
  7157. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7158. ;;
  7159. esac
  7160. fi
  7161. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7162. if test -n "$MAGIC_CMD"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7164. $as_echo "$MAGIC_CMD" >&6; }
  7165. else
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7167. $as_echo "no" >&6; }
  7168. fi
  7169. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7170. if test -n "$ac_tool_prefix"; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7172. $as_echo_n "checking for file... " >&6; }
  7173. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. case $MAGIC_CMD in
  7177. [\\/*] | ?:[\\/]*)
  7178. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7179. ;;
  7180. *)
  7181. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7182. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7183. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7184. for ac_dir in $ac_dummy; do
  7185. IFS="$lt_save_ifs"
  7186. test -z "$ac_dir" && ac_dir=.
  7187. if test -f $ac_dir/file; then
  7188. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7189. if test -n "$file_magic_test_file"; then
  7190. case $deplibs_check_method in
  7191. "file_magic "*)
  7192. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7193. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7194. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7195. $EGREP "$file_magic_regex" > /dev/null; then
  7196. :
  7197. else
  7198. cat <<_LT_EOF 1>&2
  7199. *** Warning: the command libtool uses to detect shared libraries,
  7200. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7201. *** The result is that libtool may fail to recognize shared libraries
  7202. *** as such. This will affect the creation of libtool libraries that
  7203. *** depend on shared libraries, but programs linked with such libtool
  7204. *** libraries will work regardless of this problem. Nevertheless, you
  7205. *** may want to report the problem to your system manager and/or to
  7206. *** [email protected]
  7207. _LT_EOF
  7208. fi ;;
  7209. esac
  7210. fi
  7211. break
  7212. fi
  7213. done
  7214. IFS="$lt_save_ifs"
  7215. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7216. ;;
  7217. esac
  7218. fi
  7219. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7220. if test -n "$MAGIC_CMD"; then
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7222. $as_echo "$MAGIC_CMD" >&6; }
  7223. else
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7225. $as_echo "no" >&6; }
  7226. fi
  7227. else
  7228. MAGIC_CMD=:
  7229. fi
  7230. fi
  7231. fi
  7232. ;;
  7233. esac
  7234. # Use C for the default configuration in the libtool script
  7235. lt_save_CC="$CC"
  7236. ac_ext=c
  7237. ac_cpp='$CPP $CPPFLAGS'
  7238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7241. # Source file extension for C test sources.
  7242. ac_ext=c
  7243. # Object file extension for compiled C test sources.
  7244. objext=o
  7245. objext=$objext
  7246. # Code to be used in simple compile tests
  7247. lt_simple_compile_test_code="int some_variable = 0;"
  7248. # Code to be used in simple link tests
  7249. lt_simple_link_test_code='int main(){return(0);}'
  7250. # If no C compiler was specified, use CC.
  7251. LTCC=${LTCC-"$CC"}
  7252. # If no C compiler flags were specified, use CFLAGS.
  7253. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7254. # Allow CC to be a program name with arguments.
  7255. compiler=$CC
  7256. # Save the default compiler, since it gets overwritten when the other
  7257. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7258. compiler_DEFAULT=$CC
  7259. # save warnings/boilerplate of simple test code
  7260. ac_outfile=conftest.$ac_objext
  7261. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7262. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7263. _lt_compiler_boilerplate=`cat conftest.err`
  7264. $RM conftest*
  7265. ac_outfile=conftest.$ac_objext
  7266. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7267. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7268. _lt_linker_boilerplate=`cat conftest.err`
  7269. $RM -r conftest*
  7270. ## CAVEAT EMPTOR:
  7271. ## There is no encapsulation within the following macros, do not change
  7272. ## the running order or otherwise move them around unless you know exactly
  7273. ## what you are doing...
  7274. if test -n "$compiler"; then
  7275. lt_prog_compiler_no_builtin_flag=
  7276. if test "$GCC" = yes; then
  7277. case $cc_basename in
  7278. nvcc*)
  7279. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7280. *)
  7281. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7282. esac
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7284. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7285. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. lt_cv_prog_compiler_rtti_exceptions=no
  7289. ac_outfile=conftest.$ac_objext
  7290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7291. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7292. # Insert the option either (1) after the last *FLAGS variable, or
  7293. # (2) before a word containing "conftest.", or (3) at the end.
  7294. # Note that $ac_compile itself does not contain backslashes and begins
  7295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7296. # The option is referenced via a variable to avoid confusing sed.
  7297. lt_compile=`echo "$ac_compile" | $SED \
  7298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7300. -e 's:$: $lt_compiler_flag:'`
  7301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7302. (eval "$lt_compile" 2>conftest.err)
  7303. ac_status=$?
  7304. cat conftest.err >&5
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. if (exit $ac_status) && test -s "$ac_outfile"; then
  7307. # The compiler can only warn and ignore the option if not recognized
  7308. # So say no if there are warnings other than the usual output.
  7309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7311. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7312. lt_cv_prog_compiler_rtti_exceptions=yes
  7313. fi
  7314. fi
  7315. $RM conftest*
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7318. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7319. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7320. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7321. else
  7322. :
  7323. fi
  7324. fi
  7325. lt_prog_compiler_wl=
  7326. lt_prog_compiler_pic=
  7327. lt_prog_compiler_static=
  7328. if test "$GCC" = yes; then
  7329. lt_prog_compiler_wl='-Wl,'
  7330. lt_prog_compiler_static='-static'
  7331. case $host_os in
  7332. aix*)
  7333. # All AIX code is PIC.
  7334. if test "$host_cpu" = ia64; then
  7335. # AIX 5 now supports IA64 processor
  7336. lt_prog_compiler_static='-Bstatic'
  7337. fi
  7338. ;;
  7339. amigaos*)
  7340. case $host_cpu in
  7341. powerpc)
  7342. # see comment about AmigaOS4 .so support
  7343. lt_prog_compiler_pic='-fPIC'
  7344. ;;
  7345. m68k)
  7346. # FIXME: we need at least 68020 code to build shared libraries, but
  7347. # adding the `-m68020' flag to GCC prevents building anything better,
  7348. # like `-m68040'.
  7349. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7350. ;;
  7351. esac
  7352. ;;
  7353. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7354. # PIC is the default for these OSes.
  7355. ;;
  7356. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7357. # This hack is so that the source file can tell whether it is being
  7358. # built for inclusion in a dll (and should export symbols for example).
  7359. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7360. # (--disable-auto-import) libraries
  7361. lt_prog_compiler_pic='-DDLL_EXPORT'
  7362. ;;
  7363. darwin* | rhapsody*)
  7364. # PIC is the default on this platform
  7365. # Common symbols not allowed in MH_DYLIB files
  7366. lt_prog_compiler_pic='-fno-common'
  7367. ;;
  7368. haiku*)
  7369. # PIC is the default for Haiku.
  7370. # The "-static" flag exists, but is broken.
  7371. lt_prog_compiler_static=
  7372. ;;
  7373. hpux*)
  7374. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7375. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7376. # sets the default TLS model and affects inlining.
  7377. case $host_cpu in
  7378. hppa*64*)
  7379. # +Z the default
  7380. ;;
  7381. *)
  7382. lt_prog_compiler_pic='-fPIC'
  7383. ;;
  7384. esac
  7385. ;;
  7386. interix[3-9]*)
  7387. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7388. # Instead, we relocate shared libraries at runtime.
  7389. ;;
  7390. msdosdjgpp*)
  7391. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7392. # on systems that don't support them.
  7393. lt_prog_compiler_can_build_shared=no
  7394. enable_shared=no
  7395. ;;
  7396. *nto* | *qnx*)
  7397. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7398. # it will coredump.
  7399. lt_prog_compiler_pic='-fPIC -shared'
  7400. ;;
  7401. sysv4*MP*)
  7402. if test -d /usr/nec; then
  7403. lt_prog_compiler_pic=-Kconform_pic
  7404. fi
  7405. ;;
  7406. *)
  7407. lt_prog_compiler_pic='-fPIC'
  7408. ;;
  7409. esac
  7410. case $cc_basename in
  7411. nvcc*) # Cuda Compiler Driver 2.2
  7412. lt_prog_compiler_wl='-Xlinker '
  7413. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7414. ;;
  7415. esac
  7416. else
  7417. # PORTME Check for flag to pass linker flags through the system compiler.
  7418. case $host_os in
  7419. aix*)
  7420. lt_prog_compiler_wl='-Wl,'
  7421. if test "$host_cpu" = ia64; then
  7422. # AIX 5 now supports IA64 processor
  7423. lt_prog_compiler_static='-Bstatic'
  7424. else
  7425. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7426. fi
  7427. ;;
  7428. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7429. # This hack is so that the source file can tell whether it is being
  7430. # built for inclusion in a dll (and should export symbols for example).
  7431. lt_prog_compiler_pic='-DDLL_EXPORT'
  7432. ;;
  7433. hpux9* | hpux10* | hpux11*)
  7434. lt_prog_compiler_wl='-Wl,'
  7435. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7436. # not for PA HP-UX.
  7437. case $host_cpu in
  7438. hppa*64*|ia64*)
  7439. # +Z the default
  7440. ;;
  7441. *)
  7442. lt_prog_compiler_pic='+Z'
  7443. ;;
  7444. esac
  7445. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7446. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7447. ;;
  7448. irix5* | irix6* | nonstopux*)
  7449. lt_prog_compiler_wl='-Wl,'
  7450. # PIC (with -KPIC) is the default.
  7451. lt_prog_compiler_static='-non_shared'
  7452. ;;
  7453. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7454. case $cc_basename in
  7455. # old Intel for x86_64 which still supported -KPIC.
  7456. ecc*)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. lt_prog_compiler_pic='-KPIC'
  7459. lt_prog_compiler_static='-static'
  7460. ;;
  7461. # icc used to be incompatible with GCC.
  7462. # ICC 10 doesn't accept -KPIC any more.
  7463. icc* | ifort*)
  7464. lt_prog_compiler_wl='-Wl,'
  7465. lt_prog_compiler_pic='-fPIC'
  7466. lt_prog_compiler_static='-static'
  7467. ;;
  7468. # Lahey Fortran 8.1.
  7469. lf95*)
  7470. lt_prog_compiler_wl='-Wl,'
  7471. lt_prog_compiler_pic='--shared'
  7472. lt_prog_compiler_static='--static'
  7473. ;;
  7474. nagfor*)
  7475. # NAG Fortran compiler
  7476. lt_prog_compiler_wl='-Wl,-Wl,,'
  7477. lt_prog_compiler_pic='-PIC'
  7478. lt_prog_compiler_static='-Bstatic'
  7479. ;;
  7480. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7481. # Portland Group compilers (*not* the Pentium gcc compiler,
  7482. # which looks to be a dead project)
  7483. lt_prog_compiler_wl='-Wl,'
  7484. lt_prog_compiler_pic='-fpic'
  7485. lt_prog_compiler_static='-Bstatic'
  7486. ;;
  7487. ccc*)
  7488. lt_prog_compiler_wl='-Wl,'
  7489. # All Alpha code is PIC.
  7490. lt_prog_compiler_static='-non_shared'
  7491. ;;
  7492. xl* | bgxl* | bgf* | mpixl*)
  7493. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7494. lt_prog_compiler_wl='-Wl,'
  7495. lt_prog_compiler_pic='-qpic'
  7496. lt_prog_compiler_static='-qstaticlink'
  7497. ;;
  7498. *)
  7499. case `$CC -V 2>&1 | sed 5q` in
  7500. *Sun\ F* | *Sun*Fortran*)
  7501. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7502. lt_prog_compiler_pic='-KPIC'
  7503. lt_prog_compiler_static='-Bstatic'
  7504. lt_prog_compiler_wl=''
  7505. ;;
  7506. *Sun\ C*)
  7507. # Sun C 5.9
  7508. lt_prog_compiler_pic='-KPIC'
  7509. lt_prog_compiler_static='-Bstatic'
  7510. lt_prog_compiler_wl='-Wl,'
  7511. ;;
  7512. esac
  7513. ;;
  7514. esac
  7515. ;;
  7516. newsos6)
  7517. lt_prog_compiler_pic='-KPIC'
  7518. lt_prog_compiler_static='-Bstatic'
  7519. ;;
  7520. *nto* | *qnx*)
  7521. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7522. # it will coredump.
  7523. lt_prog_compiler_pic='-fPIC -shared'
  7524. ;;
  7525. osf3* | osf4* | osf5*)
  7526. lt_prog_compiler_wl='-Wl,'
  7527. # All OSF/1 code is PIC.
  7528. lt_prog_compiler_static='-non_shared'
  7529. ;;
  7530. rdos*)
  7531. lt_prog_compiler_static='-non_shared'
  7532. ;;
  7533. solaris*)
  7534. lt_prog_compiler_pic='-KPIC'
  7535. lt_prog_compiler_static='-Bstatic'
  7536. case $cc_basename in
  7537. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7538. lt_prog_compiler_wl='-Qoption ld ';;
  7539. *)
  7540. lt_prog_compiler_wl='-Wl,';;
  7541. esac
  7542. ;;
  7543. sunos4*)
  7544. lt_prog_compiler_wl='-Qoption ld '
  7545. lt_prog_compiler_pic='-PIC'
  7546. lt_prog_compiler_static='-Bstatic'
  7547. ;;
  7548. sysv4 | sysv4.2uw2* | sysv4.3*)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='-KPIC'
  7551. lt_prog_compiler_static='-Bstatic'
  7552. ;;
  7553. sysv4*MP*)
  7554. if test -d /usr/nec ;then
  7555. lt_prog_compiler_pic='-Kconform_pic'
  7556. lt_prog_compiler_static='-Bstatic'
  7557. fi
  7558. ;;
  7559. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_pic='-KPIC'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. ;;
  7564. unicos*)
  7565. lt_prog_compiler_wl='-Wl,'
  7566. lt_prog_compiler_can_build_shared=no
  7567. ;;
  7568. uts4*)
  7569. lt_prog_compiler_pic='-pic'
  7570. lt_prog_compiler_static='-Bstatic'
  7571. ;;
  7572. *)
  7573. lt_prog_compiler_can_build_shared=no
  7574. ;;
  7575. esac
  7576. fi
  7577. case $host_os in
  7578. # For platforms which do not support PIC, -DPIC is meaningless:
  7579. *djgpp*)
  7580. lt_prog_compiler_pic=
  7581. ;;
  7582. *)
  7583. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7584. ;;
  7585. esac
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7587. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7588. if ${lt_cv_prog_compiler_pic+:} false; then :
  7589. $as_echo_n "(cached) " >&6
  7590. else
  7591. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7592. fi
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7594. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7595. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7596. #
  7597. # Check to make sure the PIC flag actually works.
  7598. #
  7599. if test -n "$lt_prog_compiler_pic"; then
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7601. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7602. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7603. $as_echo_n "(cached) " >&6
  7604. else
  7605. lt_cv_prog_compiler_pic_works=no
  7606. ac_outfile=conftest.$ac_objext
  7607. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7608. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7609. # Insert the option either (1) after the last *FLAGS variable, or
  7610. # (2) before a word containing "conftest.", or (3) at the end.
  7611. # Note that $ac_compile itself does not contain backslashes and begins
  7612. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7613. # The option is referenced via a variable to avoid confusing sed.
  7614. lt_compile=`echo "$ac_compile" | $SED \
  7615. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7616. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7617. -e 's:$: $lt_compiler_flag:'`
  7618. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7619. (eval "$lt_compile" 2>conftest.err)
  7620. ac_status=$?
  7621. cat conftest.err >&5
  7622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623. if (exit $ac_status) && test -s "$ac_outfile"; then
  7624. # The compiler can only warn and ignore the option if not recognized
  7625. # So say no if there are warnings other than the usual output.
  7626. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7627. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7628. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7629. lt_cv_prog_compiler_pic_works=yes
  7630. fi
  7631. fi
  7632. $RM conftest*
  7633. fi
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7635. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7636. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7637. case $lt_prog_compiler_pic in
  7638. "" | " "*) ;;
  7639. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7640. esac
  7641. else
  7642. lt_prog_compiler_pic=
  7643. lt_prog_compiler_can_build_shared=no
  7644. fi
  7645. fi
  7646. #
  7647. # Check to make sure the static flag actually works.
  7648. #
  7649. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7651. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7652. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7653. $as_echo_n "(cached) " >&6
  7654. else
  7655. lt_cv_prog_compiler_static_works=no
  7656. save_LDFLAGS="$LDFLAGS"
  7657. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7658. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7659. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7660. # The linker can only warn and ignore the option if not recognized
  7661. # So say no if there are warnings
  7662. if test -s conftest.err; then
  7663. # Append any errors to the config.log.
  7664. cat conftest.err 1>&5
  7665. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7666. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7667. if diff conftest.exp conftest.er2 >/dev/null; then
  7668. lt_cv_prog_compiler_static_works=yes
  7669. fi
  7670. else
  7671. lt_cv_prog_compiler_static_works=yes
  7672. fi
  7673. fi
  7674. $RM -r conftest*
  7675. LDFLAGS="$save_LDFLAGS"
  7676. fi
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7678. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7679. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7680. :
  7681. else
  7682. lt_prog_compiler_static=
  7683. fi
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7685. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7686. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7687. $as_echo_n "(cached) " >&6
  7688. else
  7689. lt_cv_prog_compiler_c_o=no
  7690. $RM -r conftest 2>/dev/null
  7691. mkdir conftest
  7692. cd conftest
  7693. mkdir out
  7694. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7695. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7696. # Insert the option either (1) after the last *FLAGS variable, or
  7697. # (2) before a word containing "conftest.", or (3) at the end.
  7698. # Note that $ac_compile itself does not contain backslashes and begins
  7699. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7700. lt_compile=`echo "$ac_compile" | $SED \
  7701. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7702. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7703. -e 's:$: $lt_compiler_flag:'`
  7704. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7705. (eval "$lt_compile" 2>out/conftest.err)
  7706. ac_status=$?
  7707. cat out/conftest.err >&5
  7708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7709. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7710. then
  7711. # The compiler can only warn and ignore the option if not recognized
  7712. # So say no if there are warnings
  7713. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7714. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7715. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7716. lt_cv_prog_compiler_c_o=yes
  7717. fi
  7718. fi
  7719. chmod u+w . 2>&5
  7720. $RM conftest*
  7721. # SGI C++ compiler will create directory out/ii_files/ for
  7722. # template instantiation
  7723. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7724. $RM out/* && rmdir out
  7725. cd ..
  7726. $RM -r conftest
  7727. $RM conftest*
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7730. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7732. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7733. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7734. $as_echo_n "(cached) " >&6
  7735. else
  7736. lt_cv_prog_compiler_c_o=no
  7737. $RM -r conftest 2>/dev/null
  7738. mkdir conftest
  7739. cd conftest
  7740. mkdir out
  7741. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7742. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7743. # Insert the option either (1) after the last *FLAGS variable, or
  7744. # (2) before a word containing "conftest.", or (3) at the end.
  7745. # Note that $ac_compile itself does not contain backslashes and begins
  7746. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7747. lt_compile=`echo "$ac_compile" | $SED \
  7748. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7749. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7750. -e 's:$: $lt_compiler_flag:'`
  7751. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7752. (eval "$lt_compile" 2>out/conftest.err)
  7753. ac_status=$?
  7754. cat out/conftest.err >&5
  7755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7756. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7757. then
  7758. # The compiler can only warn and ignore the option if not recognized
  7759. # So say no if there are warnings
  7760. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7761. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7762. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7763. lt_cv_prog_compiler_c_o=yes
  7764. fi
  7765. fi
  7766. chmod u+w . 2>&5
  7767. $RM conftest*
  7768. # SGI C++ compiler will create directory out/ii_files/ for
  7769. # template instantiation
  7770. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7771. $RM out/* && rmdir out
  7772. cd ..
  7773. $RM -r conftest
  7774. $RM conftest*
  7775. fi
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7777. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7778. hard_links="nottested"
  7779. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7780. # do not overwrite the value of need_locks provided by the user
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7782. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7783. hard_links=yes
  7784. $RM conftest*
  7785. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7786. touch conftest.a
  7787. ln conftest.a conftest.b 2>&5 || hard_links=no
  7788. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7790. $as_echo "$hard_links" >&6; }
  7791. if test "$hard_links" = no; then
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7793. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7794. need_locks=warn
  7795. fi
  7796. else
  7797. need_locks=no
  7798. fi
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7800. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7801. runpath_var=
  7802. allow_undefined_flag=
  7803. always_export_symbols=no
  7804. archive_cmds=
  7805. archive_expsym_cmds=
  7806. compiler_needs_object=no
  7807. enable_shared_with_static_runtimes=no
  7808. export_dynamic_flag_spec=
  7809. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7810. hardcode_automatic=no
  7811. hardcode_direct=no
  7812. hardcode_direct_absolute=no
  7813. hardcode_libdir_flag_spec=
  7814. hardcode_libdir_flag_spec_ld=
  7815. hardcode_libdir_separator=
  7816. hardcode_minus_L=no
  7817. hardcode_shlibpath_var=unsupported
  7818. inherit_rpath=no
  7819. link_all_deplibs=unknown
  7820. module_cmds=
  7821. module_expsym_cmds=
  7822. old_archive_from_new_cmds=
  7823. old_archive_from_expsyms_cmds=
  7824. thread_safe_flag_spec=
  7825. whole_archive_flag_spec=
  7826. # include_expsyms should be a list of space-separated symbols to be *always*
  7827. # included in the symbol list
  7828. include_expsyms=
  7829. # exclude_expsyms can be an extended regexp of symbols to exclude
  7830. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7831. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7832. # as well as any symbol that contains `d'.
  7833. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7834. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7835. # platforms (ab)use it in PIC code, but their linkers get confused if
  7836. # the symbol is explicitly referenced. Since portable code cannot
  7837. # rely on this symbol name, it's probably fine to never include it in
  7838. # preloaded symbol tables.
  7839. # Exclude shared library initialization/finalization symbols.
  7840. extract_expsyms_cmds=
  7841. case $host_os in
  7842. cygwin* | mingw* | pw32* | cegcc*)
  7843. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7844. # When not using gcc, we currently assume that we are using
  7845. # Microsoft Visual C++.
  7846. if test "$GCC" != yes; then
  7847. with_gnu_ld=no
  7848. fi
  7849. ;;
  7850. interix*)
  7851. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7852. with_gnu_ld=yes
  7853. ;;
  7854. openbsd*)
  7855. with_gnu_ld=no
  7856. ;;
  7857. linux* | k*bsd*-gnu | gnu*)
  7858. link_all_deplibs=no
  7859. ;;
  7860. esac
  7861. ld_shlibs=yes
  7862. # On some targets, GNU ld is compatible enough with the native linker
  7863. # that we're better off using the native interface for both.
  7864. lt_use_gnu_ld_interface=no
  7865. if test "$with_gnu_ld" = yes; then
  7866. case $host_os in
  7867. aix*)
  7868. # The AIX port of GNU ld has always aspired to compatibility
  7869. # with the native linker. However, as the warning in the GNU ld
  7870. # block says, versions before 2.19.5* couldn't really create working
  7871. # shared libraries, regardless of the interface used.
  7872. case `$LD -v 2>&1` in
  7873. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7874. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7875. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7876. *)
  7877. lt_use_gnu_ld_interface=yes
  7878. ;;
  7879. esac
  7880. ;;
  7881. *)
  7882. lt_use_gnu_ld_interface=yes
  7883. ;;
  7884. esac
  7885. fi
  7886. if test "$lt_use_gnu_ld_interface" = yes; then
  7887. # If archive_cmds runs LD, not CC, wlarc should be empty
  7888. wlarc='${wl}'
  7889. # Set some defaults for GNU ld with shared library support. These
  7890. # are reset later if shared libraries are not supported. Putting them
  7891. # here allows them to be overridden if necessary.
  7892. runpath_var=LD_RUN_PATH
  7893. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7894. export_dynamic_flag_spec='${wl}--export-dynamic'
  7895. # ancient GNU ld didn't support --whole-archive et. al.
  7896. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7897. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7898. else
  7899. whole_archive_flag_spec=
  7900. fi
  7901. supports_anon_versioning=no
  7902. case `$LD -v 2>&1` in
  7903. *GNU\ gold*) supports_anon_versioning=yes ;;
  7904. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7905. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7906. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7907. *\ 2.11.*) ;; # other 2.11 versions
  7908. *) supports_anon_versioning=yes ;;
  7909. esac
  7910. # See if GNU ld supports shared libraries.
  7911. case $host_os in
  7912. aix[3-9]*)
  7913. # On AIX/PPC, the GNU linker is very broken
  7914. if test "$host_cpu" != ia64; then
  7915. ld_shlibs=no
  7916. cat <<_LT_EOF 1>&2
  7917. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7918. *** to be unable to reliably create shared libraries on AIX.
  7919. *** Therefore, libtool is disabling shared libraries support. If you
  7920. *** really care for shared libraries, you may want to install binutils
  7921. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7922. *** You will then need to restart the configuration process.
  7923. _LT_EOF
  7924. fi
  7925. ;;
  7926. amigaos*)
  7927. case $host_cpu in
  7928. powerpc)
  7929. # see comment about AmigaOS4 .so support
  7930. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7931. archive_expsym_cmds=''
  7932. ;;
  7933. m68k)
  7934. 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)'
  7935. hardcode_libdir_flag_spec='-L$libdir'
  7936. hardcode_minus_L=yes
  7937. ;;
  7938. esac
  7939. ;;
  7940. beos*)
  7941. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7942. allow_undefined_flag=unsupported
  7943. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7944. # support --undefined. This deserves some investigation. FIXME
  7945. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7946. else
  7947. ld_shlibs=no
  7948. fi
  7949. ;;
  7950. cygwin* | mingw* | pw32* | cegcc*)
  7951. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7952. # as there is no search path for DLLs.
  7953. hardcode_libdir_flag_spec='-L$libdir'
  7954. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7955. allow_undefined_flag=unsupported
  7956. always_export_symbols=no
  7957. enable_shared_with_static_runtimes=yes
  7958. 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'
  7959. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7960. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7961. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7962. # If the export-symbols file already is a .def file (1st line
  7963. # is EXPORTS), use it as is; otherwise, prepend...
  7964. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7965. cp $export_symbols $output_objdir/$soname.def;
  7966. else
  7967. echo EXPORTS > $output_objdir/$soname.def;
  7968. cat $export_symbols >> $output_objdir/$soname.def;
  7969. fi~
  7970. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7971. else
  7972. ld_shlibs=no
  7973. fi
  7974. ;;
  7975. haiku*)
  7976. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7977. link_all_deplibs=yes
  7978. ;;
  7979. interix[3-9]*)
  7980. hardcode_direct=no
  7981. hardcode_shlibpath_var=no
  7982. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7983. export_dynamic_flag_spec='${wl}-E'
  7984. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7985. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7986. # default) and relocated if they conflict, which is a slow very memory
  7987. # consuming and fragmenting process. To avoid this, we pick a random,
  7988. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7989. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7990. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7991. 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'
  7992. ;;
  7993. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7994. tmp_diet=no
  7995. if test "$host_os" = linux-dietlibc; then
  7996. case $cc_basename in
  7997. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7998. esac
  7999. fi
  8000. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8001. && test "$tmp_diet" = no
  8002. then
  8003. tmp_addflag=' $pic_flag'
  8004. tmp_sharedflag='-shared'
  8005. case $cc_basename,$host_cpu in
  8006. pgcc*) # Portland Group C compiler
  8007. 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'
  8008. tmp_addflag=' $pic_flag'
  8009. ;;
  8010. pgf77* | pgf90* | pgf95* | pgfortran*)
  8011. # Portland Group f77 and f90 compilers
  8012. 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'
  8013. tmp_addflag=' $pic_flag -Mnomain' ;;
  8014. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8015. tmp_addflag=' -i_dynamic' ;;
  8016. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8017. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8018. ifc* | ifort*) # Intel Fortran compiler
  8019. tmp_addflag=' -nofor_main' ;;
  8020. lf95*) # Lahey Fortran 8.1
  8021. whole_archive_flag_spec=
  8022. tmp_sharedflag='--shared' ;;
  8023. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8024. tmp_sharedflag='-qmkshrobj'
  8025. tmp_addflag= ;;
  8026. nvcc*) # Cuda Compiler Driver 2.2
  8027. 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'
  8028. compiler_needs_object=yes
  8029. ;;
  8030. esac
  8031. case `$CC -V 2>&1 | sed 5q` in
  8032. *Sun\ C*) # Sun C 5.9
  8033. 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'
  8034. compiler_needs_object=yes
  8035. tmp_sharedflag='-G' ;;
  8036. *Sun\ F*) # Sun Fortran 8.3
  8037. tmp_sharedflag='-G' ;;
  8038. esac
  8039. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8040. if test "x$supports_anon_versioning" = xyes; then
  8041. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8042. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8043. echo "local: *; };" >> $output_objdir/$libname.ver~
  8044. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8045. fi
  8046. case $cc_basename in
  8047. xlf* | bgf* | bgxlf* | mpixlf*)
  8048. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8049. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8050. hardcode_libdir_flag_spec=
  8051. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8052. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8053. if test "x$supports_anon_versioning" = xyes; then
  8054. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8055. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8056. echo "local: *; };" >> $output_objdir/$libname.ver~
  8057. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8058. fi
  8059. ;;
  8060. esac
  8061. else
  8062. ld_shlibs=no
  8063. fi
  8064. ;;
  8065. netbsd* | netbsdelf*-gnu)
  8066. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8067. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8068. wlarc=
  8069. else
  8070. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8071. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8072. fi
  8073. ;;
  8074. solaris*)
  8075. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8076. ld_shlibs=no
  8077. cat <<_LT_EOF 1>&2
  8078. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8079. *** create shared libraries on Solaris systems. Therefore, libtool
  8080. *** is disabling shared libraries support. We urge you to upgrade GNU
  8081. *** binutils to release 2.9.1 or newer. Another option is to modify
  8082. *** your PATH or compiler configuration so that the native linker is
  8083. *** used, and then restart.
  8084. _LT_EOF
  8085. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8086. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8087. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8088. else
  8089. ld_shlibs=no
  8090. fi
  8091. ;;
  8092. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8093. case `$LD -v 2>&1` in
  8094. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8095. ld_shlibs=no
  8096. cat <<_LT_EOF 1>&2
  8097. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8098. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8099. *** is disabling shared libraries support. We urge you to upgrade GNU
  8100. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8101. *** your PATH or compiler configuration so that the native linker is
  8102. *** used, and then restart.
  8103. _LT_EOF
  8104. ;;
  8105. *)
  8106. # For security reasons, it is highly recommended that you always
  8107. # use absolute paths for naming shared libraries, and exclude the
  8108. # DT_RUNPATH tag from executables and libraries. But doing so
  8109. # requires that you compile everything twice, which is a pain.
  8110. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8111. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8112. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8113. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8114. else
  8115. ld_shlibs=no
  8116. fi
  8117. ;;
  8118. esac
  8119. ;;
  8120. sunos4*)
  8121. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8122. wlarc=
  8123. hardcode_direct=yes
  8124. hardcode_shlibpath_var=no
  8125. ;;
  8126. *)
  8127. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8128. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8129. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8130. else
  8131. ld_shlibs=no
  8132. fi
  8133. ;;
  8134. esac
  8135. if test "$ld_shlibs" = no; then
  8136. runpath_var=
  8137. hardcode_libdir_flag_spec=
  8138. export_dynamic_flag_spec=
  8139. whole_archive_flag_spec=
  8140. fi
  8141. else
  8142. # PORTME fill in a description of your system's linker (not GNU ld)
  8143. case $host_os in
  8144. aix3*)
  8145. allow_undefined_flag=unsupported
  8146. always_export_symbols=yes
  8147. 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'
  8148. # Note: this linker hardcodes the directories in LIBPATH if there
  8149. # are no directories specified by -L.
  8150. hardcode_minus_L=yes
  8151. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8152. # Neither direct hardcoding nor static linking is supported with a
  8153. # broken collect2.
  8154. hardcode_direct=unsupported
  8155. fi
  8156. ;;
  8157. aix[4-9]*)
  8158. if test "$host_cpu" = ia64; then
  8159. # On IA64, the linker does run time linking by default, so we don't
  8160. # have to do anything special.
  8161. aix_use_runtimelinking=no
  8162. exp_sym_flag='-Bexport'
  8163. no_entry_flag=""
  8164. else
  8165. # If we're using GNU nm, then we don't want the "-C" option.
  8166. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8167. # Also, AIX nm treats weak defined symbols like other global
  8168. # defined symbols, whereas GNU nm marks them as "W".
  8169. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8170. 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'
  8171. else
  8172. 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'
  8173. fi
  8174. aix_use_runtimelinking=no
  8175. # Test if we are trying to use run time linking or normal
  8176. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8177. # need to do runtime linking.
  8178. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8179. for ld_flag in $LDFLAGS; do
  8180. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8181. aix_use_runtimelinking=yes
  8182. break
  8183. fi
  8184. done
  8185. ;;
  8186. esac
  8187. exp_sym_flag='-bexport'
  8188. no_entry_flag='-bnoentry'
  8189. fi
  8190. # When large executables or shared objects are built, AIX ld can
  8191. # have problems creating the table of contents. If linking a library
  8192. # or program results in "error TOC overflow" add -mminimal-toc to
  8193. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8194. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8195. archive_cmds=''
  8196. hardcode_direct=yes
  8197. hardcode_direct_absolute=yes
  8198. hardcode_libdir_separator=':'
  8199. link_all_deplibs=yes
  8200. file_list_spec='${wl}-f,'
  8201. if test "$GCC" = yes; then
  8202. case $host_os in aix4.[012]|aix4.[012].*)
  8203. # We only want to do this on AIX 4.2 and lower, the check
  8204. # below for broken collect2 doesn't work under 4.3+
  8205. collect2name=`${CC} -print-prog-name=collect2`
  8206. if test -f "$collect2name" &&
  8207. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8208. then
  8209. # We have reworked collect2
  8210. :
  8211. else
  8212. # We have old collect2
  8213. hardcode_direct=unsupported
  8214. # It fails to find uninstalled libraries when the uninstalled
  8215. # path is not listed in the libpath. Setting hardcode_minus_L
  8216. # to unsupported forces relinking
  8217. hardcode_minus_L=yes
  8218. hardcode_libdir_flag_spec='-L$libdir'
  8219. hardcode_libdir_separator=
  8220. fi
  8221. ;;
  8222. esac
  8223. shared_flag='-shared'
  8224. if test "$aix_use_runtimelinking" = yes; then
  8225. shared_flag="$shared_flag "'${wl}-G'
  8226. fi
  8227. link_all_deplibs=no
  8228. else
  8229. # not using gcc
  8230. if test "$host_cpu" = ia64; then
  8231. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8232. # chokes on -Wl,-G. The following line is correct:
  8233. shared_flag='-G'
  8234. else
  8235. if test "$aix_use_runtimelinking" = yes; then
  8236. shared_flag='${wl}-G'
  8237. else
  8238. shared_flag='${wl}-bM:SRE'
  8239. fi
  8240. fi
  8241. fi
  8242. export_dynamic_flag_spec='${wl}-bexpall'
  8243. # It seems that -bexpall does not export symbols beginning with
  8244. # underscore (_), so it is better to generate a list of symbols to export.
  8245. always_export_symbols=yes
  8246. if test "$aix_use_runtimelinking" = yes; then
  8247. # Warning - without using the other runtime loading flags (-brtl),
  8248. # -berok will link without error, but may produce a broken library.
  8249. allow_undefined_flag='-berok'
  8250. # Determine the default libpath from the value encoded in an
  8251. # empty executable.
  8252. if test "${lt_cv_aix_libpath+set}" = set; then
  8253. aix_libpath=$lt_cv_aix_libpath
  8254. else
  8255. if ${lt_cv_aix_libpath_+:} false; then :
  8256. $as_echo_n "(cached) " >&6
  8257. else
  8258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8259. /* end confdefs.h. */
  8260. int
  8261. main ()
  8262. {
  8263. ;
  8264. return 0;
  8265. }
  8266. _ACEOF
  8267. if ac_fn_c_try_link "$LINENO"; then :
  8268. lt_aix_libpath_sed='
  8269. /Import File Strings/,/^$/ {
  8270. /^0/ {
  8271. s/^0 *\([^ ]*\) *$/\1/
  8272. p
  8273. }
  8274. }'
  8275. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8276. # Check for a 64-bit object if we didn't find anything.
  8277. if test -z "$lt_cv_aix_libpath_"; then
  8278. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8279. fi
  8280. fi
  8281. rm -f core conftest.err conftest.$ac_objext \
  8282. conftest$ac_exeext conftest.$ac_ext
  8283. if test -z "$lt_cv_aix_libpath_"; then
  8284. lt_cv_aix_libpath_="/usr/lib:/lib"
  8285. fi
  8286. fi
  8287. aix_libpath=$lt_cv_aix_libpath_
  8288. fi
  8289. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8290. 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"
  8291. else
  8292. if test "$host_cpu" = ia64; then
  8293. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8294. allow_undefined_flag="-z nodefs"
  8295. 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"
  8296. else
  8297. # Determine the default libpath from the value encoded in an
  8298. # empty executable.
  8299. if test "${lt_cv_aix_libpath+set}" = set; then
  8300. aix_libpath=$lt_cv_aix_libpath
  8301. else
  8302. if ${lt_cv_aix_libpath_+:} false; then :
  8303. $as_echo_n "(cached) " >&6
  8304. else
  8305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8306. /* end confdefs.h. */
  8307. int
  8308. main ()
  8309. {
  8310. ;
  8311. return 0;
  8312. }
  8313. _ACEOF
  8314. if ac_fn_c_try_link "$LINENO"; then :
  8315. lt_aix_libpath_sed='
  8316. /Import File Strings/,/^$/ {
  8317. /^0/ {
  8318. s/^0 *\([^ ]*\) *$/\1/
  8319. p
  8320. }
  8321. }'
  8322. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8323. # Check for a 64-bit object if we didn't find anything.
  8324. if test -z "$lt_cv_aix_libpath_"; then
  8325. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8326. fi
  8327. fi
  8328. rm -f core conftest.err conftest.$ac_objext \
  8329. conftest$ac_exeext conftest.$ac_ext
  8330. if test -z "$lt_cv_aix_libpath_"; then
  8331. lt_cv_aix_libpath_="/usr/lib:/lib"
  8332. fi
  8333. fi
  8334. aix_libpath=$lt_cv_aix_libpath_
  8335. fi
  8336. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8337. # Warning - without using the other run time loading flags,
  8338. # -berok will link without error, but may produce a broken library.
  8339. no_undefined_flag=' ${wl}-bernotok'
  8340. allow_undefined_flag=' ${wl}-berok'
  8341. if test "$with_gnu_ld" = yes; then
  8342. # We only use this code for GNU lds that support --whole-archive.
  8343. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8344. else
  8345. # Exported symbols can be pulled into shared objects from archives
  8346. whole_archive_flag_spec='$convenience'
  8347. fi
  8348. archive_cmds_need_lc=yes
  8349. # This is similar to how AIX traditionally builds its shared libraries.
  8350. 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'
  8351. fi
  8352. fi
  8353. ;;
  8354. amigaos*)
  8355. case $host_cpu in
  8356. powerpc)
  8357. # see comment about AmigaOS4 .so support
  8358. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8359. archive_expsym_cmds=''
  8360. ;;
  8361. m68k)
  8362. 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)'
  8363. hardcode_libdir_flag_spec='-L$libdir'
  8364. hardcode_minus_L=yes
  8365. ;;
  8366. esac
  8367. ;;
  8368. bsdi[45]*)
  8369. export_dynamic_flag_spec=-rdynamic
  8370. ;;
  8371. cygwin* | mingw* | pw32* | cegcc*)
  8372. # When not using gcc, we currently assume that we are using
  8373. # Microsoft Visual C++.
  8374. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8375. # no search path for DLLs.
  8376. case $cc_basename in
  8377. cl*)
  8378. # Native MSVC
  8379. hardcode_libdir_flag_spec=' '
  8380. allow_undefined_flag=unsupported
  8381. always_export_symbols=yes
  8382. file_list_spec='@'
  8383. # Tell ltmain to make .lib files, not .a files.
  8384. libext=lib
  8385. # Tell ltmain to make .dll files, not .so files.
  8386. shrext_cmds=".dll"
  8387. # FIXME: Setting linknames here is a bad hack.
  8388. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8389. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8390. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8391. else
  8392. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8393. fi~
  8394. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8395. linknames='
  8396. # The linker will not automatically build a static lib if we build a DLL.
  8397. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8398. enable_shared_with_static_runtimes=yes
  8399. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8400. # Don't use ranlib
  8401. old_postinstall_cmds='chmod 644 $oldlib'
  8402. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8403. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8404. case $lt_outputfile in
  8405. *.exe|*.EXE) ;;
  8406. *)
  8407. lt_outputfile="$lt_outputfile.exe"
  8408. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8409. ;;
  8410. esac~
  8411. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8412. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8413. $RM "$lt_outputfile.manifest";
  8414. fi'
  8415. ;;
  8416. *)
  8417. # Assume MSVC wrapper
  8418. hardcode_libdir_flag_spec=' '
  8419. allow_undefined_flag=unsupported
  8420. # Tell ltmain to make .lib files, not .a files.
  8421. libext=lib
  8422. # Tell ltmain to make .dll files, not .so files.
  8423. shrext_cmds=".dll"
  8424. # FIXME: Setting linknames here is a bad hack.
  8425. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8426. # The linker will automatically build a .lib file if we build a DLL.
  8427. old_archive_from_new_cmds='true'
  8428. # FIXME: Should let the user specify the lib program.
  8429. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8430. enable_shared_with_static_runtimes=yes
  8431. ;;
  8432. esac
  8433. ;;
  8434. darwin* | rhapsody*)
  8435. archive_cmds_need_lc=no
  8436. hardcode_direct=no
  8437. hardcode_automatic=yes
  8438. hardcode_shlibpath_var=unsupported
  8439. if test "$lt_cv_ld_force_load" = "yes"; then
  8440. 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\"`'
  8441. else
  8442. whole_archive_flag_spec=''
  8443. fi
  8444. link_all_deplibs=yes
  8445. allow_undefined_flag="$_lt_dar_allow_undefined"
  8446. case $cc_basename in
  8447. ifort*) _lt_dar_can_shared=yes ;;
  8448. *) _lt_dar_can_shared=$GCC ;;
  8449. esac
  8450. if test "$_lt_dar_can_shared" = "yes"; then
  8451. output_verbose_link_cmd=func_echo_all
  8452. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8453. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8454. 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}"
  8455. 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}"
  8456. else
  8457. ld_shlibs=no
  8458. fi
  8459. ;;
  8460. dgux*)
  8461. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8462. hardcode_libdir_flag_spec='-L$libdir'
  8463. hardcode_shlibpath_var=no
  8464. ;;
  8465. freebsd1*)
  8466. ld_shlibs=no
  8467. ;;
  8468. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8469. # support. Future versions do this automatically, but an explicit c++rt0.o
  8470. # does not break anything, and helps significantly (at the cost of a little
  8471. # extra space).
  8472. freebsd2.2*)
  8473. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8474. hardcode_libdir_flag_spec='-R$libdir'
  8475. hardcode_direct=yes
  8476. hardcode_shlibpath_var=no
  8477. ;;
  8478. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8479. freebsd2*)
  8480. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8481. hardcode_direct=yes
  8482. hardcode_minus_L=yes
  8483. hardcode_shlibpath_var=no
  8484. ;;
  8485. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8486. freebsd* | dragonfly*)
  8487. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8488. hardcode_libdir_flag_spec='-R$libdir'
  8489. hardcode_direct=yes
  8490. hardcode_shlibpath_var=no
  8491. ;;
  8492. hpux9*)
  8493. if test "$GCC" = yes; then
  8494. 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'
  8495. else
  8496. 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'
  8497. fi
  8498. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8499. hardcode_libdir_separator=:
  8500. hardcode_direct=yes
  8501. # hardcode_minus_L: Not really in the search PATH,
  8502. # but as the default location of the library.
  8503. hardcode_minus_L=yes
  8504. export_dynamic_flag_spec='${wl}-E'
  8505. ;;
  8506. hpux10*)
  8507. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8508. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8509. else
  8510. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8511. fi
  8512. if test "$with_gnu_ld" = no; then
  8513. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8514. hardcode_libdir_flag_spec_ld='+b $libdir'
  8515. hardcode_libdir_separator=:
  8516. hardcode_direct=yes
  8517. hardcode_direct_absolute=yes
  8518. export_dynamic_flag_spec='${wl}-E'
  8519. # hardcode_minus_L: Not really in the search PATH,
  8520. # but as the default location of the library.
  8521. hardcode_minus_L=yes
  8522. fi
  8523. ;;
  8524. hpux11*)
  8525. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8526. case $host_cpu in
  8527. hppa*64*)
  8528. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8529. ;;
  8530. ia64*)
  8531. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8532. ;;
  8533. *)
  8534. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8535. ;;
  8536. esac
  8537. else
  8538. case $host_cpu in
  8539. hppa*64*)
  8540. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8541. ;;
  8542. ia64*)
  8543. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8544. ;;
  8545. *)
  8546. # Older versions of the 11.00 compiler do not understand -b yet
  8547. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8549. $as_echo_n "checking if $CC understands -b... " >&6; }
  8550. if ${lt_cv_prog_compiler__b+:} false; then :
  8551. $as_echo_n "(cached) " >&6
  8552. else
  8553. lt_cv_prog_compiler__b=no
  8554. save_LDFLAGS="$LDFLAGS"
  8555. LDFLAGS="$LDFLAGS -b"
  8556. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8557. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8558. # The linker can only warn and ignore the option if not recognized
  8559. # So say no if there are warnings
  8560. if test -s conftest.err; then
  8561. # Append any errors to the config.log.
  8562. cat conftest.err 1>&5
  8563. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8564. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8565. if diff conftest.exp conftest.er2 >/dev/null; then
  8566. lt_cv_prog_compiler__b=yes
  8567. fi
  8568. else
  8569. lt_cv_prog_compiler__b=yes
  8570. fi
  8571. fi
  8572. $RM -r conftest*
  8573. LDFLAGS="$save_LDFLAGS"
  8574. fi
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8576. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8577. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8578. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8579. else
  8580. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8581. fi
  8582. ;;
  8583. esac
  8584. fi
  8585. if test "$with_gnu_ld" = no; then
  8586. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8587. hardcode_libdir_separator=:
  8588. case $host_cpu in
  8589. hppa*64*|ia64*)
  8590. hardcode_direct=no
  8591. hardcode_shlibpath_var=no
  8592. ;;
  8593. *)
  8594. hardcode_direct=yes
  8595. hardcode_direct_absolute=yes
  8596. export_dynamic_flag_spec='${wl}-E'
  8597. # hardcode_minus_L: Not really in the search PATH,
  8598. # but as the default location of the library.
  8599. hardcode_minus_L=yes
  8600. ;;
  8601. esac
  8602. fi
  8603. ;;
  8604. irix5* | irix6* | nonstopux*)
  8605. if test "$GCC" = yes; then
  8606. 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'
  8607. # Try to use the -exported_symbol ld option, if it does not
  8608. # work, assume that -exports_file does not work either and
  8609. # implicitly export all symbols.
  8610. # This should be the same for all languages, so no per-tag cache variable.
  8611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8612. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8613. if ${lt_cv_irix_exported_symbol+:} false; then :
  8614. $as_echo_n "(cached) " >&6
  8615. else
  8616. save_LDFLAGS="$LDFLAGS"
  8617. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8619. /* end confdefs.h. */
  8620. int foo (void) { return 0; }
  8621. _ACEOF
  8622. if ac_fn_c_try_link "$LINENO"; then :
  8623. lt_cv_irix_exported_symbol=yes
  8624. else
  8625. lt_cv_irix_exported_symbol=no
  8626. fi
  8627. rm -f core conftest.err conftest.$ac_objext \
  8628. conftest$ac_exeext conftest.$ac_ext
  8629. LDFLAGS="$save_LDFLAGS"
  8630. fi
  8631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8632. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8633. if test "$lt_cv_irix_exported_symbol" = yes; then
  8634. 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'
  8635. fi
  8636. else
  8637. 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'
  8638. 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'
  8639. fi
  8640. archive_cmds_need_lc='no'
  8641. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8642. hardcode_libdir_separator=:
  8643. inherit_rpath=yes
  8644. link_all_deplibs=yes
  8645. ;;
  8646. netbsd* | netbsdelf*-gnu)
  8647. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8648. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8649. else
  8650. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8651. fi
  8652. hardcode_libdir_flag_spec='-R$libdir'
  8653. hardcode_direct=yes
  8654. hardcode_shlibpath_var=no
  8655. ;;
  8656. newsos6)
  8657. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8658. hardcode_direct=yes
  8659. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8660. hardcode_libdir_separator=:
  8661. hardcode_shlibpath_var=no
  8662. ;;
  8663. *nto* | *qnx*)
  8664. ;;
  8665. openbsd*)
  8666. if test -f /usr/libexec/ld.so; then
  8667. hardcode_direct=yes
  8668. hardcode_shlibpath_var=no
  8669. hardcode_direct_absolute=yes
  8670. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8671. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8672. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8673. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8674. export_dynamic_flag_spec='${wl}-E'
  8675. else
  8676. case $host_os in
  8677. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8678. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8679. hardcode_libdir_flag_spec='-R$libdir'
  8680. ;;
  8681. *)
  8682. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8683. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8684. ;;
  8685. esac
  8686. fi
  8687. else
  8688. ld_shlibs=no
  8689. fi
  8690. ;;
  8691. os2*)
  8692. hardcode_libdir_flag_spec='-L$libdir'
  8693. hardcode_minus_L=yes
  8694. allow_undefined_flag=unsupported
  8695. 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'
  8696. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8697. ;;
  8698. osf3*)
  8699. if test "$GCC" = yes; then
  8700. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8701. 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'
  8702. else
  8703. allow_undefined_flag=' -expect_unresolved \*'
  8704. 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'
  8705. fi
  8706. archive_cmds_need_lc='no'
  8707. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8708. hardcode_libdir_separator=:
  8709. ;;
  8710. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8711. if test "$GCC" = yes; then
  8712. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8713. 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'
  8714. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8715. else
  8716. allow_undefined_flag=' -expect_unresolved \*'
  8717. 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'
  8718. 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~
  8719. $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'
  8720. # Both c and cxx compiler support -rpath directly
  8721. hardcode_libdir_flag_spec='-rpath $libdir'
  8722. fi
  8723. archive_cmds_need_lc='no'
  8724. hardcode_libdir_separator=:
  8725. ;;
  8726. solaris*)
  8727. no_undefined_flag=' -z defs'
  8728. if test "$GCC" = yes; then
  8729. wlarc='${wl}'
  8730. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8731. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8732. $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'
  8733. else
  8734. case `$CC -V 2>&1` in
  8735. *"Compilers 5.0"*)
  8736. wlarc=''
  8737. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8738. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8739. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8740. ;;
  8741. *)
  8742. wlarc='${wl}'
  8743. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8744. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8745. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8746. ;;
  8747. esac
  8748. fi
  8749. hardcode_libdir_flag_spec='-R$libdir'
  8750. hardcode_shlibpath_var=no
  8751. case $host_os in
  8752. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8753. *)
  8754. # The compiler driver will combine and reorder linker options,
  8755. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8756. # but is careful enough not to reorder.
  8757. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8758. if test "$GCC" = yes; then
  8759. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8760. else
  8761. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8762. fi
  8763. ;;
  8764. esac
  8765. link_all_deplibs=yes
  8766. ;;
  8767. sunos4*)
  8768. if test "x$host_vendor" = xsequent; then
  8769. # Use $CC to link under sequent, because it throws in some extra .o
  8770. # files that make .init and .fini sections work.
  8771. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8772. else
  8773. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8774. fi
  8775. hardcode_libdir_flag_spec='-L$libdir'
  8776. hardcode_direct=yes
  8777. hardcode_minus_L=yes
  8778. hardcode_shlibpath_var=no
  8779. ;;
  8780. sysv4)
  8781. case $host_vendor in
  8782. sni)
  8783. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8784. hardcode_direct=yes # is this really true???
  8785. ;;
  8786. siemens)
  8787. ## LD is ld it makes a PLAMLIB
  8788. ## CC just makes a GrossModule.
  8789. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8790. reload_cmds='$CC -r -o $output$reload_objs'
  8791. hardcode_direct=no
  8792. ;;
  8793. motorola)
  8794. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8795. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8796. ;;
  8797. esac
  8798. runpath_var='LD_RUN_PATH'
  8799. hardcode_shlibpath_var=no
  8800. ;;
  8801. sysv4.3*)
  8802. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8803. hardcode_shlibpath_var=no
  8804. export_dynamic_flag_spec='-Bexport'
  8805. ;;
  8806. sysv4*MP*)
  8807. if test -d /usr/nec; then
  8808. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8809. hardcode_shlibpath_var=no
  8810. runpath_var=LD_RUN_PATH
  8811. hardcode_runpath_var=yes
  8812. ld_shlibs=yes
  8813. fi
  8814. ;;
  8815. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8816. no_undefined_flag='${wl}-z,text'
  8817. archive_cmds_need_lc=no
  8818. hardcode_shlibpath_var=no
  8819. runpath_var='LD_RUN_PATH'
  8820. if test "$GCC" = yes; then
  8821. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8822. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. else
  8824. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8825. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8826. fi
  8827. ;;
  8828. sysv5* | sco3.2v5* | sco5v6*)
  8829. # Note: We can NOT use -z defs as we might desire, because we do not
  8830. # link with -lc, and that would cause any symbols used from libc to
  8831. # always be unresolved, which means just about no library would
  8832. # ever link correctly. If we're not using GNU ld we use -z text
  8833. # though, which does catch some bad symbols but isn't as heavy-handed
  8834. # as -z defs.
  8835. no_undefined_flag='${wl}-z,text'
  8836. allow_undefined_flag='${wl}-z,nodefs'
  8837. archive_cmds_need_lc=no
  8838. hardcode_shlibpath_var=no
  8839. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8840. hardcode_libdir_separator=':'
  8841. link_all_deplibs=yes
  8842. export_dynamic_flag_spec='${wl}-Bexport'
  8843. runpath_var='LD_RUN_PATH'
  8844. if test "$GCC" = yes; then
  8845. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8846. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8847. else
  8848. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8849. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8850. fi
  8851. ;;
  8852. uts4*)
  8853. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8854. hardcode_libdir_flag_spec='-L$libdir'
  8855. hardcode_shlibpath_var=no
  8856. ;;
  8857. *)
  8858. ld_shlibs=no
  8859. ;;
  8860. esac
  8861. if test x$host_vendor = xsni; then
  8862. case $host in
  8863. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8864. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8865. ;;
  8866. esac
  8867. fi
  8868. fi
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8870. $as_echo "$ld_shlibs" >&6; }
  8871. test "$ld_shlibs" = no && can_build_shared=no
  8872. with_gnu_ld=$with_gnu_ld
  8873. #
  8874. # Do we need to explicitly link libc?
  8875. #
  8876. case "x$archive_cmds_need_lc" in
  8877. x|xyes)
  8878. # Assume -lc should be added
  8879. archive_cmds_need_lc=yes
  8880. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8881. case $archive_cmds in
  8882. *'~'*)
  8883. # FIXME: we may have to deal with multi-command sequences.
  8884. ;;
  8885. '$CC '*)
  8886. # Test whether the compiler implicitly links with -lc since on some
  8887. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8888. # to ld, don't add -lc before -lgcc.
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8890. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8891. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8892. $as_echo_n "(cached) " >&6
  8893. else
  8894. $RM conftest*
  8895. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8896. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8897. (eval $ac_compile) 2>&5
  8898. ac_status=$?
  8899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8900. test $ac_status = 0; } 2>conftest.err; then
  8901. soname=conftest
  8902. lib=conftest
  8903. libobjs=conftest.$ac_objext
  8904. deplibs=
  8905. wl=$lt_prog_compiler_wl
  8906. pic_flag=$lt_prog_compiler_pic
  8907. compiler_flags=-v
  8908. linker_flags=-v
  8909. verstring=
  8910. output_objdir=.
  8911. libname=conftest
  8912. lt_save_allow_undefined_flag=$allow_undefined_flag
  8913. allow_undefined_flag=
  8914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8915. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8916. ac_status=$?
  8917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8918. test $ac_status = 0; }
  8919. then
  8920. lt_cv_archive_cmds_need_lc=no
  8921. else
  8922. lt_cv_archive_cmds_need_lc=yes
  8923. fi
  8924. allow_undefined_flag=$lt_save_allow_undefined_flag
  8925. else
  8926. cat conftest.err 1>&5
  8927. fi
  8928. $RM conftest*
  8929. fi
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8931. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8932. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8933. ;;
  8934. esac
  8935. fi
  8936. ;;
  8937. esac
  8938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8939. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8940. if test "$GCC" = yes; then
  8941. case $host_os in
  8942. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8943. *) lt_awk_arg="/^libraries:/" ;;
  8944. esac
  8945. case $host_os in
  8946. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8947. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8948. esac
  8949. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8950. case $lt_search_path_spec in
  8951. *\;*)
  8952. # if the path contains ";" then we assume it to be the separator
  8953. # otherwise default to the standard path separator (i.e. ":") - it is
  8954. # assumed that no part of a normal pathname contains ";" but that should
  8955. # okay in the real world where ";" in dirpaths is itself problematic.
  8956. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8957. ;;
  8958. *)
  8959. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8960. ;;
  8961. esac
  8962. # Ok, now we have the path, separated by spaces, we can step through it
  8963. # and add multilib dir if necessary.
  8964. lt_tmp_lt_search_path_spec=
  8965. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8966. for lt_sys_path in $lt_search_path_spec; do
  8967. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8968. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8969. else
  8970. test -d "$lt_sys_path" && \
  8971. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8972. fi
  8973. done
  8974. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8975. BEGIN {RS=" "; FS="/|\n";} {
  8976. lt_foo="";
  8977. lt_count=0;
  8978. for (lt_i = NF; lt_i > 0; lt_i--) {
  8979. if ($lt_i != "" && $lt_i != ".") {
  8980. if ($lt_i == "..") {
  8981. lt_count++;
  8982. } else {
  8983. if (lt_count == 0) {
  8984. lt_foo="/" $lt_i lt_foo;
  8985. } else {
  8986. lt_count--;
  8987. }
  8988. }
  8989. }
  8990. }
  8991. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8992. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8993. }'`
  8994. # AWK program above erroneously prepends '/' to C:/dos/paths
  8995. # for these hosts.
  8996. case $host_os in
  8997. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8998. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8999. esac
  9000. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9001. else
  9002. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9003. fi
  9004. library_names_spec=
  9005. libname_spec='lib$name'
  9006. soname_spec=
  9007. shrext_cmds=".so"
  9008. postinstall_cmds=
  9009. postuninstall_cmds=
  9010. finish_cmds=
  9011. finish_eval=
  9012. shlibpath_var=
  9013. shlibpath_overrides_runpath=unknown
  9014. version_type=none
  9015. dynamic_linker="$host_os ld.so"
  9016. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9017. need_lib_prefix=unknown
  9018. hardcode_into_libs=no
  9019. # when you set need_version to no, make sure it does not cause -set_version
  9020. # flags to be left without arguments
  9021. need_version=unknown
  9022. case $host_os in
  9023. aix3*)
  9024. version_type=linux
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9026. shlibpath_var=LIBPATH
  9027. # AIX 3 has no versioning support, so we append a major version to the name.
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. ;;
  9030. aix[4-9]*)
  9031. version_type=linux
  9032. need_lib_prefix=no
  9033. need_version=no
  9034. hardcode_into_libs=yes
  9035. if test "$host_cpu" = ia64; then
  9036. # AIX 5 supports IA64
  9037. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9038. shlibpath_var=LD_LIBRARY_PATH
  9039. else
  9040. # With GCC up to 2.95.x, collect2 would create an import file
  9041. # for dependence libraries. The import file would start with
  9042. # the line `#! .'. This would cause the generated library to
  9043. # depend on `.', always an invalid library. This was fixed in
  9044. # development snapshots of GCC prior to 3.0.
  9045. case $host_os in
  9046. aix4 | aix4.[01] | aix4.[01].*)
  9047. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9048. echo ' yes '
  9049. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9050. :
  9051. else
  9052. can_build_shared=no
  9053. fi
  9054. ;;
  9055. esac
  9056. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9057. # soname into executable. Probably we can add versioning support to
  9058. # collect2, so additional links can be useful in future.
  9059. if test "$aix_use_runtimelinking" = yes; then
  9060. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9061. # instead of lib<name>.a to let people know that these are not
  9062. # typical AIX shared libraries.
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9064. else
  9065. # We preserve .a as extension for shared libraries through AIX4.2
  9066. # and later when we are not doing run time linking.
  9067. library_names_spec='${libname}${release}.a $libname.a'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. fi
  9070. shlibpath_var=LIBPATH
  9071. fi
  9072. ;;
  9073. amigaos*)
  9074. case $host_cpu in
  9075. powerpc)
  9076. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9077. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9079. ;;
  9080. m68k)
  9081. library_names_spec='$libname.ixlibrary $libname.a'
  9082. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9083. 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'
  9084. ;;
  9085. esac
  9086. ;;
  9087. beos*)
  9088. library_names_spec='${libname}${shared_ext}'
  9089. dynamic_linker="$host_os ld.so"
  9090. shlibpath_var=LIBRARY_PATH
  9091. ;;
  9092. bsdi[45]*)
  9093. version_type=linux
  9094. need_version=no
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9096. soname_spec='${libname}${release}${shared_ext}$major'
  9097. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9100. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9101. # the default ld.so.conf also contains /usr/contrib/lib and
  9102. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9103. # libtool to hard-code these into programs
  9104. ;;
  9105. cygwin* | mingw* | pw32* | cegcc*)
  9106. version_type=windows
  9107. shrext_cmds=".dll"
  9108. need_version=no
  9109. need_lib_prefix=no
  9110. case $GCC,$cc_basename in
  9111. yes,*)
  9112. # gcc
  9113. library_names_spec='$libname.dll.a'
  9114. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9115. postinstall_cmds='base_file=`basename \${file}`~
  9116. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9117. dldir=$destdir/`dirname \$dlpath`~
  9118. test -d \$dldir || mkdir -p \$dldir~
  9119. $install_prog $dir/$dlname \$dldir/$dlname~
  9120. chmod a+x \$dldir/$dlname~
  9121. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9122. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9123. fi'
  9124. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9125. dlpath=$dir/\$dldll~
  9126. $RM \$dlpath'
  9127. shlibpath_overrides_runpath=yes
  9128. case $host_os in
  9129. cygwin*)
  9130. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9131. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9132. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9133. ;;
  9134. mingw* | cegcc*)
  9135. # MinGW DLLs use traditional 'lib' prefix
  9136. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9137. ;;
  9138. pw32*)
  9139. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9140. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9141. ;;
  9142. esac
  9143. dynamic_linker='Win32 ld.exe'
  9144. ;;
  9145. *,cl*)
  9146. # Native MSVC
  9147. libname_spec='$name'
  9148. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9149. library_names_spec='${libname}.dll.lib'
  9150. case $build_os in
  9151. mingw*)
  9152. sys_lib_search_path_spec=
  9153. lt_save_ifs=$IFS
  9154. IFS=';'
  9155. for lt_path in $LIB
  9156. do
  9157. IFS=$lt_save_ifs
  9158. # Let DOS variable expansion print the short 8.3 style file name.
  9159. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9160. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9161. done
  9162. IFS=$lt_save_ifs
  9163. # Convert to MSYS style.
  9164. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9165. ;;
  9166. cygwin*)
  9167. # Convert to unix form, then to dos form, then back to unix form
  9168. # but this time dos style (no spaces!) so that the unix form looks
  9169. # like /cygdrive/c/PROGRA~1:/cygdr...
  9170. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9171. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9172. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9173. ;;
  9174. *)
  9175. sys_lib_search_path_spec="$LIB"
  9176. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9177. # It is most probably a Windows format PATH.
  9178. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9179. else
  9180. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9181. fi
  9182. # FIXME: find the short name or the path components, as spaces are
  9183. # common. (e.g. "Program Files" -> "PROGRA~1")
  9184. ;;
  9185. esac
  9186. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9187. postinstall_cmds='base_file=`basename \${file}`~
  9188. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9189. dldir=$destdir/`dirname \$dlpath`~
  9190. test -d \$dldir || mkdir -p \$dldir~
  9191. $install_prog $dir/$dlname \$dldir/$dlname'
  9192. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9193. dlpath=$dir/\$dldll~
  9194. $RM \$dlpath'
  9195. shlibpath_overrides_runpath=yes
  9196. dynamic_linker='Win32 link.exe'
  9197. ;;
  9198. *)
  9199. # Assume MSVC wrapper
  9200. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9201. dynamic_linker='Win32 ld.exe'
  9202. ;;
  9203. esac
  9204. # FIXME: first we should search . and the directory the executable is in
  9205. shlibpath_var=PATH
  9206. ;;
  9207. darwin* | rhapsody*)
  9208. dynamic_linker="$host_os dyld"
  9209. version_type=darwin
  9210. need_lib_prefix=no
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9213. soname_spec='${libname}${release}${major}$shared_ext'
  9214. shlibpath_overrides_runpath=yes
  9215. shlibpath_var=DYLD_LIBRARY_PATH
  9216. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9217. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9218. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9219. ;;
  9220. dgux*)
  9221. version_type=linux
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9225. soname_spec='${libname}${release}${shared_ext}$major'
  9226. shlibpath_var=LD_LIBRARY_PATH
  9227. ;;
  9228. freebsd1*)
  9229. dynamic_linker=no
  9230. ;;
  9231. freebsd* | dragonfly*)
  9232. # DragonFly does not have aout. When/if they implement a new
  9233. # versioning mechanism, adjust this.
  9234. if test -x /usr/bin/objformat; then
  9235. objformat=`/usr/bin/objformat`
  9236. else
  9237. case $host_os in
  9238. freebsd[123]*) objformat=aout ;;
  9239. *) objformat=elf ;;
  9240. esac
  9241. fi
  9242. version_type=freebsd-$objformat
  9243. case $version_type in
  9244. freebsd-elf*)
  9245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9246. need_version=no
  9247. need_lib_prefix=no
  9248. ;;
  9249. freebsd-*)
  9250. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9251. need_version=yes
  9252. ;;
  9253. esac
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. case $host_os in
  9256. freebsd2*)
  9257. shlibpath_overrides_runpath=yes
  9258. ;;
  9259. freebsd3.[01]* | freebsdelf3.[01]*)
  9260. shlibpath_overrides_runpath=yes
  9261. hardcode_into_libs=yes
  9262. ;;
  9263. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9264. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9265. shlibpath_overrides_runpath=no
  9266. hardcode_into_libs=yes
  9267. ;;
  9268. *) # from 4.6 on, and DragonFly
  9269. shlibpath_overrides_runpath=yes
  9270. hardcode_into_libs=yes
  9271. ;;
  9272. esac
  9273. ;;
  9274. gnu*)
  9275. version_type=linux
  9276. need_lib_prefix=no
  9277. need_version=no
  9278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9279. soname_spec='${libname}${release}${shared_ext}$major'
  9280. shlibpath_var=LD_LIBRARY_PATH
  9281. shlibpath_overrides_runpath=no
  9282. hardcode_into_libs=yes
  9283. ;;
  9284. haiku*)
  9285. version_type=linux
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. dynamic_linker="$host_os runtime_loader"
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9290. soname_spec='${libname}${release}${shared_ext}$major'
  9291. shlibpath_var=LIBRARY_PATH
  9292. shlibpath_overrides_runpath=yes
  9293. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9294. hardcode_into_libs=yes
  9295. ;;
  9296. hpux9* | hpux10* | hpux11*)
  9297. # Give a soname corresponding to the major version so that dld.sl refuses to
  9298. # link against other versions.
  9299. version_type=sunos
  9300. need_lib_prefix=no
  9301. need_version=no
  9302. case $host_cpu in
  9303. ia64*)
  9304. shrext_cmds='.so'
  9305. hardcode_into_libs=yes
  9306. dynamic_linker="$host_os dld.so"
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9310. soname_spec='${libname}${release}${shared_ext}$major'
  9311. if test "X$HPUX_IA64_MODE" = X32; then
  9312. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9313. else
  9314. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9315. fi
  9316. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9317. ;;
  9318. hppa*64*)
  9319. shrext_cmds='.sl'
  9320. hardcode_into_libs=yes
  9321. dynamic_linker="$host_os dld.sl"
  9322. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9323. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9325. soname_spec='${libname}${release}${shared_ext}$major'
  9326. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9327. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9328. ;;
  9329. *)
  9330. shrext_cmds='.sl'
  9331. dynamic_linker="$host_os dld.sl"
  9332. shlibpath_var=SHLIB_PATH
  9333. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9335. soname_spec='${libname}${release}${shared_ext}$major'
  9336. ;;
  9337. esac
  9338. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9339. postinstall_cmds='chmod 555 $lib'
  9340. # or fails outright, so override atomically:
  9341. install_override_mode=555
  9342. ;;
  9343. interix[3-9]*)
  9344. version_type=linux
  9345. need_lib_prefix=no
  9346. need_version=no
  9347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9348. soname_spec='${libname}${release}${shared_ext}$major'
  9349. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9350. shlibpath_var=LD_LIBRARY_PATH
  9351. shlibpath_overrides_runpath=no
  9352. hardcode_into_libs=yes
  9353. ;;
  9354. irix5* | irix6* | nonstopux*)
  9355. case $host_os in
  9356. nonstopux*) version_type=nonstopux ;;
  9357. *)
  9358. if test "$lt_cv_prog_gnu_ld" = yes; then
  9359. version_type=linux
  9360. else
  9361. version_type=irix
  9362. fi ;;
  9363. esac
  9364. need_lib_prefix=no
  9365. need_version=no
  9366. soname_spec='${libname}${release}${shared_ext}$major'
  9367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9368. case $host_os in
  9369. irix5* | nonstopux*)
  9370. libsuff= shlibsuff=
  9371. ;;
  9372. *)
  9373. case $LD in # libtool.m4 will add one of these switches to LD
  9374. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9375. libsuff= shlibsuff= libmagic=32-bit;;
  9376. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9377. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9378. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9379. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9380. *) libsuff= shlibsuff= libmagic=never-match;;
  9381. esac
  9382. ;;
  9383. esac
  9384. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9385. shlibpath_overrides_runpath=no
  9386. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9387. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9388. hardcode_into_libs=yes
  9389. ;;
  9390. # No shared lib support for Linux oldld, aout, or coff.
  9391. linux*oldld* | linux*aout* | linux*coff*)
  9392. dynamic_linker=no
  9393. ;;
  9394. # This must be Linux ELF.
  9395. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9396. version_type=linux
  9397. need_lib_prefix=no
  9398. need_version=no
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9402. shlibpath_var=LD_LIBRARY_PATH
  9403. shlibpath_overrides_runpath=no
  9404. # Some binutils ld are patched to set DT_RUNPATH
  9405. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9406. $as_echo_n "(cached) " >&6
  9407. else
  9408. lt_cv_shlibpath_overrides_runpath=no
  9409. save_LDFLAGS=$LDFLAGS
  9410. save_libdir=$libdir
  9411. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9412. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9414. /* end confdefs.h. */
  9415. int
  9416. main ()
  9417. {
  9418. ;
  9419. return 0;
  9420. }
  9421. _ACEOF
  9422. if ac_fn_c_try_link "$LINENO"; then :
  9423. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9424. lt_cv_shlibpath_overrides_runpath=yes
  9425. fi
  9426. fi
  9427. rm -f core conftest.err conftest.$ac_objext \
  9428. conftest$ac_exeext conftest.$ac_ext
  9429. LDFLAGS=$save_LDFLAGS
  9430. libdir=$save_libdir
  9431. fi
  9432. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9433. # This implies no fast_install, which is unacceptable.
  9434. # Some rework will be needed to allow for fast_install
  9435. # before this can be enabled.
  9436. hardcode_into_libs=yes
  9437. # Append ld.so.conf contents to the search path
  9438. if test -f /etc/ld.so.conf; then
  9439. 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' ' '`
  9440. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9441. fi
  9442. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9443. # powerpc, because MkLinux only supported shared libraries with the
  9444. # GNU dynamic linker. Since this was broken with cross compilers,
  9445. # most powerpc-linux boxes support dynamic linking these days and
  9446. # people can always --disable-shared, the test was removed, and we
  9447. # assume the GNU/Linux dynamic linker is in use.
  9448. dynamic_linker='GNU/Linux ld.so'
  9449. ;;
  9450. netbsdelf*-gnu)
  9451. version_type=linux
  9452. need_lib_prefix=no
  9453. need_version=no
  9454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9455. soname_spec='${libname}${release}${shared_ext}$major'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. shlibpath_overrides_runpath=no
  9458. hardcode_into_libs=yes
  9459. dynamic_linker='NetBSD ld.elf_so'
  9460. ;;
  9461. netbsd*)
  9462. version_type=sunos
  9463. need_lib_prefix=no
  9464. need_version=no
  9465. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9467. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9468. dynamic_linker='NetBSD (a.out) ld.so'
  9469. else
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9471. soname_spec='${libname}${release}${shared_ext}$major'
  9472. dynamic_linker='NetBSD ld.elf_so'
  9473. fi
  9474. shlibpath_var=LD_LIBRARY_PATH
  9475. shlibpath_overrides_runpath=yes
  9476. hardcode_into_libs=yes
  9477. ;;
  9478. newsos6)
  9479. version_type=linux
  9480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9481. shlibpath_var=LD_LIBRARY_PATH
  9482. shlibpath_overrides_runpath=yes
  9483. ;;
  9484. *nto* | *qnx*)
  9485. version_type=qnx
  9486. need_lib_prefix=no
  9487. need_version=no
  9488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9489. soname_spec='${libname}${release}${shared_ext}$major'
  9490. shlibpath_var=LD_LIBRARY_PATH
  9491. shlibpath_overrides_runpath=no
  9492. hardcode_into_libs=yes
  9493. dynamic_linker='ldqnx.so'
  9494. ;;
  9495. openbsd*)
  9496. version_type=sunos
  9497. sys_lib_dlsearch_path_spec="/usr/lib"
  9498. need_lib_prefix=no
  9499. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9500. case $host_os in
  9501. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9502. *) need_version=no ;;
  9503. esac
  9504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9505. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9506. shlibpath_var=LD_LIBRARY_PATH
  9507. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9508. case $host_os in
  9509. openbsd2.[89] | openbsd2.[89].*)
  9510. shlibpath_overrides_runpath=no
  9511. ;;
  9512. *)
  9513. shlibpath_overrides_runpath=yes
  9514. ;;
  9515. esac
  9516. else
  9517. shlibpath_overrides_runpath=yes
  9518. fi
  9519. ;;
  9520. os2*)
  9521. libname_spec='$name'
  9522. shrext_cmds=".dll"
  9523. need_lib_prefix=no
  9524. library_names_spec='$libname${shared_ext} $libname.a'
  9525. dynamic_linker='OS/2 ld.exe'
  9526. shlibpath_var=LIBPATH
  9527. ;;
  9528. osf3* | osf4* | osf5*)
  9529. version_type=osf
  9530. need_lib_prefix=no
  9531. need_version=no
  9532. soname_spec='${libname}${release}${shared_ext}$major'
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9534. shlibpath_var=LD_LIBRARY_PATH
  9535. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9536. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9537. ;;
  9538. rdos*)
  9539. dynamic_linker=no
  9540. ;;
  9541. solaris*)
  9542. version_type=linux
  9543. need_lib_prefix=no
  9544. need_version=no
  9545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9546. soname_spec='${libname}${release}${shared_ext}$major'
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. shlibpath_overrides_runpath=yes
  9549. hardcode_into_libs=yes
  9550. # ldd complains unless libraries are executable
  9551. postinstall_cmds='chmod +x $lib'
  9552. ;;
  9553. sunos4*)
  9554. version_type=sunos
  9555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9556. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9557. shlibpath_var=LD_LIBRARY_PATH
  9558. shlibpath_overrides_runpath=yes
  9559. if test "$with_gnu_ld" = yes; then
  9560. need_lib_prefix=no
  9561. fi
  9562. need_version=yes
  9563. ;;
  9564. sysv4 | sysv4.3*)
  9565. version_type=linux
  9566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9567. soname_spec='${libname}${release}${shared_ext}$major'
  9568. shlibpath_var=LD_LIBRARY_PATH
  9569. case $host_vendor in
  9570. sni)
  9571. shlibpath_overrides_runpath=no
  9572. need_lib_prefix=no
  9573. runpath_var=LD_RUN_PATH
  9574. ;;
  9575. siemens)
  9576. need_lib_prefix=no
  9577. ;;
  9578. motorola)
  9579. need_lib_prefix=no
  9580. need_version=no
  9581. shlibpath_overrides_runpath=no
  9582. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9583. ;;
  9584. esac
  9585. ;;
  9586. sysv4*MP*)
  9587. if test -d /usr/nec ;then
  9588. version_type=linux
  9589. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9590. soname_spec='$libname${shared_ext}.$major'
  9591. shlibpath_var=LD_LIBRARY_PATH
  9592. fi
  9593. ;;
  9594. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9595. version_type=freebsd-elf
  9596. need_lib_prefix=no
  9597. need_version=no
  9598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9599. soname_spec='${libname}${release}${shared_ext}$major'
  9600. shlibpath_var=LD_LIBRARY_PATH
  9601. shlibpath_overrides_runpath=yes
  9602. hardcode_into_libs=yes
  9603. if test "$with_gnu_ld" = yes; then
  9604. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9605. else
  9606. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9607. case $host_os in
  9608. sco3.2v5*)
  9609. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9610. ;;
  9611. esac
  9612. fi
  9613. sys_lib_dlsearch_path_spec='/usr/lib'
  9614. ;;
  9615. tpf*)
  9616. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9617. version_type=linux
  9618. need_lib_prefix=no
  9619. need_version=no
  9620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9621. shlibpath_var=LD_LIBRARY_PATH
  9622. shlibpath_overrides_runpath=no
  9623. hardcode_into_libs=yes
  9624. ;;
  9625. uts4*)
  9626. version_type=linux
  9627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9628. soname_spec='${libname}${release}${shared_ext}$major'
  9629. shlibpath_var=LD_LIBRARY_PATH
  9630. ;;
  9631. *)
  9632. dynamic_linker=no
  9633. ;;
  9634. esac
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9636. $as_echo "$dynamic_linker" >&6; }
  9637. test "$dynamic_linker" = no && can_build_shared=no
  9638. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9639. if test "$GCC" = yes; then
  9640. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9641. fi
  9642. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9643. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9644. fi
  9645. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9646. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9647. fi
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9649. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9650. hardcode_action=
  9651. if test -n "$hardcode_libdir_flag_spec" ||
  9652. test -n "$runpath_var" ||
  9653. test "X$hardcode_automatic" = "Xyes" ; then
  9654. # We can hardcode non-existent directories.
  9655. if test "$hardcode_direct" != no &&
  9656. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9657. # have to relink, otherwise we might link with an installed library
  9658. # when we should be linking with a yet-to-be-installed one
  9659. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9660. test "$hardcode_minus_L" != no; then
  9661. # Linking always hardcodes the temporary library directory.
  9662. hardcode_action=relink
  9663. else
  9664. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9665. hardcode_action=immediate
  9666. fi
  9667. else
  9668. # We cannot hardcode anything, or else we can only hardcode existing
  9669. # directories.
  9670. hardcode_action=unsupported
  9671. fi
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9673. $as_echo "$hardcode_action" >&6; }
  9674. if test "$hardcode_action" = relink ||
  9675. test "$inherit_rpath" = yes; then
  9676. # Fast installation is not supported
  9677. enable_fast_install=no
  9678. elif test "$shlibpath_overrides_runpath" = yes ||
  9679. test "$enable_shared" = no; then
  9680. # Fast installation is not necessary
  9681. enable_fast_install=needless
  9682. fi
  9683. if test "x$enable_dlopen" != xyes; then
  9684. enable_dlopen=unknown
  9685. enable_dlopen_self=unknown
  9686. enable_dlopen_self_static=unknown
  9687. else
  9688. lt_cv_dlopen=no
  9689. lt_cv_dlopen_libs=
  9690. case $host_os in
  9691. beos*)
  9692. lt_cv_dlopen="load_add_on"
  9693. lt_cv_dlopen_libs=
  9694. lt_cv_dlopen_self=yes
  9695. ;;
  9696. mingw* | pw32* | cegcc*)
  9697. lt_cv_dlopen="LoadLibrary"
  9698. lt_cv_dlopen_libs=
  9699. ;;
  9700. cygwin*)
  9701. lt_cv_dlopen="dlopen"
  9702. lt_cv_dlopen_libs=
  9703. ;;
  9704. darwin*)
  9705. # if libdl is installed we need to link against it
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9707. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9708. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9709. $as_echo_n "(cached) " >&6
  9710. else
  9711. ac_check_lib_save_LIBS=$LIBS
  9712. LIBS="-ldl $LIBS"
  9713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9714. /* end confdefs.h. */
  9715. /* Override any GCC internal prototype to avoid an error.
  9716. Use char because int might match the return type of a GCC
  9717. builtin and then its argument prototype would still apply. */
  9718. #ifdef __cplusplus
  9719. extern "C"
  9720. #endif
  9721. char dlopen ();
  9722. int
  9723. main ()
  9724. {
  9725. return dlopen ();
  9726. ;
  9727. return 0;
  9728. }
  9729. _ACEOF
  9730. if ac_fn_c_try_link "$LINENO"; then :
  9731. ac_cv_lib_dl_dlopen=yes
  9732. else
  9733. ac_cv_lib_dl_dlopen=no
  9734. fi
  9735. rm -f core conftest.err conftest.$ac_objext \
  9736. conftest$ac_exeext conftest.$ac_ext
  9737. LIBS=$ac_check_lib_save_LIBS
  9738. fi
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9740. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9741. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9742. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9743. else
  9744. lt_cv_dlopen="dyld"
  9745. lt_cv_dlopen_libs=
  9746. lt_cv_dlopen_self=yes
  9747. fi
  9748. ;;
  9749. *)
  9750. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9751. if test "x$ac_cv_func_shl_load" = xyes; then :
  9752. lt_cv_dlopen="shl_load"
  9753. else
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9755. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9756. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9757. $as_echo_n "(cached) " >&6
  9758. else
  9759. ac_check_lib_save_LIBS=$LIBS
  9760. LIBS="-ldld $LIBS"
  9761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9762. /* end confdefs.h. */
  9763. /* Override any GCC internal prototype to avoid an error.
  9764. Use char because int might match the return type of a GCC
  9765. builtin and then its argument prototype would still apply. */
  9766. #ifdef __cplusplus
  9767. extern "C"
  9768. #endif
  9769. char shl_load ();
  9770. int
  9771. main ()
  9772. {
  9773. return shl_load ();
  9774. ;
  9775. return 0;
  9776. }
  9777. _ACEOF
  9778. if ac_fn_c_try_link "$LINENO"; then :
  9779. ac_cv_lib_dld_shl_load=yes
  9780. else
  9781. ac_cv_lib_dld_shl_load=no
  9782. fi
  9783. rm -f core conftest.err conftest.$ac_objext \
  9784. conftest$ac_exeext conftest.$ac_ext
  9785. LIBS=$ac_check_lib_save_LIBS
  9786. fi
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9788. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9789. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9790. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9791. else
  9792. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9793. if test "x$ac_cv_func_dlopen" = xyes; then :
  9794. lt_cv_dlopen="dlopen"
  9795. else
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9797. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9798. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9799. $as_echo_n "(cached) " >&6
  9800. else
  9801. ac_check_lib_save_LIBS=$LIBS
  9802. LIBS="-ldl $LIBS"
  9803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9804. /* end confdefs.h. */
  9805. /* Override any GCC internal prototype to avoid an error.
  9806. Use char because int might match the return type of a GCC
  9807. builtin and then its argument prototype would still apply. */
  9808. #ifdef __cplusplus
  9809. extern "C"
  9810. #endif
  9811. char dlopen ();
  9812. int
  9813. main ()
  9814. {
  9815. return dlopen ();
  9816. ;
  9817. return 0;
  9818. }
  9819. _ACEOF
  9820. if ac_fn_c_try_link "$LINENO"; then :
  9821. ac_cv_lib_dl_dlopen=yes
  9822. else
  9823. ac_cv_lib_dl_dlopen=no
  9824. fi
  9825. rm -f core conftest.err conftest.$ac_objext \
  9826. conftest$ac_exeext conftest.$ac_ext
  9827. LIBS=$ac_check_lib_save_LIBS
  9828. fi
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9830. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9831. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9832. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9833. else
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9835. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9836. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9837. $as_echo_n "(cached) " >&6
  9838. else
  9839. ac_check_lib_save_LIBS=$LIBS
  9840. LIBS="-lsvld $LIBS"
  9841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9842. /* end confdefs.h. */
  9843. /* Override any GCC internal prototype to avoid an error.
  9844. Use char because int might match the return type of a GCC
  9845. builtin and then its argument prototype would still apply. */
  9846. #ifdef __cplusplus
  9847. extern "C"
  9848. #endif
  9849. char dlopen ();
  9850. int
  9851. main ()
  9852. {
  9853. return dlopen ();
  9854. ;
  9855. return 0;
  9856. }
  9857. _ACEOF
  9858. if ac_fn_c_try_link "$LINENO"; then :
  9859. ac_cv_lib_svld_dlopen=yes
  9860. else
  9861. ac_cv_lib_svld_dlopen=no
  9862. fi
  9863. rm -f core conftest.err conftest.$ac_objext \
  9864. conftest$ac_exeext conftest.$ac_ext
  9865. LIBS=$ac_check_lib_save_LIBS
  9866. fi
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9868. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9869. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9870. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9871. else
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9873. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9874. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9875. $as_echo_n "(cached) " >&6
  9876. else
  9877. ac_check_lib_save_LIBS=$LIBS
  9878. LIBS="-ldld $LIBS"
  9879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9880. /* end confdefs.h. */
  9881. /* Override any GCC internal prototype to avoid an error.
  9882. Use char because int might match the return type of a GCC
  9883. builtin and then its argument prototype would still apply. */
  9884. #ifdef __cplusplus
  9885. extern "C"
  9886. #endif
  9887. char dld_link ();
  9888. int
  9889. main ()
  9890. {
  9891. return dld_link ();
  9892. ;
  9893. return 0;
  9894. }
  9895. _ACEOF
  9896. if ac_fn_c_try_link "$LINENO"; then :
  9897. ac_cv_lib_dld_dld_link=yes
  9898. else
  9899. ac_cv_lib_dld_dld_link=no
  9900. fi
  9901. rm -f core conftest.err conftest.$ac_objext \
  9902. conftest$ac_exeext conftest.$ac_ext
  9903. LIBS=$ac_check_lib_save_LIBS
  9904. fi
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9906. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9907. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9908. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9909. fi
  9910. fi
  9911. fi
  9912. fi
  9913. fi
  9914. fi
  9915. ;;
  9916. esac
  9917. if test "x$lt_cv_dlopen" != xno; then
  9918. enable_dlopen=yes
  9919. else
  9920. enable_dlopen=no
  9921. fi
  9922. case $lt_cv_dlopen in
  9923. dlopen)
  9924. save_CPPFLAGS="$CPPFLAGS"
  9925. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9926. save_LDFLAGS="$LDFLAGS"
  9927. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9928. save_LIBS="$LIBS"
  9929. LIBS="$lt_cv_dlopen_libs $LIBS"
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9931. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9932. if ${lt_cv_dlopen_self+:} false; then :
  9933. $as_echo_n "(cached) " >&6
  9934. else
  9935. if test "$cross_compiling" = yes; then :
  9936. lt_cv_dlopen_self=cross
  9937. else
  9938. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9939. lt_status=$lt_dlunknown
  9940. cat > conftest.$ac_ext <<_LT_EOF
  9941. #line $LINENO "configure"
  9942. #include "confdefs.h"
  9943. #if HAVE_DLFCN_H
  9944. #include <dlfcn.h>
  9945. #endif
  9946. #include <stdio.h>
  9947. #ifdef RTLD_GLOBAL
  9948. # define LT_DLGLOBAL RTLD_GLOBAL
  9949. #else
  9950. # ifdef DL_GLOBAL
  9951. # define LT_DLGLOBAL DL_GLOBAL
  9952. # else
  9953. # define LT_DLGLOBAL 0
  9954. # endif
  9955. #endif
  9956. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9957. find out it does not work in some platform. */
  9958. #ifndef LT_DLLAZY_OR_NOW
  9959. # ifdef RTLD_LAZY
  9960. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9961. # else
  9962. # ifdef DL_LAZY
  9963. # define LT_DLLAZY_OR_NOW DL_LAZY
  9964. # else
  9965. # ifdef RTLD_NOW
  9966. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9967. # else
  9968. # ifdef DL_NOW
  9969. # define LT_DLLAZY_OR_NOW DL_NOW
  9970. # else
  9971. # define LT_DLLAZY_OR_NOW 0
  9972. # endif
  9973. # endif
  9974. # endif
  9975. # endif
  9976. #endif
  9977. /* When -fvisbility=hidden is used, assume the code has been annotated
  9978. correspondingly for the symbols needed. */
  9979. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9980. int fnord () __attribute__((visibility("default")));
  9981. #endif
  9982. int fnord () { return 42; }
  9983. int main ()
  9984. {
  9985. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9986. int status = $lt_dlunknown;
  9987. if (self)
  9988. {
  9989. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9990. else
  9991. {
  9992. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9993. else puts (dlerror ());
  9994. }
  9995. /* dlclose (self); */
  9996. }
  9997. else
  9998. puts (dlerror ());
  9999. return status;
  10000. }
  10001. _LT_EOF
  10002. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10003. (eval $ac_link) 2>&5
  10004. ac_status=$?
  10005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10006. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10007. (./conftest; exit; ) >&5 2>/dev/null
  10008. lt_status=$?
  10009. case x$lt_status in
  10010. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10011. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10012. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10013. esac
  10014. else :
  10015. # compilation failed
  10016. lt_cv_dlopen_self=no
  10017. fi
  10018. fi
  10019. rm -fr conftest*
  10020. fi
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10022. $as_echo "$lt_cv_dlopen_self" >&6; }
  10023. if test "x$lt_cv_dlopen_self" = xyes; then
  10024. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10026. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10027. if ${lt_cv_dlopen_self_static+:} false; then :
  10028. $as_echo_n "(cached) " >&6
  10029. else
  10030. if test "$cross_compiling" = yes; then :
  10031. lt_cv_dlopen_self_static=cross
  10032. else
  10033. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10034. lt_status=$lt_dlunknown
  10035. cat > conftest.$ac_ext <<_LT_EOF
  10036. #line $LINENO "configure"
  10037. #include "confdefs.h"
  10038. #if HAVE_DLFCN_H
  10039. #include <dlfcn.h>
  10040. #endif
  10041. #include <stdio.h>
  10042. #ifdef RTLD_GLOBAL
  10043. # define LT_DLGLOBAL RTLD_GLOBAL
  10044. #else
  10045. # ifdef DL_GLOBAL
  10046. # define LT_DLGLOBAL DL_GLOBAL
  10047. # else
  10048. # define LT_DLGLOBAL 0
  10049. # endif
  10050. #endif
  10051. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10052. find out it does not work in some platform. */
  10053. #ifndef LT_DLLAZY_OR_NOW
  10054. # ifdef RTLD_LAZY
  10055. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10056. # else
  10057. # ifdef DL_LAZY
  10058. # define LT_DLLAZY_OR_NOW DL_LAZY
  10059. # else
  10060. # ifdef RTLD_NOW
  10061. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10062. # else
  10063. # ifdef DL_NOW
  10064. # define LT_DLLAZY_OR_NOW DL_NOW
  10065. # else
  10066. # define LT_DLLAZY_OR_NOW 0
  10067. # endif
  10068. # endif
  10069. # endif
  10070. # endif
  10071. #endif
  10072. /* When -fvisbility=hidden is used, assume the code has been annotated
  10073. correspondingly for the symbols needed. */
  10074. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10075. int fnord () __attribute__((visibility("default")));
  10076. #endif
  10077. int fnord () { return 42; }
  10078. int main ()
  10079. {
  10080. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10081. int status = $lt_dlunknown;
  10082. if (self)
  10083. {
  10084. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10085. else
  10086. {
  10087. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10088. else puts (dlerror ());
  10089. }
  10090. /* dlclose (self); */
  10091. }
  10092. else
  10093. puts (dlerror ());
  10094. return status;
  10095. }
  10096. _LT_EOF
  10097. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10098. (eval $ac_link) 2>&5
  10099. ac_status=$?
  10100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10101. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10102. (./conftest; exit; ) >&5 2>/dev/null
  10103. lt_status=$?
  10104. case x$lt_status in
  10105. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10106. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10107. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10108. esac
  10109. else :
  10110. # compilation failed
  10111. lt_cv_dlopen_self_static=no
  10112. fi
  10113. fi
  10114. rm -fr conftest*
  10115. fi
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10117. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10118. fi
  10119. CPPFLAGS="$save_CPPFLAGS"
  10120. LDFLAGS="$save_LDFLAGS"
  10121. LIBS="$save_LIBS"
  10122. ;;
  10123. esac
  10124. case $lt_cv_dlopen_self in
  10125. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10126. *) enable_dlopen_self=unknown ;;
  10127. esac
  10128. case $lt_cv_dlopen_self_static in
  10129. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10130. *) enable_dlopen_self_static=unknown ;;
  10131. esac
  10132. fi
  10133. striplib=
  10134. old_striplib=
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10136. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10137. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10138. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10139. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10141. $as_echo "yes" >&6; }
  10142. else
  10143. # FIXME - insert some real tests, host_os isn't really good enough
  10144. case $host_os in
  10145. darwin*)
  10146. if test -n "$STRIP" ; then
  10147. striplib="$STRIP -x"
  10148. old_striplib="$STRIP -S"
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10150. $as_echo "yes" >&6; }
  10151. else
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10153. $as_echo "no" >&6; }
  10154. fi
  10155. ;;
  10156. *)
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10158. $as_echo "no" >&6; }
  10159. ;;
  10160. esac
  10161. fi
  10162. # Report which library types will actually be built
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10164. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10166. $as_echo "$can_build_shared" >&6; }
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10168. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10169. test "$can_build_shared" = "no" && enable_shared=no
  10170. # On AIX, shared libraries and static libraries use the same namespace, and
  10171. # are all built from PIC.
  10172. case $host_os in
  10173. aix3*)
  10174. test "$enable_shared" = yes && enable_static=no
  10175. if test -n "$RANLIB"; then
  10176. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10177. postinstall_cmds='$RANLIB $lib'
  10178. fi
  10179. ;;
  10180. aix[4-9]*)
  10181. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10182. test "$enable_shared" = yes && enable_static=no
  10183. fi
  10184. ;;
  10185. esac
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10187. $as_echo "$enable_shared" >&6; }
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10189. $as_echo_n "checking whether to build static libraries... " >&6; }
  10190. # Make sure either enable_shared or enable_static is yes.
  10191. test "$enable_shared" = yes || enable_static=yes
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10193. $as_echo "$enable_static" >&6; }
  10194. fi
  10195. ac_ext=cpp
  10196. ac_cpp='$CXXCPP $CPPFLAGS'
  10197. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10198. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10199. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10200. CC="$lt_save_CC"
  10201. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10202. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10203. (test "X$CXX" != "Xg++"))) ; then
  10204. ac_ext=cpp
  10205. ac_cpp='$CXXCPP $CPPFLAGS'
  10206. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10207. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10208. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10210. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10211. if test -z "$CXXCPP"; then
  10212. if ${ac_cv_prog_CXXCPP+:} false; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. # Double quotes because CXXCPP needs to be expanded
  10216. for CXXCPP in "$CXX -E" "/lib/cpp"
  10217. do
  10218. ac_preproc_ok=false
  10219. for ac_cxx_preproc_warn_flag in '' yes
  10220. do
  10221. # Use a header file that comes with gcc, so configuring glibc
  10222. # with a fresh cross-compiler works.
  10223. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10224. # <limits.h> exists even on freestanding compilers.
  10225. # On the NeXT, cc -E runs the code through the compiler's parser,
  10226. # not just through cpp. "Syntax error" is here to catch this case.
  10227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10228. /* end confdefs.h. */
  10229. #ifdef __STDC__
  10230. # include <limits.h>
  10231. #else
  10232. # include <assert.h>
  10233. #endif
  10234. Syntax error
  10235. _ACEOF
  10236. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10237. else
  10238. # Broken: fails on valid input.
  10239. continue
  10240. fi
  10241. rm -f conftest.err conftest.i conftest.$ac_ext
  10242. # OK, works on sane cases. Now check whether nonexistent headers
  10243. # can be detected and how.
  10244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10245. /* end confdefs.h. */
  10246. #include <ac_nonexistent.h>
  10247. _ACEOF
  10248. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10249. # Broken: success on invalid input.
  10250. continue
  10251. else
  10252. # Passes both tests.
  10253. ac_preproc_ok=:
  10254. break
  10255. fi
  10256. rm -f conftest.err conftest.i conftest.$ac_ext
  10257. done
  10258. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10259. rm -f conftest.i conftest.err conftest.$ac_ext
  10260. if $ac_preproc_ok; then :
  10261. break
  10262. fi
  10263. done
  10264. ac_cv_prog_CXXCPP=$CXXCPP
  10265. fi
  10266. CXXCPP=$ac_cv_prog_CXXCPP
  10267. else
  10268. ac_cv_prog_CXXCPP=$CXXCPP
  10269. fi
  10270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10271. $as_echo "$CXXCPP" >&6; }
  10272. ac_preproc_ok=false
  10273. for ac_cxx_preproc_warn_flag in '' yes
  10274. do
  10275. # Use a header file that comes with gcc, so configuring glibc
  10276. # with a fresh cross-compiler works.
  10277. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10278. # <limits.h> exists even on freestanding compilers.
  10279. # On the NeXT, cc -E runs the code through the compiler's parser,
  10280. # not just through cpp. "Syntax error" is here to catch this case.
  10281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10282. /* end confdefs.h. */
  10283. #ifdef __STDC__
  10284. # include <limits.h>
  10285. #else
  10286. # include <assert.h>
  10287. #endif
  10288. Syntax error
  10289. _ACEOF
  10290. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10291. else
  10292. # Broken: fails on valid input.
  10293. continue
  10294. fi
  10295. rm -f conftest.err conftest.i conftest.$ac_ext
  10296. # OK, works on sane cases. Now check whether nonexistent headers
  10297. # can be detected and how.
  10298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10299. /* end confdefs.h. */
  10300. #include <ac_nonexistent.h>
  10301. _ACEOF
  10302. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10303. # Broken: success on invalid input.
  10304. continue
  10305. else
  10306. # Passes both tests.
  10307. ac_preproc_ok=:
  10308. break
  10309. fi
  10310. rm -f conftest.err conftest.i conftest.$ac_ext
  10311. done
  10312. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10313. rm -f conftest.i conftest.err conftest.$ac_ext
  10314. if $ac_preproc_ok; then :
  10315. else
  10316. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10317. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10318. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10319. See \`config.log' for more details" "$LINENO" 5; }
  10320. fi
  10321. ac_ext=cpp
  10322. ac_cpp='$CXXCPP $CPPFLAGS'
  10323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10326. else
  10327. _lt_caught_CXX_error=yes
  10328. fi
  10329. ac_ext=cpp
  10330. ac_cpp='$CXXCPP $CPPFLAGS'
  10331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10334. archive_cmds_need_lc_CXX=no
  10335. allow_undefined_flag_CXX=
  10336. always_export_symbols_CXX=no
  10337. archive_expsym_cmds_CXX=
  10338. compiler_needs_object_CXX=no
  10339. export_dynamic_flag_spec_CXX=
  10340. hardcode_direct_CXX=no
  10341. hardcode_direct_absolute_CXX=no
  10342. hardcode_libdir_flag_spec_CXX=
  10343. hardcode_libdir_flag_spec_ld_CXX=
  10344. hardcode_libdir_separator_CXX=
  10345. hardcode_minus_L_CXX=no
  10346. hardcode_shlibpath_var_CXX=unsupported
  10347. hardcode_automatic_CXX=no
  10348. inherit_rpath_CXX=no
  10349. module_cmds_CXX=
  10350. module_expsym_cmds_CXX=
  10351. link_all_deplibs_CXX=unknown
  10352. old_archive_cmds_CXX=$old_archive_cmds
  10353. reload_flag_CXX=$reload_flag
  10354. reload_cmds_CXX=$reload_cmds
  10355. no_undefined_flag_CXX=
  10356. whole_archive_flag_spec_CXX=
  10357. enable_shared_with_static_runtimes_CXX=no
  10358. # Source file extension for C++ test sources.
  10359. ac_ext=cpp
  10360. # Object file extension for compiled C++ test sources.
  10361. objext=o
  10362. objext_CXX=$objext
  10363. # No sense in running all these tests if we already determined that
  10364. # the CXX compiler isn't working. Some variables (like enable_shared)
  10365. # are currently assumed to apply to all compilers on this platform,
  10366. # and will be corrupted by setting them based on a non-working compiler.
  10367. if test "$_lt_caught_CXX_error" != yes; then
  10368. # Code to be used in simple compile tests
  10369. lt_simple_compile_test_code="int some_variable = 0;"
  10370. # Code to be used in simple link tests
  10371. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10372. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10373. # If no C compiler was specified, use CC.
  10374. LTCC=${LTCC-"$CC"}
  10375. # If no C compiler flags were specified, use CFLAGS.
  10376. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10377. # Allow CC to be a program name with arguments.
  10378. compiler=$CC
  10379. # save warnings/boilerplate of simple test code
  10380. ac_outfile=conftest.$ac_objext
  10381. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10382. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10383. _lt_compiler_boilerplate=`cat conftest.err`
  10384. $RM conftest*
  10385. ac_outfile=conftest.$ac_objext
  10386. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10387. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10388. _lt_linker_boilerplate=`cat conftest.err`
  10389. $RM -r conftest*
  10390. # Allow CC to be a program name with arguments.
  10391. lt_save_CC=$CC
  10392. lt_save_CFLAGS=$CFLAGS
  10393. lt_save_LD=$LD
  10394. lt_save_GCC=$GCC
  10395. GCC=$GXX
  10396. lt_save_with_gnu_ld=$with_gnu_ld
  10397. lt_save_path_LD=$lt_cv_path_LD
  10398. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10399. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10400. else
  10401. $as_unset lt_cv_prog_gnu_ld
  10402. fi
  10403. if test -n "${lt_cv_path_LDCXX+set}"; then
  10404. lt_cv_path_LD=$lt_cv_path_LDCXX
  10405. else
  10406. $as_unset lt_cv_path_LD
  10407. fi
  10408. test -z "${LDCXX+set}" || LD=$LDCXX
  10409. CC=${CXX-"c++"}
  10410. CFLAGS=$CXXFLAGS
  10411. compiler=$CC
  10412. compiler_CXX=$CC
  10413. for cc_temp in $compiler""; do
  10414. case $cc_temp in
  10415. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10416. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10417. \-*) ;;
  10418. *) break;;
  10419. esac
  10420. done
  10421. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10422. if test -n "$compiler"; then
  10423. # We don't want -fno-exception when compiling C++ code, so set the
  10424. # no_builtin_flag separately
  10425. if test "$GXX" = yes; then
  10426. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10427. else
  10428. lt_prog_compiler_no_builtin_flag_CXX=
  10429. fi
  10430. if test "$GXX" = yes; then
  10431. # Set up default GNU C++ configuration
  10432. # Check whether --with-gnu-ld was given.
  10433. if test "${with_gnu_ld+set}" = set; then :
  10434. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10435. else
  10436. with_gnu_ld=no
  10437. fi
  10438. ac_prog=ld
  10439. if test "$GCC" = yes; then
  10440. # Check if gcc -print-prog-name=ld gives a path.
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10442. $as_echo_n "checking for ld used by $CC... " >&6; }
  10443. case $host in
  10444. *-*-mingw*)
  10445. # gcc leaves a trailing carriage return which upsets mingw
  10446. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10447. *)
  10448. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10449. esac
  10450. case $ac_prog in
  10451. # Accept absolute paths.
  10452. [\\/]* | ?:[\\/]*)
  10453. re_direlt='/[^/][^/]*/\.\./'
  10454. # Canonicalize the pathname of ld
  10455. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10456. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10457. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10458. done
  10459. test -z "$LD" && LD="$ac_prog"
  10460. ;;
  10461. "")
  10462. # If it fails, then pretend we aren't using GCC.
  10463. ac_prog=ld
  10464. ;;
  10465. *)
  10466. # If it is relative, then search for the first ld in PATH.
  10467. with_gnu_ld=unknown
  10468. ;;
  10469. esac
  10470. elif test "$with_gnu_ld" = yes; then
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10472. $as_echo_n "checking for GNU ld... " >&6; }
  10473. else
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10475. $as_echo_n "checking for non-GNU ld... " >&6; }
  10476. fi
  10477. if ${lt_cv_path_LD+:} false; then :
  10478. $as_echo_n "(cached) " >&6
  10479. else
  10480. if test -z "$LD"; then
  10481. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10482. for ac_dir in $PATH; do
  10483. IFS="$lt_save_ifs"
  10484. test -z "$ac_dir" && ac_dir=.
  10485. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10486. lt_cv_path_LD="$ac_dir/$ac_prog"
  10487. # Check to see if the program is GNU ld. I'd rather use --version,
  10488. # but apparently some variants of GNU ld only accept -v.
  10489. # Break only if it was the GNU/non-GNU ld that we prefer.
  10490. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10491. *GNU* | *'with BFD'*)
  10492. test "$with_gnu_ld" != no && break
  10493. ;;
  10494. *)
  10495. test "$with_gnu_ld" != yes && break
  10496. ;;
  10497. esac
  10498. fi
  10499. done
  10500. IFS="$lt_save_ifs"
  10501. else
  10502. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10503. fi
  10504. fi
  10505. LD="$lt_cv_path_LD"
  10506. if test -n "$LD"; then
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10508. $as_echo "$LD" >&6; }
  10509. else
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10511. $as_echo "no" >&6; }
  10512. fi
  10513. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10515. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10516. if ${lt_cv_prog_gnu_ld+:} false; then :
  10517. $as_echo_n "(cached) " >&6
  10518. else
  10519. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10520. case `$LD -v 2>&1 </dev/null` in
  10521. *GNU* | *'with BFD'*)
  10522. lt_cv_prog_gnu_ld=yes
  10523. ;;
  10524. *)
  10525. lt_cv_prog_gnu_ld=no
  10526. ;;
  10527. esac
  10528. fi
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10530. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10531. with_gnu_ld=$lt_cv_prog_gnu_ld
  10532. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10533. # archiving commands below assume that GNU ld is being used.
  10534. if test "$with_gnu_ld" = yes; then
  10535. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10536. 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'
  10537. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10538. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10539. # If archive_cmds runs LD, not CC, wlarc should be empty
  10540. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10541. # investigate it a little bit more. (MM)
  10542. wlarc='${wl}'
  10543. # ancient GNU ld didn't support --whole-archive et. al.
  10544. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10545. $GREP 'no-whole-archive' > /dev/null; then
  10546. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10547. else
  10548. whole_archive_flag_spec_CXX=
  10549. fi
  10550. else
  10551. with_gnu_ld=no
  10552. wlarc=
  10553. # A generic and very simple default shared library creation
  10554. # command for GNU C++ for the case where it uses the native
  10555. # linker, instead of GNU ld. If possible, this setting should
  10556. # overridden to take advantage of the native linker features on
  10557. # the platform it is being used on.
  10558. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10559. fi
  10560. # Commands to make compiler produce verbose output that lists
  10561. # what "hidden" libraries, object files and flags are used when
  10562. # linking a shared library.
  10563. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10564. else
  10565. GXX=no
  10566. with_gnu_ld=no
  10567. wlarc=
  10568. fi
  10569. # PORTME: fill in a description of your system's C++ link characteristics
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10571. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10572. ld_shlibs_CXX=yes
  10573. case $host_os in
  10574. aix3*)
  10575. # FIXME: insert proper C++ library support
  10576. ld_shlibs_CXX=no
  10577. ;;
  10578. aix[4-9]*)
  10579. if test "$host_cpu" = ia64; then
  10580. # On IA64, the linker does run time linking by default, so we don't
  10581. # have to do anything special.
  10582. aix_use_runtimelinking=no
  10583. exp_sym_flag='-Bexport'
  10584. no_entry_flag=""
  10585. else
  10586. aix_use_runtimelinking=no
  10587. # Test if we are trying to use run time linking or normal
  10588. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10589. # need to do runtime linking.
  10590. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10591. for ld_flag in $LDFLAGS; do
  10592. case $ld_flag in
  10593. *-brtl*)
  10594. aix_use_runtimelinking=yes
  10595. break
  10596. ;;
  10597. esac
  10598. done
  10599. ;;
  10600. esac
  10601. exp_sym_flag='-bexport'
  10602. no_entry_flag='-bnoentry'
  10603. fi
  10604. # When large executables or shared objects are built, AIX ld can
  10605. # have problems creating the table of contents. If linking a library
  10606. # or program results in "error TOC overflow" add -mminimal-toc to
  10607. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10608. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10609. archive_cmds_CXX=''
  10610. hardcode_direct_CXX=yes
  10611. hardcode_direct_absolute_CXX=yes
  10612. hardcode_libdir_separator_CXX=':'
  10613. link_all_deplibs_CXX=yes
  10614. file_list_spec_CXX='${wl}-f,'
  10615. if test "$GXX" = yes; then
  10616. case $host_os in aix4.[012]|aix4.[012].*)
  10617. # We only want to do this on AIX 4.2 and lower, the check
  10618. # below for broken collect2 doesn't work under 4.3+
  10619. collect2name=`${CC} -print-prog-name=collect2`
  10620. if test -f "$collect2name" &&
  10621. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10622. then
  10623. # We have reworked collect2
  10624. :
  10625. else
  10626. # We have old collect2
  10627. hardcode_direct_CXX=unsupported
  10628. # It fails to find uninstalled libraries when the uninstalled
  10629. # path is not listed in the libpath. Setting hardcode_minus_L
  10630. # to unsupported forces relinking
  10631. hardcode_minus_L_CXX=yes
  10632. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10633. hardcode_libdir_separator_CXX=
  10634. fi
  10635. esac
  10636. shared_flag='-shared'
  10637. if test "$aix_use_runtimelinking" = yes; then
  10638. shared_flag="$shared_flag "'${wl}-G'
  10639. fi
  10640. else
  10641. # not using gcc
  10642. if test "$host_cpu" = ia64; then
  10643. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10644. # chokes on -Wl,-G. The following line is correct:
  10645. shared_flag='-G'
  10646. else
  10647. if test "$aix_use_runtimelinking" = yes; then
  10648. shared_flag='${wl}-G'
  10649. else
  10650. shared_flag='${wl}-bM:SRE'
  10651. fi
  10652. fi
  10653. fi
  10654. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10655. # It seems that -bexpall does not export symbols beginning with
  10656. # underscore (_), so it is better to generate a list of symbols to
  10657. # export.
  10658. always_export_symbols_CXX=yes
  10659. if test "$aix_use_runtimelinking" = yes; then
  10660. # Warning - without using the other runtime loading flags (-brtl),
  10661. # -berok will link without error, but may produce a broken library.
  10662. allow_undefined_flag_CXX='-berok'
  10663. # Determine the default libpath from the value encoded in an empty
  10664. # executable.
  10665. if test "${lt_cv_aix_libpath+set}" = set; then
  10666. aix_libpath=$lt_cv_aix_libpath
  10667. else
  10668. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10669. $as_echo_n "(cached) " >&6
  10670. else
  10671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10672. /* end confdefs.h. */
  10673. int
  10674. main ()
  10675. {
  10676. ;
  10677. return 0;
  10678. }
  10679. _ACEOF
  10680. if ac_fn_cxx_try_link "$LINENO"; then :
  10681. lt_aix_libpath_sed='
  10682. /Import File Strings/,/^$/ {
  10683. /^0/ {
  10684. s/^0 *\([^ ]*\) *$/\1/
  10685. p
  10686. }
  10687. }'
  10688. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10689. # Check for a 64-bit object if we didn't find anything.
  10690. if test -z "$lt_cv_aix_libpath__CXX"; then
  10691. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10692. fi
  10693. fi
  10694. rm -f core conftest.err conftest.$ac_objext \
  10695. conftest$ac_exeext conftest.$ac_ext
  10696. if test -z "$lt_cv_aix_libpath__CXX"; then
  10697. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10698. fi
  10699. fi
  10700. aix_libpath=$lt_cv_aix_libpath__CXX
  10701. fi
  10702. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10703. 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"
  10704. else
  10705. if test "$host_cpu" = ia64; then
  10706. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10707. allow_undefined_flag_CXX="-z nodefs"
  10708. 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"
  10709. else
  10710. # Determine the default libpath from the value encoded in an
  10711. # empty executable.
  10712. if test "${lt_cv_aix_libpath+set}" = set; then
  10713. aix_libpath=$lt_cv_aix_libpath
  10714. else
  10715. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10719. /* end confdefs.h. */
  10720. int
  10721. main ()
  10722. {
  10723. ;
  10724. return 0;
  10725. }
  10726. _ACEOF
  10727. if ac_fn_cxx_try_link "$LINENO"; then :
  10728. lt_aix_libpath_sed='
  10729. /Import File Strings/,/^$/ {
  10730. /^0/ {
  10731. s/^0 *\([^ ]*\) *$/\1/
  10732. p
  10733. }
  10734. }'
  10735. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10736. # Check for a 64-bit object if we didn't find anything.
  10737. if test -z "$lt_cv_aix_libpath__CXX"; then
  10738. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10739. fi
  10740. fi
  10741. rm -f core conftest.err conftest.$ac_objext \
  10742. conftest$ac_exeext conftest.$ac_ext
  10743. if test -z "$lt_cv_aix_libpath__CXX"; then
  10744. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10745. fi
  10746. fi
  10747. aix_libpath=$lt_cv_aix_libpath__CXX
  10748. fi
  10749. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10750. # Warning - without using the other run time loading flags,
  10751. # -berok will link without error, but may produce a broken library.
  10752. no_undefined_flag_CXX=' ${wl}-bernotok'
  10753. allow_undefined_flag_CXX=' ${wl}-berok'
  10754. if test "$with_gnu_ld" = yes; then
  10755. # We only use this code for GNU lds that support --whole-archive.
  10756. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10757. else
  10758. # Exported symbols can be pulled into shared objects from archives
  10759. whole_archive_flag_spec_CXX='$convenience'
  10760. fi
  10761. archive_cmds_need_lc_CXX=yes
  10762. # This is similar to how AIX traditionally builds its shared
  10763. # libraries.
  10764. 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'
  10765. fi
  10766. fi
  10767. ;;
  10768. beos*)
  10769. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10770. allow_undefined_flag_CXX=unsupported
  10771. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10772. # support --undefined. This deserves some investigation. FIXME
  10773. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10774. else
  10775. ld_shlibs_CXX=no
  10776. fi
  10777. ;;
  10778. chorus*)
  10779. case $cc_basename in
  10780. *)
  10781. # FIXME: insert proper C++ library support
  10782. ld_shlibs_CXX=no
  10783. ;;
  10784. esac
  10785. ;;
  10786. cygwin* | mingw* | pw32* | cegcc*)
  10787. case $GXX,$cc_basename in
  10788. ,cl* | no,cl*)
  10789. # Native MSVC
  10790. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10791. # no search path for DLLs.
  10792. hardcode_libdir_flag_spec_CXX=' '
  10793. allow_undefined_flag_CXX=unsupported
  10794. always_export_symbols_CXX=yes
  10795. file_list_spec_CXX='@'
  10796. # Tell ltmain to make .lib files, not .a files.
  10797. libext=lib
  10798. # Tell ltmain to make .dll files, not .so files.
  10799. shrext_cmds=".dll"
  10800. # FIXME: Setting linknames here is a bad hack.
  10801. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10802. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10803. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10804. else
  10805. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10806. fi~
  10807. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10808. linknames='
  10809. # The linker will not automatically build a static lib if we build a DLL.
  10810. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10811. enable_shared_with_static_runtimes_CXX=yes
  10812. # Don't use ranlib
  10813. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10814. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10815. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10816. case $lt_outputfile in
  10817. *.exe|*.EXE) ;;
  10818. *)
  10819. lt_outputfile="$lt_outputfile.exe"
  10820. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10821. ;;
  10822. esac~
  10823. func_to_tool_file "$lt_outputfile"~
  10824. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10825. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10826. $RM "$lt_outputfile.manifest";
  10827. fi'
  10828. ;;
  10829. *)
  10830. # g++
  10831. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10832. # as there is no search path for DLLs.
  10833. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10834. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10835. allow_undefined_flag_CXX=unsupported
  10836. always_export_symbols_CXX=no
  10837. enable_shared_with_static_runtimes_CXX=yes
  10838. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10839. 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'
  10840. # If the export-symbols file already is a .def file (1st line
  10841. # is EXPORTS), use it as is; otherwise, prepend...
  10842. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10843. cp $export_symbols $output_objdir/$soname.def;
  10844. else
  10845. echo EXPORTS > $output_objdir/$soname.def;
  10846. cat $export_symbols >> $output_objdir/$soname.def;
  10847. fi~
  10848. $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'
  10849. else
  10850. ld_shlibs_CXX=no
  10851. fi
  10852. ;;
  10853. esac
  10854. ;;
  10855. darwin* | rhapsody*)
  10856. archive_cmds_need_lc_CXX=no
  10857. hardcode_direct_CXX=no
  10858. hardcode_automatic_CXX=yes
  10859. hardcode_shlibpath_var_CXX=unsupported
  10860. if test "$lt_cv_ld_force_load" = "yes"; then
  10861. 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\"`'
  10862. else
  10863. whole_archive_flag_spec_CXX=''
  10864. fi
  10865. link_all_deplibs_CXX=yes
  10866. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10867. case $cc_basename in
  10868. ifort*) _lt_dar_can_shared=yes ;;
  10869. *) _lt_dar_can_shared=$GCC ;;
  10870. esac
  10871. if test "$_lt_dar_can_shared" = "yes"; then
  10872. output_verbose_link_cmd=func_echo_all
  10873. 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}"
  10874. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10875. 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}"
  10876. 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}"
  10877. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10878. 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}"
  10879. 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}"
  10880. fi
  10881. else
  10882. ld_shlibs_CXX=no
  10883. fi
  10884. ;;
  10885. dgux*)
  10886. case $cc_basename in
  10887. ec++*)
  10888. # FIXME: insert proper C++ library support
  10889. ld_shlibs_CXX=no
  10890. ;;
  10891. ghcx*)
  10892. # Green Hills C++ Compiler
  10893. # FIXME: insert proper C++ library support
  10894. ld_shlibs_CXX=no
  10895. ;;
  10896. *)
  10897. # FIXME: insert proper C++ library support
  10898. ld_shlibs_CXX=no
  10899. ;;
  10900. esac
  10901. ;;
  10902. freebsd[12]*)
  10903. # C++ shared libraries reported to be fairly broken before
  10904. # switch to ELF
  10905. ld_shlibs_CXX=no
  10906. ;;
  10907. freebsd-elf*)
  10908. archive_cmds_need_lc_CXX=no
  10909. ;;
  10910. freebsd* | dragonfly*)
  10911. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10912. # conventions
  10913. ld_shlibs_CXX=yes
  10914. ;;
  10915. gnu*)
  10916. ;;
  10917. haiku*)
  10918. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10919. link_all_deplibs_CXX=yes
  10920. ;;
  10921. hpux9*)
  10922. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10923. hardcode_libdir_separator_CXX=:
  10924. export_dynamic_flag_spec_CXX='${wl}-E'
  10925. hardcode_direct_CXX=yes
  10926. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10927. # but as the default
  10928. # location of the library.
  10929. case $cc_basename in
  10930. CC*)
  10931. # FIXME: insert proper C++ library support
  10932. ld_shlibs_CXX=no
  10933. ;;
  10934. aCC*)
  10935. 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'
  10936. # Commands to make compiler produce verbose output that lists
  10937. # what "hidden" libraries, object files and flags are used when
  10938. # linking a shared library.
  10939. #
  10940. # There doesn't appear to be a way to prevent this compiler from
  10941. # explicitly linking system object files so we need to strip them
  10942. # from the output so that they don't get included in the library
  10943. # dependencies.
  10944. 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"'
  10945. ;;
  10946. *)
  10947. if test "$GXX" = yes; then
  10948. 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'
  10949. else
  10950. # FIXME: insert proper C++ library support
  10951. ld_shlibs_CXX=no
  10952. fi
  10953. ;;
  10954. esac
  10955. ;;
  10956. hpux10*|hpux11*)
  10957. if test $with_gnu_ld = no; then
  10958. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10959. hardcode_libdir_separator_CXX=:
  10960. case $host_cpu in
  10961. hppa*64*|ia64*)
  10962. ;;
  10963. *)
  10964. export_dynamic_flag_spec_CXX='${wl}-E'
  10965. ;;
  10966. esac
  10967. fi
  10968. case $host_cpu in
  10969. hppa*64*|ia64*)
  10970. hardcode_direct_CXX=no
  10971. hardcode_shlibpath_var_CXX=no
  10972. ;;
  10973. *)
  10974. hardcode_direct_CXX=yes
  10975. hardcode_direct_absolute_CXX=yes
  10976. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10977. # but as the default
  10978. # location of the library.
  10979. ;;
  10980. esac
  10981. case $cc_basename in
  10982. CC*)
  10983. # FIXME: insert proper C++ library support
  10984. ld_shlibs_CXX=no
  10985. ;;
  10986. aCC*)
  10987. case $host_cpu in
  10988. hppa*64*)
  10989. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10990. ;;
  10991. ia64*)
  10992. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10993. ;;
  10994. *)
  10995. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10996. ;;
  10997. esac
  10998. # Commands to make compiler produce verbose output that lists
  10999. # what "hidden" libraries, object files and flags are used when
  11000. # linking a shared library.
  11001. #
  11002. # There doesn't appear to be a way to prevent this compiler from
  11003. # explicitly linking system object files so we need to strip them
  11004. # from the output so that they don't get included in the library
  11005. # dependencies.
  11006. 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"'
  11007. ;;
  11008. *)
  11009. if test "$GXX" = yes; then
  11010. if test $with_gnu_ld = no; then
  11011. case $host_cpu in
  11012. hppa*64*)
  11013. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11014. ;;
  11015. ia64*)
  11016. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11017. ;;
  11018. *)
  11019. 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'
  11020. ;;
  11021. esac
  11022. fi
  11023. else
  11024. # FIXME: insert proper C++ library support
  11025. ld_shlibs_CXX=no
  11026. fi
  11027. ;;
  11028. esac
  11029. ;;
  11030. interix[3-9]*)
  11031. hardcode_direct_CXX=no
  11032. hardcode_shlibpath_var_CXX=no
  11033. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11034. export_dynamic_flag_spec_CXX='${wl}-E'
  11035. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11036. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11037. # default) and relocated if they conflict, which is a slow very memory
  11038. # consuming and fragmenting process. To avoid this, we pick a random,
  11039. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11040. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11041. 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'
  11042. 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'
  11043. ;;
  11044. irix5* | irix6*)
  11045. case $cc_basename in
  11046. CC*)
  11047. # SGI C++
  11048. 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'
  11049. # Archives containing C++ object files must be created using
  11050. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11051. # necessary to make sure instantiated templates are included
  11052. # in the archive.
  11053. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11054. ;;
  11055. *)
  11056. if test "$GXX" = yes; then
  11057. if test "$with_gnu_ld" = no; then
  11058. 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'
  11059. else
  11060. 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'
  11061. fi
  11062. fi
  11063. link_all_deplibs_CXX=yes
  11064. ;;
  11065. esac
  11066. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11067. hardcode_libdir_separator_CXX=:
  11068. inherit_rpath_CXX=yes
  11069. ;;
  11070. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11071. case $cc_basename in
  11072. KCC*)
  11073. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11074. # KCC will only create a shared library if the output file
  11075. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11076. # to its proper name (with version) after linking.
  11077. 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'
  11078. 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'
  11079. # Commands to make compiler produce verbose output that lists
  11080. # what "hidden" libraries, object files and flags are used when
  11081. # linking a shared library.
  11082. #
  11083. # There doesn't appear to be a way to prevent this compiler from
  11084. # explicitly linking system object files so we need to strip them
  11085. # from the output so that they don't get included in the library
  11086. # dependencies.
  11087. 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"'
  11088. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11089. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11090. # Archives containing C++ object files must be created using
  11091. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11092. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11093. ;;
  11094. icpc* | ecpc* )
  11095. # Intel C++
  11096. with_gnu_ld=yes
  11097. # version 8.0 and above of icpc choke on multiply defined symbols
  11098. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11099. # earlier do not add the objects themselves.
  11100. case `$CC -V 2>&1` in
  11101. *"Version 7."*)
  11102. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11103. 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'
  11104. ;;
  11105. *) # Version 8.0 or newer
  11106. tmp_idyn=
  11107. case $host_cpu in
  11108. ia64*) tmp_idyn=' -i_dynamic';;
  11109. esac
  11110. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11111. 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'
  11112. ;;
  11113. esac
  11114. archive_cmds_need_lc_CXX=no
  11115. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11116. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11117. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11118. ;;
  11119. pgCC* | pgcpp*)
  11120. # Portland Group C++ compiler
  11121. case `$CC -V` in
  11122. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11123. prelink_cmds_CXX='tpldir=Template.dir~
  11124. rm -rf $tpldir~
  11125. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11126. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11127. old_archive_cmds_CXX='tpldir=Template.dir~
  11128. rm -rf $tpldir~
  11129. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11130. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11131. $RANLIB $oldlib'
  11132. archive_cmds_CXX='tpldir=Template.dir~
  11133. rm -rf $tpldir~
  11134. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11135. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11136. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11137. rm -rf $tpldir~
  11138. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11139. $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'
  11140. ;;
  11141. *) # Version 6 and above use weak symbols
  11142. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11143. 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'
  11144. ;;
  11145. esac
  11146. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11147. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11148. 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'
  11149. ;;
  11150. cxx*)
  11151. # Compaq C++
  11152. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11153. 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'
  11154. runpath_var=LD_RUN_PATH
  11155. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11156. hardcode_libdir_separator_CXX=:
  11157. # Commands to make compiler produce verbose output that lists
  11158. # what "hidden" libraries, object files and flags are used when
  11159. # linking a shared library.
  11160. #
  11161. # There doesn't appear to be a way to prevent this compiler from
  11162. # explicitly linking system object files so we need to strip them
  11163. # from the output so that they don't get included in the library
  11164. # dependencies.
  11165. 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'
  11166. ;;
  11167. xl* | mpixl* | bgxl*)
  11168. # IBM XL 8.0 on PPC, with GNU ld
  11169. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11170. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11171. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11172. if test "x$supports_anon_versioning" = xyes; then
  11173. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11174. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11175. echo "local: *; };" >> $output_objdir/$libname.ver~
  11176. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11177. fi
  11178. ;;
  11179. *)
  11180. case `$CC -V 2>&1 | sed 5q` in
  11181. *Sun\ C*)
  11182. # Sun C++ 5.9
  11183. no_undefined_flag_CXX=' -zdefs'
  11184. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11185. 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'
  11186. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11187. 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'
  11188. compiler_needs_object_CXX=yes
  11189. # Not sure whether something based on
  11190. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11191. # would be better.
  11192. output_verbose_link_cmd='func_echo_all'
  11193. # Archives containing C++ object files must be created using
  11194. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11195. # necessary to make sure instantiated templates are included
  11196. # in the archive.
  11197. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11198. ;;
  11199. esac
  11200. ;;
  11201. esac
  11202. ;;
  11203. lynxos*)
  11204. # FIXME: insert proper C++ library support
  11205. ld_shlibs_CXX=no
  11206. ;;
  11207. m88k*)
  11208. # FIXME: insert proper C++ library support
  11209. ld_shlibs_CXX=no
  11210. ;;
  11211. mvs*)
  11212. case $cc_basename in
  11213. cxx*)
  11214. # FIXME: insert proper C++ library support
  11215. ld_shlibs_CXX=no
  11216. ;;
  11217. *)
  11218. # FIXME: insert proper C++ library support
  11219. ld_shlibs_CXX=no
  11220. ;;
  11221. esac
  11222. ;;
  11223. netbsd*)
  11224. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11225. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11226. wlarc=
  11227. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11228. hardcode_direct_CXX=yes
  11229. hardcode_shlibpath_var_CXX=no
  11230. fi
  11231. # Workaround some broken pre-1.5 toolchains
  11232. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11233. ;;
  11234. *nto* | *qnx*)
  11235. ld_shlibs_CXX=yes
  11236. ;;
  11237. openbsd2*)
  11238. # C++ shared libraries are fairly broken
  11239. ld_shlibs_CXX=no
  11240. ;;
  11241. openbsd*)
  11242. if test -f /usr/libexec/ld.so; then
  11243. hardcode_direct_CXX=yes
  11244. hardcode_shlibpath_var_CXX=no
  11245. hardcode_direct_absolute_CXX=yes
  11246. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11247. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11248. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11249. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11250. export_dynamic_flag_spec_CXX='${wl}-E'
  11251. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11252. fi
  11253. output_verbose_link_cmd=func_echo_all
  11254. else
  11255. ld_shlibs_CXX=no
  11256. fi
  11257. ;;
  11258. osf3* | osf4* | osf5*)
  11259. case $cc_basename in
  11260. KCC*)
  11261. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11262. # KCC will only create a shared library if the output file
  11263. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11264. # to its proper name (with version) after linking.
  11265. 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'
  11266. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11267. hardcode_libdir_separator_CXX=:
  11268. # Archives containing C++ object files must be created using
  11269. # the KAI C++ compiler.
  11270. case $host in
  11271. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11272. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11273. esac
  11274. ;;
  11275. RCC*)
  11276. # Rational C++ 2.4.1
  11277. # FIXME: insert proper C++ library support
  11278. ld_shlibs_CXX=no
  11279. ;;
  11280. cxx*)
  11281. case $host in
  11282. osf3*)
  11283. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11284. 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'
  11285. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11286. ;;
  11287. *)
  11288. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11289. 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'
  11290. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11291. echo "-hidden">> $lib.exp~
  11292. $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~
  11293. $RM $lib.exp'
  11294. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11295. ;;
  11296. esac
  11297. hardcode_libdir_separator_CXX=:
  11298. # Commands to make compiler produce verbose output that lists
  11299. # what "hidden" libraries, object files and flags are used when
  11300. # linking a shared library.
  11301. #
  11302. # There doesn't appear to be a way to prevent this compiler from
  11303. # explicitly linking system object files so we need to strip them
  11304. # from the output so that they don't get included in the library
  11305. # dependencies.
  11306. 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"'
  11307. ;;
  11308. *)
  11309. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11310. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11311. case $host in
  11312. osf3*)
  11313. 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'
  11314. ;;
  11315. *)
  11316. 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'
  11317. ;;
  11318. esac
  11319. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11320. hardcode_libdir_separator_CXX=:
  11321. # Commands to make compiler produce verbose output that lists
  11322. # what "hidden" libraries, object files and flags are used when
  11323. # linking a shared library.
  11324. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11325. else
  11326. # FIXME: insert proper C++ library support
  11327. ld_shlibs_CXX=no
  11328. fi
  11329. ;;
  11330. esac
  11331. ;;
  11332. psos*)
  11333. # FIXME: insert proper C++ library support
  11334. ld_shlibs_CXX=no
  11335. ;;
  11336. sunos4*)
  11337. case $cc_basename in
  11338. CC*)
  11339. # Sun C++ 4.x
  11340. # FIXME: insert proper C++ library support
  11341. ld_shlibs_CXX=no
  11342. ;;
  11343. lcc*)
  11344. # Lucid
  11345. # FIXME: insert proper C++ library support
  11346. ld_shlibs_CXX=no
  11347. ;;
  11348. *)
  11349. # FIXME: insert proper C++ library support
  11350. ld_shlibs_CXX=no
  11351. ;;
  11352. esac
  11353. ;;
  11354. solaris*)
  11355. case $cc_basename in
  11356. CC* | sunCC*)
  11357. # Sun C++ 4.2, 5.x and Centerline C++
  11358. archive_cmds_need_lc_CXX=yes
  11359. no_undefined_flag_CXX=' -zdefs'
  11360. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11361. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11362. $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'
  11363. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11364. hardcode_shlibpath_var_CXX=no
  11365. case $host_os in
  11366. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11367. *)
  11368. # The compiler driver will combine and reorder linker options,
  11369. # but understands `-z linker_flag'.
  11370. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11371. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11372. ;;
  11373. esac
  11374. link_all_deplibs_CXX=yes
  11375. output_verbose_link_cmd='func_echo_all'
  11376. # Archives containing C++ object files must be created using
  11377. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11378. # necessary to make sure instantiated templates are included
  11379. # in the archive.
  11380. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11381. ;;
  11382. gcx*)
  11383. # Green Hills C++ Compiler
  11384. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11385. # The C++ compiler must be used to create the archive.
  11386. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11387. ;;
  11388. *)
  11389. # GNU C++ compiler with Solaris linker
  11390. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11391. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11392. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11393. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11394. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11395. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11396. # Commands to make compiler produce verbose output that lists
  11397. # what "hidden" libraries, object files and flags are used when
  11398. # linking a shared library.
  11399. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11400. else
  11401. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11402. # platform.
  11403. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11404. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11405. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11406. # Commands to make compiler produce verbose output that lists
  11407. # what "hidden" libraries, object files and flags are used when
  11408. # linking a shared library.
  11409. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11410. fi
  11411. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11412. case $host_os in
  11413. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11414. *)
  11415. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11416. ;;
  11417. esac
  11418. fi
  11419. ;;
  11420. esac
  11421. ;;
  11422. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11423. no_undefined_flag_CXX='${wl}-z,text'
  11424. archive_cmds_need_lc_CXX=no
  11425. hardcode_shlibpath_var_CXX=no
  11426. runpath_var='LD_RUN_PATH'
  11427. case $cc_basename in
  11428. CC*)
  11429. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11430. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11431. ;;
  11432. *)
  11433. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11434. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11435. ;;
  11436. esac
  11437. ;;
  11438. sysv5* | sco3.2v5* | sco5v6*)
  11439. # Note: We can NOT use -z defs as we might desire, because we do not
  11440. # link with -lc, and that would cause any symbols used from libc to
  11441. # always be unresolved, which means just about no library would
  11442. # ever link correctly. If we're not using GNU ld we use -z text
  11443. # though, which does catch some bad symbols but isn't as heavy-handed
  11444. # as -z defs.
  11445. no_undefined_flag_CXX='${wl}-z,text'
  11446. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11447. archive_cmds_need_lc_CXX=no
  11448. hardcode_shlibpath_var_CXX=no
  11449. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11450. hardcode_libdir_separator_CXX=':'
  11451. link_all_deplibs_CXX=yes
  11452. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11453. runpath_var='LD_RUN_PATH'
  11454. case $cc_basename in
  11455. CC*)
  11456. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11457. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11458. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11459. '"$old_archive_cmds_CXX"
  11460. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11461. '"$reload_cmds_CXX"
  11462. ;;
  11463. *)
  11464. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11465. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11466. ;;
  11467. esac
  11468. ;;
  11469. tandem*)
  11470. case $cc_basename in
  11471. NCC*)
  11472. # NonStop-UX NCC 3.20
  11473. # FIXME: insert proper C++ library support
  11474. ld_shlibs_CXX=no
  11475. ;;
  11476. *)
  11477. # FIXME: insert proper C++ library support
  11478. ld_shlibs_CXX=no
  11479. ;;
  11480. esac
  11481. ;;
  11482. vxworks*)
  11483. # FIXME: insert proper C++ library support
  11484. ld_shlibs_CXX=no
  11485. ;;
  11486. *)
  11487. # FIXME: insert proper C++ library support
  11488. ld_shlibs_CXX=no
  11489. ;;
  11490. esac
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11492. $as_echo "$ld_shlibs_CXX" >&6; }
  11493. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11494. GCC_CXX="$GXX"
  11495. LD_CXX="$LD"
  11496. ## CAVEAT EMPTOR:
  11497. ## There is no encapsulation within the following macros, do not change
  11498. ## the running order or otherwise move them around unless you know exactly
  11499. ## what you are doing...
  11500. # Dependencies to place before and after the object being linked:
  11501. predep_objects_CXX=
  11502. postdep_objects_CXX=
  11503. predeps_CXX=
  11504. postdeps_CXX=
  11505. compiler_lib_search_path_CXX=
  11506. cat > conftest.$ac_ext <<_LT_EOF
  11507. class Foo
  11508. {
  11509. public:
  11510. Foo (void) { a = 0; }
  11511. private:
  11512. int a;
  11513. };
  11514. _LT_EOF
  11515. _lt_libdeps_save_CFLAGS=$CFLAGS
  11516. case "$CC $CFLAGS " in #(
  11517. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11518. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11519. esac
  11520. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11521. (eval $ac_compile) 2>&5
  11522. ac_status=$?
  11523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11524. test $ac_status = 0; }; then
  11525. # Parse the compiler output and extract the necessary
  11526. # objects, libraries and library flags.
  11527. # Sentinel used to keep track of whether or not we are before
  11528. # the conftest object file.
  11529. pre_test_object_deps_done=no
  11530. for p in `eval "$output_verbose_link_cmd"`; do
  11531. case ${prev}${p} in
  11532. -L* | -R* | -l*)
  11533. # Some compilers place space between "-{L,R}" and the path.
  11534. # Remove the space.
  11535. if test $p = "-L" ||
  11536. test $p = "-R"; then
  11537. prev=$p
  11538. continue
  11539. fi
  11540. # Expand the sysroot to ease extracting the directories later.
  11541. if test -z "$prev"; then
  11542. case $p in
  11543. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11544. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11545. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11546. esac
  11547. fi
  11548. case $p in
  11549. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11550. esac
  11551. if test "$pre_test_object_deps_done" = no; then
  11552. case ${prev} in
  11553. -L | -R)
  11554. # Internal compiler library paths should come after those
  11555. # provided the user. The postdeps already come after the
  11556. # user supplied libs so there is no need to process them.
  11557. if test -z "$compiler_lib_search_path_CXX"; then
  11558. compiler_lib_search_path_CXX="${prev}${p}"
  11559. else
  11560. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11561. fi
  11562. ;;
  11563. # The "-l" case would never come before the object being
  11564. # linked, so don't bother handling this case.
  11565. esac
  11566. else
  11567. if test -z "$postdeps_CXX"; then
  11568. postdeps_CXX="${prev}${p}"
  11569. else
  11570. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11571. fi
  11572. fi
  11573. prev=
  11574. ;;
  11575. *.lto.$objext) ;; # Ignore GCC LTO objects
  11576. *.$objext)
  11577. # This assumes that the test object file only shows up
  11578. # once in the compiler output.
  11579. if test "$p" = "conftest.$objext"; then
  11580. pre_test_object_deps_done=yes
  11581. continue
  11582. fi
  11583. if test "$pre_test_object_deps_done" = no; then
  11584. if test -z "$predep_objects_CXX"; then
  11585. predep_objects_CXX="$p"
  11586. else
  11587. predep_objects_CXX="$predep_objects_CXX $p"
  11588. fi
  11589. else
  11590. if test -z "$postdep_objects_CXX"; then
  11591. postdep_objects_CXX="$p"
  11592. else
  11593. postdep_objects_CXX="$postdep_objects_CXX $p"
  11594. fi
  11595. fi
  11596. ;;
  11597. *) ;; # Ignore the rest.
  11598. esac
  11599. done
  11600. # Clean up.
  11601. rm -f a.out a.exe
  11602. else
  11603. echo "libtool.m4: error: problem compiling CXX test program"
  11604. fi
  11605. $RM -f confest.$objext
  11606. CFLAGS=$_lt_libdeps_save_CFLAGS
  11607. # PORTME: override above test on systems where it is broken
  11608. case $host_os in
  11609. interix[3-9]*)
  11610. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11611. # hack all around it, let's just trust "g++" to DTRT.
  11612. predep_objects_CXX=
  11613. postdep_objects_CXX=
  11614. postdeps_CXX=
  11615. ;;
  11616. linux*)
  11617. case `$CC -V 2>&1 | sed 5q` in
  11618. *Sun\ C*)
  11619. # Sun C++ 5.9
  11620. # The more standards-conforming stlport4 library is
  11621. # incompatible with the Cstd library. Avoid specifying
  11622. # it if it's in CXXFLAGS. Ignore libCrun as
  11623. # -library=stlport4 depends on it.
  11624. case " $CXX $CXXFLAGS " in
  11625. *" -library=stlport4 "*)
  11626. solaris_use_stlport4=yes
  11627. ;;
  11628. esac
  11629. if test "$solaris_use_stlport4" != yes; then
  11630. postdeps_CXX='-library=Cstd -library=Crun'
  11631. fi
  11632. ;;
  11633. esac
  11634. ;;
  11635. solaris*)
  11636. case $cc_basename in
  11637. CC* | sunCC*)
  11638. # The more standards-conforming stlport4 library is
  11639. # incompatible with the Cstd library. Avoid specifying
  11640. # it if it's in CXXFLAGS. Ignore libCrun as
  11641. # -library=stlport4 depends on it.
  11642. case " $CXX $CXXFLAGS " in
  11643. *" -library=stlport4 "*)
  11644. solaris_use_stlport4=yes
  11645. ;;
  11646. esac
  11647. # Adding this requires a known-good setup of shared libraries for
  11648. # Sun compiler versions before 5.6, else PIC objects from an old
  11649. # archive will be linked into the output, leading to subtle bugs.
  11650. if test "$solaris_use_stlport4" != yes; then
  11651. postdeps_CXX='-library=Cstd -library=Crun'
  11652. fi
  11653. ;;
  11654. esac
  11655. ;;
  11656. esac
  11657. case " $postdeps_CXX " in
  11658. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11659. esac
  11660. compiler_lib_search_dirs_CXX=
  11661. if test -n "${compiler_lib_search_path_CXX}"; then
  11662. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11663. fi
  11664. lt_prog_compiler_wl_CXX=
  11665. lt_prog_compiler_pic_CXX=
  11666. lt_prog_compiler_static_CXX=
  11667. # C++ specific cases for pic, static, wl, etc.
  11668. if test "$GXX" = yes; then
  11669. lt_prog_compiler_wl_CXX='-Wl,'
  11670. lt_prog_compiler_static_CXX='-static'
  11671. case $host_os in
  11672. aix*)
  11673. # All AIX code is PIC.
  11674. if test "$host_cpu" = ia64; then
  11675. # AIX 5 now supports IA64 processor
  11676. lt_prog_compiler_static_CXX='-Bstatic'
  11677. fi
  11678. ;;
  11679. amigaos*)
  11680. case $host_cpu in
  11681. powerpc)
  11682. # see comment about AmigaOS4 .so support
  11683. lt_prog_compiler_pic_CXX='-fPIC'
  11684. ;;
  11685. m68k)
  11686. # FIXME: we need at least 68020 code to build shared libraries, but
  11687. # adding the `-m68020' flag to GCC prevents building anything better,
  11688. # like `-m68040'.
  11689. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11690. ;;
  11691. esac
  11692. ;;
  11693. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11694. # PIC is the default for these OSes.
  11695. ;;
  11696. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11697. # This hack is so that the source file can tell whether it is being
  11698. # built for inclusion in a dll (and should export symbols for example).
  11699. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11700. # (--disable-auto-import) libraries
  11701. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11702. ;;
  11703. darwin* | rhapsody*)
  11704. # PIC is the default on this platform
  11705. # Common symbols not allowed in MH_DYLIB files
  11706. lt_prog_compiler_pic_CXX='-fno-common'
  11707. ;;
  11708. *djgpp*)
  11709. # DJGPP does not support shared libraries at all
  11710. lt_prog_compiler_pic_CXX=
  11711. ;;
  11712. haiku*)
  11713. # PIC is the default for Haiku.
  11714. # The "-static" flag exists, but is broken.
  11715. lt_prog_compiler_static_CXX=
  11716. ;;
  11717. interix[3-9]*)
  11718. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11719. # Instead, we relocate shared libraries at runtime.
  11720. ;;
  11721. sysv4*MP*)
  11722. if test -d /usr/nec; then
  11723. lt_prog_compiler_pic_CXX=-Kconform_pic
  11724. fi
  11725. ;;
  11726. hpux*)
  11727. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11728. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11729. # sets the default TLS model and affects inlining.
  11730. case $host_cpu in
  11731. hppa*64*)
  11732. ;;
  11733. *)
  11734. lt_prog_compiler_pic_CXX='-fPIC'
  11735. ;;
  11736. esac
  11737. ;;
  11738. *qnx* | *nto*)
  11739. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11740. # it will coredump.
  11741. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11742. ;;
  11743. *)
  11744. lt_prog_compiler_pic_CXX='-fPIC'
  11745. ;;
  11746. esac
  11747. else
  11748. case $host_os in
  11749. aix[4-9]*)
  11750. # All AIX code is PIC.
  11751. if test "$host_cpu" = ia64; then
  11752. # AIX 5 now supports IA64 processor
  11753. lt_prog_compiler_static_CXX='-Bstatic'
  11754. else
  11755. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11756. fi
  11757. ;;
  11758. chorus*)
  11759. case $cc_basename in
  11760. cxch68*)
  11761. # Green Hills C++ Compiler
  11762. # _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"
  11763. ;;
  11764. esac
  11765. ;;
  11766. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11767. # This hack is so that the source file can tell whether it is being
  11768. # built for inclusion in a dll (and should export symbols for example).
  11769. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11770. ;;
  11771. dgux*)
  11772. case $cc_basename in
  11773. ec++*)
  11774. lt_prog_compiler_pic_CXX='-KPIC'
  11775. ;;
  11776. ghcx*)
  11777. # Green Hills C++ Compiler
  11778. lt_prog_compiler_pic_CXX='-pic'
  11779. ;;
  11780. *)
  11781. ;;
  11782. esac
  11783. ;;
  11784. freebsd* | dragonfly*)
  11785. # FreeBSD uses GNU C++
  11786. ;;
  11787. hpux9* | hpux10* | hpux11*)
  11788. case $cc_basename in
  11789. CC*)
  11790. lt_prog_compiler_wl_CXX='-Wl,'
  11791. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11792. if test "$host_cpu" != ia64; then
  11793. lt_prog_compiler_pic_CXX='+Z'
  11794. fi
  11795. ;;
  11796. aCC*)
  11797. lt_prog_compiler_wl_CXX='-Wl,'
  11798. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11799. case $host_cpu in
  11800. hppa*64*|ia64*)
  11801. # +Z the default
  11802. ;;
  11803. *)
  11804. lt_prog_compiler_pic_CXX='+Z'
  11805. ;;
  11806. esac
  11807. ;;
  11808. *)
  11809. ;;
  11810. esac
  11811. ;;
  11812. interix*)
  11813. # This is c89, which is MS Visual C++ (no shared libs)
  11814. # Anyone wants to do a port?
  11815. ;;
  11816. irix5* | irix6* | nonstopux*)
  11817. case $cc_basename in
  11818. CC*)
  11819. lt_prog_compiler_wl_CXX='-Wl,'
  11820. lt_prog_compiler_static_CXX='-non_shared'
  11821. # CC pic flag -KPIC is the default.
  11822. ;;
  11823. *)
  11824. ;;
  11825. esac
  11826. ;;
  11827. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11828. case $cc_basename in
  11829. KCC*)
  11830. # KAI C++ Compiler
  11831. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11832. lt_prog_compiler_pic_CXX='-fPIC'
  11833. ;;
  11834. ecpc* )
  11835. # old Intel C++ for x86_64 which still supported -KPIC.
  11836. lt_prog_compiler_wl_CXX='-Wl,'
  11837. lt_prog_compiler_pic_CXX='-KPIC'
  11838. lt_prog_compiler_static_CXX='-static'
  11839. ;;
  11840. icpc* )
  11841. # Intel C++, used to be incompatible with GCC.
  11842. # ICC 10 doesn't accept -KPIC any more.
  11843. lt_prog_compiler_wl_CXX='-Wl,'
  11844. lt_prog_compiler_pic_CXX='-fPIC'
  11845. lt_prog_compiler_static_CXX='-static'
  11846. ;;
  11847. pgCC* | pgcpp*)
  11848. # Portland Group C++ compiler
  11849. lt_prog_compiler_wl_CXX='-Wl,'
  11850. lt_prog_compiler_pic_CXX='-fpic'
  11851. lt_prog_compiler_static_CXX='-Bstatic'
  11852. ;;
  11853. cxx*)
  11854. # Compaq C++
  11855. # Make sure the PIC flag is empty. It appears that all Alpha
  11856. # Linux and Compaq Tru64 Unix objects are PIC.
  11857. lt_prog_compiler_pic_CXX=
  11858. lt_prog_compiler_static_CXX='-non_shared'
  11859. ;;
  11860. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11861. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11862. lt_prog_compiler_wl_CXX='-Wl,'
  11863. lt_prog_compiler_pic_CXX='-qpic'
  11864. lt_prog_compiler_static_CXX='-qstaticlink'
  11865. ;;
  11866. *)
  11867. case `$CC -V 2>&1 | sed 5q` in
  11868. *Sun\ C*)
  11869. # Sun C++ 5.9
  11870. lt_prog_compiler_pic_CXX='-KPIC'
  11871. lt_prog_compiler_static_CXX='-Bstatic'
  11872. lt_prog_compiler_wl_CXX='-Qoption ld '
  11873. ;;
  11874. esac
  11875. ;;
  11876. esac
  11877. ;;
  11878. lynxos*)
  11879. ;;
  11880. m88k*)
  11881. ;;
  11882. mvs*)
  11883. case $cc_basename in
  11884. cxx*)
  11885. lt_prog_compiler_pic_CXX='-W c,exportall'
  11886. ;;
  11887. *)
  11888. ;;
  11889. esac
  11890. ;;
  11891. netbsd* | netbsdelf*-gnu)
  11892. ;;
  11893. *qnx* | *nto*)
  11894. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11895. # it will coredump.
  11896. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11897. ;;
  11898. osf3* | osf4* | osf5*)
  11899. case $cc_basename in
  11900. KCC*)
  11901. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11902. ;;
  11903. RCC*)
  11904. # Rational C++ 2.4.1
  11905. lt_prog_compiler_pic_CXX='-pic'
  11906. ;;
  11907. cxx*)
  11908. # Digital/Compaq C++
  11909. lt_prog_compiler_wl_CXX='-Wl,'
  11910. # Make sure the PIC flag is empty. It appears that all Alpha
  11911. # Linux and Compaq Tru64 Unix objects are PIC.
  11912. lt_prog_compiler_pic_CXX=
  11913. lt_prog_compiler_static_CXX='-non_shared'
  11914. ;;
  11915. *)
  11916. ;;
  11917. esac
  11918. ;;
  11919. psos*)
  11920. ;;
  11921. solaris*)
  11922. case $cc_basename in
  11923. CC* | sunCC*)
  11924. # Sun C++ 4.2, 5.x and Centerline C++
  11925. lt_prog_compiler_pic_CXX='-KPIC'
  11926. lt_prog_compiler_static_CXX='-Bstatic'
  11927. lt_prog_compiler_wl_CXX='-Qoption ld '
  11928. ;;
  11929. gcx*)
  11930. # Green Hills C++ Compiler
  11931. lt_prog_compiler_pic_CXX='-PIC'
  11932. ;;
  11933. *)
  11934. ;;
  11935. esac
  11936. ;;
  11937. sunos4*)
  11938. case $cc_basename in
  11939. CC*)
  11940. # Sun C++ 4.x
  11941. lt_prog_compiler_pic_CXX='-pic'
  11942. lt_prog_compiler_static_CXX='-Bstatic'
  11943. ;;
  11944. lcc*)
  11945. # Lucid
  11946. lt_prog_compiler_pic_CXX='-pic'
  11947. ;;
  11948. *)
  11949. ;;
  11950. esac
  11951. ;;
  11952. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11953. case $cc_basename in
  11954. CC*)
  11955. lt_prog_compiler_wl_CXX='-Wl,'
  11956. lt_prog_compiler_pic_CXX='-KPIC'
  11957. lt_prog_compiler_static_CXX='-Bstatic'
  11958. ;;
  11959. esac
  11960. ;;
  11961. tandem*)
  11962. case $cc_basename in
  11963. NCC*)
  11964. # NonStop-UX NCC 3.20
  11965. lt_prog_compiler_pic_CXX='-KPIC'
  11966. ;;
  11967. *)
  11968. ;;
  11969. esac
  11970. ;;
  11971. vxworks*)
  11972. ;;
  11973. *)
  11974. lt_prog_compiler_can_build_shared_CXX=no
  11975. ;;
  11976. esac
  11977. fi
  11978. case $host_os in
  11979. # For platforms which do not support PIC, -DPIC is meaningless:
  11980. *djgpp*)
  11981. lt_prog_compiler_pic_CXX=
  11982. ;;
  11983. *)
  11984. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11985. ;;
  11986. esac
  11987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11988. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11989. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11990. $as_echo_n "(cached) " >&6
  11991. else
  11992. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11993. fi
  11994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11995. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11996. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11997. #
  11998. # Check to make sure the PIC flag actually works.
  11999. #
  12000. if test -n "$lt_prog_compiler_pic_CXX"; then
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12002. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12003. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12004. $as_echo_n "(cached) " >&6
  12005. else
  12006. lt_cv_prog_compiler_pic_works_CXX=no
  12007. ac_outfile=conftest.$ac_objext
  12008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12009. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12010. # Insert the option either (1) after the last *FLAGS variable, or
  12011. # (2) before a word containing "conftest.", or (3) at the end.
  12012. # Note that $ac_compile itself does not contain backslashes and begins
  12013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12014. # The option is referenced via a variable to avoid confusing sed.
  12015. lt_compile=`echo "$ac_compile" | $SED \
  12016. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12017. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12018. -e 's:$: $lt_compiler_flag:'`
  12019. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12020. (eval "$lt_compile" 2>conftest.err)
  12021. ac_status=$?
  12022. cat conftest.err >&5
  12023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12024. if (exit $ac_status) && test -s "$ac_outfile"; then
  12025. # The compiler can only warn and ignore the option if not recognized
  12026. # So say no if there are warnings other than the usual output.
  12027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12028. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12029. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12030. lt_cv_prog_compiler_pic_works_CXX=yes
  12031. fi
  12032. fi
  12033. $RM conftest*
  12034. fi
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12036. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12037. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12038. case $lt_prog_compiler_pic_CXX in
  12039. "" | " "*) ;;
  12040. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12041. esac
  12042. else
  12043. lt_prog_compiler_pic_CXX=
  12044. lt_prog_compiler_can_build_shared_CXX=no
  12045. fi
  12046. fi
  12047. #
  12048. # Check to make sure the static flag actually works.
  12049. #
  12050. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12052. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12053. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12054. $as_echo_n "(cached) " >&6
  12055. else
  12056. lt_cv_prog_compiler_static_works_CXX=no
  12057. save_LDFLAGS="$LDFLAGS"
  12058. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12059. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12060. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12061. # The linker can only warn and ignore the option if not recognized
  12062. # So say no if there are warnings
  12063. if test -s conftest.err; then
  12064. # Append any errors to the config.log.
  12065. cat conftest.err 1>&5
  12066. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12067. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12068. if diff conftest.exp conftest.er2 >/dev/null; then
  12069. lt_cv_prog_compiler_static_works_CXX=yes
  12070. fi
  12071. else
  12072. lt_cv_prog_compiler_static_works_CXX=yes
  12073. fi
  12074. fi
  12075. $RM -r conftest*
  12076. LDFLAGS="$save_LDFLAGS"
  12077. fi
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12079. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12080. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12081. :
  12082. else
  12083. lt_prog_compiler_static_CXX=
  12084. fi
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12086. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12087. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12088. $as_echo_n "(cached) " >&6
  12089. else
  12090. lt_cv_prog_compiler_c_o_CXX=no
  12091. $RM -r conftest 2>/dev/null
  12092. mkdir conftest
  12093. cd conftest
  12094. mkdir out
  12095. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12096. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12097. # Insert the option either (1) after the last *FLAGS variable, or
  12098. # (2) before a word containing "conftest.", or (3) at the end.
  12099. # Note that $ac_compile itself does not contain backslashes and begins
  12100. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12101. lt_compile=`echo "$ac_compile" | $SED \
  12102. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12103. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12104. -e 's:$: $lt_compiler_flag:'`
  12105. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12106. (eval "$lt_compile" 2>out/conftest.err)
  12107. ac_status=$?
  12108. cat out/conftest.err >&5
  12109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12110. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12111. then
  12112. # The compiler can only warn and ignore the option if not recognized
  12113. # So say no if there are warnings
  12114. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12115. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12116. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12117. lt_cv_prog_compiler_c_o_CXX=yes
  12118. fi
  12119. fi
  12120. chmod u+w . 2>&5
  12121. $RM conftest*
  12122. # SGI C++ compiler will create directory out/ii_files/ for
  12123. # template instantiation
  12124. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12125. $RM out/* && rmdir out
  12126. cd ..
  12127. $RM -r conftest
  12128. $RM conftest*
  12129. fi
  12130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12131. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12133. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12134. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12135. $as_echo_n "(cached) " >&6
  12136. else
  12137. lt_cv_prog_compiler_c_o_CXX=no
  12138. $RM -r conftest 2>/dev/null
  12139. mkdir conftest
  12140. cd conftest
  12141. mkdir out
  12142. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12143. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12144. # Insert the option either (1) after the last *FLAGS variable, or
  12145. # (2) before a word containing "conftest.", or (3) at the end.
  12146. # Note that $ac_compile itself does not contain backslashes and begins
  12147. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12148. lt_compile=`echo "$ac_compile" | $SED \
  12149. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12150. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12151. -e 's:$: $lt_compiler_flag:'`
  12152. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12153. (eval "$lt_compile" 2>out/conftest.err)
  12154. ac_status=$?
  12155. cat out/conftest.err >&5
  12156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12157. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12158. then
  12159. # The compiler can only warn and ignore the option if not recognized
  12160. # So say no if there are warnings
  12161. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12162. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12163. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12164. lt_cv_prog_compiler_c_o_CXX=yes
  12165. fi
  12166. fi
  12167. chmod u+w . 2>&5
  12168. $RM conftest*
  12169. # SGI C++ compiler will create directory out/ii_files/ for
  12170. # template instantiation
  12171. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12172. $RM out/* && rmdir out
  12173. cd ..
  12174. $RM -r conftest
  12175. $RM conftest*
  12176. fi
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12178. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12179. hard_links="nottested"
  12180. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12181. # do not overwrite the value of need_locks provided by the user
  12182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12183. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12184. hard_links=yes
  12185. $RM conftest*
  12186. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12187. touch conftest.a
  12188. ln conftest.a conftest.b 2>&5 || hard_links=no
  12189. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12191. $as_echo "$hard_links" >&6; }
  12192. if test "$hard_links" = no; then
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12194. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12195. need_locks=warn
  12196. fi
  12197. else
  12198. need_locks=no
  12199. fi
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12201. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12202. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12203. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12204. case $host_os in
  12205. aix[4-9]*)
  12206. # If we're using GNU nm, then we don't want the "-C" option.
  12207. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12208. # Also, AIX nm treats weak defined symbols like other global defined
  12209. # symbols, whereas GNU nm marks them as "W".
  12210. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12211. 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'
  12212. else
  12213. 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'
  12214. fi
  12215. ;;
  12216. pw32*)
  12217. export_symbols_cmds_CXX="$ltdll_cmds"
  12218. ;;
  12219. cygwin* | mingw* | cegcc*)
  12220. case $cc_basename in
  12221. cl*) ;;
  12222. *)
  12223. 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'
  12224. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12225. ;;
  12226. esac
  12227. ;;
  12228. linux* | k*bsd*-gnu | gnu*)
  12229. link_all_deplibs_CXX=no
  12230. ;;
  12231. *)
  12232. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12233. ;;
  12234. esac
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12236. $as_echo "$ld_shlibs_CXX" >&6; }
  12237. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12238. with_gnu_ld_CXX=$with_gnu_ld
  12239. #
  12240. # Do we need to explicitly link libc?
  12241. #
  12242. case "x$archive_cmds_need_lc_CXX" in
  12243. x|xyes)
  12244. # Assume -lc should be added
  12245. archive_cmds_need_lc_CXX=yes
  12246. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12247. case $archive_cmds_CXX in
  12248. *'~'*)
  12249. # FIXME: we may have to deal with multi-command sequences.
  12250. ;;
  12251. '$CC '*)
  12252. # Test whether the compiler implicitly links with -lc since on some
  12253. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12254. # to ld, don't add -lc before -lgcc.
  12255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12256. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12257. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12258. $as_echo_n "(cached) " >&6
  12259. else
  12260. $RM conftest*
  12261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12262. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12263. (eval $ac_compile) 2>&5
  12264. ac_status=$?
  12265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12266. test $ac_status = 0; } 2>conftest.err; then
  12267. soname=conftest
  12268. lib=conftest
  12269. libobjs=conftest.$ac_objext
  12270. deplibs=
  12271. wl=$lt_prog_compiler_wl_CXX
  12272. pic_flag=$lt_prog_compiler_pic_CXX
  12273. compiler_flags=-v
  12274. linker_flags=-v
  12275. verstring=
  12276. output_objdir=.
  12277. libname=conftest
  12278. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12279. allow_undefined_flag_CXX=
  12280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12281. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12282. ac_status=$?
  12283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12284. test $ac_status = 0; }
  12285. then
  12286. lt_cv_archive_cmds_need_lc_CXX=no
  12287. else
  12288. lt_cv_archive_cmds_need_lc_CXX=yes
  12289. fi
  12290. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12291. else
  12292. cat conftest.err 1>&5
  12293. fi
  12294. $RM conftest*
  12295. fi
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12297. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12298. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12299. ;;
  12300. esac
  12301. fi
  12302. ;;
  12303. esac
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12305. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12306. library_names_spec=
  12307. libname_spec='lib$name'
  12308. soname_spec=
  12309. shrext_cmds=".so"
  12310. postinstall_cmds=
  12311. postuninstall_cmds=
  12312. finish_cmds=
  12313. finish_eval=
  12314. shlibpath_var=
  12315. shlibpath_overrides_runpath=unknown
  12316. version_type=none
  12317. dynamic_linker="$host_os ld.so"
  12318. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12319. need_lib_prefix=unknown
  12320. hardcode_into_libs=no
  12321. # when you set need_version to no, make sure it does not cause -set_version
  12322. # flags to be left without arguments
  12323. need_version=unknown
  12324. case $host_os in
  12325. aix3*)
  12326. version_type=linux
  12327. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12328. shlibpath_var=LIBPATH
  12329. # AIX 3 has no versioning support, so we append a major version to the name.
  12330. soname_spec='${libname}${release}${shared_ext}$major'
  12331. ;;
  12332. aix[4-9]*)
  12333. version_type=linux
  12334. need_lib_prefix=no
  12335. need_version=no
  12336. hardcode_into_libs=yes
  12337. if test "$host_cpu" = ia64; then
  12338. # AIX 5 supports IA64
  12339. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12340. shlibpath_var=LD_LIBRARY_PATH
  12341. else
  12342. # With GCC up to 2.95.x, collect2 would create an import file
  12343. # for dependence libraries. The import file would start with
  12344. # the line `#! .'. This would cause the generated library to
  12345. # depend on `.', always an invalid library. This was fixed in
  12346. # development snapshots of GCC prior to 3.0.
  12347. case $host_os in
  12348. aix4 | aix4.[01] | aix4.[01].*)
  12349. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12350. echo ' yes '
  12351. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12352. :
  12353. else
  12354. can_build_shared=no
  12355. fi
  12356. ;;
  12357. esac
  12358. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12359. # soname into executable. Probably we can add versioning support to
  12360. # collect2, so additional links can be useful in future.
  12361. if test "$aix_use_runtimelinking" = yes; then
  12362. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12363. # instead of lib<name>.a to let people know that these are not
  12364. # typical AIX shared libraries.
  12365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12366. else
  12367. # We preserve .a as extension for shared libraries through AIX4.2
  12368. # and later when we are not doing run time linking.
  12369. library_names_spec='${libname}${release}.a $libname.a'
  12370. soname_spec='${libname}${release}${shared_ext}$major'
  12371. fi
  12372. shlibpath_var=LIBPATH
  12373. fi
  12374. ;;
  12375. amigaos*)
  12376. case $host_cpu in
  12377. powerpc)
  12378. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12379. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12381. ;;
  12382. m68k)
  12383. library_names_spec='$libname.ixlibrary $libname.a'
  12384. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12385. 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'
  12386. ;;
  12387. esac
  12388. ;;
  12389. beos*)
  12390. library_names_spec='${libname}${shared_ext}'
  12391. dynamic_linker="$host_os ld.so"
  12392. shlibpath_var=LIBRARY_PATH
  12393. ;;
  12394. bsdi[45]*)
  12395. version_type=linux
  12396. need_version=no
  12397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12398. soname_spec='${libname}${release}${shared_ext}$major'
  12399. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12400. shlibpath_var=LD_LIBRARY_PATH
  12401. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12402. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12403. # the default ld.so.conf also contains /usr/contrib/lib and
  12404. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12405. # libtool to hard-code these into programs
  12406. ;;
  12407. cygwin* | mingw* | pw32* | cegcc*)
  12408. version_type=windows
  12409. shrext_cmds=".dll"
  12410. need_version=no
  12411. need_lib_prefix=no
  12412. case $GCC,$cc_basename in
  12413. yes,*)
  12414. # gcc
  12415. library_names_spec='$libname.dll.a'
  12416. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12417. postinstall_cmds='base_file=`basename \${file}`~
  12418. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12419. dldir=$destdir/`dirname \$dlpath`~
  12420. test -d \$dldir || mkdir -p \$dldir~
  12421. $install_prog $dir/$dlname \$dldir/$dlname~
  12422. chmod a+x \$dldir/$dlname~
  12423. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12424. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12425. fi'
  12426. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12427. dlpath=$dir/\$dldll~
  12428. $RM \$dlpath'
  12429. shlibpath_overrides_runpath=yes
  12430. case $host_os in
  12431. cygwin*)
  12432. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12433. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12434. ;;
  12435. mingw* | cegcc*)
  12436. # MinGW DLLs use traditional 'lib' prefix
  12437. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12438. ;;
  12439. pw32*)
  12440. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12441. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12442. ;;
  12443. esac
  12444. dynamic_linker='Win32 ld.exe'
  12445. ;;
  12446. *,cl*)
  12447. # Native MSVC
  12448. libname_spec='$name'
  12449. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12450. library_names_spec='${libname}.dll.lib'
  12451. case $build_os in
  12452. mingw*)
  12453. sys_lib_search_path_spec=
  12454. lt_save_ifs=$IFS
  12455. IFS=';'
  12456. for lt_path in $LIB
  12457. do
  12458. IFS=$lt_save_ifs
  12459. # Let DOS variable expansion print the short 8.3 style file name.
  12460. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12461. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12462. done
  12463. IFS=$lt_save_ifs
  12464. # Convert to MSYS style.
  12465. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12466. ;;
  12467. cygwin*)
  12468. # Convert to unix form, then to dos form, then back to unix form
  12469. # but this time dos style (no spaces!) so that the unix form looks
  12470. # like /cygdrive/c/PROGRA~1:/cygdr...
  12471. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12472. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12473. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12474. ;;
  12475. *)
  12476. sys_lib_search_path_spec="$LIB"
  12477. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12478. # It is most probably a Windows format PATH.
  12479. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12480. else
  12481. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12482. fi
  12483. # FIXME: find the short name or the path components, as spaces are
  12484. # common. (e.g. "Program Files" -> "PROGRA~1")
  12485. ;;
  12486. esac
  12487. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12488. postinstall_cmds='base_file=`basename \${file}`~
  12489. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12490. dldir=$destdir/`dirname \$dlpath`~
  12491. test -d \$dldir || mkdir -p \$dldir~
  12492. $install_prog $dir/$dlname \$dldir/$dlname'
  12493. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12494. dlpath=$dir/\$dldll~
  12495. $RM \$dlpath'
  12496. shlibpath_overrides_runpath=yes
  12497. dynamic_linker='Win32 link.exe'
  12498. ;;
  12499. *)
  12500. # Assume MSVC wrapper
  12501. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12502. dynamic_linker='Win32 ld.exe'
  12503. ;;
  12504. esac
  12505. # FIXME: first we should search . and the directory the executable is in
  12506. shlibpath_var=PATH
  12507. ;;
  12508. darwin* | rhapsody*)
  12509. dynamic_linker="$host_os dyld"
  12510. version_type=darwin
  12511. need_lib_prefix=no
  12512. need_version=no
  12513. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12514. soname_spec='${libname}${release}${major}$shared_ext'
  12515. shlibpath_overrides_runpath=yes
  12516. shlibpath_var=DYLD_LIBRARY_PATH
  12517. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12518. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12519. ;;
  12520. dgux*)
  12521. version_type=linux
  12522. need_lib_prefix=no
  12523. need_version=no
  12524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12525. soname_spec='${libname}${release}${shared_ext}$major'
  12526. shlibpath_var=LD_LIBRARY_PATH
  12527. ;;
  12528. freebsd1*)
  12529. dynamic_linker=no
  12530. ;;
  12531. freebsd* | dragonfly*)
  12532. # DragonFly does not have aout. When/if they implement a new
  12533. # versioning mechanism, adjust this.
  12534. if test -x /usr/bin/objformat; then
  12535. objformat=`/usr/bin/objformat`
  12536. else
  12537. case $host_os in
  12538. freebsd[123]*) objformat=aout ;;
  12539. *) objformat=elf ;;
  12540. esac
  12541. fi
  12542. version_type=freebsd-$objformat
  12543. case $version_type in
  12544. freebsd-elf*)
  12545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12546. need_version=no
  12547. need_lib_prefix=no
  12548. ;;
  12549. freebsd-*)
  12550. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12551. need_version=yes
  12552. ;;
  12553. esac
  12554. shlibpath_var=LD_LIBRARY_PATH
  12555. case $host_os in
  12556. freebsd2*)
  12557. shlibpath_overrides_runpath=yes
  12558. ;;
  12559. freebsd3.[01]* | freebsdelf3.[01]*)
  12560. shlibpath_overrides_runpath=yes
  12561. hardcode_into_libs=yes
  12562. ;;
  12563. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12564. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12565. shlibpath_overrides_runpath=no
  12566. hardcode_into_libs=yes
  12567. ;;
  12568. *) # from 4.6 on, and DragonFly
  12569. shlibpath_overrides_runpath=yes
  12570. hardcode_into_libs=yes
  12571. ;;
  12572. esac
  12573. ;;
  12574. gnu*)
  12575. version_type=linux
  12576. need_lib_prefix=no
  12577. need_version=no
  12578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12579. soname_spec='${libname}${release}${shared_ext}$major'
  12580. shlibpath_var=LD_LIBRARY_PATH
  12581. shlibpath_overrides_runpath=no
  12582. hardcode_into_libs=yes
  12583. ;;
  12584. haiku*)
  12585. version_type=linux
  12586. need_lib_prefix=no
  12587. need_version=no
  12588. dynamic_linker="$host_os runtime_loader"
  12589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12590. soname_spec='${libname}${release}${shared_ext}$major'
  12591. shlibpath_var=LIBRARY_PATH
  12592. shlibpath_overrides_runpath=yes
  12593. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12594. hardcode_into_libs=yes
  12595. ;;
  12596. hpux9* | hpux10* | hpux11*)
  12597. # Give a soname corresponding to the major version so that dld.sl refuses to
  12598. # link against other versions.
  12599. version_type=sunos
  12600. need_lib_prefix=no
  12601. need_version=no
  12602. case $host_cpu in
  12603. ia64*)
  12604. shrext_cmds='.so'
  12605. hardcode_into_libs=yes
  12606. dynamic_linker="$host_os dld.so"
  12607. shlibpath_var=LD_LIBRARY_PATH
  12608. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12610. soname_spec='${libname}${release}${shared_ext}$major'
  12611. if test "X$HPUX_IA64_MODE" = X32; then
  12612. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12613. else
  12614. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12615. fi
  12616. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12617. ;;
  12618. hppa*64*)
  12619. shrext_cmds='.sl'
  12620. hardcode_into_libs=yes
  12621. dynamic_linker="$host_os dld.sl"
  12622. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12623. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12625. soname_spec='${libname}${release}${shared_ext}$major'
  12626. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12627. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12628. ;;
  12629. *)
  12630. shrext_cmds='.sl'
  12631. dynamic_linker="$host_os dld.sl"
  12632. shlibpath_var=SHLIB_PATH
  12633. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12635. soname_spec='${libname}${release}${shared_ext}$major'
  12636. ;;
  12637. esac
  12638. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12639. postinstall_cmds='chmod 555 $lib'
  12640. # or fails outright, so override atomically:
  12641. install_override_mode=555
  12642. ;;
  12643. interix[3-9]*)
  12644. version_type=linux
  12645. need_lib_prefix=no
  12646. need_version=no
  12647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12648. soname_spec='${libname}${release}${shared_ext}$major'
  12649. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12650. shlibpath_var=LD_LIBRARY_PATH
  12651. shlibpath_overrides_runpath=no
  12652. hardcode_into_libs=yes
  12653. ;;
  12654. irix5* | irix6* | nonstopux*)
  12655. case $host_os in
  12656. nonstopux*) version_type=nonstopux ;;
  12657. *)
  12658. if test "$lt_cv_prog_gnu_ld" = yes; then
  12659. version_type=linux
  12660. else
  12661. version_type=irix
  12662. fi ;;
  12663. esac
  12664. need_lib_prefix=no
  12665. need_version=no
  12666. soname_spec='${libname}${release}${shared_ext}$major'
  12667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12668. case $host_os in
  12669. irix5* | nonstopux*)
  12670. libsuff= shlibsuff=
  12671. ;;
  12672. *)
  12673. case $LD in # libtool.m4 will add one of these switches to LD
  12674. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12675. libsuff= shlibsuff= libmagic=32-bit;;
  12676. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12677. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12678. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12679. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12680. *) libsuff= shlibsuff= libmagic=never-match;;
  12681. esac
  12682. ;;
  12683. esac
  12684. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12685. shlibpath_overrides_runpath=no
  12686. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12687. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12688. hardcode_into_libs=yes
  12689. ;;
  12690. # No shared lib support for Linux oldld, aout, or coff.
  12691. linux*oldld* | linux*aout* | linux*coff*)
  12692. dynamic_linker=no
  12693. ;;
  12694. # This must be Linux ELF.
  12695. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12696. version_type=linux
  12697. need_lib_prefix=no
  12698. need_version=no
  12699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12700. soname_spec='${libname}${release}${shared_ext}$major'
  12701. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12702. shlibpath_var=LD_LIBRARY_PATH
  12703. shlibpath_overrides_runpath=no
  12704. # Some binutils ld are patched to set DT_RUNPATH
  12705. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12706. $as_echo_n "(cached) " >&6
  12707. else
  12708. lt_cv_shlibpath_overrides_runpath=no
  12709. save_LDFLAGS=$LDFLAGS
  12710. save_libdir=$libdir
  12711. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12712. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12714. /* end confdefs.h. */
  12715. int
  12716. main ()
  12717. {
  12718. ;
  12719. return 0;
  12720. }
  12721. _ACEOF
  12722. if ac_fn_cxx_try_link "$LINENO"; then :
  12723. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12724. lt_cv_shlibpath_overrides_runpath=yes
  12725. fi
  12726. fi
  12727. rm -f core conftest.err conftest.$ac_objext \
  12728. conftest$ac_exeext conftest.$ac_ext
  12729. LDFLAGS=$save_LDFLAGS
  12730. libdir=$save_libdir
  12731. fi
  12732. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12733. # This implies no fast_install, which is unacceptable.
  12734. # Some rework will be needed to allow for fast_install
  12735. # before this can be enabled.
  12736. hardcode_into_libs=yes
  12737. # Append ld.so.conf contents to the search path
  12738. if test -f /etc/ld.so.conf; then
  12739. 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' ' '`
  12740. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12741. fi
  12742. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12743. # powerpc, because MkLinux only supported shared libraries with the
  12744. # GNU dynamic linker. Since this was broken with cross compilers,
  12745. # most powerpc-linux boxes support dynamic linking these days and
  12746. # people can always --disable-shared, the test was removed, and we
  12747. # assume the GNU/Linux dynamic linker is in use.
  12748. dynamic_linker='GNU/Linux ld.so'
  12749. ;;
  12750. netbsdelf*-gnu)
  12751. version_type=linux
  12752. need_lib_prefix=no
  12753. need_version=no
  12754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12755. soname_spec='${libname}${release}${shared_ext}$major'
  12756. shlibpath_var=LD_LIBRARY_PATH
  12757. shlibpath_overrides_runpath=no
  12758. hardcode_into_libs=yes
  12759. dynamic_linker='NetBSD ld.elf_so'
  12760. ;;
  12761. netbsd*)
  12762. version_type=sunos
  12763. need_lib_prefix=no
  12764. need_version=no
  12765. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12767. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12768. dynamic_linker='NetBSD (a.out) ld.so'
  12769. else
  12770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12771. soname_spec='${libname}${release}${shared_ext}$major'
  12772. dynamic_linker='NetBSD ld.elf_so'
  12773. fi
  12774. shlibpath_var=LD_LIBRARY_PATH
  12775. shlibpath_overrides_runpath=yes
  12776. hardcode_into_libs=yes
  12777. ;;
  12778. newsos6)
  12779. version_type=linux
  12780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12781. shlibpath_var=LD_LIBRARY_PATH
  12782. shlibpath_overrides_runpath=yes
  12783. ;;
  12784. *nto* | *qnx*)
  12785. version_type=qnx
  12786. need_lib_prefix=no
  12787. need_version=no
  12788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12789. soname_spec='${libname}${release}${shared_ext}$major'
  12790. shlibpath_var=LD_LIBRARY_PATH
  12791. shlibpath_overrides_runpath=no
  12792. hardcode_into_libs=yes
  12793. dynamic_linker='ldqnx.so'
  12794. ;;
  12795. openbsd*)
  12796. version_type=sunos
  12797. sys_lib_dlsearch_path_spec="/usr/lib"
  12798. need_lib_prefix=no
  12799. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12800. case $host_os in
  12801. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12802. *) need_version=no ;;
  12803. esac
  12804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12805. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12806. shlibpath_var=LD_LIBRARY_PATH
  12807. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12808. case $host_os in
  12809. openbsd2.[89] | openbsd2.[89].*)
  12810. shlibpath_overrides_runpath=no
  12811. ;;
  12812. *)
  12813. shlibpath_overrides_runpath=yes
  12814. ;;
  12815. esac
  12816. else
  12817. shlibpath_overrides_runpath=yes
  12818. fi
  12819. ;;
  12820. os2*)
  12821. libname_spec='$name'
  12822. shrext_cmds=".dll"
  12823. need_lib_prefix=no
  12824. library_names_spec='$libname${shared_ext} $libname.a'
  12825. dynamic_linker='OS/2 ld.exe'
  12826. shlibpath_var=LIBPATH
  12827. ;;
  12828. osf3* | osf4* | osf5*)
  12829. version_type=osf
  12830. need_lib_prefix=no
  12831. need_version=no
  12832. soname_spec='${libname}${release}${shared_ext}$major'
  12833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12834. shlibpath_var=LD_LIBRARY_PATH
  12835. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12836. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12837. ;;
  12838. rdos*)
  12839. dynamic_linker=no
  12840. ;;
  12841. solaris*)
  12842. version_type=linux
  12843. need_lib_prefix=no
  12844. need_version=no
  12845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12846. soname_spec='${libname}${release}${shared_ext}$major'
  12847. shlibpath_var=LD_LIBRARY_PATH
  12848. shlibpath_overrides_runpath=yes
  12849. hardcode_into_libs=yes
  12850. # ldd complains unless libraries are executable
  12851. postinstall_cmds='chmod +x $lib'
  12852. ;;
  12853. sunos4*)
  12854. version_type=sunos
  12855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12856. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12857. shlibpath_var=LD_LIBRARY_PATH
  12858. shlibpath_overrides_runpath=yes
  12859. if test "$with_gnu_ld" = yes; then
  12860. need_lib_prefix=no
  12861. fi
  12862. need_version=yes
  12863. ;;
  12864. sysv4 | sysv4.3*)
  12865. version_type=linux
  12866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12867. soname_spec='${libname}${release}${shared_ext}$major'
  12868. shlibpath_var=LD_LIBRARY_PATH
  12869. case $host_vendor in
  12870. sni)
  12871. shlibpath_overrides_runpath=no
  12872. need_lib_prefix=no
  12873. runpath_var=LD_RUN_PATH
  12874. ;;
  12875. siemens)
  12876. need_lib_prefix=no
  12877. ;;
  12878. motorola)
  12879. need_lib_prefix=no
  12880. need_version=no
  12881. shlibpath_overrides_runpath=no
  12882. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12883. ;;
  12884. esac
  12885. ;;
  12886. sysv4*MP*)
  12887. if test -d /usr/nec ;then
  12888. version_type=linux
  12889. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12890. soname_spec='$libname${shared_ext}.$major'
  12891. shlibpath_var=LD_LIBRARY_PATH
  12892. fi
  12893. ;;
  12894. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12895. version_type=freebsd-elf
  12896. need_lib_prefix=no
  12897. need_version=no
  12898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12899. soname_spec='${libname}${release}${shared_ext}$major'
  12900. shlibpath_var=LD_LIBRARY_PATH
  12901. shlibpath_overrides_runpath=yes
  12902. hardcode_into_libs=yes
  12903. if test "$with_gnu_ld" = yes; then
  12904. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12905. else
  12906. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12907. case $host_os in
  12908. sco3.2v5*)
  12909. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12910. ;;
  12911. esac
  12912. fi
  12913. sys_lib_dlsearch_path_spec='/usr/lib'
  12914. ;;
  12915. tpf*)
  12916. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12917. version_type=linux
  12918. need_lib_prefix=no
  12919. need_version=no
  12920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12921. shlibpath_var=LD_LIBRARY_PATH
  12922. shlibpath_overrides_runpath=no
  12923. hardcode_into_libs=yes
  12924. ;;
  12925. uts4*)
  12926. version_type=linux
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12928. soname_spec='${libname}${release}${shared_ext}$major'
  12929. shlibpath_var=LD_LIBRARY_PATH
  12930. ;;
  12931. *)
  12932. dynamic_linker=no
  12933. ;;
  12934. esac
  12935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12936. $as_echo "$dynamic_linker" >&6; }
  12937. test "$dynamic_linker" = no && can_build_shared=no
  12938. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12939. if test "$GCC" = yes; then
  12940. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12941. fi
  12942. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12943. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12944. fi
  12945. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12946. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12947. fi
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12949. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12950. hardcode_action_CXX=
  12951. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12952. test -n "$runpath_var_CXX" ||
  12953. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12954. # We can hardcode non-existent directories.
  12955. if test "$hardcode_direct_CXX" != no &&
  12956. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12957. # have to relink, otherwise we might link with an installed library
  12958. # when we should be linking with a yet-to-be-installed one
  12959. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12960. test "$hardcode_minus_L_CXX" != no; then
  12961. # Linking always hardcodes the temporary library directory.
  12962. hardcode_action_CXX=relink
  12963. else
  12964. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12965. hardcode_action_CXX=immediate
  12966. fi
  12967. else
  12968. # We cannot hardcode anything, or else we can only hardcode existing
  12969. # directories.
  12970. hardcode_action_CXX=unsupported
  12971. fi
  12972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12973. $as_echo "$hardcode_action_CXX" >&6; }
  12974. if test "$hardcode_action_CXX" = relink ||
  12975. test "$inherit_rpath_CXX" = yes; then
  12976. # Fast installation is not supported
  12977. enable_fast_install=no
  12978. elif test "$shlibpath_overrides_runpath" = yes ||
  12979. test "$enable_shared" = no; then
  12980. # Fast installation is not necessary
  12981. enable_fast_install=needless
  12982. fi
  12983. fi # test -n "$compiler"
  12984. CC=$lt_save_CC
  12985. CFLAGS=$lt_save_CFLAGS
  12986. LDCXX=$LD
  12987. LD=$lt_save_LD
  12988. GCC=$lt_save_GCC
  12989. with_gnu_ld=$lt_save_with_gnu_ld
  12990. lt_cv_path_LDCXX=$lt_cv_path_LD
  12991. lt_cv_path_LD=$lt_save_path_LD
  12992. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12993. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12994. fi # test "$_lt_caught_CXX_error" != yes
  12995. ac_ext=cpp
  12996. ac_cpp='$CXXCPP $CPPFLAGS'
  12997. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12998. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12999. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13000. ac_config_commands="$ac_config_commands libtool"
  13001. # Only expand once:
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  13003. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  13004. if ${ax_cv_cxx_compiler_vendor+:} false; then :
  13005. $as_echo_n "(cached) " >&6
  13006. else
  13007. ax_cv_cxx_compiler_vendor=unknown
  13008. # note: don't check for gcc first since some other compilers define __GNUC__
  13009. 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
  13010. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  13011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13012. /* end confdefs.h. */
  13013. int
  13014. main ()
  13015. {
  13016. #if !($vencpp)
  13017. thisisanerror;
  13018. #endif
  13019. ;
  13020. return 0;
  13021. }
  13022. _ACEOF
  13023. if ac_fn_cxx_try_compile "$LINENO"; then :
  13024. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  13025. fi
  13026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13027. done
  13028. fi
  13029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  13030. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  13031. # Use silent rules if supported.
  13032. # Check whether --enable-silent-rules was given.
  13033. if test "${enable_silent_rules+set}" = set; then :
  13034. enableval=$enable_silent_rules;
  13035. fi
  13036. case $enable_silent_rules in
  13037. yes) AM_DEFAULT_VERBOSITY=0;;
  13038. no) AM_DEFAULT_VERBOSITY=1;;
  13039. *) AM_DEFAULT_VERBOSITY=0;;
  13040. esac
  13041. AM_BACKSLASH='\'
  13042. # Check whether --enable-debug was given.
  13043. if test "${enable_debug+set}" = set; then :
  13044. enableval=$enable_debug; if test x$enableval = xyes ; then
  13045. enable_debug="yes"
  13046. else
  13047. enable_debug="no"
  13048. fi
  13049. else
  13050. enable_debug="yes"
  13051. fi
  13052. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13053. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  13054. fi
  13055. # For gcc and compatible compilers, enable compilation warnings, but
  13056. # selectively disable some because too many are generated.
  13057. if test "x$GXX" = "xyes" ; then
  13058. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith -Wno-unknown-pragmas"
  13059. fi
  13060. # extra clang parameters
  13061. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  13062. CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-cast-align"
  13063. fi
  13064. # extra Intel icc parameters
  13065. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  13066. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  13067. fi
  13068. # Check for Boost libraries
  13069. # Check whether --with-boost was given.
  13070. if test "${with_boost+set}" = set; then :
  13071. withval=$with_boost;
  13072. if test "$withval" = "no"; then
  13073. want_boost="no"
  13074. elif test "$withval" = "yes"; then
  13075. want_boost="yes"
  13076. ac_boost_path=""
  13077. else
  13078. want_boost="yes"
  13079. ac_boost_path="$withval"
  13080. fi
  13081. else
  13082. want_boost="yes"
  13083. fi
  13084. # Check whether --with-boost-libdir was given.
  13085. if test "${with_boost_libdir+set}" = set; then :
  13086. withval=$with_boost_libdir;
  13087. if test -d "$withval"
  13088. then
  13089. ac_boost_lib_path="$withval"
  13090. else
  13091. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  13092. fi
  13093. else
  13094. ac_boost_lib_path=""
  13095. fi
  13096. if test "x$want_boost" = "xyes"; then
  13097. boost_lib_version_req=1.36
  13098. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13099. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13100. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13101. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13102. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13103. boost_lib_version_req_sub_minor="0"
  13104. fi
  13105. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  13107. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13108. succeeded=no
  13109. libsubdirs="lib"
  13110. ax_arch=`uname -m`
  13111. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  13112. libsubdirs="lib64 lib lib64"
  13113. fi
  13114. if test "$ac_boost_path" != ""; then
  13115. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13116. for ac_boost_path_tmp in $libsubdirs; do
  13117. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  13118. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  13119. break
  13120. fi
  13121. done
  13122. elif test "$cross_compiling" != yes; then
  13123. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13124. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13125. for libsubdir in $libsubdirs ; do
  13126. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13127. done
  13128. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  13129. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13130. break;
  13131. fi
  13132. done
  13133. fi
  13134. if test "$ac_boost_lib_path" != ""; then
  13135. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13136. fi
  13137. CPPFLAGS_SAVED="$CPPFLAGS"
  13138. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13139. export CPPFLAGS
  13140. LDFLAGS_SAVED="$LDFLAGS"
  13141. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13142. export LDFLAGS
  13143. ac_ext=cpp
  13144. ac_cpp='$CXXCPP $CPPFLAGS'
  13145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13149. /* end confdefs.h. */
  13150. #include <boost/version.hpp>
  13151. int
  13152. main ()
  13153. {
  13154. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13155. // Everything is okay
  13156. #else
  13157. # error Boost version is too old
  13158. #endif
  13159. ;
  13160. return 0;
  13161. }
  13162. _ACEOF
  13163. if ac_fn_cxx_try_compile "$LINENO"; then :
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13165. $as_echo "yes" >&6; }
  13166. succeeded=yes
  13167. found_system=yes
  13168. fi
  13169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13170. ac_ext=cpp
  13171. ac_cpp='$CXXCPP $CPPFLAGS'
  13172. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13173. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13174. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13175. if test "x$succeeded" != "xyes"; then
  13176. _version=0
  13177. if test "$ac_boost_path" != ""; then
  13178. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13179. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13180. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13181. V_CHECK=`expr $_version_tmp \> $_version`
  13182. if test "$V_CHECK" = "1" ; then
  13183. _version=$_version_tmp
  13184. fi
  13185. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13186. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13187. done
  13188. fi
  13189. else
  13190. if test "$cross_compiling" != yes; then
  13191. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13192. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13193. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13194. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13195. V_CHECK=`expr $_version_tmp \> $_version`
  13196. if test "$V_CHECK" = "1" ; then
  13197. _version=$_version_tmp
  13198. best_path=$ac_boost_path
  13199. fi
  13200. done
  13201. fi
  13202. done
  13203. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13204. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13205. if test "$ac_boost_lib_path" = ""; then
  13206. for libsubdir in $libsubdirs ; do
  13207. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13208. done
  13209. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  13210. fi
  13211. fi
  13212. if test "x$BOOST_ROOT" != "x"; then
  13213. for libsubdir in $libsubdirs ; do
  13214. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13215. done
  13216. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  13217. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13218. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13219. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13220. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13221. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13222. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  13223. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13224. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13225. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  13226. fi
  13227. fi
  13228. fi
  13229. fi
  13230. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13231. export CPPFLAGS
  13232. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13233. export LDFLAGS
  13234. ac_ext=cpp
  13235. ac_cpp='$CXXCPP $CPPFLAGS'
  13236. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13237. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13238. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13240. /* end confdefs.h. */
  13241. #include <boost/version.hpp>
  13242. int
  13243. main ()
  13244. {
  13245. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13246. // Everything is okay
  13247. #else
  13248. # error Boost version is too old
  13249. #endif
  13250. ;
  13251. return 0;
  13252. }
  13253. _ACEOF
  13254. if ac_fn_cxx_try_compile "$LINENO"; then :
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13256. $as_echo "yes" >&6; }
  13257. succeeded=yes
  13258. found_system=yes
  13259. fi
  13260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13261. ac_ext=cpp
  13262. ac_cpp='$CXXCPP $CPPFLAGS'
  13263. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13264. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13265. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13266. fi
  13267. if test "$succeeded" != "yes" ; then
  13268. if test "$_version" = "0" ; then
  13269. { $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
  13270. $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;}
  13271. else
  13272. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  13273. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13274. fi
  13275. # execute ACTION-IF-NOT-FOUND (if present):
  13276. :
  13277. else
  13278. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  13279. # execute ACTION-IF-FOUND (if present):
  13280. :
  13281. fi
  13282. CPPFLAGS="$CPPFLAGS_SAVED"
  13283. LDFLAGS="$LDFLAGS_SAVED"
  13284. fi
  13285. # Check whether --with-boost-system was given.
  13286. if test "${with_boost_system+set}" = set; then :
  13287. withval=$with_boost_system;
  13288. if test "$withval" = "no"; then
  13289. want_boost="no"
  13290. elif test "$withval" = "yes"; then
  13291. want_boost="yes"
  13292. ax_boost_user_system_lib=""
  13293. else
  13294. want_boost="yes"
  13295. ax_boost_user_system_lib="$withval"
  13296. fi
  13297. else
  13298. want_boost="yes"
  13299. fi
  13300. if test "x$want_boost" = "xyes"; then
  13301. CPPFLAGS_SAVED="$CPPFLAGS"
  13302. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13303. export CPPFLAGS
  13304. LDFLAGS_SAVED="$LDFLAGS"
  13305. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13306. export LDFLAGS
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  13308. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13309. if ${ax_cv_boost_system+:} false; then :
  13310. $as_echo_n "(cached) " >&6
  13311. else
  13312. ac_ext=cpp
  13313. ac_cpp='$CXXCPP $CPPFLAGS'
  13314. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13315. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13316. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13317. CXXFLAGS_SAVE=$CXXFLAGS
  13318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13319. /* end confdefs.h. */
  13320. #include <boost/system/error_code.hpp>
  13321. int
  13322. main ()
  13323. {
  13324. boost::system::system_category
  13325. ;
  13326. return 0;
  13327. }
  13328. _ACEOF
  13329. if ac_fn_cxx_try_compile "$LINENO"; then :
  13330. ax_cv_boost_system=yes
  13331. else
  13332. ax_cv_boost_system=no
  13333. fi
  13334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13335. CXXFLAGS=$CXXFLAGS_SAVE
  13336. ac_ext=cpp
  13337. ac_cpp='$CXXCPP $CPPFLAGS'
  13338. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13339. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13340. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13341. fi
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  13343. $as_echo "$ax_cv_boost_system" >&6; }
  13344. if test "x$ax_cv_boost_system" = "xyes"; then
  13345. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  13346. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13347. LDFLAGS_SAVE=$LDFLAGS
  13348. if test "x$ax_boost_user_system_lib" = "x"; then
  13349. 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
  13350. ax_lib=${libextension}
  13351. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13353. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13354. if eval \${$as_ac_Lib+:} false; then :
  13355. $as_echo_n "(cached) " >&6
  13356. else
  13357. ac_check_lib_save_LIBS=$LIBS
  13358. LIBS="-l$ax_lib $LIBS"
  13359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13360. /* end confdefs.h. */
  13361. /* Override any GCC internal prototype to avoid an error.
  13362. Use char because int might match the return type of a GCC
  13363. builtin and then its argument prototype would still apply. */
  13364. #ifdef __cplusplus
  13365. extern "C"
  13366. #endif
  13367. char exit ();
  13368. int
  13369. main ()
  13370. {
  13371. return exit ();
  13372. ;
  13373. return 0;
  13374. }
  13375. _ACEOF
  13376. if ac_fn_cxx_try_link "$LINENO"; then :
  13377. eval "$as_ac_Lib=yes"
  13378. else
  13379. eval "$as_ac_Lib=no"
  13380. fi
  13381. rm -f core conftest.err conftest.$ac_objext \
  13382. conftest$ac_exeext conftest.$ac_ext
  13383. LIBS=$ac_check_lib_save_LIBS
  13384. fi
  13385. eval ac_res=\$$as_ac_Lib
  13386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13387. $as_echo "$ac_res" >&6; }
  13388. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13389. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13390. else
  13391. link_system="no"
  13392. fi
  13393. done
  13394. if test "x$link_system" != "xyes"; then
  13395. 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
  13396. ax_lib=${libextension}
  13397. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13399. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13400. if eval \${$as_ac_Lib+:} false; then :
  13401. $as_echo_n "(cached) " >&6
  13402. else
  13403. ac_check_lib_save_LIBS=$LIBS
  13404. LIBS="-l$ax_lib $LIBS"
  13405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13406. /* end confdefs.h. */
  13407. /* Override any GCC internal prototype to avoid an error.
  13408. Use char because int might match the return type of a GCC
  13409. builtin and then its argument prototype would still apply. */
  13410. #ifdef __cplusplus
  13411. extern "C"
  13412. #endif
  13413. char exit ();
  13414. int
  13415. main ()
  13416. {
  13417. return exit ();
  13418. ;
  13419. return 0;
  13420. }
  13421. _ACEOF
  13422. if ac_fn_cxx_try_link "$LINENO"; then :
  13423. eval "$as_ac_Lib=yes"
  13424. else
  13425. eval "$as_ac_Lib=no"
  13426. fi
  13427. rm -f core conftest.err conftest.$ac_objext \
  13428. conftest$ac_exeext conftest.$ac_ext
  13429. LIBS=$ac_check_lib_save_LIBS
  13430. fi
  13431. eval ac_res=\$$as_ac_Lib
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13433. $as_echo "$ac_res" >&6; }
  13434. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13435. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13436. else
  13437. link_system="no"
  13438. fi
  13439. done
  13440. fi
  13441. else
  13442. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13443. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13445. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13446. if eval \${$as_ac_Lib+:} false; then :
  13447. $as_echo_n "(cached) " >&6
  13448. else
  13449. ac_check_lib_save_LIBS=$LIBS
  13450. LIBS="-l$ax_lib $LIBS"
  13451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13452. /* end confdefs.h. */
  13453. /* Override any GCC internal prototype to avoid an error.
  13454. Use char because int might match the return type of a GCC
  13455. builtin and then its argument prototype would still apply. */
  13456. #ifdef __cplusplus
  13457. extern "C"
  13458. #endif
  13459. char exit ();
  13460. int
  13461. main ()
  13462. {
  13463. return exit ();
  13464. ;
  13465. return 0;
  13466. }
  13467. _ACEOF
  13468. if ac_fn_cxx_try_link "$LINENO"; then :
  13469. eval "$as_ac_Lib=yes"
  13470. else
  13471. eval "$as_ac_Lib=no"
  13472. fi
  13473. rm -f core conftest.err conftest.$ac_objext \
  13474. conftest$ac_exeext conftest.$ac_ext
  13475. LIBS=$ac_check_lib_save_LIBS
  13476. fi
  13477. eval ac_res=\$$as_ac_Lib
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13479. $as_echo "$ac_res" >&6; }
  13480. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13481. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13482. else
  13483. link_system="no"
  13484. fi
  13485. done
  13486. fi
  13487. if test "x$ax_lib" = "x"; then
  13488. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13489. fi
  13490. if test "x$link_system" = "xno"; then
  13491. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13492. fi
  13493. fi
  13494. CPPFLAGS="$CPPFLAGS_SAVED"
  13495. LDFLAGS="$LDFLAGS_SAVED"
  13496. fi
  13497. # Check whether --with-boost-filesystem was given.
  13498. if test "${with_boost_filesystem+set}" = set; then :
  13499. withval=$with_boost_filesystem;
  13500. if test "$withval" = "no"; then
  13501. want_boost="no"
  13502. elif test "$withval" = "yes"; then
  13503. want_boost="yes"
  13504. ax_boost_user_filesystem_lib=""
  13505. else
  13506. want_boost="yes"
  13507. ax_boost_user_filesystem_lib="$withval"
  13508. fi
  13509. else
  13510. want_boost="yes"
  13511. fi
  13512. if test "x$want_boost" = "xyes"; then
  13513. CPPFLAGS_SAVED="$CPPFLAGS"
  13514. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13515. export CPPFLAGS
  13516. LDFLAGS_SAVED="$LDFLAGS"
  13517. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13518. export LDFLAGS
  13519. LIBS_SAVED=$LIBS
  13520. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  13521. export LIBS
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  13523. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13524. if ${ax_cv_boost_filesystem+:} false; then :
  13525. $as_echo_n "(cached) " >&6
  13526. else
  13527. ac_ext=cpp
  13528. ac_cpp='$CXXCPP $CPPFLAGS'
  13529. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13530. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13531. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13533. /* end confdefs.h. */
  13534. #include <boost/filesystem/path.hpp>
  13535. int
  13536. main ()
  13537. {
  13538. using namespace boost::filesystem;
  13539. path my_path( "foo/bar/data.txt" );
  13540. return 0;
  13541. ;
  13542. return 0;
  13543. }
  13544. _ACEOF
  13545. if ac_fn_cxx_try_compile "$LINENO"; then :
  13546. ax_cv_boost_filesystem=yes
  13547. else
  13548. ax_cv_boost_filesystem=no
  13549. fi
  13550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13551. ac_ext=cpp
  13552. ac_cpp='$CXXCPP $CPPFLAGS'
  13553. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13554. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13555. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13556. fi
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  13558. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13559. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13560. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  13561. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13562. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13563. 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
  13564. ax_lib=${libextension}
  13565. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13567. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13568. if eval \${$as_ac_Lib+:} false; then :
  13569. $as_echo_n "(cached) " >&6
  13570. else
  13571. ac_check_lib_save_LIBS=$LIBS
  13572. LIBS="-l$ax_lib $LIBS"
  13573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13574. /* end confdefs.h. */
  13575. /* Override any GCC internal prototype to avoid an error.
  13576. Use char because int might match the return type of a GCC
  13577. builtin and then its argument prototype would still apply. */
  13578. #ifdef __cplusplus
  13579. extern "C"
  13580. #endif
  13581. char exit ();
  13582. int
  13583. main ()
  13584. {
  13585. return exit ();
  13586. ;
  13587. return 0;
  13588. }
  13589. _ACEOF
  13590. if ac_fn_cxx_try_link "$LINENO"; then :
  13591. eval "$as_ac_Lib=yes"
  13592. else
  13593. eval "$as_ac_Lib=no"
  13594. fi
  13595. rm -f core conftest.err conftest.$ac_objext \
  13596. conftest$ac_exeext conftest.$ac_ext
  13597. LIBS=$ac_check_lib_save_LIBS
  13598. fi
  13599. eval ac_res=\$$as_ac_Lib
  13600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13601. $as_echo "$ac_res" >&6; }
  13602. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13603. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13604. else
  13605. link_filesystem="no"
  13606. fi
  13607. done
  13608. if test "x$link_program_options" != "xyes"; then
  13609. 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
  13610. ax_lib=${libextension}
  13611. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13613. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13614. if eval \${$as_ac_Lib+:} false; then :
  13615. $as_echo_n "(cached) " >&6
  13616. else
  13617. ac_check_lib_save_LIBS=$LIBS
  13618. LIBS="-l$ax_lib $LIBS"
  13619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13620. /* end confdefs.h. */
  13621. /* Override any GCC internal prototype to avoid an error.
  13622. Use char because int might match the return type of a GCC
  13623. builtin and then its argument prototype would still apply. */
  13624. #ifdef __cplusplus
  13625. extern "C"
  13626. #endif
  13627. char exit ();
  13628. int
  13629. main ()
  13630. {
  13631. return exit ();
  13632. ;
  13633. return 0;
  13634. }
  13635. _ACEOF
  13636. if ac_fn_cxx_try_link "$LINENO"; then :
  13637. eval "$as_ac_Lib=yes"
  13638. else
  13639. eval "$as_ac_Lib=no"
  13640. fi
  13641. rm -f core conftest.err conftest.$ac_objext \
  13642. conftest$ac_exeext conftest.$ac_ext
  13643. LIBS=$ac_check_lib_save_LIBS
  13644. fi
  13645. eval ac_res=\$$as_ac_Lib
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13647. $as_echo "$ac_res" >&6; }
  13648. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13649. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13650. else
  13651. link_filesystem="no"
  13652. fi
  13653. done
  13654. fi
  13655. else
  13656. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13657. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13659. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13660. if eval \${$as_ac_Lib+:} false; then :
  13661. $as_echo_n "(cached) " >&6
  13662. else
  13663. ac_check_lib_save_LIBS=$LIBS
  13664. LIBS="-l$ax_lib $LIBS"
  13665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13666. /* end confdefs.h. */
  13667. /* Override any GCC internal prototype to avoid an error.
  13668. Use char because int might match the return type of a GCC
  13669. builtin and then its argument prototype would still apply. */
  13670. #ifdef __cplusplus
  13671. extern "C"
  13672. #endif
  13673. char exit ();
  13674. int
  13675. main ()
  13676. {
  13677. return exit ();
  13678. ;
  13679. return 0;
  13680. }
  13681. _ACEOF
  13682. if ac_fn_cxx_try_link "$LINENO"; then :
  13683. eval "$as_ac_Lib=yes"
  13684. else
  13685. eval "$as_ac_Lib=no"
  13686. fi
  13687. rm -f core conftest.err conftest.$ac_objext \
  13688. conftest$ac_exeext conftest.$ac_ext
  13689. LIBS=$ac_check_lib_save_LIBS
  13690. fi
  13691. eval ac_res=\$$as_ac_Lib
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13693. $as_echo "$ac_res" >&6; }
  13694. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13695. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13696. else
  13697. link_filesystem="no"
  13698. fi
  13699. done
  13700. fi
  13701. if test "x$ax_lib" = "x"; then
  13702. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13703. fi
  13704. if test "x$link_filesystem" != "xyes"; then
  13705. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13706. fi
  13707. fi
  13708. CPPFLAGS="$CPPFLAGS_SAVED"
  13709. LDFLAGS="$LDFLAGS_SAVED"
  13710. LIBS="$LIBS_SAVED"
  13711. fi
  13712. # Check whether --with-boost-thread was given.
  13713. if test "${with_boost_thread+set}" = set; then :
  13714. withval=$with_boost_thread;
  13715. if test "$withval" = "no"; then
  13716. want_boost="no"
  13717. elif test "$withval" = "yes"; then
  13718. want_boost="yes"
  13719. ax_boost_user_thread_lib=""
  13720. else
  13721. want_boost="yes"
  13722. ax_boost_user_thread_lib="$withval"
  13723. fi
  13724. else
  13725. want_boost="yes"
  13726. fi
  13727. if test "x$want_boost" = "xyes"; then
  13728. CPPFLAGS_SAVED="$CPPFLAGS"
  13729. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13730. export CPPFLAGS
  13731. LDFLAGS_SAVED="$LDFLAGS"
  13732. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13733. export LDFLAGS
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13735. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13736. if ${ax_cv_boost_thread+:} false; then :
  13737. $as_echo_n "(cached) " >&6
  13738. else
  13739. ac_ext=cpp
  13740. ac_cpp='$CXXCPP $CPPFLAGS'
  13741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13744. CXXFLAGS_SAVE=$CXXFLAGS
  13745. if test "x$build_os" = "xsolaris" ; then
  13746. CXXFLAGS="-pthreads $CXXFLAGS"
  13747. elif test "x$build_os" = "xming32" ; then
  13748. CXXFLAGS="-mthreads $CXXFLAGS"
  13749. else
  13750. CXXFLAGS="-pthread $CXXFLAGS"
  13751. fi
  13752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13753. /* end confdefs.h. */
  13754. #include <boost/thread/thread.hpp>
  13755. int
  13756. main ()
  13757. {
  13758. boost::thread_group thrds;
  13759. return 0;
  13760. ;
  13761. return 0;
  13762. }
  13763. _ACEOF
  13764. if ac_fn_cxx_try_compile "$LINENO"; then :
  13765. ax_cv_boost_thread=yes
  13766. else
  13767. ax_cv_boost_thread=no
  13768. fi
  13769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13770. CXXFLAGS=$CXXFLAGS_SAVE
  13771. ac_ext=cpp
  13772. ac_cpp='$CXXCPP $CPPFLAGS'
  13773. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13774. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13775. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13776. fi
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13778. $as_echo "$ax_cv_boost_thread" >&6; }
  13779. if test "x$ax_cv_boost_thread" = "xyes"; then
  13780. if test "x$build_os" = "xsolaris" ; then
  13781. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13782. elif test "x$build_os" = "xming32" ; then
  13783. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13784. else
  13785. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13786. fi
  13787. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13788. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13789. LDFLAGS_SAVE=$LDFLAGS
  13790. case "x$build_os" in
  13791. *bsd* )
  13792. LDFLAGS="-pthread $LDFLAGS"
  13793. break;
  13794. ;;
  13795. esac
  13796. if test "x$ax_boost_user_thread_lib" = "x"; then
  13797. 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
  13798. ax_lib=${libextension}
  13799. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13801. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13802. if eval \${$as_ac_Lib+:} false; then :
  13803. $as_echo_n "(cached) " >&6
  13804. else
  13805. ac_check_lib_save_LIBS=$LIBS
  13806. LIBS="-l$ax_lib $LIBS"
  13807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13808. /* end confdefs.h. */
  13809. /* Override any GCC internal prototype to avoid an error.
  13810. Use char because int might match the return type of a GCC
  13811. builtin and then its argument prototype would still apply. */
  13812. #ifdef __cplusplus
  13813. extern "C"
  13814. #endif
  13815. char exit ();
  13816. int
  13817. main ()
  13818. {
  13819. return exit ();
  13820. ;
  13821. return 0;
  13822. }
  13823. _ACEOF
  13824. if ac_fn_cxx_try_link "$LINENO"; then :
  13825. eval "$as_ac_Lib=yes"
  13826. else
  13827. eval "$as_ac_Lib=no"
  13828. fi
  13829. rm -f core conftest.err conftest.$ac_objext \
  13830. conftest$ac_exeext conftest.$ac_ext
  13831. LIBS=$ac_check_lib_save_LIBS
  13832. fi
  13833. eval ac_res=\$$as_ac_Lib
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13835. $as_echo "$ac_res" >&6; }
  13836. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13837. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13838. else
  13839. link_thread="no"
  13840. fi
  13841. done
  13842. if test "x$link_thread" != "xyes"; then
  13843. 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
  13844. ax_lib=${libextension}
  13845. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13847. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13848. if eval \${$as_ac_Lib+:} false; then :
  13849. $as_echo_n "(cached) " >&6
  13850. else
  13851. ac_check_lib_save_LIBS=$LIBS
  13852. LIBS="-l$ax_lib $LIBS"
  13853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. /* Override any GCC internal prototype to avoid an error.
  13856. Use char because int might match the return type of a GCC
  13857. builtin and then its argument prototype would still apply. */
  13858. #ifdef __cplusplus
  13859. extern "C"
  13860. #endif
  13861. char exit ();
  13862. int
  13863. main ()
  13864. {
  13865. return exit ();
  13866. ;
  13867. return 0;
  13868. }
  13869. _ACEOF
  13870. if ac_fn_cxx_try_link "$LINENO"; then :
  13871. eval "$as_ac_Lib=yes"
  13872. else
  13873. eval "$as_ac_Lib=no"
  13874. fi
  13875. rm -f core conftest.err conftest.$ac_objext \
  13876. conftest$ac_exeext conftest.$ac_ext
  13877. LIBS=$ac_check_lib_save_LIBS
  13878. fi
  13879. eval ac_res=\$$as_ac_Lib
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13881. $as_echo "$ac_res" >&6; }
  13882. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13883. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13884. else
  13885. link_thread="no"
  13886. fi
  13887. done
  13888. fi
  13889. else
  13890. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13891. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13893. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13894. if eval \${$as_ac_Lib+:} false; then :
  13895. $as_echo_n "(cached) " >&6
  13896. else
  13897. ac_check_lib_save_LIBS=$LIBS
  13898. LIBS="-l$ax_lib $LIBS"
  13899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13900. /* end confdefs.h. */
  13901. /* Override any GCC internal prototype to avoid an error.
  13902. Use char because int might match the return type of a GCC
  13903. builtin and then its argument prototype would still apply. */
  13904. #ifdef __cplusplus
  13905. extern "C"
  13906. #endif
  13907. char exit ();
  13908. int
  13909. main ()
  13910. {
  13911. return exit ();
  13912. ;
  13913. return 0;
  13914. }
  13915. _ACEOF
  13916. if ac_fn_cxx_try_link "$LINENO"; then :
  13917. eval "$as_ac_Lib=yes"
  13918. else
  13919. eval "$as_ac_Lib=no"
  13920. fi
  13921. rm -f core conftest.err conftest.$ac_objext \
  13922. conftest$ac_exeext conftest.$ac_ext
  13923. LIBS=$ac_check_lib_save_LIBS
  13924. fi
  13925. eval ac_res=\$$as_ac_Lib
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13927. $as_echo "$ac_res" >&6; }
  13928. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13929. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13930. else
  13931. link_thread="no"
  13932. fi
  13933. done
  13934. fi
  13935. if test "x$ax_lib" = "x"; then
  13936. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13937. fi
  13938. if test "x$link_thread" = "xno"; then
  13939. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13940. else
  13941. case "x$build_os" in
  13942. *bsd* )
  13943. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13944. break;
  13945. ;;
  13946. esac
  13947. fi
  13948. fi
  13949. CPPFLAGS="$CPPFLAGS_SAVED"
  13950. LDFLAGS="$LDFLAGS_SAVED"
  13951. fi
  13952. # Check whether --with-boost-iostreams was given.
  13953. if test "${with_boost_iostreams+set}" = set; then :
  13954. withval=$with_boost_iostreams;
  13955. if test "$withval" = "no"; then
  13956. want_boost="no"
  13957. elif test "$withval" = "yes"; then
  13958. want_boost="yes"
  13959. ax_boost_user_iostreams_lib=""
  13960. else
  13961. want_boost="yes"
  13962. ax_boost_user_iostreams_lib="$withval"
  13963. fi
  13964. else
  13965. want_boost="yes"
  13966. fi
  13967. if test "x$want_boost" = "xyes"; then
  13968. CPPFLAGS_SAVED="$CPPFLAGS"
  13969. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13970. export CPPFLAGS
  13971. LDFLAGS_SAVED="$LDFLAGS"
  13972. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13973. export LDFLAGS
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13975. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13976. if ${ax_cv_boost_iostreams+:} false; then :
  13977. $as_echo_n "(cached) " >&6
  13978. else
  13979. ac_ext=cpp
  13980. ac_cpp='$CXXCPP $CPPFLAGS'
  13981. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13982. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13983. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13985. /* end confdefs.h. */
  13986. #include <boost/iostreams/filtering_stream.hpp>
  13987. #include <boost/range/iterator_range.hpp>
  13988. int
  13989. main ()
  13990. {
  13991. std::string input = "Hello World!";
  13992. namespace io = boost::iostreams;
  13993. io::filtering_istream in(boost::make_iterator_range(input));
  13994. return 0;
  13995. ;
  13996. return 0;
  13997. }
  13998. _ACEOF
  13999. if ac_fn_cxx_try_compile "$LINENO"; then :
  14000. ax_cv_boost_iostreams=yes
  14001. else
  14002. ax_cv_boost_iostreams=no
  14003. fi
  14004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14005. ac_ext=cpp
  14006. ac_cpp='$CXXCPP $CPPFLAGS'
  14007. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14008. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14009. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14010. fi
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  14012. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14013. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14014. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  14015. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14016. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14017. 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
  14018. ax_lib=${libextension}
  14019. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14021. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14022. if eval \${$as_ac_Lib+:} false; then :
  14023. $as_echo_n "(cached) " >&6
  14024. else
  14025. ac_check_lib_save_LIBS=$LIBS
  14026. LIBS="-l$ax_lib $LIBS"
  14027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14028. /* end confdefs.h. */
  14029. /* Override any GCC internal prototype to avoid an error.
  14030. Use char because int might match the return type of a GCC
  14031. builtin and then its argument prototype would still apply. */
  14032. #ifdef __cplusplus
  14033. extern "C"
  14034. #endif
  14035. char exit ();
  14036. int
  14037. main ()
  14038. {
  14039. return exit ();
  14040. ;
  14041. return 0;
  14042. }
  14043. _ACEOF
  14044. if ac_fn_cxx_try_link "$LINENO"; then :
  14045. eval "$as_ac_Lib=yes"
  14046. else
  14047. eval "$as_ac_Lib=no"
  14048. fi
  14049. rm -f core conftest.err conftest.$ac_objext \
  14050. conftest$ac_exeext conftest.$ac_ext
  14051. LIBS=$ac_check_lib_save_LIBS
  14052. fi
  14053. eval ac_res=\$$as_ac_Lib
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14055. $as_echo "$ac_res" >&6; }
  14056. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14057. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14058. else
  14059. link_iostreams="no"
  14060. fi
  14061. done
  14062. if test "x$link_iostreams" != "xyes"; then
  14063. 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
  14064. ax_lib=${libextension}
  14065. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14067. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14068. if eval \${$as_ac_Lib+:} false; then :
  14069. $as_echo_n "(cached) " >&6
  14070. else
  14071. ac_check_lib_save_LIBS=$LIBS
  14072. LIBS="-l$ax_lib $LIBS"
  14073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14074. /* end confdefs.h. */
  14075. /* Override any GCC internal prototype to avoid an error.
  14076. Use char because int might match the return type of a GCC
  14077. builtin and then its argument prototype would still apply. */
  14078. #ifdef __cplusplus
  14079. extern "C"
  14080. #endif
  14081. char exit ();
  14082. int
  14083. main ()
  14084. {
  14085. return exit ();
  14086. ;
  14087. return 0;
  14088. }
  14089. _ACEOF
  14090. if ac_fn_cxx_try_link "$LINENO"; then :
  14091. eval "$as_ac_Lib=yes"
  14092. else
  14093. eval "$as_ac_Lib=no"
  14094. fi
  14095. rm -f core conftest.err conftest.$ac_objext \
  14096. conftest$ac_exeext conftest.$ac_ext
  14097. LIBS=$ac_check_lib_save_LIBS
  14098. fi
  14099. eval ac_res=\$$as_ac_Lib
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14101. $as_echo "$ac_res" >&6; }
  14102. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14103. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14104. else
  14105. link_iostreams="no"
  14106. fi
  14107. done
  14108. fi
  14109. else
  14110. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14111. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14113. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14114. if eval \${$as_ac_Lib+:} false; then :
  14115. $as_echo_n "(cached) " >&6
  14116. else
  14117. ac_check_lib_save_LIBS=$LIBS
  14118. LIBS="-l$ax_lib $LIBS"
  14119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14120. /* end confdefs.h. */
  14121. int
  14122. main ()
  14123. {
  14124. return main ();
  14125. ;
  14126. return 0;
  14127. }
  14128. _ACEOF
  14129. if ac_fn_cxx_try_link "$LINENO"; then :
  14130. eval "$as_ac_Lib=yes"
  14131. else
  14132. eval "$as_ac_Lib=no"
  14133. fi
  14134. rm -f core conftest.err conftest.$ac_objext \
  14135. conftest$ac_exeext conftest.$ac_ext
  14136. LIBS=$ac_check_lib_save_LIBS
  14137. fi
  14138. eval ac_res=\$$as_ac_Lib
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14140. $as_echo "$ac_res" >&6; }
  14141. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14142. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14143. else
  14144. link_iostreams="no"
  14145. fi
  14146. done
  14147. fi
  14148. if test "x$ax_lib" = "x"; then
  14149. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14150. fi
  14151. if test "x$link_iostreams" != "xyes"; then
  14152. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14153. fi
  14154. fi
  14155. CPPFLAGS="$CPPFLAGS_SAVED"
  14156. LDFLAGS="$LDFLAGS_SAVED"
  14157. fi
  14158. # Check whether --with-boost-program-options was given.
  14159. if test "${with_boost_program_options+set}" = set; then :
  14160. withval=$with_boost_program_options;
  14161. if test "$withval" = "no"; then
  14162. want_boost="no"
  14163. elif test "$withval" = "yes"; then
  14164. want_boost="yes"
  14165. ax_boost_user_program_options_lib=""
  14166. else
  14167. want_boost="yes"
  14168. ax_boost_user_program_options_lib="$withval"
  14169. fi
  14170. else
  14171. want_boost="yes"
  14172. fi
  14173. if test "x$want_boost" = "xyes"; then
  14174. export want_boost
  14175. CPPFLAGS_SAVED="$CPPFLAGS"
  14176. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14177. export CPPFLAGS
  14178. LDFLAGS_SAVED="$LDFLAGS"
  14179. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14180. export LDFLAGS
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  14182. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  14183. if ${ax_cv_boost_program_options+:} false; then :
  14184. $as_echo_n "(cached) " >&6
  14185. else
  14186. ac_ext=cpp
  14187. ac_cpp='$CXXCPP $CPPFLAGS'
  14188. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14189. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14190. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14192. /* end confdefs.h. */
  14193. #include <boost/program_options.hpp>
  14194. int
  14195. main ()
  14196. {
  14197. boost::program_options::options_description generic("Generic options");
  14198. return 0;
  14199. ;
  14200. return 0;
  14201. }
  14202. _ACEOF
  14203. if ac_fn_cxx_try_compile "$LINENO"; then :
  14204. ax_cv_boost_program_options=yes
  14205. else
  14206. ax_cv_boost_program_options=no
  14207. fi
  14208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14209. ac_ext=cpp
  14210. ac_cpp='$CXXCPP $CPPFLAGS'
  14211. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14212. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14213. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14214. fi
  14215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  14216. $as_echo "$ax_cv_boost_program_options" >&6; }
  14217. if test "$ax_cv_boost_program_options" = yes; then
  14218. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  14219. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14220. if test "x$ax_boost_user_program_options_lib" = "x"; then
  14221. 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
  14222. ax_lib=${libextension}
  14223. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14225. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14226. if eval \${$as_ac_Lib+:} false; then :
  14227. $as_echo_n "(cached) " >&6
  14228. else
  14229. ac_check_lib_save_LIBS=$LIBS
  14230. LIBS="-l$ax_lib $LIBS"
  14231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14232. /* end confdefs.h. */
  14233. /* Override any GCC internal prototype to avoid an error.
  14234. Use char because int might match the return type of a GCC
  14235. builtin and then its argument prototype would still apply. */
  14236. #ifdef __cplusplus
  14237. extern "C"
  14238. #endif
  14239. char exit ();
  14240. int
  14241. main ()
  14242. {
  14243. return exit ();
  14244. ;
  14245. return 0;
  14246. }
  14247. _ACEOF
  14248. if ac_fn_cxx_try_link "$LINENO"; then :
  14249. eval "$as_ac_Lib=yes"
  14250. else
  14251. eval "$as_ac_Lib=no"
  14252. fi
  14253. rm -f core conftest.err conftest.$ac_objext \
  14254. conftest$ac_exeext conftest.$ac_ext
  14255. LIBS=$ac_check_lib_save_LIBS
  14256. fi
  14257. eval ac_res=\$$as_ac_Lib
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14259. $as_echo "$ac_res" >&6; }
  14260. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14261. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14262. else
  14263. link_program_options="no"
  14264. fi
  14265. done
  14266. if test "x$link_program_options" != "xyes"; then
  14267. 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
  14268. ax_lib=${libextension}
  14269. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14271. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14272. if eval \${$as_ac_Lib+:} false; then :
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. ac_check_lib_save_LIBS=$LIBS
  14276. LIBS="-l$ax_lib $LIBS"
  14277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14278. /* end confdefs.h. */
  14279. /* Override any GCC internal prototype to avoid an error.
  14280. Use char because int might match the return type of a GCC
  14281. builtin and then its argument prototype would still apply. */
  14282. #ifdef __cplusplus
  14283. extern "C"
  14284. #endif
  14285. char exit ();
  14286. int
  14287. main ()
  14288. {
  14289. return exit ();
  14290. ;
  14291. return 0;
  14292. }
  14293. _ACEOF
  14294. if ac_fn_cxx_try_link "$LINENO"; then :
  14295. eval "$as_ac_Lib=yes"
  14296. else
  14297. eval "$as_ac_Lib=no"
  14298. fi
  14299. rm -f core conftest.err conftest.$ac_objext \
  14300. conftest$ac_exeext conftest.$ac_ext
  14301. LIBS=$ac_check_lib_save_LIBS
  14302. fi
  14303. eval ac_res=\$$as_ac_Lib
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14305. $as_echo "$ac_res" >&6; }
  14306. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14307. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14308. else
  14309. link_program_options="no"
  14310. fi
  14311. done
  14312. fi
  14313. else
  14314. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  14315. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14317. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14318. if eval \${$as_ac_Lib+:} false; then :
  14319. $as_echo_n "(cached) " >&6
  14320. else
  14321. ac_check_lib_save_LIBS=$LIBS
  14322. LIBS="-l$ax_lib $LIBS"
  14323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14324. /* end confdefs.h. */
  14325. int
  14326. main ()
  14327. {
  14328. return main ();
  14329. ;
  14330. return 0;
  14331. }
  14332. _ACEOF
  14333. if ac_fn_cxx_try_link "$LINENO"; then :
  14334. eval "$as_ac_Lib=yes"
  14335. else
  14336. eval "$as_ac_Lib=no"
  14337. fi
  14338. rm -f core conftest.err conftest.$ac_objext \
  14339. conftest$ac_exeext conftest.$ac_ext
  14340. LIBS=$ac_check_lib_save_LIBS
  14341. fi
  14342. eval ac_res=\$$as_ac_Lib
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14344. $as_echo "$ac_res" >&6; }
  14345. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14346. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14347. else
  14348. link_program_options="no"
  14349. fi
  14350. done
  14351. fi
  14352. if test "x$ax_lib" = "x"; then
  14353. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14354. fi
  14355. if test "x$link_program_options" != "xyes"; then
  14356. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14357. fi
  14358. fi
  14359. CPPFLAGS="$CPPFLAGS_SAVED"
  14360. LDFLAGS="$LDFLAGS_SAVED"
  14361. fi
  14362. # Check for SDL headers and libraries
  14363. saved_LIBS=$LIBS
  14364. saved_CFLAGS=$CFLAGS
  14365. # Extract the first word of "sdl-config", so it can be a program name with args.
  14366. set dummy sdl-config; ac_word=$2
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14368. $as_echo_n "checking for $ac_word... " >&6; }
  14369. if ${ac_cv_prog_HAVE_SDL_CONFIG+:} false; then :
  14370. $as_echo_n "(cached) " >&6
  14371. else
  14372. if test -n "$HAVE_SDL_CONFIG"; then
  14373. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  14374. else
  14375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14376. for as_dir in $PATH
  14377. do
  14378. IFS=$as_save_IFS
  14379. test -z "$as_dir" && as_dir=.
  14380. for ac_exec_ext in '' $ac_executable_extensions; do
  14381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14382. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  14383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14384. break 2
  14385. fi
  14386. done
  14387. done
  14388. IFS=$as_save_IFS
  14389. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  14390. fi
  14391. fi
  14392. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  14393. if test -n "$HAVE_SDL_CONFIG"; then
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  14395. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  14396. else
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14398. $as_echo "no" >&6; }
  14399. fi
  14400. if test "$HAVE_SDL_CONFIG" = no; then
  14401. as_fn_error $? "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  14402. fi
  14403. SDL_CXXFLAGS="`sdl-config --cflags`"
  14404. LIBS="$LIBS `sdl-config --libs`"
  14405. CFLAGS="$CFLAGS $SDL_CXXFLAGS"
  14406. for ac_header in SDL/SDL.h SDL/SDL_mixer.h SDL/SDL_image.h SDL/SDL_ttf.h
  14407. do :
  14408. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14409. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14410. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14411. cat >>confdefs.h <<_ACEOF
  14412. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14413. _ACEOF
  14414. else
  14415. as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
  14416. fi
  14417. done
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  14419. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14420. if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
  14421. $as_echo_n "(cached) " >&6
  14422. else
  14423. ac_check_lib_save_LIBS=$LIBS
  14424. LIBS="-lSDL $LIBS"
  14425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14426. /* end confdefs.h. */
  14427. /* Override any GCC internal prototype to avoid an error.
  14428. Use char because int might match the return type of a GCC
  14429. builtin and then its argument prototype would still apply. */
  14430. #ifdef __cplusplus
  14431. extern "C"
  14432. #endif
  14433. char SDL_Init ();
  14434. int
  14435. main ()
  14436. {
  14437. return SDL_Init ();
  14438. ;
  14439. return 0;
  14440. }
  14441. _ACEOF
  14442. if ac_fn_cxx_try_link "$LINENO"; then :
  14443. ac_cv_lib_SDL_SDL_Init=yes
  14444. else
  14445. ac_cv_lib_SDL_SDL_Init=no
  14446. fi
  14447. rm -f core conftest.err conftest.$ac_objext \
  14448. conftest$ac_exeext conftest.$ac_ext
  14449. LIBS=$ac_check_lib_save_LIBS
  14450. fi
  14451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14452. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14453. if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
  14454. cat >>confdefs.h <<_ACEOF
  14455. #define HAVE_LIBSDL 1
  14456. _ACEOF
  14457. LIBS="-lSDL $LIBS"
  14458. else
  14459. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  14460. fi
  14461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  14462. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14463. if ${ac_cv_lib_SDL_mixer_main+:} false; then :
  14464. $as_echo_n "(cached) " >&6
  14465. else
  14466. ac_check_lib_save_LIBS=$LIBS
  14467. LIBS="-lSDL_mixer $LIBS"
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. int
  14471. main ()
  14472. {
  14473. return main ();
  14474. ;
  14475. return 0;
  14476. }
  14477. _ACEOF
  14478. if ac_fn_cxx_try_link "$LINENO"; then :
  14479. ac_cv_lib_SDL_mixer_main=yes
  14480. else
  14481. ac_cv_lib_SDL_mixer_main=no
  14482. fi
  14483. rm -f core conftest.err conftest.$ac_objext \
  14484. conftest$ac_exeext conftest.$ac_ext
  14485. LIBS=$ac_check_lib_save_LIBS
  14486. fi
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  14488. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14489. if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then :
  14490. cat >>confdefs.h <<_ACEOF
  14491. #define HAVE_LIBSDL_MIXER 1
  14492. _ACEOF
  14493. LIBS="-lSDL_mixer $LIBS"
  14494. else
  14495. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  14496. fi
  14497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  14498. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14499. if ${ac_cv_lib_SDL_image_IMG_Load+:} false; then :
  14500. $as_echo_n "(cached) " >&6
  14501. else
  14502. ac_check_lib_save_LIBS=$LIBS
  14503. LIBS="-lSDL_image $LIBS"
  14504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14505. /* end confdefs.h. */
  14506. /* Override any GCC internal prototype to avoid an error.
  14507. Use char because int might match the return type of a GCC
  14508. builtin and then its argument prototype would still apply. */
  14509. #ifdef __cplusplus
  14510. extern "C"
  14511. #endif
  14512. char IMG_Load ();
  14513. int
  14514. main ()
  14515. {
  14516. return IMG_Load ();
  14517. ;
  14518. return 0;
  14519. }
  14520. _ACEOF
  14521. if ac_fn_cxx_try_link "$LINENO"; then :
  14522. ac_cv_lib_SDL_image_IMG_Load=yes
  14523. else
  14524. ac_cv_lib_SDL_image_IMG_Load=no
  14525. fi
  14526. rm -f core conftest.err conftest.$ac_objext \
  14527. conftest$ac_exeext conftest.$ac_ext
  14528. LIBS=$ac_check_lib_save_LIBS
  14529. fi
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14531. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14532. if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes; then :
  14533. cat >>confdefs.h <<_ACEOF
  14534. #define HAVE_LIBSDL_IMAGE 1
  14535. _ACEOF
  14536. LIBS="-lSDL_image $LIBS"
  14537. else
  14538. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  14539. fi
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  14541. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14542. if ${ac_cv_lib_SDL_ttf_main+:} false; then :
  14543. $as_echo_n "(cached) " >&6
  14544. else
  14545. ac_check_lib_save_LIBS=$LIBS
  14546. LIBS="-lSDL_ttf $LIBS"
  14547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14548. /* end confdefs.h. */
  14549. int
  14550. main ()
  14551. {
  14552. return main ();
  14553. ;
  14554. return 0;
  14555. }
  14556. _ACEOF
  14557. if ac_fn_cxx_try_link "$LINENO"; then :
  14558. ac_cv_lib_SDL_ttf_main=yes
  14559. else
  14560. ac_cv_lib_SDL_ttf_main=no
  14561. fi
  14562. rm -f core conftest.err conftest.$ac_objext \
  14563. conftest$ac_exeext conftest.$ac_ext
  14564. LIBS=$ac_check_lib_save_LIBS
  14565. fi
  14566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  14567. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14568. if test "x$ac_cv_lib_SDL_ttf_main" = xyes; then :
  14569. cat >>confdefs.h <<_ACEOF
  14570. #define HAVE_LIBSDL_TTF 1
  14571. _ACEOF
  14572. LIBS="-lSDL_ttf $LIBS"
  14573. else
  14574. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  14575. fi
  14576. SDL_LIBS="$LIBS"
  14577. LIBS=$saved_LIBS
  14578. CFLAGS=$saved_CFLAGS
  14579. # Check for ffmpeg libraries
  14580. saved_LIBS=$LIBS
  14581. saved_CFLAGS=$CFLAGS
  14582. FFMPEG_CXXFLAGS=""
  14583. FFMPEG_LIBS=
  14584. LIBS="$LIBS `pkg-config --libs libavcodec libavformat libavutil libswscale`"
  14585. CFLAGS="$CFLAGS `pkg-config --cflags libavformat libswscale`"
  14586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  14587. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  14588. if ${ac_cv_lib_avformat_av_open_input_file+:} false; then :
  14589. $as_echo_n "(cached) " >&6
  14590. else
  14591. ac_check_lib_save_LIBS=$LIBS
  14592. LIBS="-lavformat $LIBS"
  14593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14594. /* end confdefs.h. */
  14595. /* Override any GCC internal prototype to avoid an error.
  14596. Use char because int might match the return type of a GCC
  14597. builtin and then its argument prototype would still apply. */
  14598. #ifdef __cplusplus
  14599. extern "C"
  14600. #endif
  14601. char av_open_input_file ();
  14602. int
  14603. main ()
  14604. {
  14605. return av_open_input_file ();
  14606. ;
  14607. return 0;
  14608. }
  14609. _ACEOF
  14610. if ac_fn_cxx_try_link "$LINENO"; then :
  14611. ac_cv_lib_avformat_av_open_input_file=yes
  14612. else
  14613. ac_cv_lib_avformat_av_open_input_file=no
  14614. fi
  14615. rm -f core conftest.err conftest.$ac_objext \
  14616. conftest$ac_exeext conftest.$ac_ext
  14617. LIBS=$ac_check_lib_save_LIBS
  14618. fi
  14619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  14620. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  14621. if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes; then :
  14622. cat >>confdefs.h <<_ACEOF
  14623. #define HAVE_LIBAVFORMAT 1
  14624. _ACEOF
  14625. LIBS="-lavformat $LIBS"
  14626. else
  14627. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  14628. fi
  14629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  14630. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  14631. if ${ac_cv_lib_swscale_sws_getContext+:} false; then :
  14632. $as_echo_n "(cached) " >&6
  14633. else
  14634. ac_check_lib_save_LIBS=$LIBS
  14635. LIBS="-lswscale $LIBS"
  14636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14637. /* end confdefs.h. */
  14638. /* Override any GCC internal prototype to avoid an error.
  14639. Use char because int might match the return type of a GCC
  14640. builtin and then its argument prototype would still apply. */
  14641. #ifdef __cplusplus
  14642. extern "C"
  14643. #endif
  14644. char sws_getContext ();
  14645. int
  14646. main ()
  14647. {
  14648. return sws_getContext ();
  14649. ;
  14650. return 0;
  14651. }
  14652. _ACEOF
  14653. if ac_fn_cxx_try_link "$LINENO"; then :
  14654. ac_cv_lib_swscale_sws_getContext=yes
  14655. else
  14656. ac_cv_lib_swscale_sws_getContext=no
  14657. fi
  14658. rm -f core conftest.err conftest.$ac_objext \
  14659. conftest$ac_exeext conftest.$ac_ext
  14660. LIBS=$ac_check_lib_save_LIBS
  14661. fi
  14662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  14663. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  14664. if test "x$ac_cv_lib_swscale_sws_getContext" = xyes; then :
  14665. cat >>confdefs.h <<_ACEOF
  14666. #define HAVE_LIBSWSCALE 1
  14667. _ACEOF
  14668. LIBS="-lswscale $LIBS"
  14669. else
  14670. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14671. fi
  14672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  14673. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  14674. if ${ac_cv_lib_avcodec_avcodec_decode_video2+:} false; then :
  14675. $as_echo_n "(cached) " >&6
  14676. else
  14677. ac_check_lib_save_LIBS=$LIBS
  14678. LIBS="-lavcodec $LIBS"
  14679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14680. /* end confdefs.h. */
  14681. /* Override any GCC internal prototype to avoid an error.
  14682. Use char because int might match the return type of a GCC
  14683. builtin and then its argument prototype would still apply. */
  14684. #ifdef __cplusplus
  14685. extern "C"
  14686. #endif
  14687. char avcodec_decode_video2 ();
  14688. int
  14689. main ()
  14690. {
  14691. return avcodec_decode_video2 ();
  14692. ;
  14693. return 0;
  14694. }
  14695. _ACEOF
  14696. if ac_fn_cxx_try_link "$LINENO"; then :
  14697. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  14698. else
  14699. ac_cv_lib_avcodec_avcodec_decode_video2=no
  14700. fi
  14701. rm -f core conftest.err conftest.$ac_objext \
  14702. conftest$ac_exeext conftest.$ac_ext
  14703. LIBS=$ac_check_lib_save_LIBS
  14704. fi
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  14706. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  14707. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = xyes; then :
  14708. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  14709. fi
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_protocol2 in -lavcodec" >&5
  14711. $as_echo_n "checking for av_register_protocol2 in -lavcodec... " >&6; }
  14712. if ${ac_cv_lib_avcodec_av_register_protocol2+:} false; then :
  14713. $as_echo_n "(cached) " >&6
  14714. else
  14715. ac_check_lib_save_LIBS=$LIBS
  14716. LIBS="-lavcodec $LIBS"
  14717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14718. /* end confdefs.h. */
  14719. /* Override any GCC internal prototype to avoid an error.
  14720. Use char because int might match the return type of a GCC
  14721. builtin and then its argument prototype would still apply. */
  14722. #ifdef __cplusplus
  14723. extern "C"
  14724. #endif
  14725. char av_register_protocol2 ();
  14726. int
  14727. main ()
  14728. {
  14729. return av_register_protocol2 ();
  14730. ;
  14731. return 0;
  14732. }
  14733. _ACEOF
  14734. if ac_fn_cxx_try_link "$LINENO"; then :
  14735. ac_cv_lib_avcodec_av_register_protocol2=yes
  14736. else
  14737. ac_cv_lib_avcodec_av_register_protocol2=no
  14738. fi
  14739. rm -f core conftest.err conftest.$ac_objext \
  14740. conftest$ac_exeext conftest.$ac_ext
  14741. LIBS=$ac_check_lib_save_LIBS
  14742. fi
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_register_protocol2" >&5
  14744. $as_echo "$ac_cv_lib_avcodec_av_register_protocol2" >&6; }
  14745. if test "x$ac_cv_lib_avcodec_av_register_protocol2" = xyes; then :
  14746. AV_REGISTER_PROTOCOL2="-DWITH_AV_REGISTER_PROTOCOL2"
  14747. fi
  14748. FFMPEG_LIBS="$LIBS"
  14749. FFMPEG_CXXFLAGS="$CFLAGS $AVCODEC_DECODE_VIDEO2 $AV_REGISTER_PROTOCOL2"
  14750. LIBS=$saved_LIBS
  14751. CFLAGS=$saved_CFLAGS
  14752. # Checks for header files.
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14754. $as_echo_n "checking for ANSI C header files... " >&6; }
  14755. if ${ac_cv_header_stdc+:} false; then :
  14756. $as_echo_n "(cached) " >&6
  14757. else
  14758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14759. /* end confdefs.h. */
  14760. #include <stdlib.h>
  14761. #include <stdarg.h>
  14762. #include <string.h>
  14763. #include <float.h>
  14764. int
  14765. main ()
  14766. {
  14767. ;
  14768. return 0;
  14769. }
  14770. _ACEOF
  14771. if ac_fn_cxx_try_compile "$LINENO"; then :
  14772. ac_cv_header_stdc=yes
  14773. else
  14774. ac_cv_header_stdc=no
  14775. fi
  14776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14777. if test $ac_cv_header_stdc = yes; then
  14778. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14780. /* end confdefs.h. */
  14781. #include <string.h>
  14782. _ACEOF
  14783. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14784. $EGREP "memchr" >/dev/null 2>&1; then :
  14785. else
  14786. ac_cv_header_stdc=no
  14787. fi
  14788. rm -f conftest*
  14789. fi
  14790. if test $ac_cv_header_stdc = yes; then
  14791. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14793. /* end confdefs.h. */
  14794. #include <stdlib.h>
  14795. _ACEOF
  14796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14797. $EGREP "free" >/dev/null 2>&1; then :
  14798. else
  14799. ac_cv_header_stdc=no
  14800. fi
  14801. rm -f conftest*
  14802. fi
  14803. if test $ac_cv_header_stdc = yes; then
  14804. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14805. if test "$cross_compiling" = yes; then :
  14806. :
  14807. else
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. #include <ctype.h>
  14811. #include <stdlib.h>
  14812. #if ((' ' & 0x0FF) == 0x020)
  14813. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14814. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14815. #else
  14816. # define ISLOWER(c) \
  14817. (('a' <= (c) && (c) <= 'i') \
  14818. || ('j' <= (c) && (c) <= 'r') \
  14819. || ('s' <= (c) && (c) <= 'z'))
  14820. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14821. #endif
  14822. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14823. int
  14824. main ()
  14825. {
  14826. int i;
  14827. for (i = 0; i < 256; i++)
  14828. if (XOR (islower (i), ISLOWER (i))
  14829. || toupper (i) != TOUPPER (i))
  14830. return 2;
  14831. return 0;
  14832. }
  14833. _ACEOF
  14834. if ac_fn_cxx_try_run "$LINENO"; then :
  14835. else
  14836. ac_cv_header_stdc=no
  14837. fi
  14838. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14839. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14840. fi
  14841. fi
  14842. fi
  14843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14844. $as_echo "$ac_cv_header_stdc" >&6; }
  14845. if test $ac_cv_header_stdc = yes; then
  14846. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14847. fi
  14848. for ac_header in fcntl.h stdlib.h string.h
  14849. do :
  14850. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14851. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14852. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14853. cat >>confdefs.h <<_ACEOF
  14854. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14855. _ACEOF
  14856. fi
  14857. done
  14858. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14859. 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
  14860. do :
  14861. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14862. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14863. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14864. cat >>confdefs.h <<_ACEOF
  14865. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14866. _ACEOF
  14867. else
  14868. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  14869. fi
  14870. done
  14871. # Checks for library functions.
  14872. for ac_func in atexit memset pow select sqrt
  14873. do :
  14874. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14875. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14876. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14877. cat >>confdefs.h <<_ACEOF
  14878. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14879. _ACEOF
  14880. fi
  14881. done
  14882. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  14883. VCMI_AI_LIBS_DIR="$libdir/vcmi/AI"
  14884. VCMI_SCRIPTING_LIBS_DIR="$libdir/vcmi/Scripting"
  14885. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/StupidAI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile Scripting/ERM/Makefile"
  14886. cat >confcache <<\_ACEOF
  14887. # This file is a shell script that caches the results of configure
  14888. # tests run on this system so they can be shared between configure
  14889. # scripts and configure runs, see configure's option --config-cache.
  14890. # It is not useful on other systems. If it contains results you don't
  14891. # want to keep, you may remove or edit it.
  14892. #
  14893. # config.status only pays attention to the cache file if you give it
  14894. # the --recheck option to rerun configure.
  14895. #
  14896. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14897. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14898. # following values.
  14899. _ACEOF
  14900. # The following way of writing the cache mishandles newlines in values,
  14901. # but we know of no workaround that is simple, portable, and efficient.
  14902. # So, we kill variables containing newlines.
  14903. # Ultrix sh set writes to stderr and can't be redirected directly,
  14904. # and sets the high bit in the cache file unless we assign to the vars.
  14905. (
  14906. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14907. eval ac_val=\$$ac_var
  14908. case $ac_val in #(
  14909. *${as_nl}*)
  14910. case $ac_var in #(
  14911. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14912. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14913. esac
  14914. case $ac_var in #(
  14915. _ | IFS | as_nl) ;; #(
  14916. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14917. *) { eval $ac_var=; unset $ac_var;} ;;
  14918. esac ;;
  14919. esac
  14920. done
  14921. (set) 2>&1 |
  14922. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14923. *${as_nl}ac_space=\ *)
  14924. # `set' does not quote correctly, so add quotes: double-quote
  14925. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14926. sed -n \
  14927. "s/'/'\\\\''/g;
  14928. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14929. ;; #(
  14930. *)
  14931. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14932. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14933. ;;
  14934. esac |
  14935. sort
  14936. ) |
  14937. sed '
  14938. /^ac_cv_env_/b end
  14939. t clear
  14940. :clear
  14941. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14942. t end
  14943. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14944. :end' >>confcache
  14945. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14946. if test -w "$cache_file"; then
  14947. if test "x$cache_file" != "x/dev/null"; then
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14949. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14950. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14951. cat confcache >"$cache_file"
  14952. else
  14953. case $cache_file in #(
  14954. */* | ?:*)
  14955. mv -f confcache "$cache_file"$$ &&
  14956. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14957. *)
  14958. mv -f confcache "$cache_file" ;;
  14959. esac
  14960. fi
  14961. fi
  14962. else
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14964. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14965. fi
  14966. fi
  14967. rm -f confcache
  14968. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14969. # Let make expand exec_prefix.
  14970. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14971. # Transform confdefs.h into DEFS.
  14972. # Protect against shell expansion while executing Makefile rules.
  14973. # Protect against Makefile macro expansion.
  14974. #
  14975. # If the first sed substitution is executed (which looks for macros that
  14976. # take arguments), then branch to the quote section. Otherwise,
  14977. # look for a macro that doesn't take arguments.
  14978. ac_script='
  14979. :mline
  14980. /\\$/{
  14981. N
  14982. s,\\\n,,
  14983. b mline
  14984. }
  14985. t clear
  14986. :clear
  14987. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14988. t quote
  14989. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14990. t quote
  14991. b any
  14992. :quote
  14993. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14994. s/\[/\\&/g
  14995. s/\]/\\&/g
  14996. s/\$/$$/g
  14997. H
  14998. :any
  14999. ${
  15000. g
  15001. s/^\n//
  15002. s/\n/ /g
  15003. p
  15004. }
  15005. '
  15006. DEFS=`sed -n "$ac_script" confdefs.h`
  15007. ac_libobjs=
  15008. ac_ltlibobjs=
  15009. U=
  15010. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15011. # 1. Remove the extension, and $U if already installed.
  15012. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15013. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15014. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15015. # will be set to the directory where LIBOBJS objects are built.
  15016. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15017. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15018. done
  15019. LIBOBJS=$ac_libobjs
  15020. LTLIBOBJS=$ac_ltlibobjs
  15021. if test -n "$EXEEXT"; then
  15022. am__EXEEXT_TRUE=
  15023. am__EXEEXT_FALSE='#'
  15024. else
  15025. am__EXEEXT_TRUE='#'
  15026. am__EXEEXT_FALSE=
  15027. fi
  15028. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15029. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15030. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15031. fi
  15032. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15033. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15034. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15035. fi
  15036. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15037. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15039. fi
  15040. : "${CONFIG_STATUS=./config.status}"
  15041. ac_write_fail=0
  15042. ac_clean_files_save=$ac_clean_files
  15043. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15045. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15046. as_write_fail=0
  15047. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15048. #! $SHELL
  15049. # Generated by $as_me.
  15050. # Run this file to recreate the current configuration.
  15051. # Compiler output produced by configure, useful for debugging
  15052. # configure, is in config.log if it exists.
  15053. debug=false
  15054. ac_cs_recheck=false
  15055. ac_cs_silent=false
  15056. SHELL=\${CONFIG_SHELL-$SHELL}
  15057. export SHELL
  15058. _ASEOF
  15059. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15060. ## -------------------- ##
  15061. ## M4sh Initialization. ##
  15062. ## -------------------- ##
  15063. # Be more Bourne compatible
  15064. DUALCASE=1; export DUALCASE # for MKS sh
  15065. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15066. emulate sh
  15067. NULLCMD=:
  15068. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15069. # is contrary to our usage. Disable this feature.
  15070. alias -g '${1+"$@"}'='"$@"'
  15071. setopt NO_GLOB_SUBST
  15072. else
  15073. case `(set -o) 2>/dev/null` in #(
  15074. *posix*) :
  15075. set -o posix ;; #(
  15076. *) :
  15077. ;;
  15078. esac
  15079. fi
  15080. as_nl='
  15081. '
  15082. export as_nl
  15083. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15084. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15085. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15086. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15087. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15088. # but without wasting forks for bash or zsh.
  15089. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15090. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15091. as_echo='print -r --'
  15092. as_echo_n='print -rn --'
  15093. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15094. as_echo='printf %s\n'
  15095. as_echo_n='printf %s'
  15096. else
  15097. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15098. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15099. as_echo_n='/usr/ucb/echo -n'
  15100. else
  15101. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15102. as_echo_n_body='eval
  15103. arg=$1;
  15104. case $arg in #(
  15105. *"$as_nl"*)
  15106. expr "X$arg" : "X\\(.*\\)$as_nl";
  15107. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15108. esac;
  15109. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15110. '
  15111. export as_echo_n_body
  15112. as_echo_n='sh -c $as_echo_n_body as_echo'
  15113. fi
  15114. export as_echo_body
  15115. as_echo='sh -c $as_echo_body as_echo'
  15116. fi
  15117. # The user is always right.
  15118. if test "${PATH_SEPARATOR+set}" != set; then
  15119. PATH_SEPARATOR=:
  15120. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15121. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15122. PATH_SEPARATOR=';'
  15123. }
  15124. fi
  15125. # IFS
  15126. # We need space, tab and new line, in precisely that order. Quoting is
  15127. # there to prevent editors from complaining about space-tab.
  15128. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15129. # splitting by setting IFS to empty value.)
  15130. IFS=" "" $as_nl"
  15131. # Find who we are. Look in the path if we contain no directory separator.
  15132. as_myself=
  15133. case $0 in #((
  15134. *[\\/]* ) as_myself=$0 ;;
  15135. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15136. for as_dir in $PATH
  15137. do
  15138. IFS=$as_save_IFS
  15139. test -z "$as_dir" && as_dir=.
  15140. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15141. done
  15142. IFS=$as_save_IFS
  15143. ;;
  15144. esac
  15145. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15146. # in which case we are not to be found in the path.
  15147. if test "x$as_myself" = x; then
  15148. as_myself=$0
  15149. fi
  15150. if test ! -f "$as_myself"; then
  15151. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15152. exit 1
  15153. fi
  15154. # Unset variables that we do not need and which cause bugs (e.g. in
  15155. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15156. # suppresses any "Segmentation fault" message there. '((' could
  15157. # trigger a bug in pdksh 5.2.14.
  15158. for as_var in BASH_ENV ENV MAIL MAILPATH
  15159. do eval test x\${$as_var+set} = xset \
  15160. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15161. done
  15162. PS1='$ '
  15163. PS2='> '
  15164. PS4='+ '
  15165. # NLS nuisances.
  15166. LC_ALL=C
  15167. export LC_ALL
  15168. LANGUAGE=C
  15169. export LANGUAGE
  15170. # CDPATH.
  15171. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15172. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15173. # ----------------------------------------
  15174. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15175. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15176. # script with STATUS, using 1 if that was 0.
  15177. as_fn_error ()
  15178. {
  15179. as_status=$1; test $as_status -eq 0 && as_status=1
  15180. if test "$4"; then
  15181. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15182. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15183. fi
  15184. $as_echo "$as_me: error: $2" >&2
  15185. as_fn_exit $as_status
  15186. } # as_fn_error
  15187. # as_fn_set_status STATUS
  15188. # -----------------------
  15189. # Set $? to STATUS, without forking.
  15190. as_fn_set_status ()
  15191. {
  15192. return $1
  15193. } # as_fn_set_status
  15194. # as_fn_exit STATUS
  15195. # -----------------
  15196. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15197. as_fn_exit ()
  15198. {
  15199. set +e
  15200. as_fn_set_status $1
  15201. exit $1
  15202. } # as_fn_exit
  15203. # as_fn_unset VAR
  15204. # ---------------
  15205. # Portably unset VAR.
  15206. as_fn_unset ()
  15207. {
  15208. { eval $1=; unset $1;}
  15209. }
  15210. as_unset=as_fn_unset
  15211. # as_fn_append VAR VALUE
  15212. # ----------------------
  15213. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15214. # advantage of any shell optimizations that allow amortized linear growth over
  15215. # repeated appends, instead of the typical quadratic growth present in naive
  15216. # implementations.
  15217. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15218. eval 'as_fn_append ()
  15219. {
  15220. eval $1+=\$2
  15221. }'
  15222. else
  15223. as_fn_append ()
  15224. {
  15225. eval $1=\$$1\$2
  15226. }
  15227. fi # as_fn_append
  15228. # as_fn_arith ARG...
  15229. # ------------------
  15230. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15231. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15232. # must be portable across $(()) and expr.
  15233. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15234. eval 'as_fn_arith ()
  15235. {
  15236. as_val=$(( $* ))
  15237. }'
  15238. else
  15239. as_fn_arith ()
  15240. {
  15241. as_val=`expr "$@" || test $? -eq 1`
  15242. }
  15243. fi # as_fn_arith
  15244. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15245. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15246. as_expr=expr
  15247. else
  15248. as_expr=false
  15249. fi
  15250. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15251. as_basename=basename
  15252. else
  15253. as_basename=false
  15254. fi
  15255. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15256. as_dirname=dirname
  15257. else
  15258. as_dirname=false
  15259. fi
  15260. as_me=`$as_basename -- "$0" ||
  15261. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15262. X"$0" : 'X\(//\)$' \| \
  15263. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15264. $as_echo X/"$0" |
  15265. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15266. s//\1/
  15267. q
  15268. }
  15269. /^X\/\(\/\/\)$/{
  15270. s//\1/
  15271. q
  15272. }
  15273. /^X\/\(\/\).*/{
  15274. s//\1/
  15275. q
  15276. }
  15277. s/.*/./; q'`
  15278. # Avoid depending upon Character Ranges.
  15279. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15280. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15281. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15282. as_cr_digits='0123456789'
  15283. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15284. ECHO_C= ECHO_N= ECHO_T=
  15285. case `echo -n x` in #(((((
  15286. -n*)
  15287. case `echo 'xy\c'` in
  15288. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15289. xy) ECHO_C='\c';;
  15290. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15291. ECHO_T=' ';;
  15292. esac;;
  15293. *)
  15294. ECHO_N='-n';;
  15295. esac
  15296. rm -f conf$$ conf$$.exe conf$$.file
  15297. if test -d conf$$.dir; then
  15298. rm -f conf$$.dir/conf$$.file
  15299. else
  15300. rm -f conf$$.dir
  15301. mkdir conf$$.dir 2>/dev/null
  15302. fi
  15303. if (echo >conf$$.file) 2>/dev/null; then
  15304. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15305. as_ln_s='ln -s'
  15306. # ... but there are two gotchas:
  15307. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15308. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15309. # In both cases, we have to default to `cp -p'.
  15310. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15311. as_ln_s='cp -p'
  15312. elif ln conf$$.file conf$$ 2>/dev/null; then
  15313. as_ln_s=ln
  15314. else
  15315. as_ln_s='cp -p'
  15316. fi
  15317. else
  15318. as_ln_s='cp -p'
  15319. fi
  15320. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15321. rmdir conf$$.dir 2>/dev/null
  15322. # as_fn_mkdir_p
  15323. # -------------
  15324. # Create "$as_dir" as a directory, including parents if necessary.
  15325. as_fn_mkdir_p ()
  15326. {
  15327. case $as_dir in #(
  15328. -*) as_dir=./$as_dir;;
  15329. esac
  15330. test -d "$as_dir" || eval $as_mkdir_p || {
  15331. as_dirs=
  15332. while :; do
  15333. case $as_dir in #(
  15334. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15335. *) as_qdir=$as_dir;;
  15336. esac
  15337. as_dirs="'$as_qdir' $as_dirs"
  15338. as_dir=`$as_dirname -- "$as_dir" ||
  15339. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15340. X"$as_dir" : 'X\(//\)[^/]' \| \
  15341. X"$as_dir" : 'X\(//\)$' \| \
  15342. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15343. $as_echo X"$as_dir" |
  15344. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15345. s//\1/
  15346. q
  15347. }
  15348. /^X\(\/\/\)[^/].*/{
  15349. s//\1/
  15350. q
  15351. }
  15352. /^X\(\/\/\)$/{
  15353. s//\1/
  15354. q
  15355. }
  15356. /^X\(\/\).*/{
  15357. s//\1/
  15358. q
  15359. }
  15360. s/.*/./; q'`
  15361. test -d "$as_dir" && break
  15362. done
  15363. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15364. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15365. } # as_fn_mkdir_p
  15366. if mkdir -p . 2>/dev/null; then
  15367. as_mkdir_p='mkdir -p "$as_dir"'
  15368. else
  15369. test -d ./-p && rmdir ./-p
  15370. as_mkdir_p=false
  15371. fi
  15372. if test -x / >/dev/null 2>&1; then
  15373. as_test_x='test -x'
  15374. else
  15375. if ls -dL / >/dev/null 2>&1; then
  15376. as_ls_L_option=L
  15377. else
  15378. as_ls_L_option=
  15379. fi
  15380. as_test_x='
  15381. eval sh -c '\''
  15382. if test -d "$1"; then
  15383. test -d "$1/.";
  15384. else
  15385. case $1 in #(
  15386. -*)set "./$1";;
  15387. esac;
  15388. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15389. ???[sx]*):;;*)false;;esac;fi
  15390. '\'' sh
  15391. '
  15392. fi
  15393. as_executable_p=$as_test_x
  15394. # Sed expression to map a string onto a valid CPP name.
  15395. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15396. # Sed expression to map a string onto a valid variable name.
  15397. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15398. exec 6>&1
  15399. ## ----------------------------------- ##
  15400. ## Main body of $CONFIG_STATUS script. ##
  15401. ## ----------------------------------- ##
  15402. _ASEOF
  15403. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15404. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15405. # Save the log message, to keep $0 and so on meaningful, and to
  15406. # report actual input values of CONFIG_FILES etc. instead of their
  15407. # values after options handling.
  15408. ac_log="
  15409. This file was extended by vcmi $as_me 0.84b, which was
  15410. generated by GNU Autoconf 2.68. Invocation command line was
  15411. CONFIG_FILES = $CONFIG_FILES
  15412. CONFIG_HEADERS = $CONFIG_HEADERS
  15413. CONFIG_LINKS = $CONFIG_LINKS
  15414. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15415. $ $0 $@
  15416. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15417. "
  15418. _ACEOF
  15419. case $ac_config_files in *"
  15420. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15421. esac
  15422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15423. # Files that config.status was made for.
  15424. config_files="$ac_config_files"
  15425. config_commands="$ac_config_commands"
  15426. _ACEOF
  15427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15428. ac_cs_usage="\
  15429. \`$as_me' instantiates files and other configuration actions
  15430. from templates according to the current configuration. Unless the files
  15431. and actions are specified as TAGs, all are instantiated by default.
  15432. Usage: $0 [OPTION]... [TAG]...
  15433. -h, --help print this help, then exit
  15434. -V, --version print version number and configuration settings, then exit
  15435. --config print configuration, then exit
  15436. -q, --quiet, --silent
  15437. do not print progress messages
  15438. -d, --debug don't remove temporary files
  15439. --recheck update $as_me by reconfiguring in the same conditions
  15440. --file=FILE[:TEMPLATE]
  15441. instantiate the configuration file FILE
  15442. Configuration files:
  15443. $config_files
  15444. Configuration commands:
  15445. $config_commands
  15446. Report bugs to the package provider."
  15447. _ACEOF
  15448. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15449. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15450. ac_cs_version="\\
  15451. vcmi config.status 0.84b
  15452. configured by $0, generated by GNU Autoconf 2.68,
  15453. with options \\"\$ac_cs_config\\"
  15454. Copyright (C) 2010 Free Software Foundation, Inc.
  15455. This config.status script is free software; the Free Software Foundation
  15456. gives unlimited permission to copy, distribute and modify it."
  15457. ac_pwd='$ac_pwd'
  15458. srcdir='$srcdir'
  15459. INSTALL='$INSTALL'
  15460. MKDIR_P='$MKDIR_P'
  15461. AWK='$AWK'
  15462. test -n "\$AWK" || AWK=awk
  15463. _ACEOF
  15464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15465. # The default lists apply if the user does not specify any file.
  15466. ac_need_defaults=:
  15467. while test $# != 0
  15468. do
  15469. case $1 in
  15470. --*=?*)
  15471. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15472. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15473. ac_shift=:
  15474. ;;
  15475. --*=)
  15476. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15477. ac_optarg=
  15478. ac_shift=:
  15479. ;;
  15480. *)
  15481. ac_option=$1
  15482. ac_optarg=$2
  15483. ac_shift=shift
  15484. ;;
  15485. esac
  15486. case $ac_option in
  15487. # Handling of the options.
  15488. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15489. ac_cs_recheck=: ;;
  15490. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15491. $as_echo "$ac_cs_version"; exit ;;
  15492. --config | --confi | --conf | --con | --co | --c )
  15493. $as_echo "$ac_cs_config"; exit ;;
  15494. --debug | --debu | --deb | --de | --d | -d )
  15495. debug=: ;;
  15496. --file | --fil | --fi | --f )
  15497. $ac_shift
  15498. case $ac_optarg in
  15499. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15500. '') as_fn_error $? "missing file argument" ;;
  15501. esac
  15502. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15503. ac_need_defaults=false;;
  15504. --he | --h | --help | --hel | -h )
  15505. $as_echo "$ac_cs_usage"; exit ;;
  15506. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15507. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15508. ac_cs_silent=: ;;
  15509. # This is an error.
  15510. -*) as_fn_error $? "unrecognized option: \`$1'
  15511. Try \`$0 --help' for more information." ;;
  15512. *) as_fn_append ac_config_targets " $1"
  15513. ac_need_defaults=false ;;
  15514. esac
  15515. shift
  15516. done
  15517. ac_configure_extra_args=
  15518. if $ac_cs_silent; then
  15519. exec 6>/dev/null
  15520. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15521. fi
  15522. _ACEOF
  15523. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15524. if \$ac_cs_recheck; then
  15525. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15526. shift
  15527. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15528. CONFIG_SHELL='$SHELL'
  15529. export CONFIG_SHELL
  15530. exec "\$@"
  15531. fi
  15532. _ACEOF
  15533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15534. exec 5>>config.log
  15535. {
  15536. echo
  15537. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15538. ## Running $as_me. ##
  15539. _ASBOX
  15540. $as_echo "$ac_log"
  15541. } >&5
  15542. _ACEOF
  15543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15544. #
  15545. # INIT-COMMANDS
  15546. #
  15547. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15548. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15549. # if CDPATH is set.
  15550. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15551. sed_quote_subst='$sed_quote_subst'
  15552. double_quote_subst='$double_quote_subst'
  15553. delay_variable_subst='$delay_variable_subst'
  15554. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15555. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15556. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15557. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15558. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15559. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15560. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15561. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15562. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15563. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15564. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15565. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15566. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15567. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15568. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15569. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15570. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15571. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15572. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15573. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15574. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15575. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15576. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15577. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15578. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15579. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15580. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15581. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15582. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15583. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15584. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15585. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15586. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15587. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15588. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15589. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15590. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15591. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15592. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15593. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15594. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15595. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15596. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15597. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15598. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15599. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15600. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15601. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15602. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15603. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15604. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15605. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15606. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15607. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15608. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15609. 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"`'
  15610. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15611. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15612. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15613. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15614. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15615. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15616. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15617. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15618. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15619. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15620. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15621. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15622. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15623. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15624. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15625. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15626. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15627. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15628. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15629. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15630. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15631. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15632. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15633. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15634. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15635. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15636. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15637. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15638. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15639. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15640. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15641. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15642. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15643. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15644. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15645. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15646. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15647. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15648. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15649. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15650. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15651. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15652. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15653. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15654. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15655. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15656. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15657. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15658. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15659. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15660. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15661. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15662. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15663. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15664. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15665. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15666. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15667. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15668. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15669. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15670. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15671. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15672. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15673. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15674. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15675. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15676. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15677. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15678. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15679. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15680. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15681. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15682. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15683. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15684. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15685. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15686. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15687. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15688. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15689. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15690. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15691. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15692. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15693. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15694. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15695. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15696. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15697. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15698. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15699. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15700. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15701. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15702. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15703. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15704. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15705. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15706. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15707. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15708. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15709. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15710. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15711. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15712. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15713. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15714. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15715. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15716. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15717. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15718. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15719. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15720. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15721. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15722. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15723. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15724. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15725. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15726. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15727. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15728. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15729. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15730. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15731. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15732. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15733. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15734. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15735. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15736. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15737. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15738. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15739. LTCC='$LTCC'
  15740. LTCFLAGS='$LTCFLAGS'
  15741. compiler='$compiler_DEFAULT'
  15742. # A function that is used when there is no print builtin or printf.
  15743. func_fallback_echo ()
  15744. {
  15745. eval 'cat <<_LTECHO_EOF
  15746. \$1
  15747. _LTECHO_EOF'
  15748. }
  15749. # Quote evaled strings.
  15750. for var in SHELL \
  15751. ECHO \
  15752. SED \
  15753. GREP \
  15754. EGREP \
  15755. FGREP \
  15756. LD \
  15757. NM \
  15758. LN_S \
  15759. lt_SP2NL \
  15760. lt_NL2SP \
  15761. reload_flag \
  15762. OBJDUMP \
  15763. deplibs_check_method \
  15764. file_magic_cmd \
  15765. file_magic_glob \
  15766. want_nocaseglob \
  15767. DLLTOOL \
  15768. sharedlib_from_linklib_cmd \
  15769. AR \
  15770. AR_FLAGS \
  15771. archiver_list_spec \
  15772. STRIP \
  15773. RANLIB \
  15774. CC \
  15775. CFLAGS \
  15776. compiler \
  15777. lt_cv_sys_global_symbol_pipe \
  15778. lt_cv_sys_global_symbol_to_cdecl \
  15779. lt_cv_sys_global_symbol_to_c_name_address \
  15780. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15781. nm_file_list_spec \
  15782. lt_prog_compiler_no_builtin_flag \
  15783. lt_prog_compiler_pic \
  15784. lt_prog_compiler_wl \
  15785. lt_prog_compiler_static \
  15786. lt_cv_prog_compiler_c_o \
  15787. need_locks \
  15788. MANIFEST_TOOL \
  15789. DSYMUTIL \
  15790. NMEDIT \
  15791. LIPO \
  15792. OTOOL \
  15793. OTOOL64 \
  15794. shrext_cmds \
  15795. export_dynamic_flag_spec \
  15796. whole_archive_flag_spec \
  15797. compiler_needs_object \
  15798. with_gnu_ld \
  15799. allow_undefined_flag \
  15800. no_undefined_flag \
  15801. hardcode_libdir_flag_spec \
  15802. hardcode_libdir_flag_spec_ld \
  15803. hardcode_libdir_separator \
  15804. exclude_expsyms \
  15805. include_expsyms \
  15806. file_list_spec \
  15807. variables_saved_for_relink \
  15808. libname_spec \
  15809. library_names_spec \
  15810. soname_spec \
  15811. install_override_mode \
  15812. finish_eval \
  15813. old_striplib \
  15814. striplib \
  15815. compiler_lib_search_dirs \
  15816. predep_objects \
  15817. postdep_objects \
  15818. predeps \
  15819. postdeps \
  15820. compiler_lib_search_path \
  15821. LD_CXX \
  15822. reload_flag_CXX \
  15823. compiler_CXX \
  15824. lt_prog_compiler_no_builtin_flag_CXX \
  15825. lt_prog_compiler_pic_CXX \
  15826. lt_prog_compiler_wl_CXX \
  15827. lt_prog_compiler_static_CXX \
  15828. lt_cv_prog_compiler_c_o_CXX \
  15829. export_dynamic_flag_spec_CXX \
  15830. whole_archive_flag_spec_CXX \
  15831. compiler_needs_object_CXX \
  15832. with_gnu_ld_CXX \
  15833. allow_undefined_flag_CXX \
  15834. no_undefined_flag_CXX \
  15835. hardcode_libdir_flag_spec_CXX \
  15836. hardcode_libdir_flag_spec_ld_CXX \
  15837. hardcode_libdir_separator_CXX \
  15838. exclude_expsyms_CXX \
  15839. include_expsyms_CXX \
  15840. file_list_spec_CXX \
  15841. compiler_lib_search_dirs_CXX \
  15842. predep_objects_CXX \
  15843. postdep_objects_CXX \
  15844. predeps_CXX \
  15845. postdeps_CXX \
  15846. compiler_lib_search_path_CXX; do
  15847. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15848. *[\\\\\\\`\\"\\\$]*)
  15849. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15850. ;;
  15851. *)
  15852. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15853. ;;
  15854. esac
  15855. done
  15856. # Double-quote double-evaled strings.
  15857. for var in reload_cmds \
  15858. old_postinstall_cmds \
  15859. old_postuninstall_cmds \
  15860. old_archive_cmds \
  15861. extract_expsyms_cmds \
  15862. old_archive_from_new_cmds \
  15863. old_archive_from_expsyms_cmds \
  15864. archive_cmds \
  15865. archive_expsym_cmds \
  15866. module_cmds \
  15867. module_expsym_cmds \
  15868. export_symbols_cmds \
  15869. prelink_cmds \
  15870. postlink_cmds \
  15871. postinstall_cmds \
  15872. postuninstall_cmds \
  15873. finish_cmds \
  15874. sys_lib_search_path_spec \
  15875. sys_lib_dlsearch_path_spec \
  15876. reload_cmds_CXX \
  15877. old_archive_cmds_CXX \
  15878. old_archive_from_new_cmds_CXX \
  15879. old_archive_from_expsyms_cmds_CXX \
  15880. archive_cmds_CXX \
  15881. archive_expsym_cmds_CXX \
  15882. module_cmds_CXX \
  15883. module_expsym_cmds_CXX \
  15884. export_symbols_cmds_CXX \
  15885. prelink_cmds_CXX \
  15886. postlink_cmds_CXX; do
  15887. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15888. *[\\\\\\\`\\"\\\$]*)
  15889. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15890. ;;
  15891. *)
  15892. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15893. ;;
  15894. esac
  15895. done
  15896. ac_aux_dir='$ac_aux_dir'
  15897. xsi_shell='$xsi_shell'
  15898. lt_shell_append='$lt_shell_append'
  15899. # See if we are running on zsh, and set the options which allow our
  15900. # commands through without removal of \ escapes INIT.
  15901. if test -n "\${ZSH_VERSION+set}" ; then
  15902. setopt NO_GLOB_SUBST
  15903. fi
  15904. PACKAGE='$PACKAGE'
  15905. VERSION='$VERSION'
  15906. TIMESTAMP='$TIMESTAMP'
  15907. RM='$RM'
  15908. ofile='$ofile'
  15909. _ACEOF
  15910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15911. # Handling of arguments.
  15912. for ac_config_target in $ac_config_targets
  15913. do
  15914. case $ac_config_target in
  15915. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15916. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15917. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15918. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  15919. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  15920. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  15921. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  15922. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  15923. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  15924. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  15925. "Scripting/ERM/Makefile") CONFIG_FILES="$CONFIG_FILES Scripting/ERM/Makefile" ;;
  15926. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15927. esac
  15928. done
  15929. # If the user did not use the arguments to specify the items to instantiate,
  15930. # then the envvar interface is used. Set only those that are not.
  15931. # We use the long form for the default assignment because of an extremely
  15932. # bizarre bug on SunOS 4.1.3.
  15933. if $ac_need_defaults; then
  15934. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15935. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15936. fi
  15937. # Have a temporary directory for convenience. Make it in the build tree
  15938. # simply because there is no reason against having it here, and in addition,
  15939. # creating and moving files from /tmp can sometimes cause problems.
  15940. # Hook for its removal unless debugging.
  15941. # Note that there is a small window in which the directory will not be cleaned:
  15942. # after its creation but before its name has been assigned to `$tmp'.
  15943. $debug ||
  15944. {
  15945. tmp= ac_tmp=
  15946. trap 'exit_status=$?
  15947. : "${ac_tmp:=$tmp}"
  15948. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15949. ' 0
  15950. trap 'as_fn_exit 1' 1 2 13 15
  15951. }
  15952. # Create a (secure) tmp directory for tmp files.
  15953. {
  15954. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15955. test -d "$tmp"
  15956. } ||
  15957. {
  15958. tmp=./conf$$-$RANDOM
  15959. (umask 077 && mkdir "$tmp")
  15960. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15961. ac_tmp=$tmp
  15962. # Set up the scripts for CONFIG_FILES section.
  15963. # No need to generate them if there are no CONFIG_FILES.
  15964. # This happens for instance with `./config.status config.h'.
  15965. if test -n "$CONFIG_FILES"; then
  15966. ac_cr=`echo X | tr X '\015'`
  15967. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15968. # But we know of no other shell where ac_cr would be empty at this
  15969. # point, so we can use a bashism as a fallback.
  15970. if test "x$ac_cr" = x; then
  15971. eval ac_cr=\$\'\\r\'
  15972. fi
  15973. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15974. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15975. ac_cs_awk_cr='\\r'
  15976. else
  15977. ac_cs_awk_cr=$ac_cr
  15978. fi
  15979. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15980. _ACEOF
  15981. {
  15982. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15983. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15984. echo "_ACEOF"
  15985. } >conf$$subs.sh ||
  15986. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15987. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15988. ac_delim='%!_!# '
  15989. for ac_last_try in false false false false false :; do
  15990. . ./conf$$subs.sh ||
  15991. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15992. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15993. if test $ac_delim_n = $ac_delim_num; then
  15994. break
  15995. elif $ac_last_try; then
  15996. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15997. else
  15998. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15999. fi
  16000. done
  16001. rm -f conf$$subs.sh
  16002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16003. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16004. _ACEOF
  16005. sed -n '
  16006. h
  16007. s/^/S["/; s/!.*/"]=/
  16008. p
  16009. g
  16010. s/^[^!]*!//
  16011. :repl
  16012. t repl
  16013. s/'"$ac_delim"'$//
  16014. t delim
  16015. :nl
  16016. h
  16017. s/\(.\{148\}\)..*/\1/
  16018. t more1
  16019. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16020. p
  16021. n
  16022. b repl
  16023. :more1
  16024. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16025. p
  16026. g
  16027. s/.\{148\}//
  16028. t nl
  16029. :delim
  16030. h
  16031. s/\(.\{148\}\)..*/\1/
  16032. t more2
  16033. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16034. p
  16035. b
  16036. :more2
  16037. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16038. p
  16039. g
  16040. s/.\{148\}//
  16041. t delim
  16042. ' <conf$$subs.awk | sed '
  16043. /^[^""]/{
  16044. N
  16045. s/\n//
  16046. }
  16047. ' >>$CONFIG_STATUS || ac_write_fail=1
  16048. rm -f conf$$subs.awk
  16049. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16050. _ACAWK
  16051. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16052. for (key in S) S_is_set[key] = 1
  16053. FS = ""
  16054. }
  16055. {
  16056. line = $ 0
  16057. nfields = split(line, field, "@")
  16058. substed = 0
  16059. len = length(field[1])
  16060. for (i = 2; i < nfields; i++) {
  16061. key = field[i]
  16062. keylen = length(key)
  16063. if (S_is_set[key]) {
  16064. value = S[key]
  16065. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16066. len += length(value) + length(field[++i])
  16067. substed = 1
  16068. } else
  16069. len += 1 + keylen
  16070. }
  16071. print line
  16072. }
  16073. _ACAWK
  16074. _ACEOF
  16075. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16076. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16077. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16078. else
  16079. cat
  16080. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16081. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16082. _ACEOF
  16083. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16084. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16085. # trailing colons and then remove the whole line if VPATH becomes empty
  16086. # (actually we leave an empty line to preserve line numbers).
  16087. if test "x$srcdir" = x.; then
  16088. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16089. h
  16090. s///
  16091. s/^/:/
  16092. s/[ ]*$/:/
  16093. s/:\$(srcdir):/:/g
  16094. s/:\${srcdir}:/:/g
  16095. s/:@srcdir@:/:/g
  16096. s/^:*//
  16097. s/:*$//
  16098. x
  16099. s/\(=[ ]*\).*/\1/
  16100. G
  16101. s/\n//
  16102. s/^[^=]*=[ ]*$//
  16103. }'
  16104. fi
  16105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16106. fi # test -n "$CONFIG_FILES"
  16107. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16108. shift
  16109. for ac_tag
  16110. do
  16111. case $ac_tag in
  16112. :[FHLC]) ac_mode=$ac_tag; continue;;
  16113. esac
  16114. case $ac_mode$ac_tag in
  16115. :[FHL]*:*);;
  16116. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16117. :[FH]-) ac_tag=-:-;;
  16118. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16119. esac
  16120. ac_save_IFS=$IFS
  16121. IFS=:
  16122. set x $ac_tag
  16123. IFS=$ac_save_IFS
  16124. shift
  16125. ac_file=$1
  16126. shift
  16127. case $ac_mode in
  16128. :L) ac_source=$1;;
  16129. :[FH])
  16130. ac_file_inputs=
  16131. for ac_f
  16132. do
  16133. case $ac_f in
  16134. -) ac_f="$ac_tmp/stdin";;
  16135. *) # Look for the file first in the build tree, then in the source tree
  16136. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16137. # because $ac_f cannot contain `:'.
  16138. test -f "$ac_f" ||
  16139. case $ac_f in
  16140. [\\/$]*) false;;
  16141. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16142. esac ||
  16143. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16144. esac
  16145. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16146. as_fn_append ac_file_inputs " '$ac_f'"
  16147. done
  16148. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16149. # use $as_me), people would be surprised to read:
  16150. # /* config.h. Generated by config.status. */
  16151. configure_input='Generated from '`
  16152. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16153. `' by configure.'
  16154. if test x"$ac_file" != x-; then
  16155. configure_input="$ac_file. $configure_input"
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16157. $as_echo "$as_me: creating $ac_file" >&6;}
  16158. fi
  16159. # Neutralize special characters interpreted by sed in replacement strings.
  16160. case $configure_input in #(
  16161. *\&* | *\|* | *\\* )
  16162. ac_sed_conf_input=`$as_echo "$configure_input" |
  16163. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16164. *) ac_sed_conf_input=$configure_input;;
  16165. esac
  16166. case $ac_tag in
  16167. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16168. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16169. esac
  16170. ;;
  16171. esac
  16172. ac_dir=`$as_dirname -- "$ac_file" ||
  16173. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16174. X"$ac_file" : 'X\(//\)[^/]' \| \
  16175. X"$ac_file" : 'X\(//\)$' \| \
  16176. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16177. $as_echo X"$ac_file" |
  16178. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16179. s//\1/
  16180. q
  16181. }
  16182. /^X\(\/\/\)[^/].*/{
  16183. s//\1/
  16184. q
  16185. }
  16186. /^X\(\/\/\)$/{
  16187. s//\1/
  16188. q
  16189. }
  16190. /^X\(\/\).*/{
  16191. s//\1/
  16192. q
  16193. }
  16194. s/.*/./; q'`
  16195. as_dir="$ac_dir"; as_fn_mkdir_p
  16196. ac_builddir=.
  16197. case "$ac_dir" in
  16198. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16199. *)
  16200. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16201. # A ".." for each directory in $ac_dir_suffix.
  16202. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16203. case $ac_top_builddir_sub in
  16204. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16205. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16206. esac ;;
  16207. esac
  16208. ac_abs_top_builddir=$ac_pwd
  16209. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16210. # for backward compatibility:
  16211. ac_top_builddir=$ac_top_build_prefix
  16212. case $srcdir in
  16213. .) # We are building in place.
  16214. ac_srcdir=.
  16215. ac_top_srcdir=$ac_top_builddir_sub
  16216. ac_abs_top_srcdir=$ac_pwd ;;
  16217. [\\/]* | ?:[\\/]* ) # Absolute name.
  16218. ac_srcdir=$srcdir$ac_dir_suffix;
  16219. ac_top_srcdir=$srcdir
  16220. ac_abs_top_srcdir=$srcdir ;;
  16221. *) # Relative name.
  16222. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16223. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16224. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16225. esac
  16226. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16227. case $ac_mode in
  16228. :F)
  16229. #
  16230. # CONFIG_FILE
  16231. #
  16232. case $INSTALL in
  16233. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16234. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16235. esac
  16236. ac_MKDIR_P=$MKDIR_P
  16237. case $MKDIR_P in
  16238. [\\/$]* | ?:[\\/]* ) ;;
  16239. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16240. esac
  16241. _ACEOF
  16242. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16243. # If the template does not know about datarootdir, expand it.
  16244. # FIXME: This hack should be removed a few years after 2.60.
  16245. ac_datarootdir_hack=; ac_datarootdir_seen=
  16246. ac_sed_dataroot='
  16247. /datarootdir/ {
  16248. p
  16249. q
  16250. }
  16251. /@datadir@/p
  16252. /@docdir@/p
  16253. /@infodir@/p
  16254. /@localedir@/p
  16255. /@mandir@/p'
  16256. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16257. *datarootdir*) ac_datarootdir_seen=yes;;
  16258. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16260. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16261. _ACEOF
  16262. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16263. ac_datarootdir_hack='
  16264. s&@datadir@&$datadir&g
  16265. s&@docdir@&$docdir&g
  16266. s&@infodir@&$infodir&g
  16267. s&@localedir@&$localedir&g
  16268. s&@mandir@&$mandir&g
  16269. s&\\\${datarootdir}&$datarootdir&g' ;;
  16270. esac
  16271. _ACEOF
  16272. # Neutralize VPATH when `$srcdir' = `.'.
  16273. # Shell code in configure.ac might set extrasub.
  16274. # FIXME: do we really want to maintain this feature?
  16275. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16276. ac_sed_extra="$ac_vpsub
  16277. $extrasub
  16278. _ACEOF
  16279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16280. :t
  16281. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16282. s|@configure_input@|$ac_sed_conf_input|;t t
  16283. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16284. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16285. s&@srcdir@&$ac_srcdir&;t t
  16286. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16287. s&@top_srcdir@&$ac_top_srcdir&;t t
  16288. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16289. s&@builddir@&$ac_builddir&;t t
  16290. s&@abs_builddir@&$ac_abs_builddir&;t t
  16291. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16292. s&@INSTALL@&$ac_INSTALL&;t t
  16293. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16294. $ac_datarootdir_hack
  16295. "
  16296. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16297. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16298. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16299. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16300. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16301. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16303. which seems to be undefined. Please make sure it is defined" >&5
  16304. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16305. which seems to be undefined. Please make sure it is defined" >&2;}
  16306. rm -f "$ac_tmp/stdin"
  16307. case $ac_file in
  16308. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16309. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16310. esac \
  16311. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16312. ;;
  16313. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16314. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16315. ;;
  16316. esac
  16317. case $ac_file$ac_mode in
  16318. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16319. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16320. # are listed without --file. Let's play safe and only enable the eval
  16321. # if we detect the quoting.
  16322. case $CONFIG_FILES in
  16323. *\'*) eval set x "$CONFIG_FILES" ;;
  16324. *) set x $CONFIG_FILES ;;
  16325. esac
  16326. shift
  16327. for mf
  16328. do
  16329. # Strip MF so we end up with the name of the file.
  16330. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16331. # Check whether this is an Automake generated Makefile or not.
  16332. # We used to match only the files named `Makefile.in', but
  16333. # some people rename them; so instead we look at the file content.
  16334. # Grep'ing the first line is not enough: some people post-process
  16335. # each Makefile.in and add a new line on top of each file to say so.
  16336. # Grep'ing the whole file is not good either: AIX grep has a line
  16337. # limit of 2048, but all sed's we know have understand at least 4000.
  16338. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16339. dirpart=`$as_dirname -- "$mf" ||
  16340. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16341. X"$mf" : 'X\(//\)[^/]' \| \
  16342. X"$mf" : 'X\(//\)$' \| \
  16343. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16344. $as_echo X"$mf" |
  16345. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16346. s//\1/
  16347. q
  16348. }
  16349. /^X\(\/\/\)[^/].*/{
  16350. s//\1/
  16351. q
  16352. }
  16353. /^X\(\/\/\)$/{
  16354. s//\1/
  16355. q
  16356. }
  16357. /^X\(\/\).*/{
  16358. s//\1/
  16359. q
  16360. }
  16361. s/.*/./; q'`
  16362. else
  16363. continue
  16364. fi
  16365. # Extract the definition of DEPDIR, am__include, and am__quote
  16366. # from the Makefile without running `make'.
  16367. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16368. test -z "$DEPDIR" && continue
  16369. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16370. test -z "am__include" && continue
  16371. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16372. # When using ansi2knr, U may be empty or an underscore; expand it
  16373. U=`sed -n 's/^U = //p' < "$mf"`
  16374. # Find all dependency output files, they are included files with
  16375. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16376. # simplest approach to changing $(DEPDIR) to its actual value in the
  16377. # expansion.
  16378. for file in `sed -n "
  16379. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16380. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16381. # Make sure the directory exists.
  16382. test -f "$dirpart/$file" && continue
  16383. fdir=`$as_dirname -- "$file" ||
  16384. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16385. X"$file" : 'X\(//\)[^/]' \| \
  16386. X"$file" : 'X\(//\)$' \| \
  16387. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16388. $as_echo X"$file" |
  16389. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16390. s//\1/
  16391. q
  16392. }
  16393. /^X\(\/\/\)[^/].*/{
  16394. s//\1/
  16395. q
  16396. }
  16397. /^X\(\/\/\)$/{
  16398. s//\1/
  16399. q
  16400. }
  16401. /^X\(\/\).*/{
  16402. s//\1/
  16403. q
  16404. }
  16405. s/.*/./; q'`
  16406. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16407. # echo "creating $dirpart/$file"
  16408. echo '# dummy' > "$dirpart/$file"
  16409. done
  16410. done
  16411. }
  16412. ;;
  16413. "libtool":C)
  16414. # See if we are running on zsh, and set the options which allow our
  16415. # commands through without removal of \ escapes.
  16416. if test -n "${ZSH_VERSION+set}" ; then
  16417. setopt NO_GLOB_SUBST
  16418. fi
  16419. cfgfile="${ofile}T"
  16420. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16421. $RM "$cfgfile"
  16422. cat <<_LT_EOF >> "$cfgfile"
  16423. #! $SHELL
  16424. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16425. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16426. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16427. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16428. #
  16429. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16430. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  16431. # Inc.
  16432. # Written by Gordon Matzigkeit, 1996
  16433. #
  16434. # This file is part of GNU Libtool.
  16435. #
  16436. # GNU Libtool is free software; you can redistribute it and/or
  16437. # modify it under the terms of the GNU General Public License as
  16438. # published by the Free Software Foundation; either version 2 of
  16439. # the License, or (at your option) any later version.
  16440. #
  16441. # As a special exception to the GNU General Public License,
  16442. # if you distribute this file as part of a program or library that
  16443. # is built using GNU Libtool, you may include this file under the
  16444. # same distribution terms that you use for the rest of that program.
  16445. #
  16446. # GNU Libtool is distributed in the hope that it will be useful,
  16447. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16448. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16449. # GNU General Public License for more details.
  16450. #
  16451. # You should have received a copy of the GNU General Public License
  16452. # along with GNU Libtool; see the file COPYING. If not, a copy
  16453. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16454. # obtained by writing to the Free Software Foundation, Inc.,
  16455. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16456. # The names of the tagged configurations supported by this script.
  16457. available_tags="CXX "
  16458. # ### BEGIN LIBTOOL CONFIG
  16459. # Whether or not to build shared libraries.
  16460. build_libtool_libs=$enable_shared
  16461. # Whether or not to build static libraries.
  16462. build_old_libs=$enable_static
  16463. # Which release of libtool.m4 was used?
  16464. macro_version=$macro_version
  16465. macro_revision=$macro_revision
  16466. # What type of objects to build.
  16467. pic_mode=$pic_mode
  16468. # Whether or not to optimize for fast installation.
  16469. fast_install=$enable_fast_install
  16470. # Shell to use when invoking shell scripts.
  16471. SHELL=$lt_SHELL
  16472. # An echo program that protects backslashes.
  16473. ECHO=$lt_ECHO
  16474. # The host system.
  16475. host_alias=$host_alias
  16476. host=$host
  16477. host_os=$host_os
  16478. # The build system.
  16479. build_alias=$build_alias
  16480. build=$build
  16481. build_os=$build_os
  16482. # A sed program that does not truncate output.
  16483. SED=$lt_SED
  16484. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16485. Xsed="\$SED -e 1s/^X//"
  16486. # A grep program that handles long lines.
  16487. GREP=$lt_GREP
  16488. # An ERE matcher.
  16489. EGREP=$lt_EGREP
  16490. # A literal string matcher.
  16491. FGREP=$lt_FGREP
  16492. # A BSD- or MS-compatible name lister.
  16493. NM=$lt_NM
  16494. # Whether we need soft or hard links.
  16495. LN_S=$lt_LN_S
  16496. # What is the maximum length of a command?
  16497. max_cmd_len=$max_cmd_len
  16498. # Object file suffix (normally "o").
  16499. objext=$ac_objext
  16500. # Executable file suffix (normally "").
  16501. exeext=$exeext
  16502. # whether the shell understands "unset".
  16503. lt_unset=$lt_unset
  16504. # turn spaces into newlines.
  16505. SP2NL=$lt_lt_SP2NL
  16506. # turn newlines into spaces.
  16507. NL2SP=$lt_lt_NL2SP
  16508. # convert \$build file names to \$host format.
  16509. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16510. # convert \$build files to toolchain format.
  16511. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16512. # An object symbol dumper.
  16513. OBJDUMP=$lt_OBJDUMP
  16514. # Method to check whether dependent libraries are shared objects.
  16515. deplibs_check_method=$lt_deplibs_check_method
  16516. # Command to use when deplibs_check_method = "file_magic".
  16517. file_magic_cmd=$lt_file_magic_cmd
  16518. # How to find potential files when deplibs_check_method = "file_magic".
  16519. file_magic_glob=$lt_file_magic_glob
  16520. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16521. want_nocaseglob=$lt_want_nocaseglob
  16522. # DLL creation program.
  16523. DLLTOOL=$lt_DLLTOOL
  16524. # Command to associate shared and link libraries.
  16525. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16526. # The archiver.
  16527. AR=$lt_AR
  16528. # Flags to create an archive.
  16529. AR_FLAGS=$lt_AR_FLAGS
  16530. # How to feed a file listing to the archiver.
  16531. archiver_list_spec=$lt_archiver_list_spec
  16532. # A symbol stripping program.
  16533. STRIP=$lt_STRIP
  16534. # Commands used to install an old-style archive.
  16535. RANLIB=$lt_RANLIB
  16536. old_postinstall_cmds=$lt_old_postinstall_cmds
  16537. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16538. # Whether to use a lock for old archive extraction.
  16539. lock_old_archive_extraction=$lock_old_archive_extraction
  16540. # A C compiler.
  16541. LTCC=$lt_CC
  16542. # LTCC compiler flags.
  16543. LTCFLAGS=$lt_CFLAGS
  16544. # Take the output of nm and produce a listing of raw symbols and C names.
  16545. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16546. # Transform the output of nm in a proper C declaration.
  16547. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16548. # Transform the output of nm in a C name address pair.
  16549. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16550. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16551. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16552. # Specify filename containing input files for \$NM.
  16553. nm_file_list_spec=$lt_nm_file_list_spec
  16554. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16555. lt_sysroot=$lt_sysroot
  16556. # The name of the directory that contains temporary libtool files.
  16557. objdir=$objdir
  16558. # Used to examine libraries when file_magic_cmd begins with "file".
  16559. MAGIC_CMD=$MAGIC_CMD
  16560. # Must we lock files when doing compilation?
  16561. need_locks=$lt_need_locks
  16562. # Manifest tool.
  16563. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16564. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16565. DSYMUTIL=$lt_DSYMUTIL
  16566. # Tool to change global to local symbols on Mac OS X.
  16567. NMEDIT=$lt_NMEDIT
  16568. # Tool to manipulate fat objects and archives on Mac OS X.
  16569. LIPO=$lt_LIPO
  16570. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16571. OTOOL=$lt_OTOOL
  16572. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16573. OTOOL64=$lt_OTOOL64
  16574. # Old archive suffix (normally "a").
  16575. libext=$libext
  16576. # Shared library suffix (normally ".so").
  16577. shrext_cmds=$lt_shrext_cmds
  16578. # The commands to extract the exported symbol list from a shared archive.
  16579. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16580. # Variables whose values should be saved in libtool wrapper scripts and
  16581. # restored at link time.
  16582. variables_saved_for_relink=$lt_variables_saved_for_relink
  16583. # Do we need the "lib" prefix for modules?
  16584. need_lib_prefix=$need_lib_prefix
  16585. # Do we need a version for libraries?
  16586. need_version=$need_version
  16587. # Library versioning type.
  16588. version_type=$version_type
  16589. # Shared library runtime path variable.
  16590. runpath_var=$runpath_var
  16591. # Shared library path variable.
  16592. shlibpath_var=$shlibpath_var
  16593. # Is shlibpath searched before the hard-coded library search path?
  16594. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16595. # Format of library name prefix.
  16596. libname_spec=$lt_libname_spec
  16597. # List of archive names. First name is the real one, the rest are links.
  16598. # The last name is the one that the linker finds with -lNAME
  16599. library_names_spec=$lt_library_names_spec
  16600. # The coded name of the library, if different from the real name.
  16601. soname_spec=$lt_soname_spec
  16602. # Permission mode override for installation of shared libraries.
  16603. install_override_mode=$lt_install_override_mode
  16604. # Command to use after installation of a shared archive.
  16605. postinstall_cmds=$lt_postinstall_cmds
  16606. # Command to use after uninstallation of a shared archive.
  16607. postuninstall_cmds=$lt_postuninstall_cmds
  16608. # Commands used to finish a libtool library installation in a directory.
  16609. finish_cmds=$lt_finish_cmds
  16610. # As "finish_cmds", except a single script fragment to be evaled but
  16611. # not shown.
  16612. finish_eval=$lt_finish_eval
  16613. # Whether we should hardcode library paths into libraries.
  16614. hardcode_into_libs=$hardcode_into_libs
  16615. # Compile-time system search path for libraries.
  16616. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16617. # Run-time system search path for libraries.
  16618. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16619. # Whether dlopen is supported.
  16620. dlopen_support=$enable_dlopen
  16621. # Whether dlopen of programs is supported.
  16622. dlopen_self=$enable_dlopen_self
  16623. # Whether dlopen of statically linked programs is supported.
  16624. dlopen_self_static=$enable_dlopen_self_static
  16625. # Commands to strip libraries.
  16626. old_striplib=$lt_old_striplib
  16627. striplib=$lt_striplib
  16628. # The linker used to build libraries.
  16629. LD=$lt_LD
  16630. # How to create reloadable object files.
  16631. reload_flag=$lt_reload_flag
  16632. reload_cmds=$lt_reload_cmds
  16633. # Commands used to build an old-style archive.
  16634. old_archive_cmds=$lt_old_archive_cmds
  16635. # A language specific compiler.
  16636. CC=$lt_compiler
  16637. # Is the compiler the GNU compiler?
  16638. with_gcc=$GCC
  16639. # Compiler flag to turn off builtin functions.
  16640. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16641. # Additional compiler flags for building library objects.
  16642. pic_flag=$lt_lt_prog_compiler_pic
  16643. # How to pass a linker flag through the compiler.
  16644. wl=$lt_lt_prog_compiler_wl
  16645. # Compiler flag to prevent dynamic linking.
  16646. link_static_flag=$lt_lt_prog_compiler_static
  16647. # Does compiler simultaneously support -c and -o options?
  16648. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16649. # Whether or not to add -lc for building shared libraries.
  16650. build_libtool_need_lc=$archive_cmds_need_lc
  16651. # Whether or not to disallow shared libs when runtime libs are static.
  16652. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16653. # Compiler flag to allow reflexive dlopens.
  16654. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16655. # Compiler flag to generate shared objects directly from archives.
  16656. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16657. # Whether the compiler copes with passing no objects directly.
  16658. compiler_needs_object=$lt_compiler_needs_object
  16659. # Create an old-style archive from a shared archive.
  16660. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16661. # Create a temporary old-style archive to link instead of a shared archive.
  16662. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16663. # Commands used to build a shared archive.
  16664. archive_cmds=$lt_archive_cmds
  16665. archive_expsym_cmds=$lt_archive_expsym_cmds
  16666. # Commands used to build a loadable module if different from building
  16667. # a shared archive.
  16668. module_cmds=$lt_module_cmds
  16669. module_expsym_cmds=$lt_module_expsym_cmds
  16670. # Whether we are building with GNU ld or not.
  16671. with_gnu_ld=$lt_with_gnu_ld
  16672. # Flag that allows shared libraries with undefined symbols to be built.
  16673. allow_undefined_flag=$lt_allow_undefined_flag
  16674. # Flag that enforces no undefined symbols.
  16675. no_undefined_flag=$lt_no_undefined_flag
  16676. # Flag to hardcode \$libdir into a binary during linking.
  16677. # This must work even if \$libdir does not exist
  16678. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16679. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16680. # during linking. This must work even if \$libdir does not exist.
  16681. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16682. # Whether we need a single "-rpath" flag with a separated argument.
  16683. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16684. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16685. # DIR into the resulting binary.
  16686. hardcode_direct=$hardcode_direct
  16687. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16688. # DIR into the resulting binary and the resulting library dependency is
  16689. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16690. # library is relocated.
  16691. hardcode_direct_absolute=$hardcode_direct_absolute
  16692. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16693. # into the resulting binary.
  16694. hardcode_minus_L=$hardcode_minus_L
  16695. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16696. # into the resulting binary.
  16697. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16698. # Set to "yes" if building a shared library automatically hardcodes DIR
  16699. # into the library and all subsequent libraries and executables linked
  16700. # against it.
  16701. hardcode_automatic=$hardcode_automatic
  16702. # Set to yes if linker adds runtime paths of dependent libraries
  16703. # to runtime path list.
  16704. inherit_rpath=$inherit_rpath
  16705. # Whether libtool must link a program against all its dependency libraries.
  16706. link_all_deplibs=$link_all_deplibs
  16707. # Set to "yes" if exported symbols are required.
  16708. always_export_symbols=$always_export_symbols
  16709. # The commands to list exported symbols.
  16710. export_symbols_cmds=$lt_export_symbols_cmds
  16711. # Symbols that should not be listed in the preloaded symbols.
  16712. exclude_expsyms=$lt_exclude_expsyms
  16713. # Symbols that must always be exported.
  16714. include_expsyms=$lt_include_expsyms
  16715. # Commands necessary for linking programs (against libraries) with templates.
  16716. prelink_cmds=$lt_prelink_cmds
  16717. # Commands necessary for finishing linking programs.
  16718. postlink_cmds=$lt_postlink_cmds
  16719. # Specify filename containing input files.
  16720. file_list_spec=$lt_file_list_spec
  16721. # How to hardcode a shared library path into an executable.
  16722. hardcode_action=$hardcode_action
  16723. # The directories searched by this compiler when creating a shared library.
  16724. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16725. # Dependencies to place before and after the objects being linked to
  16726. # create a shared library.
  16727. predep_objects=$lt_predep_objects
  16728. postdep_objects=$lt_postdep_objects
  16729. predeps=$lt_predeps
  16730. postdeps=$lt_postdeps
  16731. # The library search path used internally by the compiler when linking
  16732. # a shared library.
  16733. compiler_lib_search_path=$lt_compiler_lib_search_path
  16734. # ### END LIBTOOL CONFIG
  16735. _LT_EOF
  16736. case $host_os in
  16737. aix3*)
  16738. cat <<\_LT_EOF >> "$cfgfile"
  16739. # AIX sometimes has problems with the GCC collect2 program. For some
  16740. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16741. # vanish in a puff of smoke.
  16742. if test "X${COLLECT_NAMES+set}" != Xset; then
  16743. COLLECT_NAMES=
  16744. export COLLECT_NAMES
  16745. fi
  16746. _LT_EOF
  16747. ;;
  16748. esac
  16749. ltmain="$ac_aux_dir/ltmain.sh"
  16750. # We use sed instead of cat because bash on DJGPP gets confused if
  16751. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16752. # text mode, it properly converts lines to CR/LF. This bash problem
  16753. # is reportedly fixed, but why not run on old versions too?
  16754. sed '$q' "$ltmain" >> "$cfgfile" \
  16755. || (rm -f "$cfgfile"; exit 1)
  16756. if test x"$xsi_shell" = xyes; then
  16757. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16758. func_dirname ()\
  16759. {\
  16760. \ case ${1} in\
  16761. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16762. \ * ) func_dirname_result="${3}" ;;\
  16763. \ esac\
  16764. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16765. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16766. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16767. test 0 -eq $? || _lt_function_replace_fail=:
  16768. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16769. func_basename ()\
  16770. {\
  16771. \ func_basename_result="${1##*/}"\
  16772. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16773. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16774. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16775. test 0 -eq $? || _lt_function_replace_fail=:
  16776. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16777. func_dirname_and_basename ()\
  16778. {\
  16779. \ case ${1} in\
  16780. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16781. \ * ) func_dirname_result="${3}" ;;\
  16782. \ esac\
  16783. \ func_basename_result="${1##*/}"\
  16784. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16785. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16786. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16787. test 0 -eq $? || _lt_function_replace_fail=:
  16788. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16789. func_stripname ()\
  16790. {\
  16791. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16792. \ # positional parameters, so assign one to ordinary parameter first.\
  16793. \ func_stripname_result=${3}\
  16794. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16795. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16796. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16797. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16798. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16799. test 0 -eq $? || _lt_function_replace_fail=:
  16800. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16801. func_split_long_opt ()\
  16802. {\
  16803. \ func_split_long_opt_name=${1%%=*}\
  16804. \ func_split_long_opt_arg=${1#*=}\
  16805. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16806. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16807. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16808. test 0 -eq $? || _lt_function_replace_fail=:
  16809. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16810. func_split_short_opt ()\
  16811. {\
  16812. \ func_split_short_opt_arg=${1#??}\
  16813. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16814. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16815. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16816. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16817. test 0 -eq $? || _lt_function_replace_fail=:
  16818. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16819. func_lo2o ()\
  16820. {\
  16821. \ case ${1} in\
  16822. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16823. \ *) func_lo2o_result=${1} ;;\
  16824. \ esac\
  16825. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16826. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16827. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16828. test 0 -eq $? || _lt_function_replace_fail=:
  16829. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16830. func_xform ()\
  16831. {\
  16832. func_xform_result=${1%.*}.lo\
  16833. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16834. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16835. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16836. test 0 -eq $? || _lt_function_replace_fail=:
  16837. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16838. func_arith ()\
  16839. {\
  16840. func_arith_result=$(( $* ))\
  16841. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16842. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16843. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16844. test 0 -eq $? || _lt_function_replace_fail=:
  16845. sed -e '/^func_len ()$/,/^} # func_len /c\
  16846. func_len ()\
  16847. {\
  16848. func_len_result=${#1}\
  16849. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16850. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16851. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16852. test 0 -eq $? || _lt_function_replace_fail=:
  16853. fi
  16854. if test x"$lt_shell_append" = xyes; then
  16855. sed -e '/^func_append ()$/,/^} # func_append /c\
  16856. func_append ()\
  16857. {\
  16858. eval "${1}+=\\${2}"\
  16859. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16860. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16861. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16862. test 0 -eq $? || _lt_function_replace_fail=:
  16863. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16864. func_append_quoted ()\
  16865. {\
  16866. \ func_quote_for_eval "${2}"\
  16867. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16868. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16869. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16870. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16871. test 0 -eq $? || _lt_function_replace_fail=:
  16872. # Save a `func_append' function call where possible by direct use of '+='
  16873. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16874. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16875. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16876. test 0 -eq $? || _lt_function_replace_fail=:
  16877. else
  16878. # Save a `func_append' function call even when '+=' is not available
  16879. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16880. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16881. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16882. test 0 -eq $? || _lt_function_replace_fail=:
  16883. fi
  16884. if test x"$_lt_function_replace_fail" = x":"; then
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16886. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16887. fi
  16888. mv -f "$cfgfile" "$ofile" ||
  16889. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16890. chmod +x "$ofile"
  16891. cat <<_LT_EOF >> "$ofile"
  16892. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16893. # The linker used to build libraries.
  16894. LD=$lt_LD_CXX
  16895. # How to create reloadable object files.
  16896. reload_flag=$lt_reload_flag_CXX
  16897. reload_cmds=$lt_reload_cmds_CXX
  16898. # Commands used to build an old-style archive.
  16899. old_archive_cmds=$lt_old_archive_cmds_CXX
  16900. # A language specific compiler.
  16901. CC=$lt_compiler_CXX
  16902. # Is the compiler the GNU compiler?
  16903. with_gcc=$GCC_CXX
  16904. # Compiler flag to turn off builtin functions.
  16905. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16906. # Additional compiler flags for building library objects.
  16907. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16908. # How to pass a linker flag through the compiler.
  16909. wl=$lt_lt_prog_compiler_wl_CXX
  16910. # Compiler flag to prevent dynamic linking.
  16911. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16912. # Does compiler simultaneously support -c and -o options?
  16913. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16914. # Whether or not to add -lc for building shared libraries.
  16915. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16916. # Whether or not to disallow shared libs when runtime libs are static.
  16917. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16918. # Compiler flag to allow reflexive dlopens.
  16919. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16920. # Compiler flag to generate shared objects directly from archives.
  16921. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16922. # Whether the compiler copes with passing no objects directly.
  16923. compiler_needs_object=$lt_compiler_needs_object_CXX
  16924. # Create an old-style archive from a shared archive.
  16925. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16926. # Create a temporary old-style archive to link instead of a shared archive.
  16927. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16928. # Commands used to build a shared archive.
  16929. archive_cmds=$lt_archive_cmds_CXX
  16930. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16931. # Commands used to build a loadable module if different from building
  16932. # a shared archive.
  16933. module_cmds=$lt_module_cmds_CXX
  16934. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16935. # Whether we are building with GNU ld or not.
  16936. with_gnu_ld=$lt_with_gnu_ld_CXX
  16937. # Flag that allows shared libraries with undefined symbols to be built.
  16938. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16939. # Flag that enforces no undefined symbols.
  16940. no_undefined_flag=$lt_no_undefined_flag_CXX
  16941. # Flag to hardcode \$libdir into a binary during linking.
  16942. # This must work even if \$libdir does not exist
  16943. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16944. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16945. # during linking. This must work even if \$libdir does not exist.
  16946. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16947. # Whether we need a single "-rpath" flag with a separated argument.
  16948. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16949. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16950. # DIR into the resulting binary.
  16951. hardcode_direct=$hardcode_direct_CXX
  16952. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16953. # DIR into the resulting binary and the resulting library dependency is
  16954. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16955. # library is relocated.
  16956. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16957. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16958. # into the resulting binary.
  16959. hardcode_minus_L=$hardcode_minus_L_CXX
  16960. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16961. # into the resulting binary.
  16962. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16963. # Set to "yes" if building a shared library automatically hardcodes DIR
  16964. # into the library and all subsequent libraries and executables linked
  16965. # against it.
  16966. hardcode_automatic=$hardcode_automatic_CXX
  16967. # Set to yes if linker adds runtime paths of dependent libraries
  16968. # to runtime path list.
  16969. inherit_rpath=$inherit_rpath_CXX
  16970. # Whether libtool must link a program against all its dependency libraries.
  16971. link_all_deplibs=$link_all_deplibs_CXX
  16972. # Set to "yes" if exported symbols are required.
  16973. always_export_symbols=$always_export_symbols_CXX
  16974. # The commands to list exported symbols.
  16975. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16976. # Symbols that should not be listed in the preloaded symbols.
  16977. exclude_expsyms=$lt_exclude_expsyms_CXX
  16978. # Symbols that must always be exported.
  16979. include_expsyms=$lt_include_expsyms_CXX
  16980. # Commands necessary for linking programs (against libraries) with templates.
  16981. prelink_cmds=$lt_prelink_cmds_CXX
  16982. # Commands necessary for finishing linking programs.
  16983. postlink_cmds=$lt_postlink_cmds_CXX
  16984. # Specify filename containing input files.
  16985. file_list_spec=$lt_file_list_spec_CXX
  16986. # How to hardcode a shared library path into an executable.
  16987. hardcode_action=$hardcode_action_CXX
  16988. # The directories searched by this compiler when creating a shared library.
  16989. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16990. # Dependencies to place before and after the objects being linked to
  16991. # create a shared library.
  16992. predep_objects=$lt_predep_objects_CXX
  16993. postdep_objects=$lt_postdep_objects_CXX
  16994. predeps=$lt_predeps_CXX
  16995. postdeps=$lt_postdeps_CXX
  16996. # The library search path used internally by the compiler when linking
  16997. # a shared library.
  16998. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16999. # ### END LIBTOOL TAG CONFIG: CXX
  17000. _LT_EOF
  17001. ;;
  17002. esac
  17003. done # for ac_tag
  17004. as_fn_exit 0
  17005. _ACEOF
  17006. ac_clean_files=$ac_clean_files_save
  17007. test $ac_write_fail = 0 ||
  17008. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17009. # configure is writing to config.log, and then calls config.status.
  17010. # config.status does its own redirection, appending to config.log.
  17011. # Unfortunately, on DOS this fails, as config.log is still kept open
  17012. # by configure, so config.status won't be able to write to it; its
  17013. # output is simply discarded. So we exec the FD to /dev/null,
  17014. # effectively closing config.log, so it can be properly (re)opened and
  17015. # appended to by config.status. When coming back to configure, we
  17016. # need to make the FD available again.
  17017. if test "$no_create" != yes; then
  17018. ac_cs_success=:
  17019. ac_config_status_args=
  17020. test "$silent" = yes &&
  17021. ac_config_status_args="$ac_config_status_args --quiet"
  17022. exec 5>/dev/null
  17023. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17024. exec 5>>config.log
  17025. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17026. # would make configure fail if this is the last instruction.
  17027. $ac_cs_success || as_fn_exit 1
  17028. fi
  17029. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17031. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17032. fi