configure 565 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for vcmi 0.83.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell [email protected] about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  332. # ----------------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with STATUS, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$1; test $as_status -eq 0 && as_status=1
  339. if test "$4"; then
  340. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  342. fi
  343. $as_echo "$as_me: error: $2" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='vcmi'
  637. PACKAGE_TARNAME='vcmi'
  638. PACKAGE_VERSION='0.83'
  639. PACKAGE_STRING='vcmi 0.83'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. FFMPEG_CXXFLAGS
  682. FFMPEG_LIBS
  683. SDL_CXXFLAGS
  684. SDL_LIBS
  685. HAVE_SDL_CONFIG
  686. BOOST_PROGRAM_OPTIONS_LIB
  687. BOOST_IOSTREAMS_LIB
  688. BOOST_THREAD_LIB
  689. BOOST_FILESYSTEM_LIB
  690. BOOST_SYSTEM_LIB
  691. BOOST_LDFLAGS
  692. BOOST_CPPFLAGS
  693. AM_BACKSLASH
  694. AM_DEFAULT_VERBOSITY
  695. CXXCPP
  696. CPP
  697. OTOOL64
  698. OTOOL
  699. LIPO
  700. NMEDIT
  701. DSYMUTIL
  702. lt_ECHO
  703. RANLIB
  704. AR
  705. OBJDUMP
  706. LN_S
  707. NM
  708. ac_ct_DUMPBIN
  709. DUMPBIN
  710. LD
  711. FGREP
  712. EGREP
  713. GREP
  714. SED
  715. am__fastdepCC_FALSE
  716. am__fastdepCC_TRUE
  717. CCDEPMODE
  718. ac_ct_CC
  719. CFLAGS
  720. CC
  721. host_os
  722. host_vendor
  723. host_cpu
  724. host
  725. build_os
  726. build_vendor
  727. build_cpu
  728. build
  729. LIBTOOL
  730. am__fastdepCXX_FALSE
  731. am__fastdepCXX_TRUE
  732. CXXDEPMODE
  733. AMDEPBACKSLASH
  734. AMDEP_FALSE
  735. AMDEP_TRUE
  736. am__quote
  737. am__include
  738. DEPDIR
  739. OBJEXT
  740. EXEEXT
  741. ac_ct_CXX
  742. CPPFLAGS
  743. LDFLAGS
  744. CXXFLAGS
  745. CXX
  746. am__untar
  747. am__tar
  748. AMTAR
  749. am__leading_dot
  750. SET_MAKE
  751. AWK
  752. mkdir_p
  753. MKDIR_P
  754. INSTALL_STRIP_PROGRAM
  755. STRIP
  756. install_sh
  757. MAKEINFO
  758. AUTOHEADER
  759. AUTOMAKE
  760. AUTOCONF
  761. ACLOCAL
  762. VERSION
  763. PACKAGE
  764. CYGPATH_W
  765. am__isrc
  766. INSTALL_DATA
  767. INSTALL_SCRIPT
  768. INSTALL_PROGRAM
  769. target_alias
  770. host_alias
  771. build_alias
  772. LIBS
  773. ECHO_T
  774. ECHO_N
  775. ECHO_C
  776. DEFS
  777. mandir
  778. localedir
  779. libdir
  780. psdir
  781. pdfdir
  782. dvidir
  783. htmldir
  784. infodir
  785. docdir
  786. oldincludedir
  787. includedir
  788. localstatedir
  789. sharedstatedir
  790. sysconfdir
  791. datadir
  792. datarootdir
  793. libexecdir
  794. sbindir
  795. bindir
  796. program_transform_name
  797. prefix
  798. exec_prefix
  799. PACKAGE_URL
  800. PACKAGE_BUGREPORT
  801. PACKAGE_STRING
  802. PACKAGE_VERSION
  803. PACKAGE_TARNAME
  804. PACKAGE_NAME
  805. PATH_SEPARATOR
  806. SHELL'
  807. ac_subst_files=''
  808. ac_user_opts='
  809. enable_option_checking
  810. enable_dependency_tracking
  811. enable_shared
  812. enable_static
  813. with_pic
  814. enable_fast_install
  815. with_gnu_ld
  816. enable_libtool_lock
  817. enable_silent_rules
  818. enable_debug
  819. with_boost
  820. with_boost_libdir
  821. with_boost_system
  822. with_boost_filesystem
  823. with_boost_thread
  824. with_boost_iostreams
  825. with_boost_program_options
  826. '
  827. ac_precious_vars='build_alias
  828. host_alias
  829. target_alias
  830. CXX
  831. CXXFLAGS
  832. LDFLAGS
  833. LIBS
  834. CPPFLAGS
  835. CCC
  836. CC
  837. CFLAGS
  838. CPP
  839. CXXCPP'
  840. # Initialize some variables set by options.
  841. ac_init_help=
  842. ac_init_version=false
  843. ac_unrecognized_opts=
  844. ac_unrecognized_sep=
  845. # The variables have the same names as the options, with
  846. # dashes changed to underlines.
  847. cache_file=/dev/null
  848. exec_prefix=NONE
  849. no_create=
  850. no_recursion=
  851. prefix=NONE
  852. program_prefix=NONE
  853. program_suffix=NONE
  854. program_transform_name=s,x,x,
  855. silent=
  856. site=
  857. srcdir=
  858. verbose=
  859. x_includes=NONE
  860. x_libraries=NONE
  861. # Installation directory options.
  862. # These are left unexpanded so users can "make install exec_prefix=/foo"
  863. # and all the variables that are supposed to be based on exec_prefix
  864. # by default will actually change.
  865. # Use braces instead of parens because sh, perl, etc. also accept them.
  866. # (The list follows the same order as the GNU Coding Standards.)
  867. bindir='${exec_prefix}/bin'
  868. sbindir='${exec_prefix}/sbin'
  869. libexecdir='${exec_prefix}/libexec'
  870. datarootdir='${prefix}/share'
  871. datadir='${datarootdir}'
  872. sysconfdir='${prefix}/etc'
  873. sharedstatedir='${prefix}/com'
  874. localstatedir='${prefix}/var'
  875. includedir='${prefix}/include'
  876. oldincludedir='/usr/include'
  877. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  878. infodir='${datarootdir}/info'
  879. htmldir='${docdir}'
  880. dvidir='${docdir}'
  881. pdfdir='${docdir}'
  882. psdir='${docdir}'
  883. libdir='${exec_prefix}/lib'
  884. localedir='${datarootdir}/locale'
  885. mandir='${datarootdir}/man'
  886. ac_prev=
  887. ac_dashdash=
  888. for ac_option
  889. do
  890. # If the previous option needs an argument, assign it.
  891. if test -n "$ac_prev"; then
  892. eval $ac_prev=\$ac_option
  893. ac_prev=
  894. continue
  895. fi
  896. case $ac_option in
  897. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  898. *=) ac_optarg= ;;
  899. *) ac_optarg=yes ;;
  900. esac
  901. # Accept the important Cygnus configure options, so we can diagnose typos.
  902. case $ac_dashdash$ac_option in
  903. --)
  904. ac_dashdash=yes ;;
  905. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  906. ac_prev=bindir ;;
  907. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  908. bindir=$ac_optarg ;;
  909. -build | --build | --buil | --bui | --bu)
  910. ac_prev=build_alias ;;
  911. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  912. build_alias=$ac_optarg ;;
  913. -cache-file | --cache-file | --cache-fil | --cache-fi \
  914. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  915. ac_prev=cache_file ;;
  916. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  917. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  918. cache_file=$ac_optarg ;;
  919. --config-cache | -C)
  920. cache_file=config.cache ;;
  921. -datadir | --datadir | --datadi | --datad)
  922. ac_prev=datadir ;;
  923. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  924. datadir=$ac_optarg ;;
  925. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  926. | --dataroo | --dataro | --datar)
  927. ac_prev=datarootdir ;;
  928. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  929. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  930. datarootdir=$ac_optarg ;;
  931. -disable-* | --disable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error $? "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=no ;;
  946. -docdir | --docdir | --docdi | --doc | --do)
  947. ac_prev=docdir ;;
  948. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  949. docdir=$ac_optarg ;;
  950. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  951. ac_prev=dvidir ;;
  952. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  953. dvidir=$ac_optarg ;;
  954. -enable-* | --enable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error $? "invalid feature name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=\$ac_optarg ;;
  969. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  970. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  971. | --exec | --exe | --ex)
  972. ac_prev=exec_prefix ;;
  973. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  974. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  975. | --exec=* | --exe=* | --ex=*)
  976. exec_prefix=$ac_optarg ;;
  977. -gas | --gas | --ga | --g)
  978. # Obsolete; use --with-gas.
  979. with_gas=yes ;;
  980. -help | --help | --hel | --he | -h)
  981. ac_init_help=long ;;
  982. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  983. ac_init_help=recursive ;;
  984. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  985. ac_init_help=short ;;
  986. -host | --host | --hos | --ho)
  987. ac_prev=host_alias ;;
  988. -host=* | --host=* | --hos=* | --ho=*)
  989. host_alias=$ac_optarg ;;
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995. -includedir | --includedir | --includedi | --included | --include \
  996. | --includ | --inclu | --incl | --inc)
  997. ac_prev=includedir ;;
  998. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  999. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1000. includedir=$ac_optarg ;;
  1001. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1002. ac_prev=infodir ;;
  1003. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1004. infodir=$ac_optarg ;;
  1005. -libdir | --libdir | --libdi | --libd)
  1006. ac_prev=libdir ;;
  1007. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1008. libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. libexecdir=$ac_optarg ;;
  1015. -localedir | --localedir | --localedi | --localed | --locale)
  1016. ac_prev=localedir ;;
  1017. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1018. localedir=$ac_optarg ;;
  1019. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1020. | --localstate | --localstat | --localsta | --localst | --locals)
  1021. ac_prev=localstatedir ;;
  1022. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1023. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1024. localstatedir=$ac_optarg ;;
  1025. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1026. ac_prev=mandir ;;
  1027. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1028. mandir=$ac_optarg ;;
  1029. -nfp | --nfp | --nf)
  1030. # Obsolete; use --without-fp.
  1031. with_fp=no ;;
  1032. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1033. | --no-cr | --no-c | -n)
  1034. no_create=yes ;;
  1035. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037. no_recursion=yes ;;
  1038. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1039. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1040. | --oldin | --oldi | --old | --ol | --o)
  1041. ac_prev=oldincludedir ;;
  1042. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1043. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1044. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1045. oldincludedir=$ac_optarg ;;
  1046. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1047. ac_prev=prefix ;;
  1048. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1049. prefix=$ac_optarg ;;
  1050. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1051. | --program-pre | --program-pr | --program-p)
  1052. ac_prev=program_prefix ;;
  1053. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1054. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1055. program_prefix=$ac_optarg ;;
  1056. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1057. | --program-suf | --program-su | --program-s)
  1058. ac_prev=program_suffix ;;
  1059. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1060. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1061. program_suffix=$ac_optarg ;;
  1062. -program-transform-name | --program-transform-name \
  1063. | --program-transform-nam | --program-transform-na \
  1064. | --program-transform-n | --program-transform- \
  1065. | --program-transform | --program-transfor \
  1066. | --program-transfo | --program-transf \
  1067. | --program-trans | --program-tran \
  1068. | --progr-tra | --program-tr | --program-t)
  1069. ac_prev=program_transform_name ;;
  1070. -program-transform-name=* | --program-transform-name=* \
  1071. | --program-transform-nam=* | --program-transform-na=* \
  1072. | --program-transform-n=* | --program-transform-=* \
  1073. | --program-transform=* | --program-transfor=* \
  1074. | --program-transfo=* | --program-transf=* \
  1075. | --program-trans=* | --program-tran=* \
  1076. | --progr-tra=* | --program-tr=* | --program-t=*)
  1077. program_transform_name=$ac_optarg ;;
  1078. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1079. ac_prev=pdfdir ;;
  1080. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1081. pdfdir=$ac_optarg ;;
  1082. -psdir | --psdir | --psdi | --psd | --ps)
  1083. ac_prev=psdir ;;
  1084. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1085. psdir=$ac_optarg ;;
  1086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1087. | -silent | --silent | --silen | --sile | --sil)
  1088. silent=yes ;;
  1089. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1090. ac_prev=sbindir ;;
  1091. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1092. | --sbi=* | --sb=*)
  1093. sbindir=$ac_optarg ;;
  1094. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1095. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1096. | --sharedst | --shareds | --shared | --share | --shar \
  1097. | --sha | --sh)
  1098. ac_prev=sharedstatedir ;;
  1099. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1100. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1101. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1102. | --sha=* | --sh=*)
  1103. sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. site=$ac_optarg ;;
  1108. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1109. ac_prev=srcdir ;;
  1110. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1111. srcdir=$ac_optarg ;;
  1112. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1113. | --syscon | --sysco | --sysc | --sys | --sy)
  1114. ac_prev=sysconfdir ;;
  1115. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1116. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1117. sysconfdir=$ac_optarg ;;
  1118. -target | --target | --targe | --targ | --tar | --ta | --t)
  1119. ac_prev=target_alias ;;
  1120. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1121. target_alias=$ac_optarg ;;
  1122. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1123. verbose=yes ;;
  1124. -version | --version | --versio | --versi | --vers | -V)
  1125. ac_init_version=: ;;
  1126. -with-* | --with-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error $? "invalid package name: $ac_useropt"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval with_$ac_useropt=\$ac_optarg ;;
  1141. -without-* | --without-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=no ;;
  1156. --x)
  1157. # Obsolete; use --with-x.
  1158. with_x=yes ;;
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1166. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1167. ac_prev=x_libraries ;;
  1168. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1169. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1170. x_libraries=$ac_optarg ;;
  1171. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1172. Try \`$0 --help' for more information"
  1173. ;;
  1174. *=*)
  1175. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1176. # Reject names that are not valid shell variable names.
  1177. case $ac_envvar in #(
  1178. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1179. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1180. esac
  1181. eval $ac_envvar=\$ac_optarg
  1182. export $ac_envvar ;;
  1183. *)
  1184. # FIXME: should be removed in autoconf 3.0.
  1185. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1189. ;;
  1190. esac
  1191. done
  1192. if test -n "$ac_prev"; then
  1193. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1194. as_fn_error $? "missing argument to $ac_option"
  1195. fi
  1196. if test -n "$ac_unrecognized_opts"; then
  1197. case $enable_option_checking in
  1198. no) ;;
  1199. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1200. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1201. esac
  1202. fi
  1203. # Check all directory arguments for consistency.
  1204. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1205. datadir sysconfdir sharedstatedir localstatedir includedir \
  1206. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1207. libdir localedir mandir
  1208. do
  1209. eval ac_val=\$$ac_var
  1210. # Remove trailing slashes.
  1211. case $ac_val in
  1212. */ )
  1213. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1214. eval $ac_var=\$ac_val;;
  1215. esac
  1216. # Be sure to have absolute directory names.
  1217. case $ac_val in
  1218. [\\/$]* | ?:[\\/]* ) continue;;
  1219. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1220. esac
  1221. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1222. done
  1223. # There might be people who depend on the old broken behavior: `$host'
  1224. # used to hold the argument of --host etc.
  1225. # FIXME: To remove some day.
  1226. build=$build_alias
  1227. host=$host_alias
  1228. target=$target_alias
  1229. # FIXME: To remove some day.
  1230. if test "x$host_alias" != x; then
  1231. if test "x$build_alias" = x; then
  1232. cross_compiling=maybe
  1233. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1234. If a cross compiler is detected then cross compile mode will be used" >&2
  1235. elif test "x$build_alias" != "x$host_alias"; then
  1236. cross_compiling=yes
  1237. fi
  1238. fi
  1239. ac_tool_prefix=
  1240. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1241. test "$silent" = yes && exec 6>/dev/null
  1242. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1243. ac_ls_di=`ls -di .` &&
  1244. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1245. as_fn_error $? "working directory cannot be determined"
  1246. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1247. as_fn_error $? "pwd does not report name of working directory"
  1248. # Find the source files, if location was not specified.
  1249. if test -z "$srcdir"; then
  1250. ac_srcdir_defaulted=yes
  1251. # Try the directory containing this script, then the parent directory.
  1252. ac_confdir=`$as_dirname -- "$as_myself" ||
  1253. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1254. X"$as_myself" : 'X\(//\)[^/]' \| \
  1255. X"$as_myself" : 'X\(//\)$' \| \
  1256. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1257. $as_echo X"$as_myself" |
  1258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)[^/].*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\).*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. s/.*/./; q'`
  1275. srcdir=$ac_confdir
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. srcdir=..
  1278. fi
  1279. else
  1280. ac_srcdir_defaulted=no
  1281. fi
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1284. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1289. pwd)`
  1290. # When building in place, set srcdir=.
  1291. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1292. srcdir=.
  1293. fi
  1294. # Remove unnecessary trailing slashes from srcdir.
  1295. # Double slashes in file names in object file debugging info
  1296. # mess up M-x gdb in Emacs.
  1297. case $srcdir in
  1298. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1299. esac
  1300. for ac_var in $ac_precious_vars; do
  1301. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_env_${ac_var}_value=\$${ac_var}
  1303. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1305. done
  1306. #
  1307. # Report the --help message.
  1308. #
  1309. if test "$ac_init_help" = "long"; then
  1310. # Omit some internal or obsolete options to make the list less imposing.
  1311. # This message is too long to be a string in the A/UX 3.1 sh.
  1312. cat <<_ACEOF
  1313. \`configure' configures vcmi 0.83 to adapt to many kinds of systems.
  1314. Usage: $0 [OPTION]... [VAR=VALUE]...
  1315. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1316. VAR=VALUE. See below for descriptions of some of the useful variables.
  1317. Defaults for the options are specified in brackets.
  1318. Configuration:
  1319. -h, --help display this help and exit
  1320. --help=short display options specific to this package
  1321. --help=recursive display the short help of all the included packages
  1322. -V, --version display version information and exit
  1323. -q, --quiet, --silent do not print \`checking ...' messages
  1324. --cache-file=FILE cache test results in FILE [disabled]
  1325. -C, --config-cache alias for \`--cache-file=config.cache'
  1326. -n, --no-create do not create output files
  1327. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1328. Installation directories:
  1329. --prefix=PREFIX install architecture-independent files in PREFIX
  1330. [$ac_default_prefix]
  1331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1332. [PREFIX]
  1333. By default, \`make install' will install all the files in
  1334. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1335. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1336. for instance \`--prefix=\$HOME'.
  1337. For better control, use the options below.
  1338. Fine tuning of the installation directories:
  1339. --bindir=DIR user executables [EPREFIX/bin]
  1340. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1341. --libexecdir=DIR program executables [EPREFIX/libexec]
  1342. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1343. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1344. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1345. --libdir=DIR object code libraries [EPREFIX/lib]
  1346. --includedir=DIR C header files [PREFIX/include]
  1347. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1348. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1349. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1350. --infodir=DIR info documentation [DATAROOTDIR/info]
  1351. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1352. --mandir=DIR man documentation [DATAROOTDIR/man]
  1353. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1354. --htmldir=DIR html documentation [DOCDIR]
  1355. --dvidir=DIR dvi documentation [DOCDIR]
  1356. --pdfdir=DIR pdf documentation [DOCDIR]
  1357. --psdir=DIR ps documentation [DOCDIR]
  1358. _ACEOF
  1359. cat <<\_ACEOF
  1360. Program names:
  1361. --program-prefix=PREFIX prepend PREFIX to installed program names
  1362. --program-suffix=SUFFIX append SUFFIX to installed program names
  1363. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1364. System types:
  1365. --build=BUILD configure for building on BUILD [guessed]
  1366. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1367. _ACEOF
  1368. fi
  1369. if test -n "$ac_init_help"; then
  1370. case $ac_init_help in
  1371. short | recursive ) echo "Configuration of vcmi 0.83:";;
  1372. esac
  1373. cat <<\_ACEOF
  1374. Optional Features:
  1375. --disable-option-checking ignore unrecognized --enable/--with options
  1376. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1377. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --enable-shared[=PKGS] build shared libraries [default=yes]
  1381. --enable-static[=PKGS] build static libraries [default=no]
  1382. --enable-fast-install[=PKGS]
  1383. optimize for fast installation [default=yes]
  1384. --disable-libtool-lock avoid locking (might break parallel builds)
  1385. --enable-silent-rules less verbose build output (undo: `make V=1')
  1386. --disable-silent-rules verbose build output (undo: `make V=0')
  1387. --disable-debug turn off debugging (default=enable)
  1388. Optional Packages:
  1389. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1390. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1391. --with-pic try to use only PIC/non-PIC objects [default=use
  1392. both]
  1393. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1394. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1395. specify the root directory for boost (optional)
  1396. --with-boost-libdir=LIB_DIR
  1397. Force given directory for boost libraries. Note that
  1398. this will overwrite library path detection, so use
  1399. this parameter only if default library detection
  1400. fails and you know exactly where your boost
  1401. libraries are located.
  1402. --with-boost-system[=special-lib]
  1403. use the System library from boost - it is possible
  1404. to specify a certain library for the linker e.g.
  1405. --with-boost-system=boost_system-gcc-mt
  1406. --with-boost-filesystem[=special-lib]
  1407. use the Filesystem library from boost - it is
  1408. possible to specify a certain library for the linker
  1409. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1410. --with-boost-thread[=special-lib]
  1411. use the Thread library from boost - it is possible
  1412. to specify a certain library for the linker e.g.
  1413. --with-boost-thread=boost_thread-gcc-mt
  1414. --with-boost-iostreams[=special-lib]
  1415. use the IOStreams library from boost - it is
  1416. possible to specify a certain library for the
  1417. linker e.g.
  1418. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1419. --with-boost-program-options[=special-lib]
  1420. use the program options library from boost - it is
  1421. possible to specify a certain library for the linker
  1422. e.g.
  1423. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1424. Some influential environment variables:
  1425. CXX C++ compiler command
  1426. CXXFLAGS C++ compiler flags
  1427. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1428. nonstandard directory <lib dir>
  1429. LIBS libraries to pass to the linker, e.g. -l<library>
  1430. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1431. you have headers in a nonstandard directory <include dir>
  1432. CC C compiler command
  1433. CFLAGS C compiler flags
  1434. CPP C preprocessor
  1435. CXXCPP C++ preprocessor
  1436. Use these variables to override the choices made by `configure' or to help
  1437. it to find libraries and programs with nonstandard names/locations.
  1438. Report bugs to the package provider.
  1439. _ACEOF
  1440. ac_status=$?
  1441. fi
  1442. if test "$ac_init_help" = "recursive"; then
  1443. # If there are subdirs, report their specific --help.
  1444. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1445. test -d "$ac_dir" ||
  1446. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1447. continue
  1448. ac_builddir=.
  1449. case "$ac_dir" in
  1450. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1451. *)
  1452. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1453. # A ".." for each directory in $ac_dir_suffix.
  1454. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1455. case $ac_top_builddir_sub in
  1456. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1458. esac ;;
  1459. esac
  1460. ac_abs_top_builddir=$ac_pwd
  1461. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1462. # for backward compatibility:
  1463. ac_top_builddir=$ac_top_build_prefix
  1464. case $srcdir in
  1465. .) # We are building in place.
  1466. ac_srcdir=.
  1467. ac_top_srcdir=$ac_top_builddir_sub
  1468. ac_abs_top_srcdir=$ac_pwd ;;
  1469. [\\/]* | ?:[\\/]* ) # Absolute name.
  1470. ac_srcdir=$srcdir$ac_dir_suffix;
  1471. ac_top_srcdir=$srcdir
  1472. ac_abs_top_srcdir=$srcdir ;;
  1473. *) # Relative name.
  1474. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1475. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1476. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1477. esac
  1478. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1479. cd "$ac_dir" || { ac_status=$?; continue; }
  1480. # Check for guested configure.
  1481. if test -f "$ac_srcdir/configure.gnu"; then
  1482. echo &&
  1483. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1484. elif test -f "$ac_srcdir/configure"; then
  1485. echo &&
  1486. $SHELL "$ac_srcdir/configure" --help=recursive
  1487. else
  1488. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1489. fi || ac_status=$?
  1490. cd "$ac_pwd" || { ac_status=$?; break; }
  1491. done
  1492. fi
  1493. test -n "$ac_init_help" && exit $ac_status
  1494. if $ac_init_version; then
  1495. cat <<\_ACEOF
  1496. vcmi configure 0.83
  1497. generated by GNU Autoconf 2.67
  1498. Copyright (C) 2010 Free Software Foundation, Inc.
  1499. This configure script is free software; the Free Software Foundation
  1500. gives unlimited permission to copy, distribute and modify it.
  1501. _ACEOF
  1502. exit
  1503. fi
  1504. ## ------------------------ ##
  1505. ## Autoconf initialization. ##
  1506. ## ------------------------ ##
  1507. # ac_fn_cxx_try_compile LINENO
  1508. # ----------------------------
  1509. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1510. ac_fn_cxx_try_compile ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. rm -f conftest.$ac_objext
  1514. if { { ac_try="$ac_compile"
  1515. case "(($ac_try" in
  1516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1517. *) ac_try_echo=$ac_try;;
  1518. esac
  1519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1520. $as_echo "$ac_try_echo"; } >&5
  1521. (eval "$ac_compile") 2>conftest.err
  1522. ac_status=$?
  1523. if test -s conftest.err; then
  1524. grep -v '^ *+' conftest.err >conftest.er1
  1525. cat conftest.er1 >&5
  1526. mv -f conftest.er1 conftest.err
  1527. fi
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; } && {
  1530. test -z "$ac_cxx_werror_flag" ||
  1531. test ! -s conftest.err
  1532. } && test -s conftest.$ac_objext; then :
  1533. ac_retval=0
  1534. else
  1535. $as_echo "$as_me: failed program was:" >&5
  1536. sed 's/^/| /' conftest.$ac_ext >&5
  1537. ac_retval=1
  1538. fi
  1539. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1540. as_fn_set_status $ac_retval
  1541. } # ac_fn_cxx_try_compile
  1542. # ac_fn_c_try_compile LINENO
  1543. # --------------------------
  1544. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1545. ac_fn_c_try_compile ()
  1546. {
  1547. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1548. rm -f conftest.$ac_objext
  1549. if { { ac_try="$ac_compile"
  1550. case "(($ac_try" in
  1551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1552. *) ac_try_echo=$ac_try;;
  1553. esac
  1554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1555. $as_echo "$ac_try_echo"; } >&5
  1556. (eval "$ac_compile") 2>conftest.err
  1557. ac_status=$?
  1558. if test -s conftest.err; then
  1559. grep -v '^ *+' conftest.err >conftest.er1
  1560. cat conftest.er1 >&5
  1561. mv -f conftest.er1 conftest.err
  1562. fi
  1563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1564. test $ac_status = 0; } && {
  1565. test -z "$ac_c_werror_flag" ||
  1566. test ! -s conftest.err
  1567. } && test -s conftest.$ac_objext; then :
  1568. ac_retval=0
  1569. else
  1570. $as_echo "$as_me: failed program was:" >&5
  1571. sed 's/^/| /' conftest.$ac_ext >&5
  1572. ac_retval=1
  1573. fi
  1574. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1575. as_fn_set_status $ac_retval
  1576. } # ac_fn_c_try_compile
  1577. # ac_fn_c_try_link LINENO
  1578. # -----------------------
  1579. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1580. ac_fn_c_try_link ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. rm -f conftest.$ac_objext conftest$ac_exeext
  1584. if { { ac_try="$ac_link"
  1585. case "(($ac_try" in
  1586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1587. *) ac_try_echo=$ac_try;;
  1588. esac
  1589. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1590. $as_echo "$ac_try_echo"; } >&5
  1591. (eval "$ac_link") 2>conftest.err
  1592. ac_status=$?
  1593. if test -s conftest.err; then
  1594. grep -v '^ *+' conftest.err >conftest.er1
  1595. cat conftest.er1 >&5
  1596. mv -f conftest.er1 conftest.err
  1597. fi
  1598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1599. test $ac_status = 0; } && {
  1600. test -z "$ac_c_werror_flag" ||
  1601. test ! -s conftest.err
  1602. } && test -s conftest$ac_exeext && {
  1603. test "$cross_compiling" = yes ||
  1604. $as_test_x conftest$ac_exeext
  1605. }; then :
  1606. ac_retval=0
  1607. else
  1608. $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. ac_retval=1
  1611. fi
  1612. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1613. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1614. # interfere with the next link command; also delete a directory that is
  1615. # left behind by Apple's compiler. We do this before executing the actions.
  1616. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1617. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1618. as_fn_set_status $ac_retval
  1619. } # ac_fn_c_try_link
  1620. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1621. # -------------------------------------------------------
  1622. # Tests whether HEADER exists and can be compiled using the include files in
  1623. # INCLUDES, setting the cache variable VAR accordingly.
  1624. ac_fn_c_check_header_compile ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval "test \"\${$3+set}\"" = set; then :
  1630. $as_echo_n "(cached) " >&6
  1631. else
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. $4
  1635. #include <$2>
  1636. _ACEOF
  1637. if ac_fn_c_try_compile "$LINENO"; then :
  1638. eval "$3=yes"
  1639. else
  1640. eval "$3=no"
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1643. fi
  1644. eval ac_res=\$$3
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1646. $as_echo "$ac_res" >&6; }
  1647. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1648. } # ac_fn_c_check_header_compile
  1649. # ac_fn_c_try_cpp LINENO
  1650. # ----------------------
  1651. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1652. ac_fn_c_try_cpp ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1656. case "(($ac_try" in
  1657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1658. *) ac_try_echo=$ac_try;;
  1659. esac
  1660. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1661. $as_echo "$ac_try_echo"; } >&5
  1662. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1663. ac_status=$?
  1664. if test -s conftest.err; then
  1665. grep -v '^ *+' conftest.err >conftest.er1
  1666. cat conftest.er1 >&5
  1667. mv -f conftest.er1 conftest.err
  1668. fi
  1669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1670. test $ac_status = 0; } > conftest.i && {
  1671. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1672. test ! -s conftest.err
  1673. }; then :
  1674. ac_retval=0
  1675. else
  1676. $as_echo "$as_me: failed program was:" >&5
  1677. sed 's/^/| /' conftest.$ac_ext >&5
  1678. ac_retval=1
  1679. fi
  1680. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1681. as_fn_set_status $ac_retval
  1682. } # ac_fn_c_try_cpp
  1683. # ac_fn_c_try_run LINENO
  1684. # ----------------------
  1685. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1686. # that executables *can* be run.
  1687. ac_fn_c_try_run ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. if { { ac_try="$ac_link"
  1691. case "(($ac_try" in
  1692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1693. *) ac_try_echo=$ac_try;;
  1694. esac
  1695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1696. $as_echo "$ac_try_echo"; } >&5
  1697. (eval "$ac_link") 2>&5
  1698. ac_status=$?
  1699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1700. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1701. { { case "(($ac_try" in
  1702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1703. *) ac_try_echo=$ac_try;;
  1704. esac
  1705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1706. $as_echo "$ac_try_echo"; } >&5
  1707. (eval "$ac_try") 2>&5
  1708. ac_status=$?
  1709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1710. test $ac_status = 0; }; }; then :
  1711. ac_retval=0
  1712. else
  1713. $as_echo "$as_me: program exited with status $ac_status" >&5
  1714. $as_echo "$as_me: failed program was:" >&5
  1715. sed 's/^/| /' conftest.$ac_ext >&5
  1716. ac_retval=$ac_status
  1717. fi
  1718. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1719. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1720. as_fn_set_status $ac_retval
  1721. } # ac_fn_c_try_run
  1722. # ac_fn_c_check_func LINENO FUNC VAR
  1723. # ----------------------------------
  1724. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1725. ac_fn_c_check_func ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1729. $as_echo_n "checking for $2... " >&6; }
  1730. if eval "test \"\${$3+set}\"" = set; then :
  1731. $as_echo_n "(cached) " >&6
  1732. else
  1733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1734. /* end confdefs.h. */
  1735. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1736. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1737. #define $2 innocuous_$2
  1738. /* System header to define __stub macros and hopefully few prototypes,
  1739. which can conflict with char $2 (); below.
  1740. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1741. <limits.h> exists even on freestanding compilers. */
  1742. #ifdef __STDC__
  1743. # include <limits.h>
  1744. #else
  1745. # include <assert.h>
  1746. #endif
  1747. #undef $2
  1748. /* Override any GCC internal prototype to avoid an error.
  1749. Use char because int might match the return type of a GCC
  1750. builtin and then its argument prototype would still apply. */
  1751. #ifdef __cplusplus
  1752. extern "C"
  1753. #endif
  1754. char $2 ();
  1755. /* The GNU C library defines this for functions which it implements
  1756. to always fail with ENOSYS. Some functions are actually named
  1757. something starting with __ and the normal name is an alias. */
  1758. #if defined __stub_$2 || defined __stub___$2
  1759. choke me
  1760. #endif
  1761. int
  1762. main ()
  1763. {
  1764. return $2 ();
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. if ac_fn_c_try_link "$LINENO"; then :
  1770. eval "$3=yes"
  1771. else
  1772. eval "$3=no"
  1773. fi
  1774. rm -f core conftest.err conftest.$ac_objext \
  1775. conftest$ac_exeext conftest.$ac_ext
  1776. fi
  1777. eval ac_res=\$$3
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1779. $as_echo "$ac_res" >&6; }
  1780. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1781. } # ac_fn_c_check_func
  1782. # ac_fn_cxx_try_cpp LINENO
  1783. # ------------------------
  1784. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1785. ac_fn_cxx_try_cpp ()
  1786. {
  1787. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1789. case "(($ac_try" in
  1790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1791. *) ac_try_echo=$ac_try;;
  1792. esac
  1793. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1794. $as_echo "$ac_try_echo"; } >&5
  1795. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1796. ac_status=$?
  1797. if test -s conftest.err; then
  1798. grep -v '^ *+' conftest.err >conftest.er1
  1799. cat conftest.er1 >&5
  1800. mv -f conftest.er1 conftest.err
  1801. fi
  1802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1803. test $ac_status = 0; } > conftest.i && {
  1804. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1805. test ! -s conftest.err
  1806. }; then :
  1807. ac_retval=0
  1808. else
  1809. $as_echo "$as_me: failed program was:" >&5
  1810. sed 's/^/| /' conftest.$ac_ext >&5
  1811. ac_retval=1
  1812. fi
  1813. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1814. as_fn_set_status $ac_retval
  1815. } # ac_fn_cxx_try_cpp
  1816. # ac_fn_cxx_try_link LINENO
  1817. # -------------------------
  1818. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1819. ac_fn_cxx_try_link ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. rm -f conftest.$ac_objext conftest$ac_exeext
  1823. if { { ac_try="$ac_link"
  1824. case "(($ac_try" in
  1825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1826. *) ac_try_echo=$ac_try;;
  1827. esac
  1828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1829. $as_echo "$ac_try_echo"; } >&5
  1830. (eval "$ac_link") 2>conftest.err
  1831. ac_status=$?
  1832. if test -s conftest.err; then
  1833. grep -v '^ *+' conftest.err >conftest.er1
  1834. cat conftest.er1 >&5
  1835. mv -f conftest.er1 conftest.err
  1836. fi
  1837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1838. test $ac_status = 0; } && {
  1839. test -z "$ac_cxx_werror_flag" ||
  1840. test ! -s conftest.err
  1841. } && test -s conftest$ac_exeext && {
  1842. test "$cross_compiling" = yes ||
  1843. $as_test_x conftest$ac_exeext
  1844. }; then :
  1845. ac_retval=0
  1846. else
  1847. $as_echo "$as_me: failed program was:" >&5
  1848. sed 's/^/| /' conftest.$ac_ext >&5
  1849. ac_retval=1
  1850. fi
  1851. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1852. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1853. # interfere with the next link command; also delete a directory that is
  1854. # left behind by Apple's compiler. We do this before executing the actions.
  1855. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1856. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1857. as_fn_set_status $ac_retval
  1858. } # ac_fn_cxx_try_link
  1859. # ac_fn_cxx_try_run LINENO
  1860. # ------------------------
  1861. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1862. # that executables *can* be run.
  1863. ac_fn_cxx_try_run ()
  1864. {
  1865. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1866. if { { ac_try="$ac_link"
  1867. case "(($ac_try" in
  1868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1869. *) ac_try_echo=$ac_try;;
  1870. esac
  1871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1872. $as_echo "$ac_try_echo"; } >&5
  1873. (eval "$ac_link") 2>&5
  1874. ac_status=$?
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1877. { { case "(($ac_try" in
  1878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1879. *) ac_try_echo=$ac_try;;
  1880. esac
  1881. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1882. $as_echo "$ac_try_echo"; } >&5
  1883. (eval "$ac_try") 2>&5
  1884. ac_status=$?
  1885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1886. test $ac_status = 0; }; }; then :
  1887. ac_retval=0
  1888. else
  1889. $as_echo "$as_me: program exited with status $ac_status" >&5
  1890. $as_echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. ac_retval=$ac_status
  1893. fi
  1894. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1895. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1896. as_fn_set_status $ac_retval
  1897. } # ac_fn_cxx_try_run
  1898. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1899. # ---------------------------------------------------------
  1900. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1901. # the include files in INCLUDES and setting the cache variable VAR
  1902. # accordingly.
  1903. ac_fn_cxx_check_header_mongrel ()
  1904. {
  1905. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1906. if eval "test \"\${$3+set}\"" = set; then :
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. $as_echo_n "checking for $2... " >&6; }
  1909. if eval "test \"\${$3+set}\"" = set; then :
  1910. $as_echo_n "(cached) " >&6
  1911. fi
  1912. eval ac_res=\$$3
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1914. $as_echo "$ac_res" >&6; }
  1915. else
  1916. # Is the header compilable?
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1918. $as_echo_n "checking $2 usability... " >&6; }
  1919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1920. /* end confdefs.h. */
  1921. $4
  1922. #include <$2>
  1923. _ACEOF
  1924. if ac_fn_cxx_try_compile "$LINENO"; then :
  1925. ac_header_compiler=yes
  1926. else
  1927. ac_header_compiler=no
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1931. $as_echo "$ac_header_compiler" >&6; }
  1932. # Is the header present?
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1934. $as_echo_n "checking $2 presence... " >&6; }
  1935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1936. /* end confdefs.h. */
  1937. #include <$2>
  1938. _ACEOF
  1939. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1940. ac_header_preproc=yes
  1941. else
  1942. ac_header_preproc=no
  1943. fi
  1944. rm -f conftest.err conftest.i conftest.$ac_ext
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1946. $as_echo "$ac_header_preproc" >&6; }
  1947. # So? What about this header?
  1948. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1949. yes:no: )
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1951. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1953. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1954. ;;
  1955. no:yes:* )
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1957. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1959. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1961. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1963. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1965. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1966. ;;
  1967. esac
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1969. $as_echo_n "checking for $2... " >&6; }
  1970. if eval "test \"\${$3+set}\"" = set; then :
  1971. $as_echo_n "(cached) " >&6
  1972. else
  1973. eval "$3=\$ac_header_compiler"
  1974. fi
  1975. eval ac_res=\$$3
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1977. $as_echo "$ac_res" >&6; }
  1978. fi
  1979. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1980. } # ac_fn_cxx_check_header_mongrel
  1981. # ac_fn_cxx_check_func LINENO FUNC VAR
  1982. # ------------------------------------
  1983. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1984. ac_fn_cxx_check_func ()
  1985. {
  1986. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1988. $as_echo_n "checking for $2... " >&6; }
  1989. if eval "test \"\${$3+set}\"" = set; then :
  1990. $as_echo_n "(cached) " >&6
  1991. else
  1992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1993. /* end confdefs.h. */
  1994. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1995. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1996. #define $2 innocuous_$2
  1997. /* System header to define __stub macros and hopefully few prototypes,
  1998. which can conflict with char $2 (); below.
  1999. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2000. <limits.h> exists even on freestanding compilers. */
  2001. #ifdef __STDC__
  2002. # include <limits.h>
  2003. #else
  2004. # include <assert.h>
  2005. #endif
  2006. #undef $2
  2007. /* Override any GCC internal prototype to avoid an error.
  2008. Use char because int might match the return type of a GCC
  2009. builtin and then its argument prototype would still apply. */
  2010. #ifdef __cplusplus
  2011. extern "C"
  2012. #endif
  2013. char $2 ();
  2014. /* The GNU C library defines this for functions which it implements
  2015. to always fail with ENOSYS. Some functions are actually named
  2016. something starting with __ and the normal name is an alias. */
  2017. #if defined __stub_$2 || defined __stub___$2
  2018. choke me
  2019. #endif
  2020. int
  2021. main ()
  2022. {
  2023. return $2 ();
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_cxx_try_link "$LINENO"; then :
  2029. eval "$3=yes"
  2030. else
  2031. eval "$3=no"
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext \
  2034. conftest$ac_exeext conftest.$ac_ext
  2035. fi
  2036. eval ac_res=\$$3
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2038. $as_echo "$ac_res" >&6; }
  2039. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2040. } # ac_fn_cxx_check_func
  2041. cat >config.log <<_ACEOF
  2042. This file contains any messages produced by compilers while
  2043. running configure, to aid debugging if configure makes a mistake.
  2044. It was created by vcmi $as_me 0.83, which was
  2045. generated by GNU Autoconf 2.67. Invocation command line was
  2046. $ $0 $@
  2047. _ACEOF
  2048. exec 5>>config.log
  2049. {
  2050. cat <<_ASUNAME
  2051. ## --------- ##
  2052. ## Platform. ##
  2053. ## --------- ##
  2054. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2055. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2056. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2057. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2058. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2059. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2060. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2061. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2062. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2063. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2064. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2065. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2066. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2067. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2068. _ASUNAME
  2069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2070. for as_dir in $PATH
  2071. do
  2072. IFS=$as_save_IFS
  2073. test -z "$as_dir" && as_dir=.
  2074. $as_echo "PATH: $as_dir"
  2075. done
  2076. IFS=$as_save_IFS
  2077. } >&5
  2078. cat >&5 <<_ACEOF
  2079. ## ----------- ##
  2080. ## Core tests. ##
  2081. ## ----------- ##
  2082. _ACEOF
  2083. # Keep a trace of the command line.
  2084. # Strip out --no-create and --no-recursion so they do not pile up.
  2085. # Strip out --silent because we don't want to record it for future runs.
  2086. # Also quote any args containing shell meta-characters.
  2087. # Make two passes to allow for proper duplicate-argument suppression.
  2088. ac_configure_args=
  2089. ac_configure_args0=
  2090. ac_configure_args1=
  2091. ac_must_keep_next=false
  2092. for ac_pass in 1 2
  2093. do
  2094. for ac_arg
  2095. do
  2096. case $ac_arg in
  2097. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2098. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2099. | -silent | --silent | --silen | --sile | --sil)
  2100. continue ;;
  2101. *\'*)
  2102. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2103. esac
  2104. case $ac_pass in
  2105. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2106. 2)
  2107. as_fn_append ac_configure_args1 " '$ac_arg'"
  2108. if test $ac_must_keep_next = true; then
  2109. ac_must_keep_next=false # Got value, back to normal.
  2110. else
  2111. case $ac_arg in
  2112. *=* | --config-cache | -C | -disable-* | --disable-* \
  2113. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2114. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2115. | -with-* | --with-* | -without-* | --without-* | --x)
  2116. case "$ac_configure_args0 " in
  2117. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2118. esac
  2119. ;;
  2120. -* ) ac_must_keep_next=true ;;
  2121. esac
  2122. fi
  2123. as_fn_append ac_configure_args " '$ac_arg'"
  2124. ;;
  2125. esac
  2126. done
  2127. done
  2128. { ac_configure_args0=; unset ac_configure_args0;}
  2129. { ac_configure_args1=; unset ac_configure_args1;}
  2130. # When interrupted or exit'd, cleanup temporary files, and complete
  2131. # config.log. We remove comments because anyway the quotes in there
  2132. # would cause problems or look ugly.
  2133. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2134. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2135. trap 'exit_status=$?
  2136. # Save into config.log some information that might help in debugging.
  2137. {
  2138. echo
  2139. $as_echo "## ---------------- ##
  2140. ## Cache variables. ##
  2141. ## ---------------- ##"
  2142. echo
  2143. # The following way of writing the cache mishandles newlines in values,
  2144. (
  2145. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2146. eval ac_val=\$$ac_var
  2147. case $ac_val in #(
  2148. *${as_nl}*)
  2149. case $ac_var in #(
  2150. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2151. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2152. esac
  2153. case $ac_var in #(
  2154. _ | IFS | as_nl) ;; #(
  2155. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2156. *) { eval $ac_var=; unset $ac_var;} ;;
  2157. esac ;;
  2158. esac
  2159. done
  2160. (set) 2>&1 |
  2161. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2162. *${as_nl}ac_space=\ *)
  2163. sed -n \
  2164. "s/'\''/'\''\\\\'\'''\''/g;
  2165. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2166. ;; #(
  2167. *)
  2168. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2169. ;;
  2170. esac |
  2171. sort
  2172. )
  2173. echo
  2174. $as_echo "## ----------------- ##
  2175. ## Output variables. ##
  2176. ## ----------------- ##"
  2177. echo
  2178. for ac_var in $ac_subst_vars
  2179. do
  2180. eval ac_val=\$$ac_var
  2181. case $ac_val in
  2182. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2183. esac
  2184. $as_echo "$ac_var='\''$ac_val'\''"
  2185. done | sort
  2186. echo
  2187. if test -n "$ac_subst_files"; then
  2188. $as_echo "## ------------------- ##
  2189. ## File substitutions. ##
  2190. ## ------------------- ##"
  2191. echo
  2192. for ac_var in $ac_subst_files
  2193. do
  2194. eval ac_val=\$$ac_var
  2195. case $ac_val in
  2196. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2197. esac
  2198. $as_echo "$ac_var='\''$ac_val'\''"
  2199. done | sort
  2200. echo
  2201. fi
  2202. if test -s confdefs.h; then
  2203. $as_echo "## ----------- ##
  2204. ## confdefs.h. ##
  2205. ## ----------- ##"
  2206. echo
  2207. cat confdefs.h
  2208. echo
  2209. fi
  2210. test "$ac_signal" != 0 &&
  2211. $as_echo "$as_me: caught signal $ac_signal"
  2212. $as_echo "$as_me: exit $exit_status"
  2213. } >&5
  2214. rm -f core *.core core.conftest.* &&
  2215. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2216. exit $exit_status
  2217. ' 0
  2218. for ac_signal in 1 2 13 15; do
  2219. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2220. done
  2221. ac_signal=0
  2222. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2223. rm -f -r conftest* confdefs.h
  2224. $as_echo "/* confdefs.h */" > confdefs.h
  2225. # Predefined preprocessor variables.
  2226. cat >>confdefs.h <<_ACEOF
  2227. #define PACKAGE_NAME "$PACKAGE_NAME"
  2228. _ACEOF
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2231. _ACEOF
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_STRING "$PACKAGE_STRING"
  2237. _ACEOF
  2238. cat >>confdefs.h <<_ACEOF
  2239. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2240. _ACEOF
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_URL "$PACKAGE_URL"
  2243. _ACEOF
  2244. # Let the site file select an alternate cache file if it wants to.
  2245. # Prefer an explicitly selected file to automatically selected ones.
  2246. ac_site_file1=NONE
  2247. ac_site_file2=NONE
  2248. if test -n "$CONFIG_SITE"; then
  2249. # We do not want a PATH search for config.site.
  2250. case $CONFIG_SITE in #((
  2251. -*) ac_site_file1=./$CONFIG_SITE;;
  2252. */*) ac_site_file1=$CONFIG_SITE;;
  2253. *) ac_site_file1=./$CONFIG_SITE;;
  2254. esac
  2255. elif test "x$prefix" != xNONE; then
  2256. ac_site_file1=$prefix/share/config.site
  2257. ac_site_file2=$prefix/etc/config.site
  2258. else
  2259. ac_site_file1=$ac_default_prefix/share/config.site
  2260. ac_site_file2=$ac_default_prefix/etc/config.site
  2261. fi
  2262. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2263. do
  2264. test "x$ac_site_file" = xNONE && continue
  2265. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2267. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2268. sed 's/^/| /' "$ac_site_file" >&5
  2269. . "$ac_site_file" \
  2270. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2272. as_fn_error $? "failed to load site script $ac_site_file
  2273. See \`config.log' for more details" "$LINENO" 5 ; }
  2274. fi
  2275. done
  2276. if test -r "$cache_file"; then
  2277. # Some versions of bash will fail to source /dev/null (special files
  2278. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2279. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2281. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2282. case $cache_file in
  2283. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2284. *) . "./$cache_file";;
  2285. esac
  2286. fi
  2287. else
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2289. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2290. >$cache_file
  2291. fi
  2292. # Check that the precious variables saved in the cache have kept the same
  2293. # value.
  2294. ac_cache_corrupted=false
  2295. for ac_var in $ac_precious_vars; do
  2296. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2297. eval ac_new_set=\$ac_env_${ac_var}_set
  2298. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2299. eval ac_new_val=\$ac_env_${ac_var}_value
  2300. case $ac_old_set,$ac_new_set in
  2301. set,)
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2303. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2304. ac_cache_corrupted=: ;;
  2305. ,set)
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2307. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2308. ac_cache_corrupted=: ;;
  2309. ,);;
  2310. *)
  2311. if test "x$ac_old_val" != "x$ac_new_val"; then
  2312. # differences in whitespace do not lead to failure.
  2313. ac_old_val_w=`echo x $ac_old_val`
  2314. ac_new_val_w=`echo x $ac_new_val`
  2315. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2317. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2318. ac_cache_corrupted=:
  2319. else
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2321. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2322. eval $ac_var=\$ac_old_val
  2323. fi
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2325. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2327. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2328. fi;;
  2329. esac
  2330. # Pass precious variables to config.status.
  2331. if test "$ac_new_set" = set; then
  2332. case $ac_new_val in
  2333. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2334. *) ac_arg=$ac_var=$ac_new_val ;;
  2335. esac
  2336. case " $ac_configure_args " in
  2337. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2338. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2339. esac
  2340. fi
  2341. done
  2342. if $ac_cache_corrupted; then
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2346. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2347. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2348. fi
  2349. ## -------------------- ##
  2350. ## Main body of script. ##
  2351. ## -------------------- ##
  2352. ac_ext=c
  2353. ac_cpp='$CPP $CPPFLAGS'
  2354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2357. # Follow NAME_VER in global.h
  2358. am__api_version='1.11'
  2359. ac_aux_dir=
  2360. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2361. if test -f "$ac_dir/install-sh"; then
  2362. ac_aux_dir=$ac_dir
  2363. ac_install_sh="$ac_aux_dir/install-sh -c"
  2364. break
  2365. elif test -f "$ac_dir/install.sh"; then
  2366. ac_aux_dir=$ac_dir
  2367. ac_install_sh="$ac_aux_dir/install.sh -c"
  2368. break
  2369. elif test -f "$ac_dir/shtool"; then
  2370. ac_aux_dir=$ac_dir
  2371. ac_install_sh="$ac_aux_dir/shtool install -c"
  2372. break
  2373. fi
  2374. done
  2375. if test -z "$ac_aux_dir"; then
  2376. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2377. fi
  2378. # These three variables are undocumented and unsupported,
  2379. # and are intended to be withdrawn in a future Autoconf release.
  2380. # They can cause serious problems if a builder's source tree is in a directory
  2381. # whose full name contains unusual characters.
  2382. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2383. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2384. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2385. # Find a good install program. We prefer a C program (faster),
  2386. # so one script is as good as another. But avoid the broken or
  2387. # incompatible versions:
  2388. # SysV /etc/install, /usr/sbin/install
  2389. # SunOS /usr/etc/install
  2390. # IRIX /sbin/install
  2391. # AIX /bin/install
  2392. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2393. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2394. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2395. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2396. # OS/2's system install, which has a completely different semantic
  2397. # ./install, which can be erroneously created by make from ./install.sh.
  2398. # Reject install programs that cannot install multiple files.
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2400. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2401. if test -z "$INSTALL"; then
  2402. if test "${ac_cv_path_install+set}" = set; then :
  2403. $as_echo_n "(cached) " >&6
  2404. else
  2405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2406. for as_dir in $PATH
  2407. do
  2408. IFS=$as_save_IFS
  2409. test -z "$as_dir" && as_dir=.
  2410. # Account for people who put trailing slashes in PATH elements.
  2411. case $as_dir/ in #((
  2412. ./ | .// | /[cC]/* | \
  2413. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2414. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2415. /usr/ucb/* ) ;;
  2416. *)
  2417. # OSF1 and SCO ODT 3.0 have their own names for install.
  2418. # Don't use installbsd from OSF since it installs stuff as root
  2419. # by default.
  2420. for ac_prog in ginstall scoinst install; do
  2421. for ac_exec_ext in '' $ac_executable_extensions; do
  2422. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2423. if test $ac_prog = install &&
  2424. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2425. # AIX install. It has an incompatible calling convention.
  2426. :
  2427. elif test $ac_prog = install &&
  2428. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2429. # program-specific install script used by HP pwplus--don't use.
  2430. :
  2431. else
  2432. rm -rf conftest.one conftest.two conftest.dir
  2433. echo one > conftest.one
  2434. echo two > conftest.two
  2435. mkdir conftest.dir
  2436. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2437. test -s conftest.one && test -s conftest.two &&
  2438. test -s conftest.dir/conftest.one &&
  2439. test -s conftest.dir/conftest.two
  2440. then
  2441. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2442. break 3
  2443. fi
  2444. fi
  2445. fi
  2446. done
  2447. done
  2448. ;;
  2449. esac
  2450. done
  2451. IFS=$as_save_IFS
  2452. rm -rf conftest.one conftest.two conftest.dir
  2453. fi
  2454. if test "${ac_cv_path_install+set}" = set; then
  2455. INSTALL=$ac_cv_path_install
  2456. else
  2457. # As a last resort, use the slow shell script. Don't cache a
  2458. # value for INSTALL within a source directory, because that will
  2459. # break other packages using the cache if that directory is
  2460. # removed, or if the value is a relative name.
  2461. INSTALL=$ac_install_sh
  2462. fi
  2463. fi
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2465. $as_echo "$INSTALL" >&6; }
  2466. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2467. # It thinks the first close brace ends the variable substitution.
  2468. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2469. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2470. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2472. $as_echo_n "checking whether build environment is sane... " >&6; }
  2473. # Just in case
  2474. sleep 1
  2475. echo timestamp > conftest.file
  2476. # Reject unsafe characters in $srcdir or the absolute working directory
  2477. # name. Accept space and tab only in the latter.
  2478. am_lf='
  2479. '
  2480. case `pwd` in
  2481. *[\\\"\#\$\&\'\`$am_lf]*)
  2482. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2483. esac
  2484. case $srcdir in
  2485. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2486. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2487. esac
  2488. # Do `set' in a subshell so we don't clobber the current shell's
  2489. # arguments. Must try -L first in case configure is actually a
  2490. # symlink; some systems play weird games with the mod time of symlinks
  2491. # (eg FreeBSD returns the mod time of the symlink's containing
  2492. # directory).
  2493. if (
  2494. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2495. if test "$*" = "X"; then
  2496. # -L didn't work.
  2497. set X `ls -t "$srcdir/configure" conftest.file`
  2498. fi
  2499. rm -f conftest.file
  2500. if test "$*" != "X $srcdir/configure conftest.file" \
  2501. && test "$*" != "X conftest.file $srcdir/configure"; then
  2502. # If neither matched, then we have a broken ls. This can happen
  2503. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2504. # broken ls alias from the environment. This has actually
  2505. # happened. Such a system could not be considered "sane".
  2506. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2507. alias in your environment" "$LINENO" 5
  2508. fi
  2509. test "$2" = conftest.file
  2510. )
  2511. then
  2512. # Ok.
  2513. :
  2514. else
  2515. as_fn_error $? "newly created file is older than distributed files!
  2516. Check your system clock" "$LINENO" 5
  2517. fi
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2519. $as_echo "yes" >&6; }
  2520. test "$program_prefix" != NONE &&
  2521. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2522. # Use a double $ so make ignores it.
  2523. test "$program_suffix" != NONE &&
  2524. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2525. # Double any \ or $.
  2526. # By default was `s,x,x', remove it if useless.
  2527. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2528. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2529. # expand $ac_aux_dir to an absolute path
  2530. am_aux_dir=`cd $ac_aux_dir && pwd`
  2531. if test x"${MISSING+set}" != xset; then
  2532. case $am_aux_dir in
  2533. *\ * | *\ *)
  2534. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2535. *)
  2536. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2537. esac
  2538. fi
  2539. # Use eval to expand $SHELL
  2540. if eval "$MISSING --run true"; then
  2541. am_missing_run="$MISSING --run "
  2542. else
  2543. am_missing_run=
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2545. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2546. fi
  2547. if test x"${install_sh}" != xset; then
  2548. case $am_aux_dir in
  2549. *\ * | *\ *)
  2550. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2551. *)
  2552. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2553. esac
  2554. fi
  2555. # Installed binaries are usually stripped using `strip' when the user
  2556. # run `make install-strip'. However `strip' might not be the right
  2557. # tool to use in cross-compilation environments, therefore Automake
  2558. # will honor the `STRIP' environment variable to overrule this program.
  2559. if test "$cross_compiling" != no; then
  2560. if test -n "$ac_tool_prefix"; then
  2561. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2562. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2564. $as_echo_n "checking for $ac_word... " >&6; }
  2565. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2566. $as_echo_n "(cached) " >&6
  2567. else
  2568. if test -n "$STRIP"; then
  2569. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2570. else
  2571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572. for as_dir in $PATH
  2573. do
  2574. IFS=$as_save_IFS
  2575. test -z "$as_dir" && as_dir=.
  2576. for ac_exec_ext in '' $ac_executable_extensions; do
  2577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2578. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580. break 2
  2581. fi
  2582. done
  2583. done
  2584. IFS=$as_save_IFS
  2585. fi
  2586. fi
  2587. STRIP=$ac_cv_prog_STRIP
  2588. if test -n "$STRIP"; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2590. $as_echo "$STRIP" >&6; }
  2591. else
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. fi
  2595. fi
  2596. if test -z "$ac_cv_prog_STRIP"; then
  2597. ac_ct_STRIP=$STRIP
  2598. # Extract the first word of "strip", so it can be a program name with args.
  2599. set dummy strip; ac_word=$2
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2601. $as_echo_n "checking for $ac_word... " >&6; }
  2602. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. if test -n "$ac_ct_STRIP"; then
  2606. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2615. ac_cv_prog_ac_ct_STRIP="strip"
  2616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. IFS=$as_save_IFS
  2622. fi
  2623. fi
  2624. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2625. if test -n "$ac_ct_STRIP"; then
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2627. $as_echo "$ac_ct_STRIP" >&6; }
  2628. else
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2630. $as_echo "no" >&6; }
  2631. fi
  2632. if test "x$ac_ct_STRIP" = x; then
  2633. STRIP=":"
  2634. else
  2635. case $cross_compiling:$ac_tool_warned in
  2636. yes:)
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2639. ac_tool_warned=yes ;;
  2640. esac
  2641. STRIP=$ac_ct_STRIP
  2642. fi
  2643. else
  2644. STRIP="$ac_cv_prog_STRIP"
  2645. fi
  2646. fi
  2647. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2649. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2650. if test -z "$MKDIR_P"; then
  2651. if test "${ac_cv_path_mkdir+set}" = set; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2655. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2656. do
  2657. IFS=$as_save_IFS
  2658. test -z "$as_dir" && as_dir=.
  2659. for ac_prog in mkdir gmkdir; do
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2662. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2663. 'mkdir (GNU coreutils) '* | \
  2664. 'mkdir (coreutils) '* | \
  2665. 'mkdir (fileutils) '4.1*)
  2666. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2667. break 3;;
  2668. esac
  2669. done
  2670. done
  2671. done
  2672. IFS=$as_save_IFS
  2673. fi
  2674. test -d ./--version && rmdir ./--version
  2675. if test "${ac_cv_path_mkdir+set}" = set; then
  2676. MKDIR_P="$ac_cv_path_mkdir -p"
  2677. else
  2678. # As a last resort, use the slow shell script. Don't cache a
  2679. # value for MKDIR_P within a source directory, because that will
  2680. # break other packages using the cache if that directory is
  2681. # removed, or if the value is a relative name.
  2682. MKDIR_P="$ac_install_sh -d"
  2683. fi
  2684. fi
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2686. $as_echo "$MKDIR_P" >&6; }
  2687. mkdir_p="$MKDIR_P"
  2688. case $mkdir_p in
  2689. [\\/$]* | ?:[\\/]*) ;;
  2690. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2691. esac
  2692. for ac_prog in gawk mawk nawk awk
  2693. do
  2694. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2695. set dummy $ac_prog; ac_word=$2
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2697. $as_echo_n "checking for $ac_word... " >&6; }
  2698. if test "${ac_cv_prog_AWK+set}" = set; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. if test -n "$AWK"; then
  2702. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2703. else
  2704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2705. for as_dir in $PATH
  2706. do
  2707. IFS=$as_save_IFS
  2708. test -z "$as_dir" && as_dir=.
  2709. for ac_exec_ext in '' $ac_executable_extensions; do
  2710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2711. ac_cv_prog_AWK="$ac_prog"
  2712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2713. break 2
  2714. fi
  2715. done
  2716. done
  2717. IFS=$as_save_IFS
  2718. fi
  2719. fi
  2720. AWK=$ac_cv_prog_AWK
  2721. if test -n "$AWK"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2723. $as_echo "$AWK" >&6; }
  2724. else
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2726. $as_echo "no" >&6; }
  2727. fi
  2728. test -n "$AWK" && break
  2729. done
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2731. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2732. set x ${MAKE-make}
  2733. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2734. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2735. $as_echo_n "(cached) " >&6
  2736. else
  2737. cat >conftest.make <<\_ACEOF
  2738. SHELL = /bin/sh
  2739. all:
  2740. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2741. _ACEOF
  2742. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2743. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2744. *@@@%%%=?*=@@@%%%*)
  2745. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2746. *)
  2747. eval ac_cv_prog_make_${ac_make}_set=no;;
  2748. esac
  2749. rm -f conftest.make
  2750. fi
  2751. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2753. $as_echo "yes" >&6; }
  2754. SET_MAKE=
  2755. else
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. SET_MAKE="MAKE=${MAKE-make}"
  2759. fi
  2760. rm -rf .tst 2>/dev/null
  2761. mkdir .tst 2>/dev/null
  2762. if test -d .tst; then
  2763. am__leading_dot=.
  2764. else
  2765. am__leading_dot=_
  2766. fi
  2767. rmdir .tst 2>/dev/null
  2768. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2769. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2770. # is not polluted with repeated "-I."
  2771. am__isrc=' -I$(srcdir)'
  2772. # test to see if srcdir already configured
  2773. if test -f $srcdir/config.status; then
  2774. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2775. fi
  2776. fi
  2777. # test whether we have cygpath
  2778. if test -z "$CYGPATH_W"; then
  2779. if (cygpath --version) >/dev/null 2>/dev/null; then
  2780. CYGPATH_W='cygpath -w'
  2781. else
  2782. CYGPATH_W=echo
  2783. fi
  2784. fi
  2785. # Define the identity of the package.
  2786. PACKAGE='vcmi'
  2787. VERSION='0.83'
  2788. cat >>confdefs.h <<_ACEOF
  2789. #define PACKAGE "$PACKAGE"
  2790. _ACEOF
  2791. cat >>confdefs.h <<_ACEOF
  2792. #define VERSION "$VERSION"
  2793. _ACEOF
  2794. # Some tools Automake needs.
  2795. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2796. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2797. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2798. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2799. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2800. # We need awk for the "check" target. The system "awk" is bad on
  2801. # some platforms.
  2802. # Always define AMTAR for backward compatibility.
  2803. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2804. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2805. # Checks for build toolchain
  2806. ac_ext=cpp
  2807. ac_cpp='$CXXCPP $CPPFLAGS'
  2808. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2809. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2810. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2811. ac_ext=cpp
  2812. ac_cpp='$CXXCPP $CPPFLAGS'
  2813. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2814. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2815. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2816. if test -z "$CXX"; then
  2817. if test -n "$CCC"; then
  2818. CXX=$CCC
  2819. else
  2820. if test -n "$ac_tool_prefix"; then
  2821. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2822. do
  2823. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2824. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. $as_echo_n "checking for $ac_word... " >&6; }
  2827. if test "${ac_cv_prog_CXX+set}" = set; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. if test -n "$CXX"; then
  2831. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. test -z "$as_dir" && as_dir=.
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2840. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. IFS=$as_save_IFS
  2847. fi
  2848. fi
  2849. CXX=$ac_cv_prog_CXX
  2850. if test -n "$CXX"; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2852. $as_echo "$CXX" >&6; }
  2853. else
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857. test -n "$CXX" && break
  2858. done
  2859. fi
  2860. if test -z "$CXX"; then
  2861. ac_ct_CXX=$CXX
  2862. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2863. do
  2864. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2865. set dummy $ac_prog; ac_word=$2
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2867. $as_echo_n "checking for $ac_word... " >&6; }
  2868. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2869. $as_echo_n "(cached) " >&6
  2870. else
  2871. if test -n "$ac_ct_CXX"; then
  2872. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2873. else
  2874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2875. for as_dir in $PATH
  2876. do
  2877. IFS=$as_save_IFS
  2878. test -z "$as_dir" && as_dir=.
  2879. for ac_exec_ext in '' $ac_executable_extensions; do
  2880. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2881. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2883. break 2
  2884. fi
  2885. done
  2886. done
  2887. IFS=$as_save_IFS
  2888. fi
  2889. fi
  2890. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2891. if test -n "$ac_ct_CXX"; then
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2893. $as_echo "$ac_ct_CXX" >&6; }
  2894. else
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2896. $as_echo "no" >&6; }
  2897. fi
  2898. test -n "$ac_ct_CXX" && break
  2899. done
  2900. if test "x$ac_ct_CXX" = x; then
  2901. CXX="g++"
  2902. else
  2903. case $cross_compiling:$ac_tool_warned in
  2904. yes:)
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2906. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2907. ac_tool_warned=yes ;;
  2908. esac
  2909. CXX=$ac_ct_CXX
  2910. fi
  2911. fi
  2912. fi
  2913. fi
  2914. # Provide some information about the compiler.
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2916. set X $ac_compile
  2917. ac_compiler=$2
  2918. for ac_option in --version -v -V -qversion; do
  2919. { { ac_try="$ac_compiler $ac_option >&5"
  2920. case "(($ac_try" in
  2921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2922. *) ac_try_echo=$ac_try;;
  2923. esac
  2924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2925. $as_echo "$ac_try_echo"; } >&5
  2926. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2927. ac_status=$?
  2928. if test -s conftest.err; then
  2929. sed '10a\
  2930. ... rest of stderr output deleted ...
  2931. 10q' conftest.err >conftest.er1
  2932. cat conftest.er1 >&5
  2933. fi
  2934. rm -f conftest.er1 conftest.err
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2936. test $ac_status = 0; }
  2937. done
  2938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2939. /* end confdefs.h. */
  2940. int
  2941. main ()
  2942. {
  2943. ;
  2944. return 0;
  2945. }
  2946. _ACEOF
  2947. ac_clean_files_save=$ac_clean_files
  2948. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2949. # Try to create an executable without -o first, disregard a.out.
  2950. # It will help us diagnose broken compilers, and finding out an intuition
  2951. # of exeext.
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2953. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2954. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2955. # The possible output files:
  2956. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2957. ac_rmfiles=
  2958. for ac_file in $ac_files
  2959. do
  2960. case $ac_file in
  2961. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2962. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2963. esac
  2964. done
  2965. rm -f $ac_rmfiles
  2966. if { { ac_try="$ac_link_default"
  2967. case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2972. $as_echo "$ac_try_echo"; } >&5
  2973. (eval "$ac_link_default") 2>&5
  2974. ac_status=$?
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }; then :
  2977. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2978. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2979. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2980. # so that the user can short-circuit this test for compilers unknown to
  2981. # Autoconf.
  2982. for ac_file in $ac_files ''
  2983. do
  2984. test -f "$ac_file" || continue
  2985. case $ac_file in
  2986. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2987. ;;
  2988. [ab].out )
  2989. # We found the default executable, but exeext='' is most
  2990. # certainly right.
  2991. break;;
  2992. *.* )
  2993. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2994. then :; else
  2995. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2996. fi
  2997. # We set ac_cv_exeext here because the later test for it is not
  2998. # safe: cross compilers may not add the suffix if given an `-o'
  2999. # argument, so we may need to know it at that point already.
  3000. # Even if this section looks crufty: it has the advantage of
  3001. # actually working.
  3002. break;;
  3003. * )
  3004. break;;
  3005. esac
  3006. done
  3007. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3008. else
  3009. ac_file=''
  3010. fi
  3011. if test -z "$ac_file"; then :
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3013. $as_echo "no" >&6; }
  3014. $as_echo "$as_me: failed program was:" >&5
  3015. sed 's/^/| /' conftest.$ac_ext >&5
  3016. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3018. as_fn_error 77 "C++ compiler cannot create executables
  3019. See \`config.log' for more details" "$LINENO" 5 ; }
  3020. else
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3022. $as_echo "yes" >&6; }
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3025. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3027. $as_echo "$ac_file" >&6; }
  3028. ac_exeext=$ac_cv_exeext
  3029. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3030. ac_clean_files=$ac_clean_files_save
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3032. $as_echo_n "checking for suffix of executables... " >&6; }
  3033. if { { ac_try="$ac_link"
  3034. case "(($ac_try" in
  3035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036. *) ac_try_echo=$ac_try;;
  3037. esac
  3038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3039. $as_echo "$ac_try_echo"; } >&5
  3040. (eval "$ac_link") 2>&5
  3041. ac_status=$?
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3043. test $ac_status = 0; }; then :
  3044. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3045. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3046. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3047. # `rm'.
  3048. for ac_file in conftest.exe conftest conftest.*; do
  3049. test -f "$ac_file" || continue
  3050. case $ac_file in
  3051. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3052. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3053. break;;
  3054. * ) break;;
  3055. esac
  3056. done
  3057. else
  3058. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3060. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3061. See \`config.log' for more details" "$LINENO" 5 ; }
  3062. fi
  3063. rm -f conftest conftest$ac_cv_exeext
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3065. $as_echo "$ac_cv_exeext" >&6; }
  3066. rm -f conftest.$ac_ext
  3067. EXEEXT=$ac_cv_exeext
  3068. ac_exeext=$EXEEXT
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. #include <stdio.h>
  3072. int
  3073. main ()
  3074. {
  3075. FILE *f = fopen ("conftest.out", "w");
  3076. return ferror (f) || fclose (f) != 0;
  3077. ;
  3078. return 0;
  3079. }
  3080. _ACEOF
  3081. ac_clean_files="$ac_clean_files conftest.out"
  3082. # Check that the compiler produces executables we can run. If not, either
  3083. # the compiler is broken, or we cross compile.
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3085. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3086. if test "$cross_compiling" != yes; then
  3087. { { ac_try="$ac_link"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_link") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }
  3098. if { ac_try='./conftest$ac_cv_exeext'
  3099. { { case "(($ac_try" in
  3100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3101. *) ac_try_echo=$ac_try;;
  3102. esac
  3103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3104. $as_echo "$ac_try_echo"; } >&5
  3105. (eval "$ac_try") 2>&5
  3106. ac_status=$?
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3108. test $ac_status = 0; }; }; then
  3109. cross_compiling=no
  3110. else
  3111. if test "$cross_compiling" = maybe; then
  3112. cross_compiling=yes
  3113. else
  3114. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3115. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3116. as_fn_error $? "cannot run C++ compiled programs.
  3117. If you meant to cross compile, use \`--host'.
  3118. See \`config.log' for more details" "$LINENO" 5 ; }
  3119. fi
  3120. fi
  3121. fi
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3123. $as_echo "$cross_compiling" >&6; }
  3124. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3125. ac_clean_files=$ac_clean_files_save
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3127. $as_echo_n "checking for suffix of object files... " >&6; }
  3128. if test "${ac_cv_objext+set}" = set; then :
  3129. $as_echo_n "(cached) " >&6
  3130. else
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. int
  3134. main ()
  3135. {
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. rm -f conftest.o conftest.obj
  3141. if { { ac_try="$ac_compile"
  3142. case "(($ac_try" in
  3143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3144. *) ac_try_echo=$ac_try;;
  3145. esac
  3146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3147. $as_echo "$ac_try_echo"; } >&5
  3148. (eval "$ac_compile") 2>&5
  3149. ac_status=$?
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3151. test $ac_status = 0; }; then :
  3152. for ac_file in conftest.o conftest.obj conftest.*; do
  3153. test -f "$ac_file" || continue;
  3154. case $ac_file in
  3155. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3156. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3157. break;;
  3158. esac
  3159. done
  3160. else
  3161. $as_echo "$as_me: failed program was:" >&5
  3162. sed 's/^/| /' conftest.$ac_ext >&5
  3163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3165. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3166. See \`config.log' for more details" "$LINENO" 5 ; }
  3167. fi
  3168. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3169. fi
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3171. $as_echo "$ac_cv_objext" >&6; }
  3172. OBJEXT=$ac_cv_objext
  3173. ac_objext=$OBJEXT
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3175. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3176. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3180. /* end confdefs.h. */
  3181. int
  3182. main ()
  3183. {
  3184. #ifndef __GNUC__
  3185. choke me
  3186. #endif
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. if ac_fn_cxx_try_compile "$LINENO"; then :
  3192. ac_compiler_gnu=yes
  3193. else
  3194. ac_compiler_gnu=no
  3195. fi
  3196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3197. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3198. fi
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3200. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3201. if test $ac_compiler_gnu = yes; then
  3202. GXX=yes
  3203. else
  3204. GXX=
  3205. fi
  3206. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3207. ac_save_CXXFLAGS=$CXXFLAGS
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3209. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3210. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3214. ac_cxx_werror_flag=yes
  3215. ac_cv_prog_cxx_g=no
  3216. CXXFLAGS="-g"
  3217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3218. /* end confdefs.h. */
  3219. int
  3220. main ()
  3221. {
  3222. ;
  3223. return 0;
  3224. }
  3225. _ACEOF
  3226. if ac_fn_cxx_try_compile "$LINENO"; then :
  3227. ac_cv_prog_cxx_g=yes
  3228. else
  3229. CXXFLAGS=""
  3230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3231. /* end confdefs.h. */
  3232. int
  3233. main ()
  3234. {
  3235. ;
  3236. return 0;
  3237. }
  3238. _ACEOF
  3239. if ac_fn_cxx_try_compile "$LINENO"; then :
  3240. else
  3241. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3242. CXXFLAGS="-g"
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245. int
  3246. main ()
  3247. {
  3248. ;
  3249. return 0;
  3250. }
  3251. _ACEOF
  3252. if ac_fn_cxx_try_compile "$LINENO"; then :
  3253. ac_cv_prog_cxx_g=yes
  3254. fi
  3255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3256. fi
  3257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3258. fi
  3259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3260. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3261. fi
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3263. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3264. if test "$ac_test_CXXFLAGS" = set; then
  3265. CXXFLAGS=$ac_save_CXXFLAGS
  3266. elif test $ac_cv_prog_cxx_g = yes; then
  3267. if test "$GXX" = yes; then
  3268. CXXFLAGS="-g -O2"
  3269. else
  3270. CXXFLAGS="-g"
  3271. fi
  3272. else
  3273. if test "$GXX" = yes; then
  3274. CXXFLAGS="-O2"
  3275. else
  3276. CXXFLAGS=
  3277. fi
  3278. fi
  3279. ac_ext=cpp
  3280. ac_cpp='$CXXCPP $CPPFLAGS'
  3281. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3282. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3283. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3284. DEPDIR="${am__leading_dot}deps"
  3285. ac_config_commands="$ac_config_commands depfiles"
  3286. am_make=${MAKE-make}
  3287. cat > confinc << 'END'
  3288. am__doit:
  3289. @echo this is the am__doit target
  3290. .PHONY: am__doit
  3291. END
  3292. # If we don't find an include directive, just comment out the code.
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3294. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3295. am__include="#"
  3296. am__quote=
  3297. _am_result=none
  3298. # First try GNU make style include.
  3299. echo "include confinc" > confmf
  3300. # Ignore all kinds of additional output from `make'.
  3301. case `$am_make -s -f confmf 2> /dev/null` in #(
  3302. *the\ am__doit\ target*)
  3303. am__include=include
  3304. am__quote=
  3305. _am_result=GNU
  3306. ;;
  3307. esac
  3308. # Now try BSD make style include.
  3309. if test "$am__include" = "#"; then
  3310. echo '.include "confinc"' > confmf
  3311. case `$am_make -s -f confmf 2> /dev/null` in #(
  3312. *the\ am__doit\ target*)
  3313. am__include=.include
  3314. am__quote="\""
  3315. _am_result=BSD
  3316. ;;
  3317. esac
  3318. fi
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3320. $as_echo "$_am_result" >&6; }
  3321. rm -f confinc confmf
  3322. # Check whether --enable-dependency-tracking was given.
  3323. if test "${enable_dependency_tracking+set}" = set; then :
  3324. enableval=$enable_dependency_tracking;
  3325. fi
  3326. if test "x$enable_dependency_tracking" != xno; then
  3327. am_depcomp="$ac_aux_dir/depcomp"
  3328. AMDEPBACKSLASH='\'
  3329. fi
  3330. if test "x$enable_dependency_tracking" != xno; then
  3331. AMDEP_TRUE=
  3332. AMDEP_FALSE='#'
  3333. else
  3334. AMDEP_TRUE='#'
  3335. AMDEP_FALSE=
  3336. fi
  3337. depcc="$CXX" am_compiler_list=
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3339. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3340. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3341. $as_echo_n "(cached) " >&6
  3342. else
  3343. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3344. # We make a subdir and do the tests there. Otherwise we can end up
  3345. # making bogus files that we don't know about and never remove. For
  3346. # instance it was reported that on HP-UX the gcc test will end up
  3347. # making a dummy file named `D' -- because `-MD' means `put the output
  3348. # in D'.
  3349. mkdir conftest.dir
  3350. # Copy depcomp to subdir because otherwise we won't find it if we're
  3351. # using a relative directory.
  3352. cp "$am_depcomp" conftest.dir
  3353. cd conftest.dir
  3354. # We will build objects and dependencies in a subdirectory because
  3355. # it helps to detect inapplicable dependency modes. For instance
  3356. # both Tru64's cc and ICC support -MD to output dependencies as a
  3357. # side effect of compilation, but ICC will put the dependencies in
  3358. # the current directory while Tru64 will put them in the object
  3359. # directory.
  3360. mkdir sub
  3361. am_cv_CXX_dependencies_compiler_type=none
  3362. if test "$am_compiler_list" = ""; then
  3363. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3364. fi
  3365. am__universal=false
  3366. case " $depcc " in #(
  3367. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3368. esac
  3369. for depmode in $am_compiler_list; do
  3370. # Setup a source with many dependencies, because some compilers
  3371. # like to wrap large dependency lists on column 80 (with \), and
  3372. # we should not choose a depcomp mode which is confused by this.
  3373. #
  3374. # We need to recreate these files for each test, as the compiler may
  3375. # overwrite some of them when testing with obscure command lines.
  3376. # This happens at least with the AIX C compiler.
  3377. : > sub/conftest.c
  3378. for i in 1 2 3 4 5 6; do
  3379. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3380. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3381. # Solaris 8's {/usr,}/bin/sh.
  3382. touch sub/conftst$i.h
  3383. done
  3384. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3385. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3386. # mode. It turns out that the SunPro C++ compiler does not properly
  3387. # handle `-M -o', and we need to detect this. Also, some Intel
  3388. # versions had trouble with output in subdirs
  3389. am__obj=sub/conftest.${OBJEXT-o}
  3390. am__minus_obj="-o $am__obj"
  3391. case $depmode in
  3392. gcc)
  3393. # This depmode causes a compiler race in universal mode.
  3394. test "$am__universal" = false || continue
  3395. ;;
  3396. nosideeffect)
  3397. # after this tag, mechanisms are not by side-effect, so they'll
  3398. # only be used when explicitly requested
  3399. if test "x$enable_dependency_tracking" = xyes; then
  3400. continue
  3401. else
  3402. break
  3403. fi
  3404. ;;
  3405. msvisualcpp | msvcmsys)
  3406. # This compiler won't grok `-c -o', but also, the minuso test has
  3407. # not run yet. These depmodes are late enough in the game, and
  3408. # so weak that their functioning should not be impacted.
  3409. am__obj=conftest.${OBJEXT-o}
  3410. am__minus_obj=
  3411. ;;
  3412. none) break ;;
  3413. esac
  3414. if depmode=$depmode \
  3415. source=sub/conftest.c object=$am__obj \
  3416. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3417. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3418. >/dev/null 2>conftest.err &&
  3419. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3420. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3421. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3422. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3423. # icc doesn't choke on unknown options, it will just issue warnings
  3424. # or remarks (even with -Werror). So we grep stderr for any message
  3425. # that says an option was ignored or not supported.
  3426. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3427. # icc: Command line warning: ignoring option '-M'; no argument required
  3428. # The diagnosis changed in icc 8.0:
  3429. # icc: Command line remark: option '-MP' not supported
  3430. if (grep 'ignoring option' conftest.err ||
  3431. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3432. am_cv_CXX_dependencies_compiler_type=$depmode
  3433. break
  3434. fi
  3435. fi
  3436. done
  3437. cd ..
  3438. rm -rf conftest.dir
  3439. else
  3440. am_cv_CXX_dependencies_compiler_type=none
  3441. fi
  3442. fi
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3444. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3445. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3446. if
  3447. test "x$enable_dependency_tracking" != xno \
  3448. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3449. am__fastdepCXX_TRUE=
  3450. am__fastdepCXX_FALSE='#'
  3451. else
  3452. am__fastdepCXX_TRUE='#'
  3453. am__fastdepCXX_FALSE=
  3454. fi
  3455. # Check whether --enable-shared was given.
  3456. if test "${enable_shared+set}" = set; then :
  3457. enableval=$enable_shared; p=${PACKAGE-default}
  3458. case $enableval in
  3459. yes) enable_shared=yes ;;
  3460. no) enable_shared=no ;;
  3461. *)
  3462. enable_shared=no
  3463. # Look at the argument we got. We use all the common list separators.
  3464. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3465. for pkg in $enableval; do
  3466. IFS="$lt_save_ifs"
  3467. if test "X$pkg" = "X$p"; then
  3468. enable_shared=yes
  3469. fi
  3470. done
  3471. IFS="$lt_save_ifs"
  3472. ;;
  3473. esac
  3474. else
  3475. enable_shared=yes
  3476. fi
  3477. # Check whether --enable-static was given.
  3478. if test "${enable_static+set}" = set; then :
  3479. enableval=$enable_static; p=${PACKAGE-default}
  3480. case $enableval in
  3481. yes) enable_static=yes ;;
  3482. no) enable_static=no ;;
  3483. *)
  3484. enable_static=no
  3485. # Look at the argument we got. We use all the common list separators.
  3486. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3487. for pkg in $enableval; do
  3488. IFS="$lt_save_ifs"
  3489. if test "X$pkg" = "X$p"; then
  3490. enable_static=yes
  3491. fi
  3492. done
  3493. IFS="$lt_save_ifs"
  3494. ;;
  3495. esac
  3496. else
  3497. enable_static=no
  3498. fi
  3499. case `pwd` in
  3500. *\ * | *\ *)
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3502. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3503. esac
  3504. macro_version='2.2.6b'
  3505. macro_revision='1.3017'
  3506. ltmain="$ac_aux_dir/ltmain.sh"
  3507. # Make sure we can run config.sub.
  3508. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3509. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3511. $as_echo_n "checking build system type... " >&6; }
  3512. if test "${ac_cv_build+set}" = set; then :
  3513. $as_echo_n "(cached) " >&6
  3514. else
  3515. ac_build_alias=$build_alias
  3516. test "x$ac_build_alias" = x &&
  3517. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3518. test "x$ac_build_alias" = x &&
  3519. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3520. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3521. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3522. fi
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3524. $as_echo "$ac_cv_build" >&6; }
  3525. case $ac_cv_build in
  3526. *-*-*) ;;
  3527. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3528. esac
  3529. build=$ac_cv_build
  3530. ac_save_IFS=$IFS; IFS='-'
  3531. set x $ac_cv_build
  3532. shift
  3533. build_cpu=$1
  3534. build_vendor=$2
  3535. shift; shift
  3536. # Remember, the first character of IFS is used to create $*,
  3537. # except with old shells:
  3538. build_os=$*
  3539. IFS=$ac_save_IFS
  3540. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3542. $as_echo_n "checking host system type... " >&6; }
  3543. if test "${ac_cv_host+set}" = set; then :
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. if test "x$host_alias" = x; then
  3547. ac_cv_host=$ac_cv_build
  3548. else
  3549. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3550. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3551. fi
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3554. $as_echo "$ac_cv_host" >&6; }
  3555. case $ac_cv_host in
  3556. *-*-*) ;;
  3557. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3558. esac
  3559. host=$ac_cv_host
  3560. ac_save_IFS=$IFS; IFS='-'
  3561. set x $ac_cv_host
  3562. shift
  3563. host_cpu=$1
  3564. host_vendor=$2
  3565. shift; shift
  3566. # Remember, the first character of IFS is used to create $*,
  3567. # except with old shells:
  3568. host_os=$*
  3569. IFS=$ac_save_IFS
  3570. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3571. ac_ext=c
  3572. ac_cpp='$CPP $CPPFLAGS'
  3573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3576. if test -n "$ac_tool_prefix"; then
  3577. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3578. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3580. $as_echo_n "checking for $ac_word... " >&6; }
  3581. if test "${ac_cv_prog_CC+set}" = set; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if test -n "$CC"; then
  3585. ac_cv_prog_CC="$CC" # Let the user override the test.
  3586. else
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. $as_echo "$CC" >&6; }
  3607. else
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. $as_echo "no" >&6; }
  3610. fi
  3611. fi
  3612. if test -z "$ac_cv_prog_CC"; then
  3613. ac_ct_CC=$CC
  3614. # Extract the first word of "gcc", so it can be a program name with args.
  3615. set dummy gcc; ac_word=$2
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -n "$ac_ct_CC"; then
  3622. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3623. else
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH
  3626. do
  3627. IFS=$as_save_IFS
  3628. test -z "$as_dir" && as_dir=.
  3629. for ac_exec_ext in '' $ac_executable_extensions; do
  3630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3631. ac_cv_prog_ac_ct_CC="gcc"
  3632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3633. break 2
  3634. fi
  3635. done
  3636. done
  3637. IFS=$as_save_IFS
  3638. fi
  3639. fi
  3640. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3641. if test -n "$ac_ct_CC"; then
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3643. $as_echo "$ac_ct_CC" >&6; }
  3644. else
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3646. $as_echo "no" >&6; }
  3647. fi
  3648. if test "x$ac_ct_CC" = x; then
  3649. CC=""
  3650. else
  3651. case $cross_compiling:$ac_tool_warned in
  3652. yes:)
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3654. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3655. ac_tool_warned=yes ;;
  3656. esac
  3657. CC=$ac_ct_CC
  3658. fi
  3659. else
  3660. CC="$ac_cv_prog_CC"
  3661. fi
  3662. if test -z "$CC"; then
  3663. if test -n "$ac_tool_prefix"; then
  3664. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3665. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3667. $as_echo_n "checking for $ac_word... " >&6; }
  3668. if test "${ac_cv_prog_CC+set}" = set; then :
  3669. $as_echo_n "(cached) " >&6
  3670. else
  3671. if test -n "$CC"; then
  3672. ac_cv_prog_CC="$CC" # Let the user override the test.
  3673. else
  3674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3675. for as_dir in $PATH
  3676. do
  3677. IFS=$as_save_IFS
  3678. test -z "$as_dir" && as_dir=.
  3679. for ac_exec_ext in '' $ac_executable_extensions; do
  3680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3681. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3683. break 2
  3684. fi
  3685. done
  3686. done
  3687. IFS=$as_save_IFS
  3688. fi
  3689. fi
  3690. CC=$ac_cv_prog_CC
  3691. if test -n "$CC"; then
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3693. $as_echo "$CC" >&6; }
  3694. else
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3696. $as_echo "no" >&6; }
  3697. fi
  3698. fi
  3699. fi
  3700. if test -z "$CC"; then
  3701. # Extract the first word of "cc", so it can be a program name with args.
  3702. set dummy cc; ac_word=$2
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3704. $as_echo_n "checking for $ac_word... " >&6; }
  3705. if test "${ac_cv_prog_CC+set}" = set; then :
  3706. $as_echo_n "(cached) " >&6
  3707. else
  3708. if test -n "$CC"; then
  3709. ac_cv_prog_CC="$CC" # Let the user override the test.
  3710. else
  3711. ac_prog_rejected=no
  3712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3713. for as_dir in $PATH
  3714. do
  3715. IFS=$as_save_IFS
  3716. test -z "$as_dir" && as_dir=.
  3717. for ac_exec_ext in '' $ac_executable_extensions; do
  3718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3719. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3720. ac_prog_rejected=yes
  3721. continue
  3722. fi
  3723. ac_cv_prog_CC="cc"
  3724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3725. break 2
  3726. fi
  3727. done
  3728. done
  3729. IFS=$as_save_IFS
  3730. if test $ac_prog_rejected = yes; then
  3731. # We found a bogon in the path, so make sure we never use it.
  3732. set dummy $ac_cv_prog_CC
  3733. shift
  3734. if test $# != 0; then
  3735. # We chose a different compiler from the bogus one.
  3736. # However, it has the same basename, so the bogon will be chosen
  3737. # first if we set CC to just the basename; use the full file name.
  3738. shift
  3739. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3740. fi
  3741. fi
  3742. fi
  3743. fi
  3744. CC=$ac_cv_prog_CC
  3745. if test -n "$CC"; then
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3747. $as_echo "$CC" >&6; }
  3748. else
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3750. $as_echo "no" >&6; }
  3751. fi
  3752. fi
  3753. if test -z "$CC"; then
  3754. if test -n "$ac_tool_prefix"; then
  3755. for ac_prog in cl.exe
  3756. do
  3757. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3758. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3760. $as_echo_n "checking for $ac_word... " >&6; }
  3761. if test "${ac_cv_prog_CC+set}" = set; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. if test -n "$CC"; then
  3765. ac_cv_prog_CC="$CC" # Let the user override the test.
  3766. else
  3767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3768. for as_dir in $PATH
  3769. do
  3770. IFS=$as_save_IFS
  3771. test -z "$as_dir" && as_dir=.
  3772. for ac_exec_ext in '' $ac_executable_extensions; do
  3773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3774. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3776. break 2
  3777. fi
  3778. done
  3779. done
  3780. IFS=$as_save_IFS
  3781. fi
  3782. fi
  3783. CC=$ac_cv_prog_CC
  3784. if test -n "$CC"; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3786. $as_echo "$CC" >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. fi
  3791. test -n "$CC" && break
  3792. done
  3793. fi
  3794. if test -z "$CC"; then
  3795. ac_ct_CC=$CC
  3796. for ac_prog in cl.exe
  3797. do
  3798. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3799. set dummy $ac_prog; ac_word=$2
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3801. $as_echo_n "checking for $ac_word... " >&6; }
  3802. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. if test -n "$ac_ct_CC"; then
  3806. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3807. else
  3808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3809. for as_dir in $PATH
  3810. do
  3811. IFS=$as_save_IFS
  3812. test -z "$as_dir" && as_dir=.
  3813. for ac_exec_ext in '' $ac_executable_extensions; do
  3814. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3815. ac_cv_prog_ac_ct_CC="$ac_prog"
  3816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3817. break 2
  3818. fi
  3819. done
  3820. done
  3821. IFS=$as_save_IFS
  3822. fi
  3823. fi
  3824. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3825. if test -n "$ac_ct_CC"; then
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3827. $as_echo "$ac_ct_CC" >&6; }
  3828. else
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3830. $as_echo "no" >&6; }
  3831. fi
  3832. test -n "$ac_ct_CC" && break
  3833. done
  3834. if test "x$ac_ct_CC" = x; then
  3835. CC=""
  3836. else
  3837. case $cross_compiling:$ac_tool_warned in
  3838. yes:)
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3841. ac_tool_warned=yes ;;
  3842. esac
  3843. CC=$ac_ct_CC
  3844. fi
  3845. fi
  3846. fi
  3847. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3848. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3849. as_fn_error $? "no acceptable C compiler found in \$PATH
  3850. See \`config.log' for more details" "$LINENO" 5 ; }
  3851. # Provide some information about the compiler.
  3852. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3853. set X $ac_compile
  3854. ac_compiler=$2
  3855. for ac_option in --version -v -V -qversion; do
  3856. { { ac_try="$ac_compiler $ac_option >&5"
  3857. case "(($ac_try" in
  3858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3859. *) ac_try_echo=$ac_try;;
  3860. esac
  3861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3862. $as_echo "$ac_try_echo"; } >&5
  3863. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3864. ac_status=$?
  3865. if test -s conftest.err; then
  3866. sed '10a\
  3867. ... rest of stderr output deleted ...
  3868. 10q' conftest.err >conftest.er1
  3869. cat conftest.er1 >&5
  3870. fi
  3871. rm -f conftest.er1 conftest.err
  3872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3873. test $ac_status = 0; }
  3874. done
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3876. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3877. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3878. $as_echo_n "(cached) " >&6
  3879. else
  3880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3881. /* end confdefs.h. */
  3882. int
  3883. main ()
  3884. {
  3885. #ifndef __GNUC__
  3886. choke me
  3887. #endif
  3888. ;
  3889. return 0;
  3890. }
  3891. _ACEOF
  3892. if ac_fn_c_try_compile "$LINENO"; then :
  3893. ac_compiler_gnu=yes
  3894. else
  3895. ac_compiler_gnu=no
  3896. fi
  3897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3898. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3901. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3902. if test $ac_compiler_gnu = yes; then
  3903. GCC=yes
  3904. else
  3905. GCC=
  3906. fi
  3907. ac_test_CFLAGS=${CFLAGS+set}
  3908. ac_save_CFLAGS=$CFLAGS
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3910. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3911. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. ac_save_c_werror_flag=$ac_c_werror_flag
  3915. ac_c_werror_flag=yes
  3916. ac_cv_prog_cc_g=no
  3917. CFLAGS="-g"
  3918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3919. /* end confdefs.h. */
  3920. int
  3921. main ()
  3922. {
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_c_try_compile "$LINENO"; then :
  3928. ac_cv_prog_cc_g=yes
  3929. else
  3930. CFLAGS=""
  3931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3932. /* end confdefs.h. */
  3933. int
  3934. main ()
  3935. {
  3936. ;
  3937. return 0;
  3938. }
  3939. _ACEOF
  3940. if ac_fn_c_try_compile "$LINENO"; then :
  3941. else
  3942. ac_c_werror_flag=$ac_save_c_werror_flag
  3943. CFLAGS="-g"
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. int
  3947. main ()
  3948. {
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954. ac_cv_prog_cc_g=yes
  3955. fi
  3956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959. fi
  3960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3961. ac_c_werror_flag=$ac_save_c_werror_flag
  3962. fi
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3964. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3965. if test "$ac_test_CFLAGS" = set; then
  3966. CFLAGS=$ac_save_CFLAGS
  3967. elif test $ac_cv_prog_cc_g = yes; then
  3968. if test "$GCC" = yes; then
  3969. CFLAGS="-g -O2"
  3970. else
  3971. CFLAGS="-g"
  3972. fi
  3973. else
  3974. if test "$GCC" = yes; then
  3975. CFLAGS="-O2"
  3976. else
  3977. CFLAGS=
  3978. fi
  3979. fi
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3981. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3982. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3983. $as_echo_n "(cached) " >&6
  3984. else
  3985. ac_cv_prog_cc_c89=no
  3986. ac_save_CC=$CC
  3987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3988. /* end confdefs.h. */
  3989. #include <stdarg.h>
  3990. #include <stdio.h>
  3991. #include <sys/types.h>
  3992. #include <sys/stat.h>
  3993. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3994. struct buf { int x; };
  3995. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3996. static char *e (p, i)
  3997. char **p;
  3998. int i;
  3999. {
  4000. return p[i];
  4001. }
  4002. static char *f (char * (*g) (char **, int), char **p, ...)
  4003. {
  4004. char *s;
  4005. va_list v;
  4006. va_start (v,p);
  4007. s = g (p, va_arg (v,int));
  4008. va_end (v);
  4009. return s;
  4010. }
  4011. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4012. function prototypes and stuff, but not '\xHH' hex character constants.
  4013. These don't provoke an error unfortunately, instead are silently treated
  4014. as 'x'. The following induces an error, until -std is added to get
  4015. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4016. array size at least. It's necessary to write '\x00'==0 to get something
  4017. that's true only with -std. */
  4018. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4019. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4020. inside strings and character constants. */
  4021. #define FOO(x) 'x'
  4022. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4023. int test (int i, double x);
  4024. struct s1 {int (*f) (int a);};
  4025. struct s2 {int (*f) (double a);};
  4026. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4027. int argc;
  4028. char **argv;
  4029. int
  4030. main ()
  4031. {
  4032. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4033. ;
  4034. return 0;
  4035. }
  4036. _ACEOF
  4037. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4038. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4039. do
  4040. CC="$ac_save_CC $ac_arg"
  4041. if ac_fn_c_try_compile "$LINENO"; then :
  4042. ac_cv_prog_cc_c89=$ac_arg
  4043. fi
  4044. rm -f core conftest.err conftest.$ac_objext
  4045. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4046. done
  4047. rm -f conftest.$ac_ext
  4048. CC=$ac_save_CC
  4049. fi
  4050. # AC_CACHE_VAL
  4051. case "x$ac_cv_prog_cc_c89" in
  4052. x)
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4054. $as_echo "none needed" >&6; } ;;
  4055. xno)
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4057. $as_echo "unsupported" >&6; } ;;
  4058. *)
  4059. CC="$CC $ac_cv_prog_cc_c89"
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4061. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4062. esac
  4063. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4064. fi
  4065. ac_ext=cpp
  4066. ac_cpp='$CXXCPP $CPPFLAGS'
  4067. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4068. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4069. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4070. depcc="$CC" am_compiler_list=
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4072. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4073. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4077. # We make a subdir and do the tests there. Otherwise we can end up
  4078. # making bogus files that we don't know about and never remove. For
  4079. # instance it was reported that on HP-UX the gcc test will end up
  4080. # making a dummy file named `D' -- because `-MD' means `put the output
  4081. # in D'.
  4082. mkdir conftest.dir
  4083. # Copy depcomp to subdir because otherwise we won't find it if we're
  4084. # using a relative directory.
  4085. cp "$am_depcomp" conftest.dir
  4086. cd conftest.dir
  4087. # We will build objects and dependencies in a subdirectory because
  4088. # it helps to detect inapplicable dependency modes. For instance
  4089. # both Tru64's cc and ICC support -MD to output dependencies as a
  4090. # side effect of compilation, but ICC will put the dependencies in
  4091. # the current directory while Tru64 will put them in the object
  4092. # directory.
  4093. mkdir sub
  4094. am_cv_CC_dependencies_compiler_type=none
  4095. if test "$am_compiler_list" = ""; then
  4096. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4097. fi
  4098. am__universal=false
  4099. case " $depcc " in #(
  4100. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4101. esac
  4102. for depmode in $am_compiler_list; do
  4103. # Setup a source with many dependencies, because some compilers
  4104. # like to wrap large dependency lists on column 80 (with \), and
  4105. # we should not choose a depcomp mode which is confused by this.
  4106. #
  4107. # We need to recreate these files for each test, as the compiler may
  4108. # overwrite some of them when testing with obscure command lines.
  4109. # This happens at least with the AIX C compiler.
  4110. : > sub/conftest.c
  4111. for i in 1 2 3 4 5 6; do
  4112. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4113. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4114. # Solaris 8's {/usr,}/bin/sh.
  4115. touch sub/conftst$i.h
  4116. done
  4117. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4118. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4119. # mode. It turns out that the SunPro C++ compiler does not properly
  4120. # handle `-M -o', and we need to detect this. Also, some Intel
  4121. # versions had trouble with output in subdirs
  4122. am__obj=sub/conftest.${OBJEXT-o}
  4123. am__minus_obj="-o $am__obj"
  4124. case $depmode in
  4125. gcc)
  4126. # This depmode causes a compiler race in universal mode.
  4127. test "$am__universal" = false || continue
  4128. ;;
  4129. nosideeffect)
  4130. # after this tag, mechanisms are not by side-effect, so they'll
  4131. # only be used when explicitly requested
  4132. if test "x$enable_dependency_tracking" = xyes; then
  4133. continue
  4134. else
  4135. break
  4136. fi
  4137. ;;
  4138. msvisualcpp | msvcmsys)
  4139. # This compiler won't grok `-c -o', but also, the minuso test has
  4140. # not run yet. These depmodes are late enough in the game, and
  4141. # so weak that their functioning should not be impacted.
  4142. am__obj=conftest.${OBJEXT-o}
  4143. am__minus_obj=
  4144. ;;
  4145. none) break ;;
  4146. esac
  4147. if depmode=$depmode \
  4148. source=sub/conftest.c object=$am__obj \
  4149. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4150. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4151. >/dev/null 2>conftest.err &&
  4152. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4153. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4154. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4155. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4156. # icc doesn't choke on unknown options, it will just issue warnings
  4157. # or remarks (even with -Werror). So we grep stderr for any message
  4158. # that says an option was ignored or not supported.
  4159. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4160. # icc: Command line warning: ignoring option '-M'; no argument required
  4161. # The diagnosis changed in icc 8.0:
  4162. # icc: Command line remark: option '-MP' not supported
  4163. if (grep 'ignoring option' conftest.err ||
  4164. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4165. am_cv_CC_dependencies_compiler_type=$depmode
  4166. break
  4167. fi
  4168. fi
  4169. done
  4170. cd ..
  4171. rm -rf conftest.dir
  4172. else
  4173. am_cv_CC_dependencies_compiler_type=none
  4174. fi
  4175. fi
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4177. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4178. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4179. if
  4180. test "x$enable_dependency_tracking" != xno \
  4181. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4182. am__fastdepCC_TRUE=
  4183. am__fastdepCC_FALSE='#'
  4184. else
  4185. am__fastdepCC_TRUE='#'
  4186. am__fastdepCC_FALSE=
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4189. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4190. if test "${ac_cv_path_SED+set}" = set; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4194. for ac_i in 1 2 3 4 5 6 7; do
  4195. ac_script="$ac_script$as_nl$ac_script"
  4196. done
  4197. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4198. { ac_script=; unset ac_script;}
  4199. if test -z "$SED"; then
  4200. ac_path_SED_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
  4204. do
  4205. IFS=$as_save_IFS
  4206. test -z "$as_dir" && as_dir=.
  4207. for ac_prog in sed gsed; do
  4208. for ac_exec_ext in '' $ac_executable_extensions; do
  4209. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4210. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4211. # Check for GNU ac_path_SED and select it if it is found.
  4212. # Check for GNU $ac_path_SED
  4213. case `"$ac_path_SED" --version 2>&1` in
  4214. *GNU*)
  4215. ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl"
  4225. "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
  4229. # Best one so far, save it but keep looking for a better one
  4230. ac_cv_path_SED="$ac_path_SED"
  4231. ac_path_SED_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_SED_found && break 3
  4239. done
  4240. done
  4241. done
  4242. IFS=$as_save_IFS
  4243. if test -z "$ac_cv_path_SED"; then
  4244. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4245. fi
  4246. else
  4247. ac_cv_path_SED=$SED
  4248. fi
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4251. $as_echo "$ac_cv_path_SED" >&6; }
  4252. SED="$ac_cv_path_SED"
  4253. rm -f conftest.sed
  4254. test -z "$SED" && SED=sed
  4255. Xsed="$SED -e 1s/^X//"
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4257. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4258. if test "${ac_cv_path_GREP+set}" = set; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -z "$GREP"; then
  4262. ac_path_GREP_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 grep ggrep; do
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4272. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4273. # Check for GNU ac_path_GREP and select it if it is found.
  4274. # Check for GNU $ac_path_GREP
  4275. case `"$ac_path_GREP" --version 2>&1` in
  4276. *GNU*)
  4277. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
  4287. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then
  4291. # Best one so far, save it but keep looking for a better one
  4292. ac_cv_path_GREP="$ac_path_GREP"
  4293. ac_path_GREP_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_GREP_found && break 3
  4301. done
  4302. done
  4303. done
  4304. IFS=$as_save_IFS
  4305. if test -z "$ac_cv_path_GREP"; then
  4306. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4307. fi
  4308. else
  4309. ac_cv_path_GREP=$GREP
  4310. fi
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4313. $as_echo "$ac_cv_path_GREP" >&6; }
  4314. GREP="$ac_cv_path_GREP"
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4316. $as_echo_n "checking for egrep... " >&6; }
  4317. if test "${ac_cv_path_EGREP+set}" = set; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4321. then ac_cv_path_EGREP="$GREP -E"
  4322. else
  4323. if test -z "$EGREP"; then
  4324. ac_path_EGREP_found=false
  4325. # Loop through the user's path and test for each of PROGNAME-LIST
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_prog in egrep; do
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4334. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4335. # Check for GNU ac_path_EGREP and select it if it is found.
  4336. # Check for GNU $ac_path_EGREP
  4337. case `"$ac_path_EGREP" --version 2>&1` in
  4338. *GNU*)
  4339. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4340. *)
  4341. ac_count=0
  4342. $as_echo_n 0123456789 >"conftest.in"
  4343. while :
  4344. do
  4345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4346. mv "conftest.tmp" "conftest.in"
  4347. cp "conftest.in" "conftest.nl"
  4348. $as_echo 'EGREP' >> "conftest.nl"
  4349. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4351. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4352. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4353. # Best one so far, save it but keep looking for a better one
  4354. ac_cv_path_EGREP="$ac_path_EGREP"
  4355. ac_path_EGREP_max=$ac_count
  4356. fi
  4357. # 10*(2^10) chars as input seems more than enough
  4358. test $ac_count -gt 10 && break
  4359. done
  4360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4361. esac
  4362. $ac_path_EGREP_found && break 3
  4363. done
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. if test -z "$ac_cv_path_EGREP"; then
  4368. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4369. fi
  4370. else
  4371. ac_cv_path_EGREP=$EGREP
  4372. fi
  4373. fi
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4376. $as_echo "$ac_cv_path_EGREP" >&6; }
  4377. EGREP="$ac_cv_path_EGREP"
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4379. $as_echo_n "checking for fgrep... " >&6; }
  4380. if test "${ac_cv_path_FGREP+set}" = set; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4384. then ac_cv_path_FGREP="$GREP -F"
  4385. else
  4386. if test -z "$FGREP"; then
  4387. ac_path_FGREP_found=false
  4388. # Loop through the user's path and test for each of PROGNAME-LIST
  4389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4390. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4391. do
  4392. IFS=$as_save_IFS
  4393. test -z "$as_dir" && as_dir=.
  4394. for ac_prog in fgrep; do
  4395. for ac_exec_ext in '' $ac_executable_extensions; do
  4396. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4397. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4398. # Check for GNU ac_path_FGREP and select it if it is found.
  4399. # Check for GNU $ac_path_FGREP
  4400. case `"$ac_path_FGREP" --version 2>&1` in
  4401. *GNU*)
  4402. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4403. *)
  4404. ac_count=0
  4405. $as_echo_n 0123456789 >"conftest.in"
  4406. while :
  4407. do
  4408. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4409. mv "conftest.tmp" "conftest.in"
  4410. cp "conftest.in" "conftest.nl"
  4411. $as_echo 'FGREP' >> "conftest.nl"
  4412. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4413. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4414. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4415. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4416. # Best one so far, save it but keep looking for a better one
  4417. ac_cv_path_FGREP="$ac_path_FGREP"
  4418. ac_path_FGREP_max=$ac_count
  4419. fi
  4420. # 10*(2^10) chars as input seems more than enough
  4421. test $ac_count -gt 10 && break
  4422. done
  4423. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4424. esac
  4425. $ac_path_FGREP_found && break 3
  4426. done
  4427. done
  4428. done
  4429. IFS=$as_save_IFS
  4430. if test -z "$ac_cv_path_FGREP"; then
  4431. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4432. fi
  4433. else
  4434. ac_cv_path_FGREP=$FGREP
  4435. fi
  4436. fi
  4437. fi
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4439. $as_echo "$ac_cv_path_FGREP" >&6; }
  4440. FGREP="$ac_cv_path_FGREP"
  4441. test -z "$GREP" && GREP=grep
  4442. # Check whether --with-gnu-ld was given.
  4443. if test "${with_gnu_ld+set}" = set; then :
  4444. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4445. else
  4446. with_gnu_ld=no
  4447. fi
  4448. ac_prog=ld
  4449. if test "$GCC" = yes; then
  4450. # Check if gcc -print-prog-name=ld gives a path.
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4452. $as_echo_n "checking for ld used by $CC... " >&6; }
  4453. case $host in
  4454. *-*-mingw*)
  4455. # gcc leaves a trailing carriage return which upsets mingw
  4456. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4457. *)
  4458. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4459. esac
  4460. case $ac_prog in
  4461. # Accept absolute paths.
  4462. [\\/]* | ?:[\\/]*)
  4463. re_direlt='/[^/][^/]*/\.\./'
  4464. # Canonicalize the pathname of ld
  4465. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4466. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4467. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4468. done
  4469. test -z "$LD" && LD="$ac_prog"
  4470. ;;
  4471. "")
  4472. # If it fails, then pretend we aren't using GCC.
  4473. ac_prog=ld
  4474. ;;
  4475. *)
  4476. # If it is relative, then search for the first ld in PATH.
  4477. with_gnu_ld=unknown
  4478. ;;
  4479. esac
  4480. elif test "$with_gnu_ld" = yes; then
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4482. $as_echo_n "checking for GNU ld... " >&6; }
  4483. else
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4485. $as_echo_n "checking for non-GNU ld... " >&6; }
  4486. fi
  4487. if test "${lt_cv_path_LD+set}" = set; then :
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. if test -z "$LD"; then
  4491. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4492. for ac_dir in $PATH; do
  4493. IFS="$lt_save_ifs"
  4494. test -z "$ac_dir" && ac_dir=.
  4495. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4496. lt_cv_path_LD="$ac_dir/$ac_prog"
  4497. # Check to see if the program is GNU ld. I'd rather use --version,
  4498. # but apparently some variants of GNU ld only accept -v.
  4499. # Break only if it was the GNU/non-GNU ld that we prefer.
  4500. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4501. *GNU* | *'with BFD'*)
  4502. test "$with_gnu_ld" != no && break
  4503. ;;
  4504. *)
  4505. test "$with_gnu_ld" != yes && break
  4506. ;;
  4507. esac
  4508. fi
  4509. done
  4510. IFS="$lt_save_ifs"
  4511. else
  4512. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4513. fi
  4514. fi
  4515. LD="$lt_cv_path_LD"
  4516. if test -n "$LD"; then
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4518. $as_echo "$LD" >&6; }
  4519. else
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4521. $as_echo "no" >&6; }
  4522. fi
  4523. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4525. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4526. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4527. $as_echo_n "(cached) " >&6
  4528. else
  4529. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4530. case `$LD -v 2>&1 </dev/null` in
  4531. *GNU* | *'with BFD'*)
  4532. lt_cv_prog_gnu_ld=yes
  4533. ;;
  4534. *)
  4535. lt_cv_prog_gnu_ld=no
  4536. ;;
  4537. esac
  4538. fi
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4540. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4541. with_gnu_ld=$lt_cv_prog_gnu_ld
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4543. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4544. if test "${lt_cv_path_NM+set}" = set; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. if test -n "$NM"; then
  4548. # Let the user override the test.
  4549. lt_cv_path_NM="$NM"
  4550. else
  4551. lt_nm_to_check="${ac_tool_prefix}nm"
  4552. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4553. lt_nm_to_check="$lt_nm_to_check nm"
  4554. fi
  4555. for lt_tmp_nm in $lt_nm_to_check; do
  4556. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4557. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4558. IFS="$lt_save_ifs"
  4559. test -z "$ac_dir" && ac_dir=.
  4560. tmp_nm="$ac_dir/$lt_tmp_nm"
  4561. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4562. # Check to see if the nm accepts a BSD-compat flag.
  4563. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4564. # nm: unknown option "B" ignored
  4565. # Tru64's nm complains that /dev/null is an invalid object file
  4566. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4567. */dev/null* | *'Invalid file or object type'*)
  4568. lt_cv_path_NM="$tmp_nm -B"
  4569. break
  4570. ;;
  4571. *)
  4572. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4573. */dev/null*)
  4574. lt_cv_path_NM="$tmp_nm -p"
  4575. break
  4576. ;;
  4577. *)
  4578. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4579. continue # so that we can try to find one that supports BSD flags
  4580. ;;
  4581. esac
  4582. ;;
  4583. esac
  4584. fi
  4585. done
  4586. IFS="$lt_save_ifs"
  4587. done
  4588. : ${lt_cv_path_NM=no}
  4589. fi
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4592. $as_echo "$lt_cv_path_NM" >&6; }
  4593. if test "$lt_cv_path_NM" != "no"; then
  4594. NM="$lt_cv_path_NM"
  4595. else
  4596. # Didn't find any BSD compatible name lister, look for dumpbin.
  4597. if test -n "$ac_tool_prefix"; then
  4598. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4599. do
  4600. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4601. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. $as_echo_n "checking for $ac_word... " >&6; }
  4604. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if test -n "$DUMPBIN"; then
  4608. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4609. else
  4610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4611. for as_dir in $PATH
  4612. do
  4613. IFS=$as_save_IFS
  4614. test -z "$as_dir" && as_dir=.
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4617. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4619. break 2
  4620. fi
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. fi
  4625. fi
  4626. DUMPBIN=$ac_cv_prog_DUMPBIN
  4627. if test -n "$DUMPBIN"; then
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4629. $as_echo "$DUMPBIN" >&6; }
  4630. else
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4632. $as_echo "no" >&6; }
  4633. fi
  4634. test -n "$DUMPBIN" && break
  4635. done
  4636. fi
  4637. if test -z "$DUMPBIN"; then
  4638. ac_ct_DUMPBIN=$DUMPBIN
  4639. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4640. do
  4641. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4642. set dummy $ac_prog; ac_word=$2
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4644. $as_echo_n "checking for $ac_word... " >&6; }
  4645. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4646. $as_echo_n "(cached) " >&6
  4647. else
  4648. if test -n "$ac_ct_DUMPBIN"; then
  4649. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4650. else
  4651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4652. for as_dir in $PATH
  4653. do
  4654. IFS=$as_save_IFS
  4655. test -z "$as_dir" && as_dir=.
  4656. for ac_exec_ext in '' $ac_executable_extensions; do
  4657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4658. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4660. break 2
  4661. fi
  4662. done
  4663. done
  4664. IFS=$as_save_IFS
  4665. fi
  4666. fi
  4667. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4668. if test -n "$ac_ct_DUMPBIN"; then
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4670. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4671. else
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4673. $as_echo "no" >&6; }
  4674. fi
  4675. test -n "$ac_ct_DUMPBIN" && break
  4676. done
  4677. if test "x$ac_ct_DUMPBIN" = x; then
  4678. DUMPBIN=":"
  4679. else
  4680. case $cross_compiling:$ac_tool_warned in
  4681. yes:)
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4683. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4684. ac_tool_warned=yes ;;
  4685. esac
  4686. DUMPBIN=$ac_ct_DUMPBIN
  4687. fi
  4688. fi
  4689. if test "$DUMPBIN" != ":"; then
  4690. NM="$DUMPBIN"
  4691. fi
  4692. fi
  4693. test -z "$NM" && NM=nm
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4695. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4696. if test "${lt_cv_nm_interface+set}" = set; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. lt_cv_nm_interface="BSD nm"
  4700. echo "int some_variable = 0;" > conftest.$ac_ext
  4701. (eval echo "\"\$as_me:5216: $ac_compile\"" >&5)
  4702. (eval "$ac_compile" 2>conftest.err)
  4703. cat conftest.err >&5
  4704. (eval echo "\"\$as_me:5219: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4705. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4706. cat conftest.err >&5
  4707. (eval echo "\"\$as_me:5222: output\"" >&5)
  4708. cat conftest.out >&5
  4709. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4710. lt_cv_nm_interface="MS dumpbin"
  4711. fi
  4712. rm -f conftest*
  4713. fi
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4715. $as_echo "$lt_cv_nm_interface" >&6; }
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4717. $as_echo_n "checking whether ln -s works... " >&6; }
  4718. LN_S=$as_ln_s
  4719. if test "$LN_S" = "ln -s"; then
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4721. $as_echo "yes" >&6; }
  4722. else
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4724. $as_echo "no, using $LN_S" >&6; }
  4725. fi
  4726. # find the maximum length of command line arguments
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4728. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4729. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. i=0
  4733. teststring="ABCD"
  4734. case $build_os in
  4735. msdosdjgpp*)
  4736. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4737. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4738. # during glob expansion). Even if it were fixed, the result of this
  4739. # check would be larger than it should be.
  4740. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4741. ;;
  4742. gnu*)
  4743. # Under GNU Hurd, this test is not required because there is
  4744. # no limit to the length of command line arguments.
  4745. # Libtool will interpret -1 as no limit whatsoever
  4746. lt_cv_sys_max_cmd_len=-1;
  4747. ;;
  4748. cygwin* | mingw* | cegcc*)
  4749. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4750. # about 5 minutes as the teststring grows exponentially.
  4751. # Worse, since 9x/ME are not pre-emptively multitasking,
  4752. # you end up with a "frozen" computer, even though with patience
  4753. # the test eventually succeeds (with a max line length of 256k).
  4754. # Instead, let's just punt: use the minimum linelength reported by
  4755. # all of the supported platforms: 8192 (on NT/2K/XP).
  4756. lt_cv_sys_max_cmd_len=8192;
  4757. ;;
  4758. amigaos*)
  4759. # On AmigaOS with pdksh, this test takes hours, literally.
  4760. # So we just punt and use a minimum line length of 8192.
  4761. lt_cv_sys_max_cmd_len=8192;
  4762. ;;
  4763. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4764. # This has been around since 386BSD, at least. Likely further.
  4765. if test -x /sbin/sysctl; then
  4766. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4767. elif test -x /usr/sbin/sysctl; then
  4768. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4769. else
  4770. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4771. fi
  4772. # And add a safety zone
  4773. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4774. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4775. ;;
  4776. interix*)
  4777. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4778. lt_cv_sys_max_cmd_len=196608
  4779. ;;
  4780. osf*)
  4781. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4782. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4783. # nice to cause kernel panics so lets avoid the loop below.
  4784. # First set a reasonable default.
  4785. lt_cv_sys_max_cmd_len=16384
  4786. #
  4787. if test -x /sbin/sysconfig; then
  4788. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4789. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4790. esac
  4791. fi
  4792. ;;
  4793. sco3.2v5*)
  4794. lt_cv_sys_max_cmd_len=102400
  4795. ;;
  4796. sysv5* | sco5v6* | sysv4.2uw2*)
  4797. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4798. if test -n "$kargmax"; then
  4799. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4800. else
  4801. lt_cv_sys_max_cmd_len=32768
  4802. fi
  4803. ;;
  4804. *)
  4805. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4806. if test -n "$lt_cv_sys_max_cmd_len"; then
  4807. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4808. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4809. else
  4810. # Make teststring a little bigger before we do anything with it.
  4811. # a 1K string should be a reasonable start.
  4812. for i in 1 2 3 4 5 6 7 8 ; do
  4813. teststring=$teststring$teststring
  4814. done
  4815. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4816. # If test is not a shell built-in, we'll probably end up computing a
  4817. # maximum length that is only half of the actual maximum length, but
  4818. # we can't tell.
  4819. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4820. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4821. test $i != 17 # 1/2 MB should be enough
  4822. do
  4823. i=`expr $i + 1`
  4824. teststring=$teststring$teststring
  4825. done
  4826. # Only check the string length outside the loop.
  4827. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4828. teststring=
  4829. # Add a significant safety factor because C++ compilers can tack on
  4830. # massive amounts of additional arguments before passing them to the
  4831. # linker. It appears as though 1/2 is a usable value.
  4832. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4833. fi
  4834. ;;
  4835. esac
  4836. fi
  4837. if test -n $lt_cv_sys_max_cmd_len ; then
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4839. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4840. else
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4842. $as_echo "none" >&6; }
  4843. fi
  4844. max_cmd_len=$lt_cv_sys_max_cmd_len
  4845. : ${CP="cp -f"}
  4846. : ${MV="mv -f"}
  4847. : ${RM="rm -f"}
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4849. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4850. # Try some XSI features
  4851. xsi_shell=no
  4852. ( _lt_dummy="a/b/c"
  4853. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4854. = c,a/b,, \
  4855. && eval 'test $(( 1 + 1 )) -eq 2 \
  4856. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4857. && xsi_shell=yes
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4859. $as_echo "$xsi_shell" >&6; }
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4861. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4862. lt_shell_append=no
  4863. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4864. >/dev/null 2>&1 \
  4865. && lt_shell_append=yes
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4867. $as_echo "$lt_shell_append" >&6; }
  4868. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4869. lt_unset=unset
  4870. else
  4871. lt_unset=false
  4872. fi
  4873. # test EBCDIC or ASCII
  4874. case `echo X|tr X '\101'` in
  4875. A) # ASCII based system
  4876. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4877. lt_SP2NL='tr \040 \012'
  4878. lt_NL2SP='tr \015\012 \040\040'
  4879. ;;
  4880. *) # EBCDIC based system
  4881. lt_SP2NL='tr \100 \n'
  4882. lt_NL2SP='tr \r\n \100\100'
  4883. ;;
  4884. esac
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4886. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4887. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. lt_cv_ld_reload_flag='-r'
  4891. fi
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4893. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4894. reload_flag=$lt_cv_ld_reload_flag
  4895. case $reload_flag in
  4896. "" | " "*) ;;
  4897. *) reload_flag=" $reload_flag" ;;
  4898. esac
  4899. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4900. case $host_os in
  4901. darwin*)
  4902. if test "$GCC" = yes; then
  4903. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4904. else
  4905. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4906. fi
  4907. ;;
  4908. esac
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$OBJDUMP"; then
  4918. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4927. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. OBJDUMP=$ac_cv_prog_OBJDUMP
  4937. if test -n "$OBJDUMP"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4939. $as_echo "$OBJDUMP" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_OBJDUMP"; then
  4946. ac_ct_OBJDUMP=$OBJDUMP
  4947. # Extract the first word of "objdump", so it can be a program name with args.
  4948. set dummy objdump; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_OBJDUMP"; then
  4955. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4964. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4974. if test -n "$ac_ct_OBJDUMP"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4976. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_OBJDUMP" = x; then
  4982. OBJDUMP="false"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. OBJDUMP=$ac_ct_OBJDUMP
  4991. fi
  4992. else
  4993. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4994. fi
  4995. test -z "$OBJDUMP" && OBJDUMP=objdump
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4997. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4998. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5002. lt_cv_file_magic_test_file=
  5003. lt_cv_deplibs_check_method='unknown'
  5004. # Need to set the preceding variable on all platforms that support
  5005. # interlibrary dependencies.
  5006. # 'none' -- dependencies not supported.
  5007. # `unknown' -- same as none, but documents that we really don't know.
  5008. # 'pass_all' -- all dependencies passed with no checks.
  5009. # 'test_compile' -- check by making test program.
  5010. # 'file_magic [[regex]]' -- check by looking for files in library path
  5011. # which responds to the $file_magic_cmd with a given extended regex.
  5012. # If you have `file' or equivalent on your system and you're not sure
  5013. # whether `pass_all' will *always* work, you probably want this one.
  5014. case $host_os in
  5015. aix[4-9]*)
  5016. lt_cv_deplibs_check_method=pass_all
  5017. ;;
  5018. beos*)
  5019. lt_cv_deplibs_check_method=pass_all
  5020. ;;
  5021. bsdi[45]*)
  5022. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5023. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5024. lt_cv_file_magic_test_file=/shlib/libc.so
  5025. ;;
  5026. cygwin*)
  5027. # func_win32_libid is a shell function defined in ltmain.sh
  5028. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5029. lt_cv_file_magic_cmd='func_win32_libid'
  5030. ;;
  5031. mingw* | pw32*)
  5032. # Base MSYS/MinGW do not provide the 'file' command needed by
  5033. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5034. # unless we find 'file', for example because we are cross-compiling.
  5035. if ( file / ) >/dev/null 2>&1; then
  5036. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5037. lt_cv_file_magic_cmd='func_win32_libid'
  5038. else
  5039. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5040. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5041. fi
  5042. ;;
  5043. cegcc)
  5044. # use the weaker test based on 'objdump'. See mingw*.
  5045. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5046. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5047. ;;
  5048. darwin* | rhapsody*)
  5049. lt_cv_deplibs_check_method=pass_all
  5050. ;;
  5051. freebsd* | dragonfly*)
  5052. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5053. case $host_cpu in
  5054. i*86 )
  5055. # Not sure whether the presence of OpenBSD here was a mistake.
  5056. # Let's accept both of them until this is cleared up.
  5057. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5058. lt_cv_file_magic_cmd=/usr/bin/file
  5059. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5060. ;;
  5061. esac
  5062. else
  5063. lt_cv_deplibs_check_method=pass_all
  5064. fi
  5065. ;;
  5066. gnu*)
  5067. lt_cv_deplibs_check_method=pass_all
  5068. ;;
  5069. hpux10.20* | hpux11*)
  5070. lt_cv_file_magic_cmd=/usr/bin/file
  5071. case $host_cpu in
  5072. ia64*)
  5073. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5074. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5075. ;;
  5076. hppa*64*)
  5077. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5078. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5079. ;;
  5080. *)
  5081. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5082. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5083. ;;
  5084. esac
  5085. ;;
  5086. interix[3-9]*)
  5087. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5088. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5089. ;;
  5090. irix5* | irix6* | nonstopux*)
  5091. case $LD in
  5092. *-32|*"-32 ") libmagic=32-bit;;
  5093. *-n32|*"-n32 ") libmagic=N32;;
  5094. *-64|*"-64 ") libmagic=64-bit;;
  5095. *) libmagic=never-match;;
  5096. esac
  5097. lt_cv_deplibs_check_method=pass_all
  5098. ;;
  5099. # This must be Linux ELF.
  5100. linux* | k*bsd*-gnu)
  5101. lt_cv_deplibs_check_method=pass_all
  5102. ;;
  5103. netbsd* | netbsdelf*-gnu)
  5104. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5105. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5106. else
  5107. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5108. fi
  5109. ;;
  5110. newos6*)
  5111. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5112. lt_cv_file_magic_cmd=/usr/bin/file
  5113. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5114. ;;
  5115. *nto* | *qnx*)
  5116. lt_cv_deplibs_check_method=pass_all
  5117. ;;
  5118. openbsd*)
  5119. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5120. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5121. else
  5122. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5123. fi
  5124. ;;
  5125. osf3* | osf4* | osf5*)
  5126. lt_cv_deplibs_check_method=pass_all
  5127. ;;
  5128. rdos*)
  5129. lt_cv_deplibs_check_method=pass_all
  5130. ;;
  5131. solaris*)
  5132. lt_cv_deplibs_check_method=pass_all
  5133. ;;
  5134. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5135. lt_cv_deplibs_check_method=pass_all
  5136. ;;
  5137. sysv4 | sysv4.3*)
  5138. case $host_vendor in
  5139. motorola)
  5140. 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]'
  5141. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5142. ;;
  5143. ncr)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. sequent)
  5147. lt_cv_file_magic_cmd='/bin/file'
  5148. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5149. ;;
  5150. sni)
  5151. lt_cv_file_magic_cmd='/bin/file'
  5152. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5153. lt_cv_file_magic_test_file=/lib/libc.so
  5154. ;;
  5155. siemens)
  5156. lt_cv_deplibs_check_method=pass_all
  5157. ;;
  5158. pc)
  5159. lt_cv_deplibs_check_method=pass_all
  5160. ;;
  5161. esac
  5162. ;;
  5163. tpf*)
  5164. lt_cv_deplibs_check_method=pass_all
  5165. ;;
  5166. esac
  5167. fi
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5169. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5170. file_magic_cmd=$lt_cv_file_magic_cmd
  5171. deplibs_check_method=$lt_cv_deplibs_check_method
  5172. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5173. if test -n "$ac_tool_prefix"; then
  5174. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5175. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5177. $as_echo_n "checking for $ac_word... " >&6; }
  5178. if test "${ac_cv_prog_AR+set}" = set; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. if test -n "$AR"; then
  5182. ac_cv_prog_AR="$AR" # Let the user override the test.
  5183. else
  5184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5185. for as_dir in $PATH
  5186. do
  5187. IFS=$as_save_IFS
  5188. test -z "$as_dir" && as_dir=.
  5189. for ac_exec_ext in '' $ac_executable_extensions; do
  5190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5191. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5193. break 2
  5194. fi
  5195. done
  5196. done
  5197. IFS=$as_save_IFS
  5198. fi
  5199. fi
  5200. AR=$ac_cv_prog_AR
  5201. if test -n "$AR"; then
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5203. $as_echo "$AR" >&6; }
  5204. else
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5206. $as_echo "no" >&6; }
  5207. fi
  5208. fi
  5209. if test -z "$ac_cv_prog_AR"; then
  5210. ac_ct_AR=$AR
  5211. # Extract the first word of "ar", so it can be a program name with args.
  5212. set dummy ar; 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 test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. if test -n "$ac_ct_AR"; then
  5219. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
  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. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5238. if test -n "$ac_ct_AR"; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5240. $as_echo "$ac_ct_AR" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. fi
  5245. if test "x$ac_ct_AR" = x; then
  5246. AR="false"
  5247. else
  5248. case $cross_compiling:$ac_tool_warned in
  5249. yes:)
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5252. ac_tool_warned=yes ;;
  5253. esac
  5254. AR=$ac_ct_AR
  5255. fi
  5256. else
  5257. AR="$ac_cv_prog_AR"
  5258. fi
  5259. test -z "$AR" && AR=ar
  5260. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5261. if test -n "$ac_tool_prefix"; then
  5262. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5263. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5265. $as_echo_n "checking for $ac_word... " >&6; }
  5266. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. if test -n "$STRIP"; then
  5270. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5271. else
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH
  5274. do
  5275. IFS=$as_save_IFS
  5276. test -z "$as_dir" && as_dir=.
  5277. for ac_exec_ext in '' $ac_executable_extensions; do
  5278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5279. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5281. break 2
  5282. fi
  5283. done
  5284. done
  5285. IFS=$as_save_IFS
  5286. fi
  5287. fi
  5288. STRIP=$ac_cv_prog_STRIP
  5289. if test -n "$STRIP"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5291. $as_echo "$STRIP" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. fi
  5297. if test -z "$ac_cv_prog_STRIP"; then
  5298. ac_ct_STRIP=$STRIP
  5299. # Extract the first word of "strip", so it can be a program name with args.
  5300. set dummy strip; ac_word=$2
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5302. $as_echo_n "checking for $ac_word... " >&6; }
  5303. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. if test -n "$ac_ct_STRIP"; then
  5307. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5308. else
  5309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5310. for as_dir in $PATH
  5311. do
  5312. IFS=$as_save_IFS
  5313. test -z "$as_dir" && as_dir=.
  5314. for ac_exec_ext in '' $ac_executable_extensions; do
  5315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5316. ac_cv_prog_ac_ct_STRIP="strip"
  5317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5318. break 2
  5319. fi
  5320. done
  5321. done
  5322. IFS=$as_save_IFS
  5323. fi
  5324. fi
  5325. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5326. if test -n "$ac_ct_STRIP"; then
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5328. $as_echo "$ac_ct_STRIP" >&6; }
  5329. else
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5331. $as_echo "no" >&6; }
  5332. fi
  5333. if test "x$ac_ct_STRIP" = x; then
  5334. STRIP=":"
  5335. else
  5336. case $cross_compiling:$ac_tool_warned in
  5337. yes:)
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5340. ac_tool_warned=yes ;;
  5341. esac
  5342. STRIP=$ac_ct_STRIP
  5343. fi
  5344. else
  5345. STRIP="$ac_cv_prog_STRIP"
  5346. fi
  5347. test -z "$STRIP" && STRIP=:
  5348. if test -n "$ac_tool_prefix"; then
  5349. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5350. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5352. $as_echo_n "checking for $ac_word... " >&6; }
  5353. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. if test -n "$RANLIB"; then
  5357. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5358. else
  5359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5360. for as_dir in $PATH
  5361. do
  5362. IFS=$as_save_IFS
  5363. test -z "$as_dir" && as_dir=.
  5364. for ac_exec_ext in '' $ac_executable_extensions; do
  5365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5366. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5368. break 2
  5369. fi
  5370. done
  5371. done
  5372. IFS=$as_save_IFS
  5373. fi
  5374. fi
  5375. RANLIB=$ac_cv_prog_RANLIB
  5376. if test -n "$RANLIB"; then
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5378. $as_echo "$RANLIB" >&6; }
  5379. else
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5381. $as_echo "no" >&6; }
  5382. fi
  5383. fi
  5384. if test -z "$ac_cv_prog_RANLIB"; then
  5385. ac_ct_RANLIB=$RANLIB
  5386. # Extract the first word of "ranlib", so it can be a program name with args.
  5387. set dummy ranlib; ac_word=$2
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. if test -n "$ac_ct_RANLIB"; then
  5394. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5395. else
  5396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5397. for as_dir in $PATH
  5398. do
  5399. IFS=$as_save_IFS
  5400. test -z "$as_dir" && as_dir=.
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5403. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5413. if test -n "$ac_ct_RANLIB"; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5415. $as_echo "$ac_ct_RANLIB" >&6; }
  5416. else
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. $as_echo "no" >&6; }
  5419. fi
  5420. if test "x$ac_ct_RANLIB" = x; then
  5421. RANLIB=":"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. RANLIB=$ac_ct_RANLIB
  5430. fi
  5431. else
  5432. RANLIB="$ac_cv_prog_RANLIB"
  5433. fi
  5434. test -z "$RANLIB" && RANLIB=:
  5435. # Determine commands to create old-style static archives.
  5436. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5437. old_postinstall_cmds='chmod 644 $oldlib'
  5438. old_postuninstall_cmds=
  5439. if test -n "$RANLIB"; then
  5440. case $host_os in
  5441. openbsd*)
  5442. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5443. ;;
  5444. *)
  5445. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5446. ;;
  5447. esac
  5448. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5449. fi
  5450. # If no C compiler was specified, use CC.
  5451. LTCC=${LTCC-"$CC"}
  5452. # If no C compiler flags were specified, use CFLAGS.
  5453. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5454. # Allow CC to be a program name with arguments.
  5455. compiler=$CC
  5456. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5458. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5459. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. # These are sane defaults that work on at least a few old systems.
  5463. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5464. # Character class describing NM global symbol codes.
  5465. symcode='[BCDEGRST]'
  5466. # Regexp to match symbols that can be accessed directly from C.
  5467. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5468. # Define system-specific variables.
  5469. case $host_os in
  5470. aix*)
  5471. symcode='[BCDT]'
  5472. ;;
  5473. cygwin* | mingw* | pw32* | cegcc*)
  5474. symcode='[ABCDGISTW]'
  5475. ;;
  5476. hpux*)
  5477. if test "$host_cpu" = ia64; then
  5478. symcode='[ABCDEGRST]'
  5479. fi
  5480. ;;
  5481. irix* | nonstopux*)
  5482. symcode='[BCDEGRST]'
  5483. ;;
  5484. osf*)
  5485. symcode='[BCDEGQRST]'
  5486. ;;
  5487. solaris*)
  5488. symcode='[BDRT]'
  5489. ;;
  5490. sco3.2v5*)
  5491. symcode='[DT]'
  5492. ;;
  5493. sysv4.2uw2*)
  5494. symcode='[DT]'
  5495. ;;
  5496. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5497. symcode='[ABDT]'
  5498. ;;
  5499. sysv4)
  5500. symcode='[DFNSTU]'
  5501. ;;
  5502. esac
  5503. # If we're using GNU nm, then use its standard symbol codes.
  5504. case `$NM -V 2>&1` in
  5505. *GNU* | *'with BFD'*)
  5506. symcode='[ABCDGIRSTW]' ;;
  5507. esac
  5508. # Transform an extracted symbol line into a proper C declaration.
  5509. # Some systems (esp. on ia64) link data and code symbols differently,
  5510. # so use this general approach.
  5511. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5512. # Transform an extracted symbol line into symbol name and symbol address
  5513. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5514. 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'"
  5515. # Handle CRLF in mingw tool chain
  5516. opt_cr=
  5517. case $build_os in
  5518. mingw*)
  5519. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5520. ;;
  5521. esac
  5522. # Try without a prefix underscore, then with it.
  5523. for ac_symprfx in "" "_"; do
  5524. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5525. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5526. # Write the raw and C identifiers.
  5527. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5528. # Fake it for dumpbin and say T for any non-static function
  5529. # and D for any global variable.
  5530. # Also find C++ and __fastcall symbols from MSVC++,
  5531. # which start with @ or ?.
  5532. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5533. " {last_section=section; section=\$ 3};"\
  5534. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5535. " \$ 0!~/External *\|/{next};"\
  5536. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5537. " {if(hide[section]) next};"\
  5538. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5539. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5540. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5541. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5542. " ' prfx=^$ac_symprfx"
  5543. else
  5544. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5545. fi
  5546. # Check to see that the pipe works correctly.
  5547. pipe_works=no
  5548. rm -f conftest*
  5549. cat > conftest.$ac_ext <<_LT_EOF
  5550. #ifdef __cplusplus
  5551. extern "C" {
  5552. #endif
  5553. char nm_test_var;
  5554. void nm_test_func(void);
  5555. void nm_test_func(void){}
  5556. #ifdef __cplusplus
  5557. }
  5558. #endif
  5559. int main(){nm_test_var='a';nm_test_func();return(0);}
  5560. _LT_EOF
  5561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5562. (eval $ac_compile) 2>&5
  5563. ac_status=$?
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5565. test $ac_status = 0; }; then
  5566. # Now try to grab the symbols.
  5567. nlist=conftest.nm
  5568. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5569. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5570. ac_status=$?
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5572. test $ac_status = 0; } && test -s "$nlist"; then
  5573. # Try sorting and uniquifying the output.
  5574. if sort "$nlist" | uniq > "$nlist"T; then
  5575. mv -f "$nlist"T "$nlist"
  5576. else
  5577. rm -f "$nlist"T
  5578. fi
  5579. # Make sure that we snagged all the symbols we need.
  5580. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5581. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5582. cat <<_LT_EOF > conftest.$ac_ext
  5583. #ifdef __cplusplus
  5584. extern "C" {
  5585. #endif
  5586. _LT_EOF
  5587. # Now generate the symbol file.
  5588. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5589. cat <<_LT_EOF >> conftest.$ac_ext
  5590. /* The mapping between symbol names and symbols. */
  5591. const struct {
  5592. const char *name;
  5593. void *address;
  5594. }
  5595. lt__PROGRAM__LTX_preloaded_symbols[] =
  5596. {
  5597. { "@PROGRAM@", (void *) 0 },
  5598. _LT_EOF
  5599. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5600. cat <<\_LT_EOF >> conftest.$ac_ext
  5601. {0, (void *) 0}
  5602. };
  5603. /* This works around a problem in FreeBSD linker */
  5604. #ifdef FREEBSD_WORKAROUND
  5605. static const void *lt_preloaded_setup() {
  5606. return lt__PROGRAM__LTX_preloaded_symbols;
  5607. }
  5608. #endif
  5609. #ifdef __cplusplus
  5610. }
  5611. #endif
  5612. _LT_EOF
  5613. # Now try linking the two files.
  5614. mv conftest.$ac_objext conftstm.$ac_objext
  5615. lt_save_LIBS="$LIBS"
  5616. lt_save_CFLAGS="$CFLAGS"
  5617. LIBS="conftstm.$ac_objext"
  5618. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5620. (eval $ac_link) 2>&5
  5621. ac_status=$?
  5622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5623. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5624. pipe_works=yes
  5625. fi
  5626. LIBS="$lt_save_LIBS"
  5627. CFLAGS="$lt_save_CFLAGS"
  5628. else
  5629. echo "cannot find nm_test_func in $nlist" >&5
  5630. fi
  5631. else
  5632. echo "cannot find nm_test_var in $nlist" >&5
  5633. fi
  5634. else
  5635. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5636. fi
  5637. else
  5638. echo "$progname: failed program was:" >&5
  5639. cat conftest.$ac_ext >&5
  5640. fi
  5641. rm -rf conftest* conftst*
  5642. # Do not use the global_symbol_pipe unless it works.
  5643. if test "$pipe_works" = yes; then
  5644. break
  5645. else
  5646. lt_cv_sys_global_symbol_pipe=
  5647. fi
  5648. done
  5649. fi
  5650. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5651. lt_cv_sys_global_symbol_to_cdecl=
  5652. fi
  5653. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5655. $as_echo "failed" >&6; }
  5656. else
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5658. $as_echo "ok" >&6; }
  5659. fi
  5660. # Check whether --enable-libtool-lock was given.
  5661. if test "${enable_libtool_lock+set}" = set; then :
  5662. enableval=$enable_libtool_lock;
  5663. fi
  5664. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5665. # Some flags need to be propagated to the compiler or linker for good
  5666. # libtool support.
  5667. case $host in
  5668. ia64-*-hpux*)
  5669. # Find out which ABI we are using.
  5670. echo 'int i;' > conftest.$ac_ext
  5671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5672. (eval $ac_compile) 2>&5
  5673. ac_status=$?
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5675. test $ac_status = 0; }; then
  5676. case `/usr/bin/file conftest.$ac_objext` in
  5677. *ELF-32*)
  5678. HPUX_IA64_MODE="32"
  5679. ;;
  5680. *ELF-64*)
  5681. HPUX_IA64_MODE="64"
  5682. ;;
  5683. esac
  5684. fi
  5685. rm -rf conftest*
  5686. ;;
  5687. *-*-irix6*)
  5688. # Find out which ABI we are using.
  5689. echo '#line 6428 "configure"' > conftest.$ac_ext
  5690. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5691. (eval $ac_compile) 2>&5
  5692. ac_status=$?
  5693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5694. test $ac_status = 0; }; then
  5695. if test "$lt_cv_prog_gnu_ld" = yes; then
  5696. case `/usr/bin/file conftest.$ac_objext` in
  5697. *32-bit*)
  5698. LD="${LD-ld} -melf32bsmip"
  5699. ;;
  5700. *N32*)
  5701. LD="${LD-ld} -melf32bmipn32"
  5702. ;;
  5703. *64-bit*)
  5704. LD="${LD-ld} -melf64bmip"
  5705. ;;
  5706. esac
  5707. else
  5708. case `/usr/bin/file conftest.$ac_objext` in
  5709. *32-bit*)
  5710. LD="${LD-ld} -32"
  5711. ;;
  5712. *N32*)
  5713. LD="${LD-ld} -n32"
  5714. ;;
  5715. *64-bit*)
  5716. LD="${LD-ld} -64"
  5717. ;;
  5718. esac
  5719. fi
  5720. fi
  5721. rm -rf conftest*
  5722. ;;
  5723. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5724. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5725. # Find out which ABI we are using.
  5726. echo 'int i;' > conftest.$ac_ext
  5727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5728. (eval $ac_compile) 2>&5
  5729. ac_status=$?
  5730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5731. test $ac_status = 0; }; then
  5732. case `/usr/bin/file conftest.o` in
  5733. *32-bit*)
  5734. case $host in
  5735. x86_64-*kfreebsd*-gnu)
  5736. LD="${LD-ld} -m elf_i386_fbsd"
  5737. ;;
  5738. x86_64-*linux*)
  5739. LD="${LD-ld} -m elf_i386"
  5740. ;;
  5741. ppc64-*linux*|powerpc64-*linux*)
  5742. LD="${LD-ld} -m elf32ppclinux"
  5743. ;;
  5744. s390x-*linux*)
  5745. LD="${LD-ld} -m elf_s390"
  5746. ;;
  5747. sparc64-*linux*)
  5748. LD="${LD-ld} -m elf32_sparc"
  5749. ;;
  5750. esac
  5751. ;;
  5752. *64-bit*)
  5753. case $host in
  5754. x86_64-*kfreebsd*-gnu)
  5755. LD="${LD-ld} -m elf_x86_64_fbsd"
  5756. ;;
  5757. x86_64-*linux*)
  5758. LD="${LD-ld} -m elf_x86_64"
  5759. ;;
  5760. ppc*-*linux*|powerpc*-*linux*)
  5761. LD="${LD-ld} -m elf64ppc"
  5762. ;;
  5763. s390*-*linux*|s390*-*tpf*)
  5764. LD="${LD-ld} -m elf64_s390"
  5765. ;;
  5766. sparc*-*linux*)
  5767. LD="${LD-ld} -m elf64_sparc"
  5768. ;;
  5769. esac
  5770. ;;
  5771. esac
  5772. fi
  5773. rm -rf conftest*
  5774. ;;
  5775. *-*-sco3.2v5*)
  5776. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5777. SAVE_CFLAGS="$CFLAGS"
  5778. CFLAGS="$CFLAGS -belf"
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5780. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5781. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. ac_ext=c
  5785. ac_cpp='$CPP $CPPFLAGS'
  5786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5790. /* end confdefs.h. */
  5791. int
  5792. main ()
  5793. {
  5794. ;
  5795. return 0;
  5796. }
  5797. _ACEOF
  5798. if ac_fn_c_try_link "$LINENO"; then :
  5799. lt_cv_cc_needs_belf=yes
  5800. else
  5801. lt_cv_cc_needs_belf=no
  5802. fi
  5803. rm -f core conftest.err conftest.$ac_objext \
  5804. conftest$ac_exeext conftest.$ac_ext
  5805. ac_ext=c
  5806. ac_cpp='$CPP $CPPFLAGS'
  5807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5810. fi
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5812. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5813. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5814. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5815. CFLAGS="$SAVE_CFLAGS"
  5816. fi
  5817. ;;
  5818. sparc*-*solaris*)
  5819. # Find out which ABI we are using.
  5820. echo 'int i;' > conftest.$ac_ext
  5821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5822. (eval $ac_compile) 2>&5
  5823. ac_status=$?
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5825. test $ac_status = 0; }; then
  5826. case `/usr/bin/file conftest.o` in
  5827. *64-bit*)
  5828. case $lt_cv_prog_gnu_ld in
  5829. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5830. *)
  5831. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5832. LD="${LD-ld} -64"
  5833. fi
  5834. ;;
  5835. esac
  5836. ;;
  5837. esac
  5838. fi
  5839. rm -rf conftest*
  5840. ;;
  5841. esac
  5842. need_locks="$enable_libtool_lock"
  5843. case $host_os in
  5844. rhapsody* | darwin*)
  5845. if test -n "$ac_tool_prefix"; then
  5846. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5847. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5849. $as_echo_n "checking for $ac_word... " >&6; }
  5850. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5851. $as_echo_n "(cached) " >&6
  5852. else
  5853. if test -n "$DSYMUTIL"; then
  5854. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5855. else
  5856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5857. for as_dir in $PATH
  5858. do
  5859. IFS=$as_save_IFS
  5860. test -z "$as_dir" && as_dir=.
  5861. for ac_exec_ext in '' $ac_executable_extensions; do
  5862. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5863. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5865. break 2
  5866. fi
  5867. done
  5868. done
  5869. IFS=$as_save_IFS
  5870. fi
  5871. fi
  5872. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5873. if test -n "$DSYMUTIL"; then
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5875. $as_echo "$DSYMUTIL" >&6; }
  5876. else
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5878. $as_echo "no" >&6; }
  5879. fi
  5880. fi
  5881. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5882. ac_ct_DSYMUTIL=$DSYMUTIL
  5883. # Extract the first word of "dsymutil", so it can be a program name with args.
  5884. set dummy dsymutil; ac_word=$2
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5886. $as_echo_n "checking for $ac_word... " >&6; }
  5887. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. if test -n "$ac_ct_DSYMUTIL"; then
  5891. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5892. else
  5893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5894. for as_dir in $PATH
  5895. do
  5896. IFS=$as_save_IFS
  5897. test -z "$as_dir" && as_dir=.
  5898. for ac_exec_ext in '' $ac_executable_extensions; do
  5899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5900. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5902. break 2
  5903. fi
  5904. done
  5905. done
  5906. IFS=$as_save_IFS
  5907. fi
  5908. fi
  5909. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5910. if test -n "$ac_ct_DSYMUTIL"; then
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5912. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5913. else
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5915. $as_echo "no" >&6; }
  5916. fi
  5917. if test "x$ac_ct_DSYMUTIL" = x; then
  5918. DSYMUTIL=":"
  5919. else
  5920. case $cross_compiling:$ac_tool_warned in
  5921. yes:)
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5923. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5924. ac_tool_warned=yes ;;
  5925. esac
  5926. DSYMUTIL=$ac_ct_DSYMUTIL
  5927. fi
  5928. else
  5929. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5930. fi
  5931. if test -n "$ac_tool_prefix"; then
  5932. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5933. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5935. $as_echo_n "checking for $ac_word... " >&6; }
  5936. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5937. $as_echo_n "(cached) " >&6
  5938. else
  5939. if test -n "$NMEDIT"; then
  5940. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5941. else
  5942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5943. for as_dir in $PATH
  5944. do
  5945. IFS=$as_save_IFS
  5946. test -z "$as_dir" && as_dir=.
  5947. for ac_exec_ext in '' $ac_executable_extensions; do
  5948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5949. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5951. break 2
  5952. fi
  5953. done
  5954. done
  5955. IFS=$as_save_IFS
  5956. fi
  5957. fi
  5958. NMEDIT=$ac_cv_prog_NMEDIT
  5959. if test -n "$NMEDIT"; then
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5961. $as_echo "$NMEDIT" >&6; }
  5962. else
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5964. $as_echo "no" >&6; }
  5965. fi
  5966. fi
  5967. if test -z "$ac_cv_prog_NMEDIT"; then
  5968. ac_ct_NMEDIT=$NMEDIT
  5969. # Extract the first word of "nmedit", so it can be a program name with args.
  5970. set dummy nmedit; ac_word=$2
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5972. $as_echo_n "checking for $ac_word... " >&6; }
  5973. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5974. $as_echo_n "(cached) " >&6
  5975. else
  5976. if test -n "$ac_ct_NMEDIT"; then
  5977. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5978. else
  5979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5980. for as_dir in $PATH
  5981. do
  5982. IFS=$as_save_IFS
  5983. test -z "$as_dir" && as_dir=.
  5984. for ac_exec_ext in '' $ac_executable_extensions; do
  5985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5986. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5988. break 2
  5989. fi
  5990. done
  5991. done
  5992. IFS=$as_save_IFS
  5993. fi
  5994. fi
  5995. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5996. if test -n "$ac_ct_NMEDIT"; then
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5998. $as_echo "$ac_ct_NMEDIT" >&6; }
  5999. else
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6001. $as_echo "no" >&6; }
  6002. fi
  6003. if test "x$ac_ct_NMEDIT" = x; then
  6004. NMEDIT=":"
  6005. else
  6006. case $cross_compiling:$ac_tool_warned in
  6007. yes:)
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6009. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6010. ac_tool_warned=yes ;;
  6011. esac
  6012. NMEDIT=$ac_ct_NMEDIT
  6013. fi
  6014. else
  6015. NMEDIT="$ac_cv_prog_NMEDIT"
  6016. fi
  6017. if test -n "$ac_tool_prefix"; then
  6018. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6019. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6021. $as_echo_n "checking for $ac_word... " >&6; }
  6022. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6023. $as_echo_n "(cached) " >&6
  6024. else
  6025. if test -n "$LIPO"; then
  6026. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6027. else
  6028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6029. for as_dir in $PATH
  6030. do
  6031. IFS=$as_save_IFS
  6032. test -z "$as_dir" && as_dir=.
  6033. for ac_exec_ext in '' $ac_executable_extensions; do
  6034. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6035. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6037. break 2
  6038. fi
  6039. done
  6040. done
  6041. IFS=$as_save_IFS
  6042. fi
  6043. fi
  6044. LIPO=$ac_cv_prog_LIPO
  6045. if test -n "$LIPO"; then
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6047. $as_echo "$LIPO" >&6; }
  6048. else
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. $as_echo "no" >&6; }
  6051. fi
  6052. fi
  6053. if test -z "$ac_cv_prog_LIPO"; then
  6054. ac_ct_LIPO=$LIPO
  6055. # Extract the first word of "lipo", so it can be a program name with args.
  6056. set dummy lipo; ac_word=$2
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6058. $as_echo_n "checking for $ac_word... " >&6; }
  6059. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. if test -n "$ac_ct_LIPO"; then
  6063. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6064. else
  6065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6066. for as_dir in $PATH
  6067. do
  6068. IFS=$as_save_IFS
  6069. test -z "$as_dir" && as_dir=.
  6070. for ac_exec_ext in '' $ac_executable_extensions; do
  6071. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6072. ac_cv_prog_ac_ct_LIPO="lipo"
  6073. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6074. break 2
  6075. fi
  6076. done
  6077. done
  6078. IFS=$as_save_IFS
  6079. fi
  6080. fi
  6081. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6082. if test -n "$ac_ct_LIPO"; then
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6084. $as_echo "$ac_ct_LIPO" >&6; }
  6085. else
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6087. $as_echo "no" >&6; }
  6088. fi
  6089. if test "x$ac_ct_LIPO" = x; then
  6090. LIPO=":"
  6091. else
  6092. case $cross_compiling:$ac_tool_warned in
  6093. yes:)
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6095. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6096. ac_tool_warned=yes ;;
  6097. esac
  6098. LIPO=$ac_ct_LIPO
  6099. fi
  6100. else
  6101. LIPO="$ac_cv_prog_LIPO"
  6102. fi
  6103. if test -n "$ac_tool_prefix"; then
  6104. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6105. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6107. $as_echo_n "checking for $ac_word... " >&6; }
  6108. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6109. $as_echo_n "(cached) " >&6
  6110. else
  6111. if test -n "$OTOOL"; then
  6112. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6113. else
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117. IFS=$as_save_IFS
  6118. test -z "$as_dir" && as_dir=.
  6119. for ac_exec_ext in '' $ac_executable_extensions; do
  6120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6121. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6123. break 2
  6124. fi
  6125. done
  6126. done
  6127. IFS=$as_save_IFS
  6128. fi
  6129. fi
  6130. OTOOL=$ac_cv_prog_OTOOL
  6131. if test -n "$OTOOL"; then
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6133. $as_echo "$OTOOL" >&6; }
  6134. else
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6136. $as_echo "no" >&6; }
  6137. fi
  6138. fi
  6139. if test -z "$ac_cv_prog_OTOOL"; then
  6140. ac_ct_OTOOL=$OTOOL
  6141. # Extract the first word of "otool", so it can be a program name with args.
  6142. set dummy otool; ac_word=$2
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6144. $as_echo_n "checking for $ac_word... " >&6; }
  6145. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. if test -n "$ac_ct_OTOOL"; then
  6149. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6150. else
  6151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6152. for as_dir in $PATH
  6153. do
  6154. IFS=$as_save_IFS
  6155. test -z "$as_dir" && as_dir=.
  6156. for ac_exec_ext in '' $ac_executable_extensions; do
  6157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6158. ac_cv_prog_ac_ct_OTOOL="otool"
  6159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6160. break 2
  6161. fi
  6162. done
  6163. done
  6164. IFS=$as_save_IFS
  6165. fi
  6166. fi
  6167. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6168. if test -n "$ac_ct_OTOOL"; then
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6170. $as_echo "$ac_ct_OTOOL" >&6; }
  6171. else
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6173. $as_echo "no" >&6; }
  6174. fi
  6175. if test "x$ac_ct_OTOOL" = x; then
  6176. OTOOL=":"
  6177. else
  6178. case $cross_compiling:$ac_tool_warned in
  6179. yes:)
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6182. ac_tool_warned=yes ;;
  6183. esac
  6184. OTOOL=$ac_ct_OTOOL
  6185. fi
  6186. else
  6187. OTOOL="$ac_cv_prog_OTOOL"
  6188. fi
  6189. if test -n "$ac_tool_prefix"; then
  6190. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6191. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6193. $as_echo_n "checking for $ac_word... " >&6; }
  6194. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. if test -n "$OTOOL64"; then
  6198. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6199. else
  6200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6201. for as_dir in $PATH
  6202. do
  6203. IFS=$as_save_IFS
  6204. test -z "$as_dir" && as_dir=.
  6205. for ac_exec_ext in '' $ac_executable_extensions; do
  6206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6207. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6209. break 2
  6210. fi
  6211. done
  6212. done
  6213. IFS=$as_save_IFS
  6214. fi
  6215. fi
  6216. OTOOL64=$ac_cv_prog_OTOOL64
  6217. if test -n "$OTOOL64"; then
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6219. $as_echo "$OTOOL64" >&6; }
  6220. else
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6222. $as_echo "no" >&6; }
  6223. fi
  6224. fi
  6225. if test -z "$ac_cv_prog_OTOOL64"; then
  6226. ac_ct_OTOOL64=$OTOOL64
  6227. # Extract the first word of "otool64", so it can be a program name with args.
  6228. set dummy otool64; ac_word=$2
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6230. $as_echo_n "checking for $ac_word... " >&6; }
  6231. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6232. $as_echo_n "(cached) " >&6
  6233. else
  6234. if test -n "$ac_ct_OTOOL64"; then
  6235. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6236. else
  6237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6238. for as_dir in $PATH
  6239. do
  6240. IFS=$as_save_IFS
  6241. test -z "$as_dir" && as_dir=.
  6242. for ac_exec_ext in '' $ac_executable_extensions; do
  6243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6244. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6246. break 2
  6247. fi
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. fi
  6252. fi
  6253. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6254. if test -n "$ac_ct_OTOOL64"; then
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6256. $as_echo "$ac_ct_OTOOL64" >&6; }
  6257. else
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6259. $as_echo "no" >&6; }
  6260. fi
  6261. if test "x$ac_ct_OTOOL64" = x; then
  6262. OTOOL64=":"
  6263. else
  6264. case $cross_compiling:$ac_tool_warned in
  6265. yes:)
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6267. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6268. ac_tool_warned=yes ;;
  6269. esac
  6270. OTOOL64=$ac_ct_OTOOL64
  6271. fi
  6272. else
  6273. OTOOL64="$ac_cv_prog_OTOOL64"
  6274. fi
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6276. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6277. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. lt_cv_apple_cc_single_mod=no
  6281. if test -z "${LT_MULTI_MODULE}"; then
  6282. # By default we will add the -single_module flag. You can override
  6283. # by either setting the environment variable LT_MULTI_MODULE
  6284. # non-empty at configure time, or by adding -multi_module to the
  6285. # link flags.
  6286. rm -rf libconftest.dylib*
  6287. echo "int foo(void){return 1;}" > conftest.c
  6288. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6289. -dynamiclib -Wl,-single_module conftest.c" >&5
  6290. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6291. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6292. _lt_result=$?
  6293. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6294. lt_cv_apple_cc_single_mod=yes
  6295. else
  6296. cat conftest.err >&5
  6297. fi
  6298. rm -rf libconftest.dylib*
  6299. rm -f conftest.*
  6300. fi
  6301. fi
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6303. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6305. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6306. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. lt_cv_ld_exported_symbols_list=no
  6310. save_LDFLAGS=$LDFLAGS
  6311. echo "_main" > conftest.sym
  6312. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6314. /* end confdefs.h. */
  6315. int
  6316. main ()
  6317. {
  6318. ;
  6319. return 0;
  6320. }
  6321. _ACEOF
  6322. if ac_fn_c_try_link "$LINENO"; then :
  6323. lt_cv_ld_exported_symbols_list=yes
  6324. else
  6325. lt_cv_ld_exported_symbols_list=no
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext \
  6328. conftest$ac_exeext conftest.$ac_ext
  6329. LDFLAGS="$save_LDFLAGS"
  6330. fi
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6332. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6333. case $host_os in
  6334. rhapsody* | darwin1.[012])
  6335. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6336. darwin1.*)
  6337. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6338. darwin*) # darwin 5.x on
  6339. # if running on 10.5 or later, the deployment target defaults
  6340. # to the OS version, if on x86, and 10.4, the deployment
  6341. # target defaults to 10.4. Don't you love it?
  6342. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6343. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6344. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6345. 10.[012]*)
  6346. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6347. 10.*)
  6348. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6349. esac
  6350. ;;
  6351. esac
  6352. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6353. _lt_dar_single_mod='$single_module'
  6354. fi
  6355. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6356. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6357. else
  6358. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6359. fi
  6360. if test "$DSYMUTIL" != ":"; then
  6361. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6362. else
  6363. _lt_dsymutil=
  6364. fi
  6365. ;;
  6366. esac
  6367. ac_ext=c
  6368. ac_cpp='$CPP $CPPFLAGS'
  6369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6373. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6374. # On Suns, sometimes $CPP names a directory.
  6375. if test -n "$CPP" && test -d "$CPP"; then
  6376. CPP=
  6377. fi
  6378. if test -z "$CPP"; then
  6379. if test "${ac_cv_prog_CPP+set}" = set; then :
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. # Double quotes because CPP needs to be expanded
  6383. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6384. do
  6385. ac_preproc_ok=false
  6386. for ac_c_preproc_warn_flag in '' yes
  6387. do
  6388. # Use a header file that comes with gcc, so configuring glibc
  6389. # with a fresh cross-compiler works.
  6390. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6391. # <limits.h> exists even on freestanding compilers.
  6392. # On the NeXT, cc -E runs the code through the compiler's parser,
  6393. # not just through cpp. "Syntax error" is here to catch this case.
  6394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6395. /* end confdefs.h. */
  6396. #ifdef __STDC__
  6397. # include <limits.h>
  6398. #else
  6399. # include <assert.h>
  6400. #endif
  6401. Syntax error
  6402. _ACEOF
  6403. if ac_fn_c_try_cpp "$LINENO"; then :
  6404. else
  6405. # Broken: fails on valid input.
  6406. continue
  6407. fi
  6408. rm -f conftest.err conftest.i conftest.$ac_ext
  6409. # OK, works on sane cases. Now check whether nonexistent headers
  6410. # can be detected and how.
  6411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6412. /* end confdefs.h. */
  6413. #include <ac_nonexistent.h>
  6414. _ACEOF
  6415. if ac_fn_c_try_cpp "$LINENO"; then :
  6416. # Broken: success on invalid input.
  6417. continue
  6418. else
  6419. # Passes both tests.
  6420. ac_preproc_ok=:
  6421. break
  6422. fi
  6423. rm -f conftest.err conftest.i conftest.$ac_ext
  6424. done
  6425. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6426. rm -f conftest.i conftest.err conftest.$ac_ext
  6427. if $ac_preproc_ok; then :
  6428. break
  6429. fi
  6430. done
  6431. ac_cv_prog_CPP=$CPP
  6432. fi
  6433. CPP=$ac_cv_prog_CPP
  6434. else
  6435. ac_cv_prog_CPP=$CPP
  6436. fi
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6438. $as_echo "$CPP" >&6; }
  6439. ac_preproc_ok=false
  6440. for ac_c_preproc_warn_flag in '' yes
  6441. do
  6442. # Use a header file that comes with gcc, so configuring glibc
  6443. # with a fresh cross-compiler works.
  6444. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6445. # <limits.h> exists even on freestanding compilers.
  6446. # On the NeXT, cc -E runs the code through the compiler's parser,
  6447. # not just through cpp. "Syntax error" is here to catch this case.
  6448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6449. /* end confdefs.h. */
  6450. #ifdef __STDC__
  6451. # include <limits.h>
  6452. #else
  6453. # include <assert.h>
  6454. #endif
  6455. Syntax error
  6456. _ACEOF
  6457. if ac_fn_c_try_cpp "$LINENO"; then :
  6458. else
  6459. # Broken: fails on valid input.
  6460. continue
  6461. fi
  6462. rm -f conftest.err conftest.i conftest.$ac_ext
  6463. # OK, works on sane cases. Now check whether nonexistent headers
  6464. # can be detected and how.
  6465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6466. /* end confdefs.h. */
  6467. #include <ac_nonexistent.h>
  6468. _ACEOF
  6469. if ac_fn_c_try_cpp "$LINENO"; then :
  6470. # Broken: success on invalid input.
  6471. continue
  6472. else
  6473. # Passes both tests.
  6474. ac_preproc_ok=:
  6475. break
  6476. fi
  6477. rm -f conftest.err conftest.i conftest.$ac_ext
  6478. done
  6479. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6480. rm -f conftest.i conftest.err conftest.$ac_ext
  6481. if $ac_preproc_ok; then :
  6482. else
  6483. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6484. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6485. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6486. See \`config.log' for more details" "$LINENO" 5 ; }
  6487. fi
  6488. ac_ext=c
  6489. ac_cpp='$CPP $CPPFLAGS'
  6490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6494. $as_echo_n "checking for ANSI C header files... " >&6; }
  6495. if test "${ac_cv_header_stdc+set}" = set; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6499. /* end confdefs.h. */
  6500. #include <stdlib.h>
  6501. #include <stdarg.h>
  6502. #include <string.h>
  6503. #include <float.h>
  6504. int
  6505. main ()
  6506. {
  6507. ;
  6508. return 0;
  6509. }
  6510. _ACEOF
  6511. if ac_fn_c_try_compile "$LINENO"; then :
  6512. ac_cv_header_stdc=yes
  6513. else
  6514. ac_cv_header_stdc=no
  6515. fi
  6516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6517. if test $ac_cv_header_stdc = yes; then
  6518. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6520. /* end confdefs.h. */
  6521. #include <string.h>
  6522. _ACEOF
  6523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6524. $EGREP "memchr" >/dev/null 2>&1; then :
  6525. else
  6526. ac_cv_header_stdc=no
  6527. fi
  6528. rm -f conftest*
  6529. fi
  6530. if test $ac_cv_header_stdc = yes; then
  6531. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6533. /* end confdefs.h. */
  6534. #include <stdlib.h>
  6535. _ACEOF
  6536. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6537. $EGREP "free" >/dev/null 2>&1; then :
  6538. else
  6539. ac_cv_header_stdc=no
  6540. fi
  6541. rm -f conftest*
  6542. fi
  6543. if test $ac_cv_header_stdc = yes; then
  6544. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6545. if test "$cross_compiling" = yes; then :
  6546. :
  6547. else
  6548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6549. /* end confdefs.h. */
  6550. #include <ctype.h>
  6551. #include <stdlib.h>
  6552. #if ((' ' & 0x0FF) == 0x020)
  6553. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6554. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6555. #else
  6556. # define ISLOWER(c) \
  6557. (('a' <= (c) && (c) <= 'i') \
  6558. || ('j' <= (c) && (c) <= 'r') \
  6559. || ('s' <= (c) && (c) <= 'z'))
  6560. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6561. #endif
  6562. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6563. int
  6564. main ()
  6565. {
  6566. int i;
  6567. for (i = 0; i < 256; i++)
  6568. if (XOR (islower (i), ISLOWER (i))
  6569. || toupper (i) != TOUPPER (i))
  6570. return 2;
  6571. return 0;
  6572. }
  6573. _ACEOF
  6574. if ac_fn_c_try_run "$LINENO"; then :
  6575. else
  6576. ac_cv_header_stdc=no
  6577. fi
  6578. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6579. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6580. fi
  6581. fi
  6582. fi
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6584. $as_echo "$ac_cv_header_stdc" >&6; }
  6585. if test $ac_cv_header_stdc = yes; then
  6586. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6587. fi
  6588. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6589. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6590. inttypes.h stdint.h unistd.h
  6591. do :
  6592. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6593. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6594. "
  6595. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6596. cat >>confdefs.h <<_ACEOF
  6597. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6598. _ACEOF
  6599. fi
  6600. done
  6601. for ac_header in dlfcn.h
  6602. do :
  6603. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6604. "
  6605. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6606. cat >>confdefs.h <<_ACEOF
  6607. #define HAVE_DLFCN_H 1
  6608. _ACEOF
  6609. fi
  6610. done
  6611. ac_ext=cpp
  6612. ac_cpp='$CXXCPP $CPPFLAGS'
  6613. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6614. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6615. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6616. if test -z "$CXX"; then
  6617. if test -n "$CCC"; then
  6618. CXX=$CCC
  6619. else
  6620. if test -n "$ac_tool_prefix"; then
  6621. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6622. do
  6623. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6624. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6626. $as_echo_n "checking for $ac_word... " >&6; }
  6627. if test "${ac_cv_prog_CXX+set}" = set; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. if test -n "$CXX"; then
  6631. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6632. else
  6633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6634. for as_dir in $PATH
  6635. do
  6636. IFS=$as_save_IFS
  6637. test -z "$as_dir" && as_dir=.
  6638. for ac_exec_ext in '' $ac_executable_extensions; do
  6639. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6640. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6642. break 2
  6643. fi
  6644. done
  6645. done
  6646. IFS=$as_save_IFS
  6647. fi
  6648. fi
  6649. CXX=$ac_cv_prog_CXX
  6650. if test -n "$CXX"; then
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6652. $as_echo "$CXX" >&6; }
  6653. else
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6655. $as_echo "no" >&6; }
  6656. fi
  6657. test -n "$CXX" && break
  6658. done
  6659. fi
  6660. if test -z "$CXX"; then
  6661. ac_ct_CXX=$CXX
  6662. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6663. do
  6664. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6665. set dummy $ac_prog; ac_word=$2
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6667. $as_echo_n "checking for $ac_word... " >&6; }
  6668. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. if test -n "$ac_ct_CXX"; then
  6672. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6673. else
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6681. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6691. if test -n "$ac_ct_CXX"; then
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6693. $as_echo "$ac_ct_CXX" >&6; }
  6694. else
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. $as_echo "no" >&6; }
  6697. fi
  6698. test -n "$ac_ct_CXX" && break
  6699. done
  6700. if test "x$ac_ct_CXX" = x; then
  6701. CXX="g++"
  6702. else
  6703. case $cross_compiling:$ac_tool_warned in
  6704. yes:)
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6706. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6707. ac_tool_warned=yes ;;
  6708. esac
  6709. CXX=$ac_ct_CXX
  6710. fi
  6711. fi
  6712. fi
  6713. fi
  6714. # Provide some information about the compiler.
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6716. set X $ac_compile
  6717. ac_compiler=$2
  6718. for ac_option in --version -v -V -qversion; do
  6719. { { ac_try="$ac_compiler $ac_option >&5"
  6720. case "(($ac_try" in
  6721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6722. *) ac_try_echo=$ac_try;;
  6723. esac
  6724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6725. $as_echo "$ac_try_echo"; } >&5
  6726. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6727. ac_status=$?
  6728. if test -s conftest.err; then
  6729. sed '10a\
  6730. ... rest of stderr output deleted ...
  6731. 10q' conftest.err >conftest.er1
  6732. cat conftest.er1 >&5
  6733. fi
  6734. rm -f conftest.er1 conftest.err
  6735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6736. test $ac_status = 0; }
  6737. done
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6739. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6740. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6744. /* end confdefs.h. */
  6745. int
  6746. main ()
  6747. {
  6748. #ifndef __GNUC__
  6749. choke me
  6750. #endif
  6751. ;
  6752. return 0;
  6753. }
  6754. _ACEOF
  6755. if ac_fn_cxx_try_compile "$LINENO"; then :
  6756. ac_compiler_gnu=yes
  6757. else
  6758. ac_compiler_gnu=no
  6759. fi
  6760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6761. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6762. fi
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6764. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6765. if test $ac_compiler_gnu = yes; then
  6766. GXX=yes
  6767. else
  6768. GXX=
  6769. fi
  6770. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6771. ac_save_CXXFLAGS=$CXXFLAGS
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6773. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6774. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6778. ac_cxx_werror_flag=yes
  6779. ac_cv_prog_cxx_g=no
  6780. CXXFLAGS="-g"
  6781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6782. /* end confdefs.h. */
  6783. int
  6784. main ()
  6785. {
  6786. ;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. if ac_fn_cxx_try_compile "$LINENO"; then :
  6791. ac_cv_prog_cxx_g=yes
  6792. else
  6793. CXXFLAGS=""
  6794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6795. /* end confdefs.h. */
  6796. int
  6797. main ()
  6798. {
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. if ac_fn_cxx_try_compile "$LINENO"; then :
  6804. else
  6805. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6806. CXXFLAGS="-g"
  6807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6808. /* end confdefs.h. */
  6809. int
  6810. main ()
  6811. {
  6812. ;
  6813. return 0;
  6814. }
  6815. _ACEOF
  6816. if ac_fn_cxx_try_compile "$LINENO"; then :
  6817. ac_cv_prog_cxx_g=yes
  6818. fi
  6819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6820. fi
  6821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6822. fi
  6823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6824. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6825. fi
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6827. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6828. if test "$ac_test_CXXFLAGS" = set; then
  6829. CXXFLAGS=$ac_save_CXXFLAGS
  6830. elif test $ac_cv_prog_cxx_g = yes; then
  6831. if test "$GXX" = yes; then
  6832. CXXFLAGS="-g -O2"
  6833. else
  6834. CXXFLAGS="-g"
  6835. fi
  6836. else
  6837. if test "$GXX" = yes; then
  6838. CXXFLAGS="-O2"
  6839. else
  6840. CXXFLAGS=
  6841. fi
  6842. fi
  6843. ac_ext=cpp
  6844. ac_cpp='$CXXCPP $CPPFLAGS'
  6845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6848. depcc="$CXX" am_compiler_list=
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6850. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6851. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6852. $as_echo_n "(cached) " >&6
  6853. else
  6854. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6855. # We make a subdir and do the tests there. Otherwise we can end up
  6856. # making bogus files that we don't know about and never remove. For
  6857. # instance it was reported that on HP-UX the gcc test will end up
  6858. # making a dummy file named `D' -- because `-MD' means `put the output
  6859. # in D'.
  6860. mkdir conftest.dir
  6861. # Copy depcomp to subdir because otherwise we won't find it if we're
  6862. # using a relative directory.
  6863. cp "$am_depcomp" conftest.dir
  6864. cd conftest.dir
  6865. # We will build objects and dependencies in a subdirectory because
  6866. # it helps to detect inapplicable dependency modes. For instance
  6867. # both Tru64's cc and ICC support -MD to output dependencies as a
  6868. # side effect of compilation, but ICC will put the dependencies in
  6869. # the current directory while Tru64 will put them in the object
  6870. # directory.
  6871. mkdir sub
  6872. am_cv_CXX_dependencies_compiler_type=none
  6873. if test "$am_compiler_list" = ""; then
  6874. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6875. fi
  6876. am__universal=false
  6877. case " $depcc " in #(
  6878. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6879. esac
  6880. for depmode in $am_compiler_list; do
  6881. # Setup a source with many dependencies, because some compilers
  6882. # like to wrap large dependency lists on column 80 (with \), and
  6883. # we should not choose a depcomp mode which is confused by this.
  6884. #
  6885. # We need to recreate these files for each test, as the compiler may
  6886. # overwrite some of them when testing with obscure command lines.
  6887. # This happens at least with the AIX C compiler.
  6888. : > sub/conftest.c
  6889. for i in 1 2 3 4 5 6; do
  6890. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6891. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6892. # Solaris 8's {/usr,}/bin/sh.
  6893. touch sub/conftst$i.h
  6894. done
  6895. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6896. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6897. # mode. It turns out that the SunPro C++ compiler does not properly
  6898. # handle `-M -o', and we need to detect this. Also, some Intel
  6899. # versions had trouble with output in subdirs
  6900. am__obj=sub/conftest.${OBJEXT-o}
  6901. am__minus_obj="-o $am__obj"
  6902. case $depmode in
  6903. gcc)
  6904. # This depmode causes a compiler race in universal mode.
  6905. test "$am__universal" = false || continue
  6906. ;;
  6907. nosideeffect)
  6908. # after this tag, mechanisms are not by side-effect, so they'll
  6909. # only be used when explicitly requested
  6910. if test "x$enable_dependency_tracking" = xyes; then
  6911. continue
  6912. else
  6913. break
  6914. fi
  6915. ;;
  6916. msvisualcpp | msvcmsys)
  6917. # This compiler won't grok `-c -o', but also, the minuso test has
  6918. # not run yet. These depmodes are late enough in the game, and
  6919. # so weak that their functioning should not be impacted.
  6920. am__obj=conftest.${OBJEXT-o}
  6921. am__minus_obj=
  6922. ;;
  6923. none) break ;;
  6924. esac
  6925. if depmode=$depmode \
  6926. source=sub/conftest.c object=$am__obj \
  6927. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6928. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6929. >/dev/null 2>conftest.err &&
  6930. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6931. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6932. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6933. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6934. # icc doesn't choke on unknown options, it will just issue warnings
  6935. # or remarks (even with -Werror). So we grep stderr for any message
  6936. # that says an option was ignored or not supported.
  6937. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6938. # icc: Command line warning: ignoring option '-M'; no argument required
  6939. # The diagnosis changed in icc 8.0:
  6940. # icc: Command line remark: option '-MP' not supported
  6941. if (grep 'ignoring option' conftest.err ||
  6942. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6943. am_cv_CXX_dependencies_compiler_type=$depmode
  6944. break
  6945. fi
  6946. fi
  6947. done
  6948. cd ..
  6949. rm -rf conftest.dir
  6950. else
  6951. am_cv_CXX_dependencies_compiler_type=none
  6952. fi
  6953. fi
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6955. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6956. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6957. if
  6958. test "x$enable_dependency_tracking" != xno \
  6959. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6960. am__fastdepCXX_TRUE=
  6961. am__fastdepCXX_FALSE='#'
  6962. else
  6963. am__fastdepCXX_TRUE='#'
  6964. am__fastdepCXX_FALSE=
  6965. fi
  6966. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6967. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6968. (test "X$CXX" != "Xg++"))) ; then
  6969. ac_ext=cpp
  6970. ac_cpp='$CXXCPP $CPPFLAGS'
  6971. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6972. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6973. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6975. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6976. if test -z "$CXXCPP"; then
  6977. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. # Double quotes because CXXCPP needs to be expanded
  6981. for CXXCPP in "$CXX -E" "/lib/cpp"
  6982. do
  6983. ac_preproc_ok=false
  6984. for ac_cxx_preproc_warn_flag in '' yes
  6985. do
  6986. # Use a header file that comes with gcc, so configuring glibc
  6987. # with a fresh cross-compiler works.
  6988. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6989. # <limits.h> exists even on freestanding compilers.
  6990. # On the NeXT, cc -E runs the code through the compiler's parser,
  6991. # not just through cpp. "Syntax error" is here to catch this case.
  6992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6993. /* end confdefs.h. */
  6994. #ifdef __STDC__
  6995. # include <limits.h>
  6996. #else
  6997. # include <assert.h>
  6998. #endif
  6999. Syntax error
  7000. _ACEOF
  7001. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7002. else
  7003. # Broken: fails on valid input.
  7004. continue
  7005. fi
  7006. rm -f conftest.err conftest.i conftest.$ac_ext
  7007. # OK, works on sane cases. Now check whether nonexistent headers
  7008. # can be detected and how.
  7009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7010. /* end confdefs.h. */
  7011. #include <ac_nonexistent.h>
  7012. _ACEOF
  7013. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7014. # Broken: success on invalid input.
  7015. continue
  7016. else
  7017. # Passes both tests.
  7018. ac_preproc_ok=:
  7019. break
  7020. fi
  7021. rm -f conftest.err conftest.i conftest.$ac_ext
  7022. done
  7023. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7024. rm -f conftest.i conftest.err conftest.$ac_ext
  7025. if $ac_preproc_ok; then :
  7026. break
  7027. fi
  7028. done
  7029. ac_cv_prog_CXXCPP=$CXXCPP
  7030. fi
  7031. CXXCPP=$ac_cv_prog_CXXCPP
  7032. else
  7033. ac_cv_prog_CXXCPP=$CXXCPP
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7036. $as_echo "$CXXCPP" >&6; }
  7037. ac_preproc_ok=false
  7038. for ac_cxx_preproc_warn_flag in '' yes
  7039. do
  7040. # Use a header file that comes with gcc, so configuring glibc
  7041. # with a fresh cross-compiler works.
  7042. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7043. # <limits.h> exists even on freestanding compilers.
  7044. # On the NeXT, cc -E runs the code through the compiler's parser,
  7045. # not just through cpp. "Syntax error" is here to catch this case.
  7046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7047. /* end confdefs.h. */
  7048. #ifdef __STDC__
  7049. # include <limits.h>
  7050. #else
  7051. # include <assert.h>
  7052. #endif
  7053. Syntax error
  7054. _ACEOF
  7055. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7056. else
  7057. # Broken: fails on valid input.
  7058. continue
  7059. fi
  7060. rm -f conftest.err conftest.i conftest.$ac_ext
  7061. # OK, works on sane cases. Now check whether nonexistent headers
  7062. # can be detected and how.
  7063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7064. /* end confdefs.h. */
  7065. #include <ac_nonexistent.h>
  7066. _ACEOF
  7067. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7068. # Broken: success on invalid input.
  7069. continue
  7070. else
  7071. # Passes both tests.
  7072. ac_preproc_ok=:
  7073. break
  7074. fi
  7075. rm -f conftest.err conftest.i conftest.$ac_ext
  7076. done
  7077. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7078. rm -f conftest.i conftest.err conftest.$ac_ext
  7079. if $ac_preproc_ok; then :
  7080. else
  7081. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7083. _lt_caught_CXX_error=yes; }
  7084. fi
  7085. ac_ext=cpp
  7086. ac_cpp='$CXXCPP $CPPFLAGS'
  7087. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7088. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7089. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7090. else
  7091. _lt_caught_CXX_error=yes
  7092. fi
  7093. # Set options
  7094. enable_dlopen=no
  7095. enable_win32_dll=no
  7096. # Check whether --with-pic was given.
  7097. if test "${with_pic+set}" = set; then :
  7098. withval=$with_pic; pic_mode="$withval"
  7099. else
  7100. pic_mode=default
  7101. fi
  7102. test -z "$pic_mode" && pic_mode=default
  7103. # Check whether --enable-fast-install was given.
  7104. if test "${enable_fast_install+set}" = set; then :
  7105. enableval=$enable_fast_install; p=${PACKAGE-default}
  7106. case $enableval in
  7107. yes) enable_fast_install=yes ;;
  7108. no) enable_fast_install=no ;;
  7109. *)
  7110. enable_fast_install=no
  7111. # Look at the argument we got. We use all the common list separators.
  7112. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7113. for pkg in $enableval; do
  7114. IFS="$lt_save_ifs"
  7115. if test "X$pkg" = "X$p"; then
  7116. enable_fast_install=yes
  7117. fi
  7118. done
  7119. IFS="$lt_save_ifs"
  7120. ;;
  7121. esac
  7122. else
  7123. enable_fast_install=yes
  7124. fi
  7125. # This can be used to rebuild libtool when needed
  7126. LIBTOOL_DEPS="$ltmain"
  7127. # Always use our own libtool.
  7128. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7129. test -z "$LN_S" && LN_S="ln -s"
  7130. if test -n "${ZSH_VERSION+set}" ; then
  7131. setopt NO_GLOB_SUBST
  7132. fi
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7134. $as_echo_n "checking for objdir... " >&6; }
  7135. if test "${lt_cv_objdir+set}" = set; then :
  7136. $as_echo_n "(cached) " >&6
  7137. else
  7138. rm -f .libs 2>/dev/null
  7139. mkdir .libs 2>/dev/null
  7140. if test -d .libs; then
  7141. lt_cv_objdir=.libs
  7142. else
  7143. # MS-DOS does not allow filenames that begin with a dot.
  7144. lt_cv_objdir=_libs
  7145. fi
  7146. rmdir .libs 2>/dev/null
  7147. fi
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7149. $as_echo "$lt_cv_objdir" >&6; }
  7150. objdir=$lt_cv_objdir
  7151. cat >>confdefs.h <<_ACEOF
  7152. #define LT_OBJDIR "$lt_cv_objdir/"
  7153. _ACEOF
  7154. case $host_os in
  7155. aix3*)
  7156. # AIX sometimes has problems with the GCC collect2 program. For some
  7157. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7158. # vanish in a puff of smoke.
  7159. if test "X${COLLECT_NAMES+set}" != Xset; then
  7160. COLLECT_NAMES=
  7161. export COLLECT_NAMES
  7162. fi
  7163. ;;
  7164. esac
  7165. # Sed substitution that helps us do robust quoting. It backslashifies
  7166. # metacharacters that are still active within double-quoted strings.
  7167. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7168. # Same as above, but do not quote variable references.
  7169. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7170. # Sed substitution to delay expansion of an escaped shell variable in a
  7171. # double_quote_subst'ed string.
  7172. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7173. # Sed substitution to delay expansion of an escaped single quote.
  7174. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7175. # Sed substitution to avoid accidental globbing in evaled expressions
  7176. no_glob_subst='s/\*/\\\*/g'
  7177. # Global variables:
  7178. ofile=libtool
  7179. can_build_shared=yes
  7180. # All known linkers require a `.a' archive for static linking (except MSVC,
  7181. # which needs '.lib').
  7182. libext=a
  7183. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7184. old_CC="$CC"
  7185. old_CFLAGS="$CFLAGS"
  7186. # Set sane defaults for various variables
  7187. test -z "$CC" && CC=cc
  7188. test -z "$LTCC" && LTCC=$CC
  7189. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7190. test -z "$LD" && LD=ld
  7191. test -z "$ac_objext" && ac_objext=o
  7192. for cc_temp in $compiler""; do
  7193. case $cc_temp in
  7194. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7195. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7196. \-*) ;;
  7197. *) break;;
  7198. esac
  7199. done
  7200. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7201. # Only perform the check for file, if the check method requires it
  7202. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7203. case $deplibs_check_method in
  7204. file_magic*)
  7205. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7207. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7208. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. case $MAGIC_CMD in
  7212. [\\/*] | ?:[\\/]*)
  7213. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7214. ;;
  7215. *)
  7216. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7217. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7218. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7219. for ac_dir in $ac_dummy; do
  7220. IFS="$lt_save_ifs"
  7221. test -z "$ac_dir" && ac_dir=.
  7222. if test -f $ac_dir/${ac_tool_prefix}file; then
  7223. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7224. if test -n "$file_magic_test_file"; then
  7225. case $deplibs_check_method in
  7226. "file_magic "*)
  7227. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7228. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7229. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7230. $EGREP "$file_magic_regex" > /dev/null; then
  7231. :
  7232. else
  7233. cat <<_LT_EOF 1>&2
  7234. *** Warning: the command libtool uses to detect shared libraries,
  7235. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7236. *** The result is that libtool may fail to recognize shared libraries
  7237. *** as such. This will affect the creation of libtool libraries that
  7238. *** depend on shared libraries, but programs linked with such libtool
  7239. *** libraries will work regardless of this problem. Nevertheless, you
  7240. *** may want to report the problem to your system manager and/or to
  7241. *** [email protected]
  7242. _LT_EOF
  7243. fi ;;
  7244. esac
  7245. fi
  7246. break
  7247. fi
  7248. done
  7249. IFS="$lt_save_ifs"
  7250. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7251. ;;
  7252. esac
  7253. fi
  7254. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7255. if test -n "$MAGIC_CMD"; then
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7257. $as_echo "$MAGIC_CMD" >&6; }
  7258. else
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7260. $as_echo "no" >&6; }
  7261. fi
  7262. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7263. if test -n "$ac_tool_prefix"; then
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7265. $as_echo_n "checking for file... " >&6; }
  7266. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7267. $as_echo_n "(cached) " >&6
  7268. else
  7269. case $MAGIC_CMD in
  7270. [\\/*] | ?:[\\/]*)
  7271. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7272. ;;
  7273. *)
  7274. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7275. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7276. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7277. for ac_dir in $ac_dummy; do
  7278. IFS="$lt_save_ifs"
  7279. test -z "$ac_dir" && ac_dir=.
  7280. if test -f $ac_dir/file; then
  7281. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7282. if test -n "$file_magic_test_file"; then
  7283. case $deplibs_check_method in
  7284. "file_magic "*)
  7285. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7286. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7287. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7288. $EGREP "$file_magic_regex" > /dev/null; then
  7289. :
  7290. else
  7291. cat <<_LT_EOF 1>&2
  7292. *** Warning: the command libtool uses to detect shared libraries,
  7293. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7294. *** The result is that libtool may fail to recognize shared libraries
  7295. *** as such. This will affect the creation of libtool libraries that
  7296. *** depend on shared libraries, but programs linked with such libtool
  7297. *** libraries will work regardless of this problem. Nevertheless, you
  7298. *** may want to report the problem to your system manager and/or to
  7299. *** [email protected]
  7300. _LT_EOF
  7301. fi ;;
  7302. esac
  7303. fi
  7304. break
  7305. fi
  7306. done
  7307. IFS="$lt_save_ifs"
  7308. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7309. ;;
  7310. esac
  7311. fi
  7312. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7313. if test -n "$MAGIC_CMD"; then
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7315. $as_echo "$MAGIC_CMD" >&6; }
  7316. else
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7318. $as_echo "no" >&6; }
  7319. fi
  7320. else
  7321. MAGIC_CMD=:
  7322. fi
  7323. fi
  7324. fi
  7325. ;;
  7326. esac
  7327. # Use C for the default configuration in the libtool script
  7328. lt_save_CC="$CC"
  7329. ac_ext=c
  7330. ac_cpp='$CPP $CPPFLAGS'
  7331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7334. # Source file extension for C test sources.
  7335. ac_ext=c
  7336. # Object file extension for compiled C test sources.
  7337. objext=o
  7338. objext=$objext
  7339. # Code to be used in simple compile tests
  7340. lt_simple_compile_test_code="int some_variable = 0;"
  7341. # Code to be used in simple link tests
  7342. lt_simple_link_test_code='int main(){return(0);}'
  7343. # If no C compiler was specified, use CC.
  7344. LTCC=${LTCC-"$CC"}
  7345. # If no C compiler flags were specified, use CFLAGS.
  7346. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7347. # Allow CC to be a program name with arguments.
  7348. compiler=$CC
  7349. # Save the default compiler, since it gets overwritten when the other
  7350. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7351. compiler_DEFAULT=$CC
  7352. # save warnings/boilerplate of simple test code
  7353. ac_outfile=conftest.$ac_objext
  7354. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7355. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7356. _lt_compiler_boilerplate=`cat conftest.err`
  7357. $RM conftest*
  7358. ac_outfile=conftest.$ac_objext
  7359. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7360. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7361. _lt_linker_boilerplate=`cat conftest.err`
  7362. $RM -r conftest*
  7363. ## CAVEAT EMPTOR:
  7364. ## There is no encapsulation within the following macros, do not change
  7365. ## the running order or otherwise move them around unless you know exactly
  7366. ## what you are doing...
  7367. if test -n "$compiler"; then
  7368. lt_prog_compiler_no_builtin_flag=
  7369. if test "$GCC" = yes; then
  7370. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7372. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7373. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. lt_cv_prog_compiler_rtti_exceptions=no
  7377. ac_outfile=conftest.$ac_objext
  7378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7379. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7380. # Insert the option either (1) after the last *FLAGS variable, or
  7381. # (2) before a word containing "conftest.", or (3) at the end.
  7382. # Note that $ac_compile itself does not contain backslashes and begins
  7383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7384. # The option is referenced via a variable to avoid confusing sed.
  7385. lt_compile=`echo "$ac_compile" | $SED \
  7386. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7387. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7388. -e 's:$: $lt_compiler_flag:'`
  7389. (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
  7390. (eval "$lt_compile" 2>conftest.err)
  7391. ac_status=$?
  7392. cat conftest.err >&5
  7393. echo "$as_me:8428: \$? = $ac_status" >&5
  7394. if (exit $ac_status) && test -s "$ac_outfile"; then
  7395. # The compiler can only warn and ignore the option if not recognized
  7396. # So say no if there are warnings other than the usual output.
  7397. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7399. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7400. lt_cv_prog_compiler_rtti_exceptions=yes
  7401. fi
  7402. fi
  7403. $RM conftest*
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7406. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7407. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7408. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7409. else
  7410. :
  7411. fi
  7412. fi
  7413. lt_prog_compiler_wl=
  7414. lt_prog_compiler_pic=
  7415. lt_prog_compiler_static=
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7417. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7418. if test "$GCC" = yes; then
  7419. lt_prog_compiler_wl='-Wl,'
  7420. lt_prog_compiler_static='-static'
  7421. case $host_os in
  7422. aix*)
  7423. # All AIX code is PIC.
  7424. if test "$host_cpu" = ia64; then
  7425. # AIX 5 now supports IA64 processor
  7426. lt_prog_compiler_static='-Bstatic'
  7427. fi
  7428. ;;
  7429. amigaos*)
  7430. case $host_cpu in
  7431. powerpc)
  7432. # see comment about AmigaOS4 .so support
  7433. lt_prog_compiler_pic='-fPIC'
  7434. ;;
  7435. m68k)
  7436. # FIXME: we need at least 68020 code to build shared libraries, but
  7437. # adding the `-m68020' flag to GCC prevents building anything better,
  7438. # like `-m68040'.
  7439. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7440. ;;
  7441. esac
  7442. ;;
  7443. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7444. # PIC is the default for these OSes.
  7445. ;;
  7446. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7447. # This hack is so that the source file can tell whether it is being
  7448. # built for inclusion in a dll (and should export symbols for example).
  7449. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7450. # (--disable-auto-import) libraries
  7451. lt_prog_compiler_pic='-DDLL_EXPORT'
  7452. ;;
  7453. darwin* | rhapsody*)
  7454. # PIC is the default on this platform
  7455. # Common symbols not allowed in MH_DYLIB files
  7456. lt_prog_compiler_pic='-fno-common'
  7457. ;;
  7458. hpux*)
  7459. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7460. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7461. # sets the default TLS model and affects inlining.
  7462. case $host_cpu in
  7463. hppa*64*)
  7464. # +Z the default
  7465. ;;
  7466. *)
  7467. lt_prog_compiler_pic='-fPIC'
  7468. ;;
  7469. esac
  7470. ;;
  7471. interix[3-9]*)
  7472. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7473. # Instead, we relocate shared libraries at runtime.
  7474. ;;
  7475. msdosdjgpp*)
  7476. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7477. # on systems that don't support them.
  7478. lt_prog_compiler_can_build_shared=no
  7479. enable_shared=no
  7480. ;;
  7481. *nto* | *qnx*)
  7482. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7483. # it will coredump.
  7484. lt_prog_compiler_pic='-fPIC -shared'
  7485. ;;
  7486. sysv4*MP*)
  7487. if test -d /usr/nec; then
  7488. lt_prog_compiler_pic=-Kconform_pic
  7489. fi
  7490. ;;
  7491. *)
  7492. lt_prog_compiler_pic='-fPIC'
  7493. ;;
  7494. esac
  7495. else
  7496. # PORTME Check for flag to pass linker flags through the system compiler.
  7497. case $host_os in
  7498. aix*)
  7499. lt_prog_compiler_wl='-Wl,'
  7500. if test "$host_cpu" = ia64; then
  7501. # AIX 5 now supports IA64 processor
  7502. lt_prog_compiler_static='-Bstatic'
  7503. else
  7504. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7505. fi
  7506. ;;
  7507. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7508. # This hack is so that the source file can tell whether it is being
  7509. # built for inclusion in a dll (and should export symbols for example).
  7510. lt_prog_compiler_pic='-DDLL_EXPORT'
  7511. ;;
  7512. hpux9* | hpux10* | hpux11*)
  7513. lt_prog_compiler_wl='-Wl,'
  7514. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7515. # not for PA HP-UX.
  7516. case $host_cpu in
  7517. hppa*64*|ia64*)
  7518. # +Z the default
  7519. ;;
  7520. *)
  7521. lt_prog_compiler_pic='+Z'
  7522. ;;
  7523. esac
  7524. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7525. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7526. ;;
  7527. irix5* | irix6* | nonstopux*)
  7528. lt_prog_compiler_wl='-Wl,'
  7529. # PIC (with -KPIC) is the default.
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. linux* | k*bsd*-gnu)
  7533. case $cc_basename in
  7534. # old Intel for x86_64 which still supported -KPIC.
  7535. ecc*)
  7536. lt_prog_compiler_wl='-Wl,'
  7537. lt_prog_compiler_pic='-KPIC'
  7538. lt_prog_compiler_static='-static'
  7539. ;;
  7540. # icc used to be incompatible with GCC.
  7541. # ICC 10 doesn't accept -KPIC any more.
  7542. icc* | ifort*)
  7543. lt_prog_compiler_wl='-Wl,'
  7544. lt_prog_compiler_pic='-fPIC'
  7545. lt_prog_compiler_static='-static'
  7546. ;;
  7547. # Lahey Fortran 8.1.
  7548. lf95*)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='--shared'
  7551. lt_prog_compiler_static='--static'
  7552. ;;
  7553. pgcc* | pgf77* | pgf90* | pgf95*)
  7554. # Portland Group compilers (*not* the Pentium gcc compiler,
  7555. # which looks to be a dead project)
  7556. lt_prog_compiler_wl='-Wl,'
  7557. lt_prog_compiler_pic='-fpic'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. ccc*)
  7561. lt_prog_compiler_wl='-Wl,'
  7562. # All Alpha code is PIC.
  7563. lt_prog_compiler_static='-non_shared'
  7564. ;;
  7565. xl*)
  7566. # IBM XL C 8.0/Fortran 10.1 on PPC
  7567. lt_prog_compiler_wl='-Wl,'
  7568. lt_prog_compiler_pic='-qpic'
  7569. lt_prog_compiler_static='-qstaticlink'
  7570. ;;
  7571. *)
  7572. case `$CC -V 2>&1 | sed 5q` in
  7573. *Sun\ C*)
  7574. # Sun C 5.9
  7575. lt_prog_compiler_pic='-KPIC'
  7576. lt_prog_compiler_static='-Bstatic'
  7577. lt_prog_compiler_wl='-Wl,'
  7578. ;;
  7579. *Sun\ F*)
  7580. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7581. lt_prog_compiler_pic='-KPIC'
  7582. lt_prog_compiler_static='-Bstatic'
  7583. lt_prog_compiler_wl=''
  7584. ;;
  7585. esac
  7586. ;;
  7587. esac
  7588. ;;
  7589. newsos6)
  7590. lt_prog_compiler_pic='-KPIC'
  7591. lt_prog_compiler_static='-Bstatic'
  7592. ;;
  7593. *nto* | *qnx*)
  7594. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7595. # it will coredump.
  7596. lt_prog_compiler_pic='-fPIC -shared'
  7597. ;;
  7598. osf3* | osf4* | osf5*)
  7599. lt_prog_compiler_wl='-Wl,'
  7600. # All OSF/1 code is PIC.
  7601. lt_prog_compiler_static='-non_shared'
  7602. ;;
  7603. rdos*)
  7604. lt_prog_compiler_static='-non_shared'
  7605. ;;
  7606. solaris*)
  7607. lt_prog_compiler_pic='-KPIC'
  7608. lt_prog_compiler_static='-Bstatic'
  7609. case $cc_basename in
  7610. f77* | f90* | f95*)
  7611. lt_prog_compiler_wl='-Qoption ld ';;
  7612. *)
  7613. lt_prog_compiler_wl='-Wl,';;
  7614. esac
  7615. ;;
  7616. sunos4*)
  7617. lt_prog_compiler_wl='-Qoption ld '
  7618. lt_prog_compiler_pic='-PIC'
  7619. lt_prog_compiler_static='-Bstatic'
  7620. ;;
  7621. sysv4 | sysv4.2uw2* | sysv4.3*)
  7622. lt_prog_compiler_wl='-Wl,'
  7623. lt_prog_compiler_pic='-KPIC'
  7624. lt_prog_compiler_static='-Bstatic'
  7625. ;;
  7626. sysv4*MP*)
  7627. if test -d /usr/nec ;then
  7628. lt_prog_compiler_pic='-Kconform_pic'
  7629. lt_prog_compiler_static='-Bstatic'
  7630. fi
  7631. ;;
  7632. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7633. lt_prog_compiler_wl='-Wl,'
  7634. lt_prog_compiler_pic='-KPIC'
  7635. lt_prog_compiler_static='-Bstatic'
  7636. ;;
  7637. unicos*)
  7638. lt_prog_compiler_wl='-Wl,'
  7639. lt_prog_compiler_can_build_shared=no
  7640. ;;
  7641. uts4*)
  7642. lt_prog_compiler_pic='-pic'
  7643. lt_prog_compiler_static='-Bstatic'
  7644. ;;
  7645. *)
  7646. lt_prog_compiler_can_build_shared=no
  7647. ;;
  7648. esac
  7649. fi
  7650. case $host_os in
  7651. # For platforms which do not support PIC, -DPIC is meaningless:
  7652. *djgpp*)
  7653. lt_prog_compiler_pic=
  7654. ;;
  7655. *)
  7656. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7657. ;;
  7658. esac
  7659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7660. $as_echo "$lt_prog_compiler_pic" >&6; }
  7661. #
  7662. # Check to make sure the PIC flag actually works.
  7663. #
  7664. if test -n "$lt_prog_compiler_pic"; then
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7666. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7667. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7668. $as_echo_n "(cached) " >&6
  7669. else
  7670. lt_cv_prog_compiler_pic_works=no
  7671. ac_outfile=conftest.$ac_objext
  7672. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7673. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7674. # Insert the option either (1) after the last *FLAGS variable, or
  7675. # (2) before a word containing "conftest.", or (3) at the end.
  7676. # Note that $ac_compile itself does not contain backslashes and begins
  7677. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7678. # The option is referenced via a variable to avoid confusing sed.
  7679. lt_compile=`echo "$ac_compile" | $SED \
  7680. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7681. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7682. -e 's:$: $lt_compiler_flag:'`
  7683. (eval echo "\"\$as_me:8763: $lt_compile\"" >&5)
  7684. (eval "$lt_compile" 2>conftest.err)
  7685. ac_status=$?
  7686. cat conftest.err >&5
  7687. echo "$as_me:8767: \$? = $ac_status" >&5
  7688. if (exit $ac_status) && test -s "$ac_outfile"; then
  7689. # The compiler can only warn and ignore the option if not recognized
  7690. # So say no if there are warnings other than the usual output.
  7691. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7692. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7693. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7694. lt_cv_prog_compiler_pic_works=yes
  7695. fi
  7696. fi
  7697. $RM conftest*
  7698. fi
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7700. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7701. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7702. case $lt_prog_compiler_pic in
  7703. "" | " "*) ;;
  7704. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7705. esac
  7706. else
  7707. lt_prog_compiler_pic=
  7708. lt_prog_compiler_can_build_shared=no
  7709. fi
  7710. fi
  7711. #
  7712. # Check to make sure the static flag actually works.
  7713. #
  7714. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7716. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7717. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7718. $as_echo_n "(cached) " >&6
  7719. else
  7720. lt_cv_prog_compiler_static_works=no
  7721. save_LDFLAGS="$LDFLAGS"
  7722. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7723. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7724. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7725. # The linker can only warn and ignore the option if not recognized
  7726. # So say no if there are warnings
  7727. if test -s conftest.err; then
  7728. # Append any errors to the config.log.
  7729. cat conftest.err 1>&5
  7730. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7731. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7732. if diff conftest.exp conftest.er2 >/dev/null; then
  7733. lt_cv_prog_compiler_static_works=yes
  7734. fi
  7735. else
  7736. lt_cv_prog_compiler_static_works=yes
  7737. fi
  7738. fi
  7739. $RM -r conftest*
  7740. LDFLAGS="$save_LDFLAGS"
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7743. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7744. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7745. :
  7746. else
  7747. lt_prog_compiler_static=
  7748. fi
  7749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7750. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7751. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7752. $as_echo_n "(cached) " >&6
  7753. else
  7754. lt_cv_prog_compiler_c_o=no
  7755. $RM -r conftest 2>/dev/null
  7756. mkdir conftest
  7757. cd conftest
  7758. mkdir out
  7759. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7760. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7761. # Insert the option either (1) after the last *FLAGS variable, or
  7762. # (2) before a word containing "conftest.", or (3) at the end.
  7763. # Note that $ac_compile itself does not contain backslashes and begins
  7764. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7765. lt_compile=`echo "$ac_compile" | $SED \
  7766. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7767. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7768. -e 's:$: $lt_compiler_flag:'`
  7769. (eval echo "\"\$as_me:8868: $lt_compile\"" >&5)
  7770. (eval "$lt_compile" 2>out/conftest.err)
  7771. ac_status=$?
  7772. cat out/conftest.err >&5
  7773. echo "$as_me:8872: \$? = $ac_status" >&5
  7774. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7775. then
  7776. # The compiler can only warn and ignore the option if not recognized
  7777. # So say no if there are warnings
  7778. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7779. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7780. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7781. lt_cv_prog_compiler_c_o=yes
  7782. fi
  7783. fi
  7784. chmod u+w . 2>&5
  7785. $RM conftest*
  7786. # SGI C++ compiler will create directory out/ii_files/ for
  7787. # template instantiation
  7788. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7789. $RM out/* && rmdir out
  7790. cd ..
  7791. $RM -r conftest
  7792. $RM conftest*
  7793. fi
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7795. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7797. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7798. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7799. $as_echo_n "(cached) " >&6
  7800. else
  7801. lt_cv_prog_compiler_c_o=no
  7802. $RM -r conftest 2>/dev/null
  7803. mkdir conftest
  7804. cd conftest
  7805. mkdir out
  7806. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7807. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7808. # Insert the option either (1) after the last *FLAGS variable, or
  7809. # (2) before a word containing "conftest.", or (3) at the end.
  7810. # Note that $ac_compile itself does not contain backslashes and begins
  7811. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7812. lt_compile=`echo "$ac_compile" | $SED \
  7813. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7814. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7815. -e 's:$: $lt_compiler_flag:'`
  7816. (eval echo "\"\$as_me:8923: $lt_compile\"" >&5)
  7817. (eval "$lt_compile" 2>out/conftest.err)
  7818. ac_status=$?
  7819. cat out/conftest.err >&5
  7820. echo "$as_me:8927: \$? = $ac_status" >&5
  7821. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7822. then
  7823. # The compiler can only warn and ignore the option if not recognized
  7824. # So say no if there are warnings
  7825. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7826. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7827. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7828. lt_cv_prog_compiler_c_o=yes
  7829. fi
  7830. fi
  7831. chmod u+w . 2>&5
  7832. $RM conftest*
  7833. # SGI C++ compiler will create directory out/ii_files/ for
  7834. # template instantiation
  7835. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7836. $RM out/* && rmdir out
  7837. cd ..
  7838. $RM -r conftest
  7839. $RM conftest*
  7840. fi
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7842. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7843. hard_links="nottested"
  7844. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7845. # do not overwrite the value of need_locks provided by the user
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7847. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7848. hard_links=yes
  7849. $RM conftest*
  7850. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7851. touch conftest.a
  7852. ln conftest.a conftest.b 2>&5 || hard_links=no
  7853. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7855. $as_echo "$hard_links" >&6; }
  7856. if test "$hard_links" = no; then
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7858. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7859. need_locks=warn
  7860. fi
  7861. else
  7862. need_locks=no
  7863. fi
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7865. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7866. runpath_var=
  7867. allow_undefined_flag=
  7868. always_export_symbols=no
  7869. archive_cmds=
  7870. archive_expsym_cmds=
  7871. compiler_needs_object=no
  7872. enable_shared_with_static_runtimes=no
  7873. export_dynamic_flag_spec=
  7874. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7875. hardcode_automatic=no
  7876. hardcode_direct=no
  7877. hardcode_direct_absolute=no
  7878. hardcode_libdir_flag_spec=
  7879. hardcode_libdir_flag_spec_ld=
  7880. hardcode_libdir_separator=
  7881. hardcode_minus_L=no
  7882. hardcode_shlibpath_var=unsupported
  7883. inherit_rpath=no
  7884. link_all_deplibs=unknown
  7885. module_cmds=
  7886. module_expsym_cmds=
  7887. old_archive_from_new_cmds=
  7888. old_archive_from_expsyms_cmds=
  7889. thread_safe_flag_spec=
  7890. whole_archive_flag_spec=
  7891. # include_expsyms should be a list of space-separated symbols to be *always*
  7892. # included in the symbol list
  7893. include_expsyms=
  7894. # exclude_expsyms can be an extended regexp of symbols to exclude
  7895. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7896. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7897. # as well as any symbol that contains `d'.
  7898. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7899. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7900. # platforms (ab)use it in PIC code, but their linkers get confused if
  7901. # the symbol is explicitly referenced. Since portable code cannot
  7902. # rely on this symbol name, it's probably fine to never include it in
  7903. # preloaded symbol tables.
  7904. # Exclude shared library initialization/finalization symbols.
  7905. extract_expsyms_cmds=
  7906. case $host_os in
  7907. cygwin* | mingw* | pw32* | cegcc*)
  7908. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7909. # When not using gcc, we currently assume that we are using
  7910. # Microsoft Visual C++.
  7911. if test "$GCC" != yes; then
  7912. with_gnu_ld=no
  7913. fi
  7914. ;;
  7915. interix*)
  7916. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7917. with_gnu_ld=yes
  7918. ;;
  7919. openbsd*)
  7920. with_gnu_ld=no
  7921. ;;
  7922. esac
  7923. ld_shlibs=yes
  7924. if test "$with_gnu_ld" = yes; then
  7925. # If archive_cmds runs LD, not CC, wlarc should be empty
  7926. wlarc='${wl}'
  7927. # Set some defaults for GNU ld with shared library support. These
  7928. # are reset later if shared libraries are not supported. Putting them
  7929. # here allows them to be overridden if necessary.
  7930. runpath_var=LD_RUN_PATH
  7931. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7932. export_dynamic_flag_spec='${wl}--export-dynamic'
  7933. # ancient GNU ld didn't support --whole-archive et. al.
  7934. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7935. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7936. else
  7937. whole_archive_flag_spec=
  7938. fi
  7939. supports_anon_versioning=no
  7940. case `$LD -v 2>&1` in
  7941. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7942. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7943. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7944. *\ 2.11.*) ;; # other 2.11 versions
  7945. *) supports_anon_versioning=yes ;;
  7946. esac
  7947. # See if GNU ld supports shared libraries.
  7948. case $host_os in
  7949. aix[3-9]*)
  7950. # On AIX/PPC, the GNU linker is very broken
  7951. if test "$host_cpu" != ia64; then
  7952. ld_shlibs=no
  7953. cat <<_LT_EOF 1>&2
  7954. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7955. *** to be unable to reliably create shared libraries on AIX.
  7956. *** Therefore, libtool is disabling shared libraries support. If you
  7957. *** really care for shared libraries, you may want to modify your PATH
  7958. *** so that a non-GNU linker is found, and then restart.
  7959. _LT_EOF
  7960. fi
  7961. ;;
  7962. amigaos*)
  7963. case $host_cpu in
  7964. powerpc)
  7965. # see comment about AmigaOS4 .so support
  7966. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7967. archive_expsym_cmds=''
  7968. ;;
  7969. m68k)
  7970. 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)'
  7971. hardcode_libdir_flag_spec='-L$libdir'
  7972. hardcode_minus_L=yes
  7973. ;;
  7974. esac
  7975. ;;
  7976. beos*)
  7977. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7978. allow_undefined_flag=unsupported
  7979. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7980. # support --undefined. This deserves some investigation. FIXME
  7981. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7982. else
  7983. ld_shlibs=no
  7984. fi
  7985. ;;
  7986. cygwin* | mingw* | pw32* | cegcc*)
  7987. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7988. # as there is no search path for DLLs.
  7989. hardcode_libdir_flag_spec='-L$libdir'
  7990. allow_undefined_flag=unsupported
  7991. always_export_symbols=no
  7992. enable_shared_with_static_runtimes=yes
  7993. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7994. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7995. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7996. # If the export-symbols file already is a .def file (1st line
  7997. # is EXPORTS), use it as is; otherwise, prepend...
  7998. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7999. cp $export_symbols $output_objdir/$soname.def;
  8000. else
  8001. echo EXPORTS > $output_objdir/$soname.def;
  8002. cat $export_symbols >> $output_objdir/$soname.def;
  8003. fi~
  8004. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8005. else
  8006. ld_shlibs=no
  8007. fi
  8008. ;;
  8009. interix[3-9]*)
  8010. hardcode_direct=no
  8011. hardcode_shlibpath_var=no
  8012. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8013. export_dynamic_flag_spec='${wl}-E'
  8014. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8015. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8016. # default) and relocated if they conflict, which is a slow very memory
  8017. # consuming and fragmenting process. To avoid this, we pick a random,
  8018. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8019. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8020. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8021. 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'
  8022. ;;
  8023. gnu* | linux* | tpf* | k*bsd*-gnu)
  8024. tmp_diet=no
  8025. if test "$host_os" = linux-dietlibc; then
  8026. case $cc_basename in
  8027. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8028. esac
  8029. fi
  8030. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8031. && test "$tmp_diet" = no
  8032. then
  8033. tmp_addflag=
  8034. tmp_sharedflag='-shared'
  8035. case $cc_basename,$host_cpu in
  8036. pgcc*) # Portland Group C compiler
  8037. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8038. tmp_addflag=' $pic_flag'
  8039. ;;
  8040. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8041. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8042. tmp_addflag=' $pic_flag -Mnomain' ;;
  8043. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8044. tmp_addflag=' -i_dynamic' ;;
  8045. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8046. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8047. ifc* | ifort*) # Intel Fortran compiler
  8048. tmp_addflag=' -nofor_main' ;;
  8049. lf95*) # Lahey Fortran 8.1
  8050. whole_archive_flag_spec=
  8051. tmp_sharedflag='--shared' ;;
  8052. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8053. tmp_sharedflag='-qmkshrobj'
  8054. tmp_addflag= ;;
  8055. esac
  8056. case `$CC -V 2>&1 | sed 5q` in
  8057. *Sun\ C*) # Sun C 5.9
  8058. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8059. compiler_needs_object=yes
  8060. tmp_sharedflag='-G' ;;
  8061. *Sun\ F*) # Sun Fortran 8.3
  8062. tmp_sharedflag='-G' ;;
  8063. esac
  8064. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8065. if test "x$supports_anon_versioning" = xyes; then
  8066. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8067. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8068. echo "local: *; };" >> $output_objdir/$libname.ver~
  8069. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8070. fi
  8071. case $cc_basename in
  8072. xlf*)
  8073. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8074. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8075. hardcode_libdir_flag_spec=
  8076. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8077. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8078. if test "x$supports_anon_versioning" = xyes; then
  8079. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8080. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8081. echo "local: *; };" >> $output_objdir/$libname.ver~
  8082. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8083. fi
  8084. ;;
  8085. esac
  8086. else
  8087. ld_shlibs=no
  8088. fi
  8089. ;;
  8090. netbsd* | netbsdelf*-gnu)
  8091. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8092. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8093. wlarc=
  8094. else
  8095. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8096. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8097. fi
  8098. ;;
  8099. solaris*)
  8100. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8101. ld_shlibs=no
  8102. cat <<_LT_EOF 1>&2
  8103. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8104. *** create shared libraries on Solaris systems. Therefore, libtool
  8105. *** is disabling shared libraries support. We urge you to upgrade GNU
  8106. *** binutils to release 2.9.1 or newer. Another option is to modify
  8107. *** your PATH or compiler configuration so that the native linker is
  8108. *** used, and then restart.
  8109. _LT_EOF
  8110. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8111. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8112. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8113. else
  8114. ld_shlibs=no
  8115. fi
  8116. ;;
  8117. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8118. case `$LD -v 2>&1` in
  8119. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8120. ld_shlibs=no
  8121. cat <<_LT_EOF 1>&2
  8122. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8123. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8124. *** is disabling shared libraries support. We urge you to upgrade GNU
  8125. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8126. *** your PATH or compiler configuration so that the native linker is
  8127. *** used, and then restart.
  8128. _LT_EOF
  8129. ;;
  8130. *)
  8131. # For security reasons, it is highly recommended that you always
  8132. # use absolute paths for naming shared libraries, and exclude the
  8133. # DT_RUNPATH tag from executables and libraries. But doing so
  8134. # requires that you compile everything twice, which is a pain.
  8135. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8136. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8137. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8138. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8139. else
  8140. ld_shlibs=no
  8141. fi
  8142. ;;
  8143. esac
  8144. ;;
  8145. sunos4*)
  8146. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8147. wlarc=
  8148. hardcode_direct=yes
  8149. hardcode_shlibpath_var=no
  8150. ;;
  8151. *)
  8152. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8153. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8154. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8155. else
  8156. ld_shlibs=no
  8157. fi
  8158. ;;
  8159. esac
  8160. if test "$ld_shlibs" = no; then
  8161. runpath_var=
  8162. hardcode_libdir_flag_spec=
  8163. export_dynamic_flag_spec=
  8164. whole_archive_flag_spec=
  8165. fi
  8166. else
  8167. # PORTME fill in a description of your system's linker (not GNU ld)
  8168. case $host_os in
  8169. aix3*)
  8170. allow_undefined_flag=unsupported
  8171. always_export_symbols=yes
  8172. 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'
  8173. # Note: this linker hardcodes the directories in LIBPATH if there
  8174. # are no directories specified by -L.
  8175. hardcode_minus_L=yes
  8176. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8177. # Neither direct hardcoding nor static linking is supported with a
  8178. # broken collect2.
  8179. hardcode_direct=unsupported
  8180. fi
  8181. ;;
  8182. aix[4-9]*)
  8183. if test "$host_cpu" = ia64; then
  8184. # On IA64, the linker does run time linking by default, so we don't
  8185. # have to do anything special.
  8186. aix_use_runtimelinking=no
  8187. exp_sym_flag='-Bexport'
  8188. no_entry_flag=""
  8189. else
  8190. # If we're using GNU nm, then we don't want the "-C" option.
  8191. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8192. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8193. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8194. else
  8195. 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'
  8196. fi
  8197. aix_use_runtimelinking=no
  8198. # Test if we are trying to use run time linking or normal
  8199. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8200. # need to do runtime linking.
  8201. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8202. for ld_flag in $LDFLAGS; do
  8203. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8204. aix_use_runtimelinking=yes
  8205. break
  8206. fi
  8207. done
  8208. ;;
  8209. esac
  8210. exp_sym_flag='-bexport'
  8211. no_entry_flag='-bnoentry'
  8212. fi
  8213. # When large executables or shared objects are built, AIX ld can
  8214. # have problems creating the table of contents. If linking a library
  8215. # or program results in "error TOC overflow" add -mminimal-toc to
  8216. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8217. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8218. archive_cmds=''
  8219. hardcode_direct=yes
  8220. hardcode_direct_absolute=yes
  8221. hardcode_libdir_separator=':'
  8222. link_all_deplibs=yes
  8223. file_list_spec='${wl}-f,'
  8224. if test "$GCC" = yes; then
  8225. case $host_os in aix4.[012]|aix4.[012].*)
  8226. # We only want to do this on AIX 4.2 and lower, the check
  8227. # below for broken collect2 doesn't work under 4.3+
  8228. collect2name=`${CC} -print-prog-name=collect2`
  8229. if test -f "$collect2name" &&
  8230. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8231. then
  8232. # We have reworked collect2
  8233. :
  8234. else
  8235. # We have old collect2
  8236. hardcode_direct=unsupported
  8237. # It fails to find uninstalled libraries when the uninstalled
  8238. # path is not listed in the libpath. Setting hardcode_minus_L
  8239. # to unsupported forces relinking
  8240. hardcode_minus_L=yes
  8241. hardcode_libdir_flag_spec='-L$libdir'
  8242. hardcode_libdir_separator=
  8243. fi
  8244. ;;
  8245. esac
  8246. shared_flag='-shared'
  8247. if test "$aix_use_runtimelinking" = yes; then
  8248. shared_flag="$shared_flag "'${wl}-G'
  8249. fi
  8250. link_all_deplibs=no
  8251. else
  8252. # not using gcc
  8253. if test "$host_cpu" = ia64; then
  8254. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8255. # chokes on -Wl,-G. The following line is correct:
  8256. shared_flag='-G'
  8257. else
  8258. if test "$aix_use_runtimelinking" = yes; then
  8259. shared_flag='${wl}-G'
  8260. else
  8261. shared_flag='${wl}-bM:SRE'
  8262. fi
  8263. fi
  8264. fi
  8265. export_dynamic_flag_spec='${wl}-bexpall'
  8266. # It seems that -bexpall does not export symbols beginning with
  8267. # underscore (_), so it is better to generate a list of symbols to export.
  8268. always_export_symbols=yes
  8269. if test "$aix_use_runtimelinking" = yes; then
  8270. # Warning - without using the other runtime loading flags (-brtl),
  8271. # -berok will link without error, but may produce a broken library.
  8272. allow_undefined_flag='-berok'
  8273. # Determine the default libpath from the value encoded in an
  8274. # empty executable.
  8275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8276. /* end confdefs.h. */
  8277. int
  8278. main ()
  8279. {
  8280. ;
  8281. return 0;
  8282. }
  8283. _ACEOF
  8284. if ac_fn_c_try_link "$LINENO"; then :
  8285. lt_aix_libpath_sed='
  8286. /Import File Strings/,/^$/ {
  8287. /^0/ {
  8288. s/^0 *\(.*\)$/\1/
  8289. p
  8290. }
  8291. }'
  8292. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8293. # Check for a 64-bit object if we didn't find anything.
  8294. if test -z "$aix_libpath"; then
  8295. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8296. fi
  8297. fi
  8298. rm -f core conftest.err conftest.$ac_objext \
  8299. conftest$ac_exeext conftest.$ac_ext
  8300. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8301. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8302. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8303. else
  8304. if test "$host_cpu" = ia64; then
  8305. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8306. allow_undefined_flag="-z nodefs"
  8307. 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"
  8308. else
  8309. # Determine the default libpath from the value encoded in an
  8310. # empty executable.
  8311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8312. /* end confdefs.h. */
  8313. int
  8314. main ()
  8315. {
  8316. ;
  8317. return 0;
  8318. }
  8319. _ACEOF
  8320. if ac_fn_c_try_link "$LINENO"; then :
  8321. lt_aix_libpath_sed='
  8322. /Import File Strings/,/^$/ {
  8323. /^0/ {
  8324. s/^0 *\(.*\)$/\1/
  8325. p
  8326. }
  8327. }'
  8328. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8329. # Check for a 64-bit object if we didn't find anything.
  8330. if test -z "$aix_libpath"; then
  8331. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8332. fi
  8333. fi
  8334. rm -f core conftest.err conftest.$ac_objext \
  8335. conftest$ac_exeext conftest.$ac_ext
  8336. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8337. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8338. # Warning - without using the other run time loading flags,
  8339. # -berok will link without error, but may produce a broken library.
  8340. no_undefined_flag=' ${wl}-bernotok'
  8341. allow_undefined_flag=' ${wl}-berok'
  8342. # Exported symbols can be pulled into shared objects from archives
  8343. whole_archive_flag_spec='$convenience'
  8344. archive_cmds_need_lc=yes
  8345. # This is similar to how AIX traditionally builds its shared libraries.
  8346. 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'
  8347. fi
  8348. fi
  8349. ;;
  8350. amigaos*)
  8351. case $host_cpu in
  8352. powerpc)
  8353. # see comment about AmigaOS4 .so support
  8354. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8355. archive_expsym_cmds=''
  8356. ;;
  8357. m68k)
  8358. 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)'
  8359. hardcode_libdir_flag_spec='-L$libdir'
  8360. hardcode_minus_L=yes
  8361. ;;
  8362. esac
  8363. ;;
  8364. bsdi[45]*)
  8365. export_dynamic_flag_spec=-rdynamic
  8366. ;;
  8367. cygwin* | mingw* | pw32* | cegcc*)
  8368. # When not using gcc, we currently assume that we are using
  8369. # Microsoft Visual C++.
  8370. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8371. # no search path for DLLs.
  8372. hardcode_libdir_flag_spec=' '
  8373. allow_undefined_flag=unsupported
  8374. # Tell ltmain to make .lib files, not .a files.
  8375. libext=lib
  8376. # Tell ltmain to make .dll files, not .so files.
  8377. shrext_cmds=".dll"
  8378. # FIXME: Setting linknames here is a bad hack.
  8379. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8380. # The linker will automatically build a .lib file if we build a DLL.
  8381. old_archive_from_new_cmds='true'
  8382. # FIXME: Should let the user specify the lib program.
  8383. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8384. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8385. enable_shared_with_static_runtimes=yes
  8386. ;;
  8387. darwin* | rhapsody*)
  8388. archive_cmds_need_lc=no
  8389. hardcode_direct=no
  8390. hardcode_automatic=yes
  8391. hardcode_shlibpath_var=unsupported
  8392. whole_archive_flag_spec=''
  8393. link_all_deplibs=yes
  8394. allow_undefined_flag="$_lt_dar_allow_undefined"
  8395. case $cc_basename in
  8396. ifort*) _lt_dar_can_shared=yes ;;
  8397. *) _lt_dar_can_shared=$GCC ;;
  8398. esac
  8399. if test "$_lt_dar_can_shared" = "yes"; then
  8400. output_verbose_link_cmd=echo
  8401. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8402. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8403. 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}"
  8404. 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}"
  8405. else
  8406. ld_shlibs=no
  8407. fi
  8408. ;;
  8409. dgux*)
  8410. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8411. hardcode_libdir_flag_spec='-L$libdir'
  8412. hardcode_shlibpath_var=no
  8413. ;;
  8414. freebsd1*)
  8415. ld_shlibs=no
  8416. ;;
  8417. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8418. # support. Future versions do this automatically, but an explicit c++rt0.o
  8419. # does not break anything, and helps significantly (at the cost of a little
  8420. # extra space).
  8421. freebsd2.2*)
  8422. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8423. hardcode_libdir_flag_spec='-R$libdir'
  8424. hardcode_direct=yes
  8425. hardcode_shlibpath_var=no
  8426. ;;
  8427. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8428. freebsd2*)
  8429. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8430. hardcode_direct=yes
  8431. hardcode_minus_L=yes
  8432. hardcode_shlibpath_var=no
  8433. ;;
  8434. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8435. freebsd* | dragonfly*)
  8436. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8437. hardcode_libdir_flag_spec='-R$libdir'
  8438. hardcode_direct=yes
  8439. hardcode_shlibpath_var=no
  8440. ;;
  8441. hpux9*)
  8442. if test "$GCC" = yes; then
  8443. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8444. else
  8445. 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'
  8446. fi
  8447. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8448. hardcode_libdir_separator=:
  8449. hardcode_direct=yes
  8450. # hardcode_minus_L: Not really in the search PATH,
  8451. # but as the default location of the library.
  8452. hardcode_minus_L=yes
  8453. export_dynamic_flag_spec='${wl}-E'
  8454. ;;
  8455. hpux10*)
  8456. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8457. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8458. else
  8459. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8460. fi
  8461. if test "$with_gnu_ld" = no; then
  8462. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8463. hardcode_libdir_flag_spec_ld='+b $libdir'
  8464. hardcode_libdir_separator=:
  8465. hardcode_direct=yes
  8466. hardcode_direct_absolute=yes
  8467. export_dynamic_flag_spec='${wl}-E'
  8468. # hardcode_minus_L: Not really in the search PATH,
  8469. # but as the default location of the library.
  8470. hardcode_minus_L=yes
  8471. fi
  8472. ;;
  8473. hpux11*)
  8474. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8475. case $host_cpu in
  8476. hppa*64*)
  8477. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8478. ;;
  8479. ia64*)
  8480. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8481. ;;
  8482. *)
  8483. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8484. ;;
  8485. esac
  8486. else
  8487. case $host_cpu in
  8488. hppa*64*)
  8489. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. ;;
  8491. ia64*)
  8492. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8493. ;;
  8494. *)
  8495. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8496. ;;
  8497. esac
  8498. fi
  8499. if test "$with_gnu_ld" = no; then
  8500. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8501. hardcode_libdir_separator=:
  8502. case $host_cpu in
  8503. hppa*64*|ia64*)
  8504. hardcode_direct=no
  8505. hardcode_shlibpath_var=no
  8506. ;;
  8507. *)
  8508. hardcode_direct=yes
  8509. hardcode_direct_absolute=yes
  8510. export_dynamic_flag_spec='${wl}-E'
  8511. # hardcode_minus_L: Not really in the search PATH,
  8512. # but as the default location of the library.
  8513. hardcode_minus_L=yes
  8514. ;;
  8515. esac
  8516. fi
  8517. ;;
  8518. irix5* | irix6* | nonstopux*)
  8519. if test "$GCC" = yes; then
  8520. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8521. # Try to use the -exported_symbol ld option, if it does not
  8522. # work, assume that -exports_file does not work either and
  8523. # implicitly export all symbols.
  8524. save_LDFLAGS="$LDFLAGS"
  8525. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8527. /* end confdefs.h. */
  8528. int foo(void) {}
  8529. _ACEOF
  8530. if ac_fn_c_try_link "$LINENO"; then :
  8531. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8532. fi
  8533. rm -f core conftest.err conftest.$ac_objext \
  8534. conftest$ac_exeext conftest.$ac_ext
  8535. LDFLAGS="$save_LDFLAGS"
  8536. else
  8537. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8538. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8539. fi
  8540. archive_cmds_need_lc='no'
  8541. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8542. hardcode_libdir_separator=:
  8543. inherit_rpath=yes
  8544. link_all_deplibs=yes
  8545. ;;
  8546. netbsd* | netbsdelf*-gnu)
  8547. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8548. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8549. else
  8550. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8551. fi
  8552. hardcode_libdir_flag_spec='-R$libdir'
  8553. hardcode_direct=yes
  8554. hardcode_shlibpath_var=no
  8555. ;;
  8556. newsos6)
  8557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8558. hardcode_direct=yes
  8559. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8560. hardcode_libdir_separator=:
  8561. hardcode_shlibpath_var=no
  8562. ;;
  8563. *nto* | *qnx*)
  8564. ;;
  8565. openbsd*)
  8566. if test -f /usr/libexec/ld.so; then
  8567. hardcode_direct=yes
  8568. hardcode_shlibpath_var=no
  8569. hardcode_direct_absolute=yes
  8570. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8571. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8572. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8573. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8574. export_dynamic_flag_spec='${wl}-E'
  8575. else
  8576. case $host_os in
  8577. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8578. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8579. hardcode_libdir_flag_spec='-R$libdir'
  8580. ;;
  8581. *)
  8582. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8583. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8584. ;;
  8585. esac
  8586. fi
  8587. else
  8588. ld_shlibs=no
  8589. fi
  8590. ;;
  8591. os2*)
  8592. hardcode_libdir_flag_spec='-L$libdir'
  8593. hardcode_minus_L=yes
  8594. allow_undefined_flag=unsupported
  8595. 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'
  8596. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8597. ;;
  8598. osf3*)
  8599. if test "$GCC" = yes; then
  8600. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8601. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8602. else
  8603. allow_undefined_flag=' -expect_unresolved \*'
  8604. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8605. fi
  8606. archive_cmds_need_lc='no'
  8607. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8608. hardcode_libdir_separator=:
  8609. ;;
  8610. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8611. if test "$GCC" = yes; then
  8612. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8613. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8614. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8615. else
  8616. allow_undefined_flag=' -expect_unresolved \*'
  8617. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8618. 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~
  8619. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8620. # Both c and cxx compiler support -rpath directly
  8621. hardcode_libdir_flag_spec='-rpath $libdir'
  8622. fi
  8623. archive_cmds_need_lc='no'
  8624. hardcode_libdir_separator=:
  8625. ;;
  8626. solaris*)
  8627. no_undefined_flag=' -z defs'
  8628. if test "$GCC" = yes; then
  8629. wlarc='${wl}'
  8630. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8631. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8632. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8633. else
  8634. case `$CC -V 2>&1` in
  8635. *"Compilers 5.0"*)
  8636. wlarc=''
  8637. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8638. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8639. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8640. ;;
  8641. *)
  8642. wlarc='${wl}'
  8643. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8644. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8645. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8646. ;;
  8647. esac
  8648. fi
  8649. hardcode_libdir_flag_spec='-R$libdir'
  8650. hardcode_shlibpath_var=no
  8651. case $host_os in
  8652. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8653. *)
  8654. # The compiler driver will combine and reorder linker options,
  8655. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8656. # but is careful enough not to reorder.
  8657. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8658. if test "$GCC" = yes; then
  8659. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8660. else
  8661. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8662. fi
  8663. ;;
  8664. esac
  8665. link_all_deplibs=yes
  8666. ;;
  8667. sunos4*)
  8668. if test "x$host_vendor" = xsequent; then
  8669. # Use $CC to link under sequent, because it throws in some extra .o
  8670. # files that make .init and .fini sections work.
  8671. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8672. else
  8673. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8674. fi
  8675. hardcode_libdir_flag_spec='-L$libdir'
  8676. hardcode_direct=yes
  8677. hardcode_minus_L=yes
  8678. hardcode_shlibpath_var=no
  8679. ;;
  8680. sysv4)
  8681. case $host_vendor in
  8682. sni)
  8683. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8684. hardcode_direct=yes # is this really true???
  8685. ;;
  8686. siemens)
  8687. ## LD is ld it makes a PLAMLIB
  8688. ## CC just makes a GrossModule.
  8689. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8690. reload_cmds='$CC -r -o $output$reload_objs'
  8691. hardcode_direct=no
  8692. ;;
  8693. motorola)
  8694. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8695. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8696. ;;
  8697. esac
  8698. runpath_var='LD_RUN_PATH'
  8699. hardcode_shlibpath_var=no
  8700. ;;
  8701. sysv4.3*)
  8702. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8703. hardcode_shlibpath_var=no
  8704. export_dynamic_flag_spec='-Bexport'
  8705. ;;
  8706. sysv4*MP*)
  8707. if test -d /usr/nec; then
  8708. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8709. hardcode_shlibpath_var=no
  8710. runpath_var=LD_RUN_PATH
  8711. hardcode_runpath_var=yes
  8712. ld_shlibs=yes
  8713. fi
  8714. ;;
  8715. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8716. no_undefined_flag='${wl}-z,text'
  8717. archive_cmds_need_lc=no
  8718. hardcode_shlibpath_var=no
  8719. runpath_var='LD_RUN_PATH'
  8720. if test "$GCC" = yes; then
  8721. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8722. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8723. else
  8724. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8725. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8726. fi
  8727. ;;
  8728. sysv5* | sco3.2v5* | sco5v6*)
  8729. # Note: We can NOT use -z defs as we might desire, because we do not
  8730. # link with -lc, and that would cause any symbols used from libc to
  8731. # always be unresolved, which means just about no library would
  8732. # ever link correctly. If we're not using GNU ld we use -z text
  8733. # though, which does catch some bad symbols but isn't as heavy-handed
  8734. # as -z defs.
  8735. no_undefined_flag='${wl}-z,text'
  8736. allow_undefined_flag='${wl}-z,nodefs'
  8737. archive_cmds_need_lc=no
  8738. hardcode_shlibpath_var=no
  8739. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8740. hardcode_libdir_separator=':'
  8741. link_all_deplibs=yes
  8742. export_dynamic_flag_spec='${wl}-Bexport'
  8743. runpath_var='LD_RUN_PATH'
  8744. if test "$GCC" = yes; then
  8745. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8746. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8747. else
  8748. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8749. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. fi
  8751. ;;
  8752. uts4*)
  8753. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8754. hardcode_libdir_flag_spec='-L$libdir'
  8755. hardcode_shlibpath_var=no
  8756. ;;
  8757. *)
  8758. ld_shlibs=no
  8759. ;;
  8760. esac
  8761. if test x$host_vendor = xsni; then
  8762. case $host in
  8763. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8764. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8765. ;;
  8766. esac
  8767. fi
  8768. fi
  8769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8770. $as_echo "$ld_shlibs" >&6; }
  8771. test "$ld_shlibs" = no && can_build_shared=no
  8772. with_gnu_ld=$with_gnu_ld
  8773. #
  8774. # Do we need to explicitly link libc?
  8775. #
  8776. case "x$archive_cmds_need_lc" in
  8777. x|xyes)
  8778. # Assume -lc should be added
  8779. archive_cmds_need_lc=yes
  8780. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8781. case $archive_cmds in
  8782. *'~'*)
  8783. # FIXME: we may have to deal with multi-command sequences.
  8784. ;;
  8785. '$CC '*)
  8786. # Test whether the compiler implicitly links with -lc since on some
  8787. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8788. # to ld, don't add -lc before -lgcc.
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8790. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8791. $RM conftest*
  8792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8794. (eval $ac_compile) 2>&5
  8795. ac_status=$?
  8796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8797. test $ac_status = 0; } 2>conftest.err; then
  8798. soname=conftest
  8799. lib=conftest
  8800. libobjs=conftest.$ac_objext
  8801. deplibs=
  8802. wl=$lt_prog_compiler_wl
  8803. pic_flag=$lt_prog_compiler_pic
  8804. compiler_flags=-v
  8805. linker_flags=-v
  8806. verstring=
  8807. output_objdir=.
  8808. libname=conftest
  8809. lt_save_allow_undefined_flag=$allow_undefined_flag
  8810. allow_undefined_flag=
  8811. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8812. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8813. ac_status=$?
  8814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8815. test $ac_status = 0; }
  8816. then
  8817. archive_cmds_need_lc=no
  8818. else
  8819. archive_cmds_need_lc=yes
  8820. fi
  8821. allow_undefined_flag=$lt_save_allow_undefined_flag
  8822. else
  8823. cat conftest.err 1>&5
  8824. fi
  8825. $RM conftest*
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8827. $as_echo "$archive_cmds_need_lc" >&6; }
  8828. ;;
  8829. esac
  8830. fi
  8831. ;;
  8832. esac
  8833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8834. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8835. if test "$GCC" = yes; then
  8836. case $host_os in
  8837. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8838. *) lt_awk_arg="/^libraries:/" ;;
  8839. esac
  8840. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8841. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8842. # if the path contains ";" then we assume it to be the separator
  8843. # otherwise default to the standard path separator (i.e. ":") - it is
  8844. # assumed that no part of a normal pathname contains ";" but that should
  8845. # okay in the real world where ";" in dirpaths is itself problematic.
  8846. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8847. else
  8848. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8849. fi
  8850. # Ok, now we have the path, separated by spaces, we can step through it
  8851. # and add multilib dir if necessary.
  8852. lt_tmp_lt_search_path_spec=
  8853. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8854. for lt_sys_path in $lt_search_path_spec; do
  8855. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8856. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8857. else
  8858. test -d "$lt_sys_path" && \
  8859. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8860. fi
  8861. done
  8862. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8863. BEGIN {RS=" "; FS="/|\n";} {
  8864. lt_foo="";
  8865. lt_count=0;
  8866. for (lt_i = NF; lt_i > 0; lt_i--) {
  8867. if ($lt_i != "" && $lt_i != ".") {
  8868. if ($lt_i == "..") {
  8869. lt_count++;
  8870. } else {
  8871. if (lt_count == 0) {
  8872. lt_foo="/" $lt_i lt_foo;
  8873. } else {
  8874. lt_count--;
  8875. }
  8876. }
  8877. }
  8878. }
  8879. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8880. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8881. }'`
  8882. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8883. else
  8884. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8885. fi
  8886. library_names_spec=
  8887. libname_spec='lib$name'
  8888. soname_spec=
  8889. shrext_cmds=".so"
  8890. postinstall_cmds=
  8891. postuninstall_cmds=
  8892. finish_cmds=
  8893. finish_eval=
  8894. shlibpath_var=
  8895. shlibpath_overrides_runpath=unknown
  8896. version_type=none
  8897. dynamic_linker="$host_os ld.so"
  8898. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8899. need_lib_prefix=unknown
  8900. hardcode_into_libs=no
  8901. # when you set need_version to no, make sure it does not cause -set_version
  8902. # flags to be left without arguments
  8903. need_version=unknown
  8904. case $host_os in
  8905. aix3*)
  8906. version_type=linux
  8907. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8908. shlibpath_var=LIBPATH
  8909. # AIX 3 has no versioning support, so we append a major version to the name.
  8910. soname_spec='${libname}${release}${shared_ext}$major'
  8911. ;;
  8912. aix[4-9]*)
  8913. version_type=linux
  8914. need_lib_prefix=no
  8915. need_version=no
  8916. hardcode_into_libs=yes
  8917. if test "$host_cpu" = ia64; then
  8918. # AIX 5 supports IA64
  8919. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8920. shlibpath_var=LD_LIBRARY_PATH
  8921. else
  8922. # With GCC up to 2.95.x, collect2 would create an import file
  8923. # for dependence libraries. The import file would start with
  8924. # the line `#! .'. This would cause the generated library to
  8925. # depend on `.', always an invalid library. This was fixed in
  8926. # development snapshots of GCC prior to 3.0.
  8927. case $host_os in
  8928. aix4 | aix4.[01] | aix4.[01].*)
  8929. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8930. echo ' yes '
  8931. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8932. :
  8933. else
  8934. can_build_shared=no
  8935. fi
  8936. ;;
  8937. esac
  8938. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8939. # soname into executable. Probably we can add versioning support to
  8940. # collect2, so additional links can be useful in future.
  8941. if test "$aix_use_runtimelinking" = yes; then
  8942. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8943. # instead of lib<name>.a to let people know that these are not
  8944. # typical AIX shared libraries.
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8946. else
  8947. # We preserve .a as extension for shared libraries through AIX4.2
  8948. # and later when we are not doing run time linking.
  8949. library_names_spec='${libname}${release}.a $libname.a'
  8950. soname_spec='${libname}${release}${shared_ext}$major'
  8951. fi
  8952. shlibpath_var=LIBPATH
  8953. fi
  8954. ;;
  8955. amigaos*)
  8956. case $host_cpu in
  8957. powerpc)
  8958. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8959. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8961. ;;
  8962. m68k)
  8963. library_names_spec='$libname.ixlibrary $libname.a'
  8964. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8965. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8966. ;;
  8967. esac
  8968. ;;
  8969. beos*)
  8970. library_names_spec='${libname}${shared_ext}'
  8971. dynamic_linker="$host_os ld.so"
  8972. shlibpath_var=LIBRARY_PATH
  8973. ;;
  8974. bsdi[45]*)
  8975. version_type=linux
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8980. shlibpath_var=LD_LIBRARY_PATH
  8981. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8982. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8983. # the default ld.so.conf also contains /usr/contrib/lib and
  8984. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8985. # libtool to hard-code these into programs
  8986. ;;
  8987. cygwin* | mingw* | pw32* | cegcc*)
  8988. version_type=windows
  8989. shrext_cmds=".dll"
  8990. need_version=no
  8991. need_lib_prefix=no
  8992. case $GCC,$host_os in
  8993. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8994. library_names_spec='$libname.dll.a'
  8995. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8996. postinstall_cmds='base_file=`basename \${file}`~
  8997. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8998. dldir=$destdir/`dirname \$dlpath`~
  8999. test -d \$dldir || mkdir -p \$dldir~
  9000. $install_prog $dir/$dlname \$dldir/$dlname~
  9001. chmod a+x \$dldir/$dlname~
  9002. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9003. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9004. fi'
  9005. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9006. dlpath=$dir/\$dldll~
  9007. $RM \$dlpath'
  9008. shlibpath_overrides_runpath=yes
  9009. case $host_os in
  9010. cygwin*)
  9011. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9012. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9013. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9014. ;;
  9015. mingw* | cegcc*)
  9016. # MinGW DLLs use traditional 'lib' prefix
  9017. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9018. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9019. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9020. # It is most probably a Windows format PATH printed by
  9021. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9022. # path with ; separators, and with drive letters. We can handle the
  9023. # drive letters (cygwin fileutils understands them), so leave them,
  9024. # especially as we might pass files found there to a mingw objdump,
  9025. # which wouldn't understand a cygwinified path. Ahh.
  9026. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9027. else
  9028. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9029. fi
  9030. ;;
  9031. pw32*)
  9032. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9033. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9034. ;;
  9035. esac
  9036. ;;
  9037. *)
  9038. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9039. ;;
  9040. esac
  9041. dynamic_linker='Win32 ld.exe'
  9042. # FIXME: first we should search . and the directory the executable is in
  9043. shlibpath_var=PATH
  9044. ;;
  9045. darwin* | rhapsody*)
  9046. dynamic_linker="$host_os dyld"
  9047. version_type=darwin
  9048. need_lib_prefix=no
  9049. need_version=no
  9050. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9051. soname_spec='${libname}${release}${major}$shared_ext'
  9052. shlibpath_overrides_runpath=yes
  9053. shlibpath_var=DYLD_LIBRARY_PATH
  9054. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9055. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9056. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9057. ;;
  9058. dgux*)
  9059. version_type=linux
  9060. need_lib_prefix=no
  9061. need_version=no
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. shlibpath_var=LD_LIBRARY_PATH
  9065. ;;
  9066. freebsd1*)
  9067. dynamic_linker=no
  9068. ;;
  9069. freebsd* | dragonfly*)
  9070. # DragonFly does not have aout. When/if they implement a new
  9071. # versioning mechanism, adjust this.
  9072. if test -x /usr/bin/objformat; then
  9073. objformat=`/usr/bin/objformat`
  9074. else
  9075. case $host_os in
  9076. freebsd[123]*) objformat=aout ;;
  9077. *) objformat=elf ;;
  9078. esac
  9079. fi
  9080. version_type=freebsd-$objformat
  9081. case $version_type in
  9082. freebsd-elf*)
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9084. need_version=no
  9085. need_lib_prefix=no
  9086. ;;
  9087. freebsd-*)
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9089. need_version=yes
  9090. ;;
  9091. esac
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. case $host_os in
  9094. freebsd2*)
  9095. shlibpath_overrides_runpath=yes
  9096. ;;
  9097. freebsd3.[01]* | freebsdelf3.[01]*)
  9098. shlibpath_overrides_runpath=yes
  9099. hardcode_into_libs=yes
  9100. ;;
  9101. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9102. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9103. shlibpath_overrides_runpath=no
  9104. hardcode_into_libs=yes
  9105. ;;
  9106. *) # from 4.6 on, and DragonFly
  9107. shlibpath_overrides_runpath=yes
  9108. hardcode_into_libs=yes
  9109. ;;
  9110. esac
  9111. ;;
  9112. gnu*)
  9113. version_type=linux
  9114. need_lib_prefix=no
  9115. need_version=no
  9116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9117. soname_spec='${libname}${release}${shared_ext}$major'
  9118. shlibpath_var=LD_LIBRARY_PATH
  9119. hardcode_into_libs=yes
  9120. ;;
  9121. hpux9* | hpux10* | hpux11*)
  9122. # Give a soname corresponding to the major version so that dld.sl refuses to
  9123. # link against other versions.
  9124. version_type=sunos
  9125. need_lib_prefix=no
  9126. need_version=no
  9127. case $host_cpu in
  9128. ia64*)
  9129. shrext_cmds='.so'
  9130. hardcode_into_libs=yes
  9131. dynamic_linker="$host_os dld.so"
  9132. shlibpath_var=LD_LIBRARY_PATH
  9133. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. if test "X$HPUX_IA64_MODE" = X32; then
  9137. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9138. else
  9139. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9140. fi
  9141. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9142. ;;
  9143. hppa*64*)
  9144. shrext_cmds='.sl'
  9145. hardcode_into_libs=yes
  9146. dynamic_linker="$host_os dld.sl"
  9147. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9148. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9150. soname_spec='${libname}${release}${shared_ext}$major'
  9151. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9152. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9153. ;;
  9154. *)
  9155. shrext_cmds='.sl'
  9156. dynamic_linker="$host_os dld.sl"
  9157. shlibpath_var=SHLIB_PATH
  9158. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. ;;
  9162. esac
  9163. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9164. postinstall_cmds='chmod 555 $lib'
  9165. ;;
  9166. interix[3-9]*)
  9167. version_type=linux
  9168. need_lib_prefix=no
  9169. need_version=no
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9171. soname_spec='${libname}${release}${shared_ext}$major'
  9172. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. shlibpath_overrides_runpath=no
  9175. hardcode_into_libs=yes
  9176. ;;
  9177. irix5* | irix6* | nonstopux*)
  9178. case $host_os in
  9179. nonstopux*) version_type=nonstopux ;;
  9180. *)
  9181. if test "$lt_cv_prog_gnu_ld" = yes; then
  9182. version_type=linux
  9183. else
  9184. version_type=irix
  9185. fi ;;
  9186. esac
  9187. need_lib_prefix=no
  9188. need_version=no
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9191. case $host_os in
  9192. irix5* | nonstopux*)
  9193. libsuff= shlibsuff=
  9194. ;;
  9195. *)
  9196. case $LD in # libtool.m4 will add one of these switches to LD
  9197. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9198. libsuff= shlibsuff= libmagic=32-bit;;
  9199. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9200. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9201. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9202. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9203. *) libsuff= shlibsuff= libmagic=never-match;;
  9204. esac
  9205. ;;
  9206. esac
  9207. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9208. shlibpath_overrides_runpath=no
  9209. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9210. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9211. hardcode_into_libs=yes
  9212. ;;
  9213. # No shared lib support for Linux oldld, aout, or coff.
  9214. linux*oldld* | linux*aout* | linux*coff*)
  9215. dynamic_linker=no
  9216. ;;
  9217. # This must be Linux ELF.
  9218. linux* | k*bsd*-gnu)
  9219. version_type=linux
  9220. need_lib_prefix=no
  9221. need_version=no
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9223. soname_spec='${libname}${release}${shared_ext}$major'
  9224. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9225. shlibpath_var=LD_LIBRARY_PATH
  9226. shlibpath_overrides_runpath=no
  9227. # Some binutils ld are patched to set DT_RUNPATH
  9228. save_LDFLAGS=$LDFLAGS
  9229. save_libdir=$libdir
  9230. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9231. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9233. /* end confdefs.h. */
  9234. int
  9235. main ()
  9236. {
  9237. ;
  9238. return 0;
  9239. }
  9240. _ACEOF
  9241. if ac_fn_c_try_link "$LINENO"; then :
  9242. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9243. shlibpath_overrides_runpath=yes
  9244. fi
  9245. fi
  9246. rm -f core conftest.err conftest.$ac_objext \
  9247. conftest$ac_exeext conftest.$ac_ext
  9248. LDFLAGS=$save_LDFLAGS
  9249. libdir=$save_libdir
  9250. # This implies no fast_install, which is unacceptable.
  9251. # Some rework will be needed to allow for fast_install
  9252. # before this can be enabled.
  9253. hardcode_into_libs=yes
  9254. # Append ld.so.conf contents to the search path
  9255. if test -f /etc/ld.so.conf; then
  9256. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9257. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9258. fi
  9259. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9260. # powerpc, because MkLinux only supported shared libraries with the
  9261. # GNU dynamic linker. Since this was broken with cross compilers,
  9262. # most powerpc-linux boxes support dynamic linking these days and
  9263. # people can always --disable-shared, the test was removed, and we
  9264. # assume the GNU/Linux dynamic linker is in use.
  9265. dynamic_linker='GNU/Linux ld.so'
  9266. ;;
  9267. netbsdelf*-gnu)
  9268. version_type=linux
  9269. need_lib_prefix=no
  9270. need_version=no
  9271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9272. soname_spec='${libname}${release}${shared_ext}$major'
  9273. shlibpath_var=LD_LIBRARY_PATH
  9274. shlibpath_overrides_runpath=no
  9275. hardcode_into_libs=yes
  9276. dynamic_linker='NetBSD ld.elf_so'
  9277. ;;
  9278. netbsd*)
  9279. version_type=sunos
  9280. need_lib_prefix=no
  9281. need_version=no
  9282. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9284. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9285. dynamic_linker='NetBSD (a.out) ld.so'
  9286. else
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. dynamic_linker='NetBSD ld.elf_so'
  9290. fi
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. shlibpath_overrides_runpath=yes
  9293. hardcode_into_libs=yes
  9294. ;;
  9295. newsos6)
  9296. version_type=linux
  9297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9298. shlibpath_var=LD_LIBRARY_PATH
  9299. shlibpath_overrides_runpath=yes
  9300. ;;
  9301. *nto* | *qnx*)
  9302. version_type=qnx
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9306. soname_spec='${libname}${release}${shared_ext}$major'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. shlibpath_overrides_runpath=no
  9309. hardcode_into_libs=yes
  9310. dynamic_linker='ldqnx.so'
  9311. ;;
  9312. openbsd*)
  9313. version_type=sunos
  9314. sys_lib_dlsearch_path_spec="/usr/lib"
  9315. need_lib_prefix=no
  9316. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9317. case $host_os in
  9318. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9319. *) need_version=no ;;
  9320. esac
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9322. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9323. shlibpath_var=LD_LIBRARY_PATH
  9324. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9325. case $host_os in
  9326. openbsd2.[89] | openbsd2.[89].*)
  9327. shlibpath_overrides_runpath=no
  9328. ;;
  9329. *)
  9330. shlibpath_overrides_runpath=yes
  9331. ;;
  9332. esac
  9333. else
  9334. shlibpath_overrides_runpath=yes
  9335. fi
  9336. ;;
  9337. os2*)
  9338. libname_spec='$name'
  9339. shrext_cmds=".dll"
  9340. need_lib_prefix=no
  9341. library_names_spec='$libname${shared_ext} $libname.a'
  9342. dynamic_linker='OS/2 ld.exe'
  9343. shlibpath_var=LIBPATH
  9344. ;;
  9345. osf3* | osf4* | osf5*)
  9346. version_type=osf
  9347. need_lib_prefix=no
  9348. need_version=no
  9349. soname_spec='${libname}${release}${shared_ext}$major'
  9350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9351. shlibpath_var=LD_LIBRARY_PATH
  9352. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9353. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9354. ;;
  9355. rdos*)
  9356. dynamic_linker=no
  9357. ;;
  9358. solaris*)
  9359. version_type=linux
  9360. need_lib_prefix=no
  9361. need_version=no
  9362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9363. soname_spec='${libname}${release}${shared_ext}$major'
  9364. shlibpath_var=LD_LIBRARY_PATH
  9365. shlibpath_overrides_runpath=yes
  9366. hardcode_into_libs=yes
  9367. # ldd complains unless libraries are executable
  9368. postinstall_cmds='chmod +x $lib'
  9369. ;;
  9370. sunos4*)
  9371. version_type=sunos
  9372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9373. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9374. shlibpath_var=LD_LIBRARY_PATH
  9375. shlibpath_overrides_runpath=yes
  9376. if test "$with_gnu_ld" = yes; then
  9377. need_lib_prefix=no
  9378. fi
  9379. need_version=yes
  9380. ;;
  9381. sysv4 | sysv4.3*)
  9382. version_type=linux
  9383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9384. soname_spec='${libname}${release}${shared_ext}$major'
  9385. shlibpath_var=LD_LIBRARY_PATH
  9386. case $host_vendor in
  9387. sni)
  9388. shlibpath_overrides_runpath=no
  9389. need_lib_prefix=no
  9390. runpath_var=LD_RUN_PATH
  9391. ;;
  9392. siemens)
  9393. need_lib_prefix=no
  9394. ;;
  9395. motorola)
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. shlibpath_overrides_runpath=no
  9399. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9400. ;;
  9401. esac
  9402. ;;
  9403. sysv4*MP*)
  9404. if test -d /usr/nec ;then
  9405. version_type=linux
  9406. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9407. soname_spec='$libname${shared_ext}.$major'
  9408. shlibpath_var=LD_LIBRARY_PATH
  9409. fi
  9410. ;;
  9411. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9412. version_type=freebsd-elf
  9413. need_lib_prefix=no
  9414. need_version=no
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9416. soname_spec='${libname}${release}${shared_ext}$major'
  9417. shlibpath_var=LD_LIBRARY_PATH
  9418. shlibpath_overrides_runpath=yes
  9419. hardcode_into_libs=yes
  9420. if test "$with_gnu_ld" = yes; then
  9421. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9422. else
  9423. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9424. case $host_os in
  9425. sco3.2v5*)
  9426. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9427. ;;
  9428. esac
  9429. fi
  9430. sys_lib_dlsearch_path_spec='/usr/lib'
  9431. ;;
  9432. tpf*)
  9433. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9434. version_type=linux
  9435. need_lib_prefix=no
  9436. need_version=no
  9437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9438. shlibpath_var=LD_LIBRARY_PATH
  9439. shlibpath_overrides_runpath=no
  9440. hardcode_into_libs=yes
  9441. ;;
  9442. uts4*)
  9443. version_type=linux
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9445. soname_spec='${libname}${release}${shared_ext}$major'
  9446. shlibpath_var=LD_LIBRARY_PATH
  9447. ;;
  9448. *)
  9449. dynamic_linker=no
  9450. ;;
  9451. esac
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9453. $as_echo "$dynamic_linker" >&6; }
  9454. test "$dynamic_linker" = no && can_build_shared=no
  9455. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9456. if test "$GCC" = yes; then
  9457. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9458. fi
  9459. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9460. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9461. fi
  9462. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9463. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9464. fi
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9466. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9467. hardcode_action=
  9468. if test -n "$hardcode_libdir_flag_spec" ||
  9469. test -n "$runpath_var" ||
  9470. test "X$hardcode_automatic" = "Xyes" ; then
  9471. # We can hardcode non-existent directories.
  9472. if test "$hardcode_direct" != no &&
  9473. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9474. # have to relink, otherwise we might link with an installed library
  9475. # when we should be linking with a yet-to-be-installed one
  9476. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9477. test "$hardcode_minus_L" != no; then
  9478. # Linking always hardcodes the temporary library directory.
  9479. hardcode_action=relink
  9480. else
  9481. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9482. hardcode_action=immediate
  9483. fi
  9484. else
  9485. # We cannot hardcode anything, or else we can only hardcode existing
  9486. # directories.
  9487. hardcode_action=unsupported
  9488. fi
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9490. $as_echo "$hardcode_action" >&6; }
  9491. if test "$hardcode_action" = relink ||
  9492. test "$inherit_rpath" = yes; then
  9493. # Fast installation is not supported
  9494. enable_fast_install=no
  9495. elif test "$shlibpath_overrides_runpath" = yes ||
  9496. test "$enable_shared" = no; then
  9497. # Fast installation is not necessary
  9498. enable_fast_install=needless
  9499. fi
  9500. if test "x$enable_dlopen" != xyes; then
  9501. enable_dlopen=unknown
  9502. enable_dlopen_self=unknown
  9503. enable_dlopen_self_static=unknown
  9504. else
  9505. lt_cv_dlopen=no
  9506. lt_cv_dlopen_libs=
  9507. case $host_os in
  9508. beos*)
  9509. lt_cv_dlopen="load_add_on"
  9510. lt_cv_dlopen_libs=
  9511. lt_cv_dlopen_self=yes
  9512. ;;
  9513. mingw* | pw32* | cegcc*)
  9514. lt_cv_dlopen="LoadLibrary"
  9515. lt_cv_dlopen_libs=
  9516. ;;
  9517. cygwin*)
  9518. lt_cv_dlopen="dlopen"
  9519. lt_cv_dlopen_libs=
  9520. ;;
  9521. darwin*)
  9522. # if libdl is installed we need to link against it
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9524. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9525. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9526. $as_echo_n "(cached) " >&6
  9527. else
  9528. ac_check_lib_save_LIBS=$LIBS
  9529. LIBS="-ldl $LIBS"
  9530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9531. /* end confdefs.h. */
  9532. /* Override any GCC internal prototype to avoid an error.
  9533. Use char because int might match the return type of a GCC
  9534. builtin and then its argument prototype would still apply. */
  9535. #ifdef __cplusplus
  9536. extern "C"
  9537. #endif
  9538. char dlopen ();
  9539. int
  9540. main ()
  9541. {
  9542. return dlopen ();
  9543. ;
  9544. return 0;
  9545. }
  9546. _ACEOF
  9547. if ac_fn_c_try_link "$LINENO"; then :
  9548. ac_cv_lib_dl_dlopen=yes
  9549. else
  9550. ac_cv_lib_dl_dlopen=no
  9551. fi
  9552. rm -f core conftest.err conftest.$ac_objext \
  9553. conftest$ac_exeext conftest.$ac_ext
  9554. LIBS=$ac_check_lib_save_LIBS
  9555. fi
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9557. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9558. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9559. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9560. else
  9561. lt_cv_dlopen="dyld"
  9562. lt_cv_dlopen_libs=
  9563. lt_cv_dlopen_self=yes
  9564. fi
  9565. ;;
  9566. *)
  9567. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9568. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9569. lt_cv_dlopen="shl_load"
  9570. else
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9572. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9573. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. ac_check_lib_save_LIBS=$LIBS
  9577. LIBS="-ldld $LIBS"
  9578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9579. /* end confdefs.h. */
  9580. /* Override any GCC internal prototype to avoid an error.
  9581. Use char because int might match the return type of a GCC
  9582. builtin and then its argument prototype would still apply. */
  9583. #ifdef __cplusplus
  9584. extern "C"
  9585. #endif
  9586. char shl_load ();
  9587. int
  9588. main ()
  9589. {
  9590. return shl_load ();
  9591. ;
  9592. return 0;
  9593. }
  9594. _ACEOF
  9595. if ac_fn_c_try_link "$LINENO"; then :
  9596. ac_cv_lib_dld_shl_load=yes
  9597. else
  9598. ac_cv_lib_dld_shl_load=no
  9599. fi
  9600. rm -f core conftest.err conftest.$ac_objext \
  9601. conftest$ac_exeext conftest.$ac_ext
  9602. LIBS=$ac_check_lib_save_LIBS
  9603. fi
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9605. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9606. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9607. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9608. else
  9609. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9610. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9611. lt_cv_dlopen="dlopen"
  9612. else
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9614. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9615. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9616. $as_echo_n "(cached) " >&6
  9617. else
  9618. ac_check_lib_save_LIBS=$LIBS
  9619. LIBS="-ldl $LIBS"
  9620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9621. /* end confdefs.h. */
  9622. /* Override any GCC internal prototype to avoid an error.
  9623. Use char because int might match the return type of a GCC
  9624. builtin and then its argument prototype would still apply. */
  9625. #ifdef __cplusplus
  9626. extern "C"
  9627. #endif
  9628. char dlopen ();
  9629. int
  9630. main ()
  9631. {
  9632. return dlopen ();
  9633. ;
  9634. return 0;
  9635. }
  9636. _ACEOF
  9637. if ac_fn_c_try_link "$LINENO"; then :
  9638. ac_cv_lib_dl_dlopen=yes
  9639. else
  9640. ac_cv_lib_dl_dlopen=no
  9641. fi
  9642. rm -f core conftest.err conftest.$ac_objext \
  9643. conftest$ac_exeext conftest.$ac_ext
  9644. LIBS=$ac_check_lib_save_LIBS
  9645. fi
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9647. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9648. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9649. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9650. else
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9652. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9653. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. ac_check_lib_save_LIBS=$LIBS
  9657. LIBS="-lsvld $LIBS"
  9658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9659. /* end confdefs.h. */
  9660. /* Override any GCC internal prototype to avoid an error.
  9661. Use char because int might match the return type of a GCC
  9662. builtin and then its argument prototype would still apply. */
  9663. #ifdef __cplusplus
  9664. extern "C"
  9665. #endif
  9666. char dlopen ();
  9667. int
  9668. main ()
  9669. {
  9670. return dlopen ();
  9671. ;
  9672. return 0;
  9673. }
  9674. _ACEOF
  9675. if ac_fn_c_try_link "$LINENO"; then :
  9676. ac_cv_lib_svld_dlopen=yes
  9677. else
  9678. ac_cv_lib_svld_dlopen=no
  9679. fi
  9680. rm -f core conftest.err conftest.$ac_objext \
  9681. conftest$ac_exeext conftest.$ac_ext
  9682. LIBS=$ac_check_lib_save_LIBS
  9683. fi
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9685. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9686. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9687. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9688. else
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9690. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9691. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9692. $as_echo_n "(cached) " >&6
  9693. else
  9694. ac_check_lib_save_LIBS=$LIBS
  9695. LIBS="-ldld $LIBS"
  9696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9697. /* end confdefs.h. */
  9698. /* Override any GCC internal prototype to avoid an error.
  9699. Use char because int might match the return type of a GCC
  9700. builtin and then its argument prototype would still apply. */
  9701. #ifdef __cplusplus
  9702. extern "C"
  9703. #endif
  9704. char dld_link ();
  9705. int
  9706. main ()
  9707. {
  9708. return dld_link ();
  9709. ;
  9710. return 0;
  9711. }
  9712. _ACEOF
  9713. if ac_fn_c_try_link "$LINENO"; then :
  9714. ac_cv_lib_dld_dld_link=yes
  9715. else
  9716. ac_cv_lib_dld_dld_link=no
  9717. fi
  9718. rm -f core conftest.err conftest.$ac_objext \
  9719. conftest$ac_exeext conftest.$ac_ext
  9720. LIBS=$ac_check_lib_save_LIBS
  9721. fi
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9723. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9724. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9725. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9726. fi
  9727. fi
  9728. fi
  9729. fi
  9730. fi
  9731. fi
  9732. ;;
  9733. esac
  9734. if test "x$lt_cv_dlopen" != xno; then
  9735. enable_dlopen=yes
  9736. else
  9737. enable_dlopen=no
  9738. fi
  9739. case $lt_cv_dlopen in
  9740. dlopen)
  9741. save_CPPFLAGS="$CPPFLAGS"
  9742. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9743. save_LDFLAGS="$LDFLAGS"
  9744. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9745. save_LIBS="$LIBS"
  9746. LIBS="$lt_cv_dlopen_libs $LIBS"
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9748. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9749. if test "${lt_cv_dlopen_self+set}" = set; then :
  9750. $as_echo_n "(cached) " >&6
  9751. else
  9752. if test "$cross_compiling" = yes; then :
  9753. lt_cv_dlopen_self=cross
  9754. else
  9755. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9756. lt_status=$lt_dlunknown
  9757. cat > conftest.$ac_ext <<_LT_EOF
  9758. #line 11303 "configure"
  9759. #include "confdefs.h"
  9760. #if HAVE_DLFCN_H
  9761. #include <dlfcn.h>
  9762. #endif
  9763. #include <stdio.h>
  9764. #ifdef RTLD_GLOBAL
  9765. # define LT_DLGLOBAL RTLD_GLOBAL
  9766. #else
  9767. # ifdef DL_GLOBAL
  9768. # define LT_DLGLOBAL DL_GLOBAL
  9769. # else
  9770. # define LT_DLGLOBAL 0
  9771. # endif
  9772. #endif
  9773. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9774. find out it does not work in some platform. */
  9775. #ifndef LT_DLLAZY_OR_NOW
  9776. # ifdef RTLD_LAZY
  9777. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9778. # else
  9779. # ifdef DL_LAZY
  9780. # define LT_DLLAZY_OR_NOW DL_LAZY
  9781. # else
  9782. # ifdef RTLD_NOW
  9783. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9784. # else
  9785. # ifdef DL_NOW
  9786. # define LT_DLLAZY_OR_NOW DL_NOW
  9787. # else
  9788. # define LT_DLLAZY_OR_NOW 0
  9789. # endif
  9790. # endif
  9791. # endif
  9792. # endif
  9793. #endif
  9794. void fnord() { int i=42;}
  9795. int main ()
  9796. {
  9797. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9798. int status = $lt_dlunknown;
  9799. if (self)
  9800. {
  9801. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9802. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9803. /* dlclose (self); */
  9804. }
  9805. else
  9806. puts (dlerror ());
  9807. return status;
  9808. }
  9809. _LT_EOF
  9810. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9811. (eval $ac_link) 2>&5
  9812. ac_status=$?
  9813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9814. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9815. (./conftest; exit; ) >&5 2>/dev/null
  9816. lt_status=$?
  9817. case x$lt_status in
  9818. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9819. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9820. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9821. esac
  9822. else :
  9823. # compilation failed
  9824. lt_cv_dlopen_self=no
  9825. fi
  9826. fi
  9827. rm -fr conftest*
  9828. fi
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9830. $as_echo "$lt_cv_dlopen_self" >&6; }
  9831. if test "x$lt_cv_dlopen_self" = xyes; then
  9832. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9834. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9835. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9836. $as_echo_n "(cached) " >&6
  9837. else
  9838. if test "$cross_compiling" = yes; then :
  9839. lt_cv_dlopen_self_static=cross
  9840. else
  9841. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9842. lt_status=$lt_dlunknown
  9843. cat > conftest.$ac_ext <<_LT_EOF
  9844. #line 11399 "configure"
  9845. #include "confdefs.h"
  9846. #if HAVE_DLFCN_H
  9847. #include <dlfcn.h>
  9848. #endif
  9849. #include <stdio.h>
  9850. #ifdef RTLD_GLOBAL
  9851. # define LT_DLGLOBAL RTLD_GLOBAL
  9852. #else
  9853. # ifdef DL_GLOBAL
  9854. # define LT_DLGLOBAL DL_GLOBAL
  9855. # else
  9856. # define LT_DLGLOBAL 0
  9857. # endif
  9858. #endif
  9859. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9860. find out it does not work in some platform. */
  9861. #ifndef LT_DLLAZY_OR_NOW
  9862. # ifdef RTLD_LAZY
  9863. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9864. # else
  9865. # ifdef DL_LAZY
  9866. # define LT_DLLAZY_OR_NOW DL_LAZY
  9867. # else
  9868. # ifdef RTLD_NOW
  9869. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9870. # else
  9871. # ifdef DL_NOW
  9872. # define LT_DLLAZY_OR_NOW DL_NOW
  9873. # else
  9874. # define LT_DLLAZY_OR_NOW 0
  9875. # endif
  9876. # endif
  9877. # endif
  9878. # endif
  9879. #endif
  9880. void fnord() { int i=42;}
  9881. int main ()
  9882. {
  9883. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9884. int status = $lt_dlunknown;
  9885. if (self)
  9886. {
  9887. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9888. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9889. /* dlclose (self); */
  9890. }
  9891. else
  9892. puts (dlerror ());
  9893. return status;
  9894. }
  9895. _LT_EOF
  9896. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9897. (eval $ac_link) 2>&5
  9898. ac_status=$?
  9899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9900. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9901. (./conftest; exit; ) >&5 2>/dev/null
  9902. lt_status=$?
  9903. case x$lt_status in
  9904. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9905. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9906. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9907. esac
  9908. else :
  9909. # compilation failed
  9910. lt_cv_dlopen_self_static=no
  9911. fi
  9912. fi
  9913. rm -fr conftest*
  9914. fi
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9916. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9917. fi
  9918. CPPFLAGS="$save_CPPFLAGS"
  9919. LDFLAGS="$save_LDFLAGS"
  9920. LIBS="$save_LIBS"
  9921. ;;
  9922. esac
  9923. case $lt_cv_dlopen_self in
  9924. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9925. *) enable_dlopen_self=unknown ;;
  9926. esac
  9927. case $lt_cv_dlopen_self_static in
  9928. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9929. *) enable_dlopen_self_static=unknown ;;
  9930. esac
  9931. fi
  9932. striplib=
  9933. old_striplib=
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9935. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9936. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9937. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9938. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9940. $as_echo "yes" >&6; }
  9941. else
  9942. # FIXME - insert some real tests, host_os isn't really good enough
  9943. case $host_os in
  9944. darwin*)
  9945. if test -n "$STRIP" ; then
  9946. striplib="$STRIP -x"
  9947. old_striplib="$STRIP -S"
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9949. $as_echo "yes" >&6; }
  9950. else
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9952. $as_echo "no" >&6; }
  9953. fi
  9954. ;;
  9955. *)
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9957. $as_echo "no" >&6; }
  9958. ;;
  9959. esac
  9960. fi
  9961. # Report which library types will actually be built
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9963. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9965. $as_echo "$can_build_shared" >&6; }
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9967. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9968. test "$can_build_shared" = "no" && enable_shared=no
  9969. # On AIX, shared libraries and static libraries use the same namespace, and
  9970. # are all built from PIC.
  9971. case $host_os in
  9972. aix3*)
  9973. test "$enable_shared" = yes && enable_static=no
  9974. if test -n "$RANLIB"; then
  9975. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9976. postinstall_cmds='$RANLIB $lib'
  9977. fi
  9978. ;;
  9979. aix[4-9]*)
  9980. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9981. test "$enable_shared" = yes && enable_static=no
  9982. fi
  9983. ;;
  9984. esac
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9986. $as_echo "$enable_shared" >&6; }
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9988. $as_echo_n "checking whether to build static libraries... " >&6; }
  9989. # Make sure either enable_shared or enable_static is yes.
  9990. test "$enable_shared" = yes || enable_static=yes
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9992. $as_echo "$enable_static" >&6; }
  9993. fi
  9994. ac_ext=cpp
  9995. ac_cpp='$CXXCPP $CPPFLAGS'
  9996. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9997. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9998. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9999. CC="$lt_save_CC"
  10000. ac_ext=cpp
  10001. ac_cpp='$CXXCPP $CPPFLAGS'
  10002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10005. archive_cmds_need_lc_CXX=no
  10006. allow_undefined_flag_CXX=
  10007. always_export_symbols_CXX=no
  10008. archive_expsym_cmds_CXX=
  10009. compiler_needs_object_CXX=no
  10010. export_dynamic_flag_spec_CXX=
  10011. hardcode_direct_CXX=no
  10012. hardcode_direct_absolute_CXX=no
  10013. hardcode_libdir_flag_spec_CXX=
  10014. hardcode_libdir_flag_spec_ld_CXX=
  10015. hardcode_libdir_separator_CXX=
  10016. hardcode_minus_L_CXX=no
  10017. hardcode_shlibpath_var_CXX=unsupported
  10018. hardcode_automatic_CXX=no
  10019. inherit_rpath_CXX=no
  10020. module_cmds_CXX=
  10021. module_expsym_cmds_CXX=
  10022. link_all_deplibs_CXX=unknown
  10023. old_archive_cmds_CXX=$old_archive_cmds
  10024. no_undefined_flag_CXX=
  10025. whole_archive_flag_spec_CXX=
  10026. enable_shared_with_static_runtimes_CXX=no
  10027. # Source file extension for C++ test sources.
  10028. ac_ext=cpp
  10029. # Object file extension for compiled C++ test sources.
  10030. objext=o
  10031. objext_CXX=$objext
  10032. # No sense in running all these tests if we already determined that
  10033. # the CXX compiler isn't working. Some variables (like enable_shared)
  10034. # are currently assumed to apply to all compilers on this platform,
  10035. # and will be corrupted by setting them based on a non-working compiler.
  10036. if test "$_lt_caught_CXX_error" != yes; then
  10037. # Code to be used in simple compile tests
  10038. lt_simple_compile_test_code="int some_variable = 0;"
  10039. # Code to be used in simple link tests
  10040. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10041. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10042. # If no C compiler was specified, use CC.
  10043. LTCC=${LTCC-"$CC"}
  10044. # If no C compiler flags were specified, use CFLAGS.
  10045. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10046. # Allow CC to be a program name with arguments.
  10047. compiler=$CC
  10048. # save warnings/boilerplate of simple test code
  10049. ac_outfile=conftest.$ac_objext
  10050. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10051. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10052. _lt_compiler_boilerplate=`cat conftest.err`
  10053. $RM conftest*
  10054. ac_outfile=conftest.$ac_objext
  10055. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10056. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10057. _lt_linker_boilerplate=`cat conftest.err`
  10058. $RM -r conftest*
  10059. # Allow CC to be a program name with arguments.
  10060. lt_save_CC=$CC
  10061. lt_save_LD=$LD
  10062. lt_save_GCC=$GCC
  10063. GCC=$GXX
  10064. lt_save_with_gnu_ld=$with_gnu_ld
  10065. lt_save_path_LD=$lt_cv_path_LD
  10066. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10067. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10068. else
  10069. $as_unset lt_cv_prog_gnu_ld
  10070. fi
  10071. if test -n "${lt_cv_path_LDCXX+set}"; then
  10072. lt_cv_path_LD=$lt_cv_path_LDCXX
  10073. else
  10074. $as_unset lt_cv_path_LD
  10075. fi
  10076. test -z "${LDCXX+set}" || LD=$LDCXX
  10077. CC=${CXX-"c++"}
  10078. compiler=$CC
  10079. compiler_CXX=$CC
  10080. for cc_temp in $compiler""; do
  10081. case $cc_temp in
  10082. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10083. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10084. \-*) ;;
  10085. *) break;;
  10086. esac
  10087. done
  10088. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10089. if test -n "$compiler"; then
  10090. # We don't want -fno-exception when compiling C++ code, so set the
  10091. # no_builtin_flag separately
  10092. if test "$GXX" = yes; then
  10093. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10094. else
  10095. lt_prog_compiler_no_builtin_flag_CXX=
  10096. fi
  10097. if test "$GXX" = yes; then
  10098. # Set up default GNU C++ configuration
  10099. # Check whether --with-gnu-ld was given.
  10100. if test "${with_gnu_ld+set}" = set; then :
  10101. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10102. else
  10103. with_gnu_ld=no
  10104. fi
  10105. ac_prog=ld
  10106. if test "$GCC" = yes; then
  10107. # Check if gcc -print-prog-name=ld gives a path.
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10109. $as_echo_n "checking for ld used by $CC... " >&6; }
  10110. case $host in
  10111. *-*-mingw*)
  10112. # gcc leaves a trailing carriage return which upsets mingw
  10113. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10114. *)
  10115. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10116. esac
  10117. case $ac_prog in
  10118. # Accept absolute paths.
  10119. [\\/]* | ?:[\\/]*)
  10120. re_direlt='/[^/][^/]*/\.\./'
  10121. # Canonicalize the pathname of ld
  10122. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10123. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10124. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10125. done
  10126. test -z "$LD" && LD="$ac_prog"
  10127. ;;
  10128. "")
  10129. # If it fails, then pretend we aren't using GCC.
  10130. ac_prog=ld
  10131. ;;
  10132. *)
  10133. # If it is relative, then search for the first ld in PATH.
  10134. with_gnu_ld=unknown
  10135. ;;
  10136. esac
  10137. elif test "$with_gnu_ld" = yes; then
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10139. $as_echo_n "checking for GNU ld... " >&6; }
  10140. else
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10142. $as_echo_n "checking for non-GNU ld... " >&6; }
  10143. fi
  10144. if test "${lt_cv_path_LD+set}" = set; then :
  10145. $as_echo_n "(cached) " >&6
  10146. else
  10147. if test -z "$LD"; then
  10148. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10149. for ac_dir in $PATH; do
  10150. IFS="$lt_save_ifs"
  10151. test -z "$ac_dir" && ac_dir=.
  10152. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10153. lt_cv_path_LD="$ac_dir/$ac_prog"
  10154. # Check to see if the program is GNU ld. I'd rather use --version,
  10155. # but apparently some variants of GNU ld only accept -v.
  10156. # Break only if it was the GNU/non-GNU ld that we prefer.
  10157. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10158. *GNU* | *'with BFD'*)
  10159. test "$with_gnu_ld" != no && break
  10160. ;;
  10161. *)
  10162. test "$with_gnu_ld" != yes && break
  10163. ;;
  10164. esac
  10165. fi
  10166. done
  10167. IFS="$lt_save_ifs"
  10168. else
  10169. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10170. fi
  10171. fi
  10172. LD="$lt_cv_path_LD"
  10173. if test -n "$LD"; then
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10175. $as_echo "$LD" >&6; }
  10176. else
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10178. $as_echo "no" >&6; }
  10179. fi
  10180. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10182. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10183. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10184. $as_echo_n "(cached) " >&6
  10185. else
  10186. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10187. case `$LD -v 2>&1 </dev/null` in
  10188. *GNU* | *'with BFD'*)
  10189. lt_cv_prog_gnu_ld=yes
  10190. ;;
  10191. *)
  10192. lt_cv_prog_gnu_ld=no
  10193. ;;
  10194. esac
  10195. fi
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10197. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10198. with_gnu_ld=$lt_cv_prog_gnu_ld
  10199. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10200. # archiving commands below assume that GNU ld is being used.
  10201. if test "$with_gnu_ld" = yes; then
  10202. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10203. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10204. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10205. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10206. # If archive_cmds runs LD, not CC, wlarc should be empty
  10207. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10208. # investigate it a little bit more. (MM)
  10209. wlarc='${wl}'
  10210. # ancient GNU ld didn't support --whole-archive et. al.
  10211. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10212. $GREP 'no-whole-archive' > /dev/null; then
  10213. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10214. else
  10215. whole_archive_flag_spec_CXX=
  10216. fi
  10217. else
  10218. with_gnu_ld=no
  10219. wlarc=
  10220. # A generic and very simple default shared library creation
  10221. # command for GNU C++ for the case where it uses the native
  10222. # linker, instead of GNU ld. If possible, this setting should
  10223. # overridden to take advantage of the native linker features on
  10224. # the platform it is being used on.
  10225. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10226. fi
  10227. # Commands to make compiler produce verbose output that lists
  10228. # what "hidden" libraries, object files and flags are used when
  10229. # linking a shared library.
  10230. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10231. else
  10232. GXX=no
  10233. with_gnu_ld=no
  10234. wlarc=
  10235. fi
  10236. # PORTME: fill in a description of your system's C++ link characteristics
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10238. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10239. ld_shlibs_CXX=yes
  10240. case $host_os in
  10241. aix3*)
  10242. # FIXME: insert proper C++ library support
  10243. ld_shlibs_CXX=no
  10244. ;;
  10245. aix[4-9]*)
  10246. if test "$host_cpu" = ia64; then
  10247. # On IA64, the linker does run time linking by default, so we don't
  10248. # have to do anything special.
  10249. aix_use_runtimelinking=no
  10250. exp_sym_flag='-Bexport'
  10251. no_entry_flag=""
  10252. else
  10253. aix_use_runtimelinking=no
  10254. # Test if we are trying to use run time linking or normal
  10255. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10256. # need to do runtime linking.
  10257. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10258. for ld_flag in $LDFLAGS; do
  10259. case $ld_flag in
  10260. *-brtl*)
  10261. aix_use_runtimelinking=yes
  10262. break
  10263. ;;
  10264. esac
  10265. done
  10266. ;;
  10267. esac
  10268. exp_sym_flag='-bexport'
  10269. no_entry_flag='-bnoentry'
  10270. fi
  10271. # When large executables or shared objects are built, AIX ld can
  10272. # have problems creating the table of contents. If linking a library
  10273. # or program results in "error TOC overflow" add -mminimal-toc to
  10274. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10275. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10276. archive_cmds_CXX=''
  10277. hardcode_direct_CXX=yes
  10278. hardcode_direct_absolute_CXX=yes
  10279. hardcode_libdir_separator_CXX=':'
  10280. link_all_deplibs_CXX=yes
  10281. file_list_spec_CXX='${wl}-f,'
  10282. if test "$GXX" = yes; then
  10283. case $host_os in aix4.[012]|aix4.[012].*)
  10284. # We only want to do this on AIX 4.2 and lower, the check
  10285. # below for broken collect2 doesn't work under 4.3+
  10286. collect2name=`${CC} -print-prog-name=collect2`
  10287. if test -f "$collect2name" &&
  10288. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10289. then
  10290. # We have reworked collect2
  10291. :
  10292. else
  10293. # We have old collect2
  10294. hardcode_direct_CXX=unsupported
  10295. # It fails to find uninstalled libraries when the uninstalled
  10296. # path is not listed in the libpath. Setting hardcode_minus_L
  10297. # to unsupported forces relinking
  10298. hardcode_minus_L_CXX=yes
  10299. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10300. hardcode_libdir_separator_CXX=
  10301. fi
  10302. esac
  10303. shared_flag='-shared'
  10304. if test "$aix_use_runtimelinking" = yes; then
  10305. shared_flag="$shared_flag "'${wl}-G'
  10306. fi
  10307. else
  10308. # not using gcc
  10309. if test "$host_cpu" = ia64; then
  10310. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10311. # chokes on -Wl,-G. The following line is correct:
  10312. shared_flag='-G'
  10313. else
  10314. if test "$aix_use_runtimelinking" = yes; then
  10315. shared_flag='${wl}-G'
  10316. else
  10317. shared_flag='${wl}-bM:SRE'
  10318. fi
  10319. fi
  10320. fi
  10321. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10322. # It seems that -bexpall does not export symbols beginning with
  10323. # underscore (_), so it is better to generate a list of symbols to
  10324. # export.
  10325. always_export_symbols_CXX=yes
  10326. if test "$aix_use_runtimelinking" = yes; then
  10327. # Warning - without using the other runtime loading flags (-brtl),
  10328. # -berok will link without error, but may produce a broken library.
  10329. allow_undefined_flag_CXX='-berok'
  10330. # Determine the default libpath from the value encoded in an empty
  10331. # executable.
  10332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10333. /* end confdefs.h. */
  10334. int
  10335. main ()
  10336. {
  10337. ;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. if ac_fn_cxx_try_link "$LINENO"; then :
  10342. lt_aix_libpath_sed='
  10343. /Import File Strings/,/^$/ {
  10344. /^0/ {
  10345. s/^0 *\(.*\)$/\1/
  10346. p
  10347. }
  10348. }'
  10349. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10350. # Check for a 64-bit object if we didn't find anything.
  10351. if test -z "$aix_libpath"; then
  10352. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10353. fi
  10354. fi
  10355. rm -f core conftest.err conftest.$ac_objext \
  10356. conftest$ac_exeext conftest.$ac_ext
  10357. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10358. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10359. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10360. else
  10361. if test "$host_cpu" = ia64; then
  10362. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10363. allow_undefined_flag_CXX="-z nodefs"
  10364. 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"
  10365. else
  10366. # Determine the default libpath from the value encoded in an
  10367. # empty executable.
  10368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10369. /* end confdefs.h. */
  10370. int
  10371. main ()
  10372. {
  10373. ;
  10374. return 0;
  10375. }
  10376. _ACEOF
  10377. if ac_fn_cxx_try_link "$LINENO"; then :
  10378. lt_aix_libpath_sed='
  10379. /Import File Strings/,/^$/ {
  10380. /^0/ {
  10381. s/^0 *\(.*\)$/\1/
  10382. p
  10383. }
  10384. }'
  10385. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10386. # Check for a 64-bit object if we didn't find anything.
  10387. if test -z "$aix_libpath"; then
  10388. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10389. fi
  10390. fi
  10391. rm -f core conftest.err conftest.$ac_objext \
  10392. conftest$ac_exeext conftest.$ac_ext
  10393. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10394. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10395. # Warning - without using the other run time loading flags,
  10396. # -berok will link without error, but may produce a broken library.
  10397. no_undefined_flag_CXX=' ${wl}-bernotok'
  10398. allow_undefined_flag_CXX=' ${wl}-berok'
  10399. # Exported symbols can be pulled into shared objects from archives
  10400. whole_archive_flag_spec_CXX='$convenience'
  10401. archive_cmds_need_lc_CXX=yes
  10402. # This is similar to how AIX traditionally builds its shared
  10403. # libraries.
  10404. 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'
  10405. fi
  10406. fi
  10407. ;;
  10408. beos*)
  10409. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10410. allow_undefined_flag_CXX=unsupported
  10411. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10412. # support --undefined. This deserves some investigation. FIXME
  10413. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10414. else
  10415. ld_shlibs_CXX=no
  10416. fi
  10417. ;;
  10418. chorus*)
  10419. case $cc_basename in
  10420. *)
  10421. # FIXME: insert proper C++ library support
  10422. ld_shlibs_CXX=no
  10423. ;;
  10424. esac
  10425. ;;
  10426. cygwin* | mingw* | pw32* | cegcc*)
  10427. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10428. # as there is no search path for DLLs.
  10429. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10430. allow_undefined_flag_CXX=unsupported
  10431. always_export_symbols_CXX=no
  10432. enable_shared_with_static_runtimes_CXX=yes
  10433. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10434. 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'
  10435. # If the export-symbols file already is a .def file (1st line
  10436. # is EXPORTS), use it as is; otherwise, prepend...
  10437. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10438. cp $export_symbols $output_objdir/$soname.def;
  10439. else
  10440. echo EXPORTS > $output_objdir/$soname.def;
  10441. cat $export_symbols >> $output_objdir/$soname.def;
  10442. fi~
  10443. $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'
  10444. else
  10445. ld_shlibs_CXX=no
  10446. fi
  10447. ;;
  10448. darwin* | rhapsody*)
  10449. archive_cmds_need_lc_CXX=no
  10450. hardcode_direct_CXX=no
  10451. hardcode_automatic_CXX=yes
  10452. hardcode_shlibpath_var_CXX=unsupported
  10453. whole_archive_flag_spec_CXX=''
  10454. link_all_deplibs_CXX=yes
  10455. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10456. case $cc_basename in
  10457. ifort*) _lt_dar_can_shared=yes ;;
  10458. *) _lt_dar_can_shared=$GCC ;;
  10459. esac
  10460. if test "$_lt_dar_can_shared" = "yes"; then
  10461. output_verbose_link_cmd=echo
  10462. 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}"
  10463. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10464. 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}"
  10465. 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}"
  10466. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10467. 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}"
  10468. 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}"
  10469. fi
  10470. else
  10471. ld_shlibs_CXX=no
  10472. fi
  10473. ;;
  10474. dgux*)
  10475. case $cc_basename in
  10476. ec++*)
  10477. # FIXME: insert proper C++ library support
  10478. ld_shlibs_CXX=no
  10479. ;;
  10480. ghcx*)
  10481. # Green Hills C++ Compiler
  10482. # FIXME: insert proper C++ library support
  10483. ld_shlibs_CXX=no
  10484. ;;
  10485. *)
  10486. # FIXME: insert proper C++ library support
  10487. ld_shlibs_CXX=no
  10488. ;;
  10489. esac
  10490. ;;
  10491. freebsd[12]*)
  10492. # C++ shared libraries reported to be fairly broken before
  10493. # switch to ELF
  10494. ld_shlibs_CXX=no
  10495. ;;
  10496. freebsd-elf*)
  10497. archive_cmds_need_lc_CXX=no
  10498. ;;
  10499. freebsd* | dragonfly*)
  10500. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10501. # conventions
  10502. ld_shlibs_CXX=yes
  10503. ;;
  10504. gnu*)
  10505. ;;
  10506. hpux9*)
  10507. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10508. hardcode_libdir_separator_CXX=:
  10509. export_dynamic_flag_spec_CXX='${wl}-E'
  10510. hardcode_direct_CXX=yes
  10511. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10512. # but as the default
  10513. # location of the library.
  10514. case $cc_basename in
  10515. CC*)
  10516. # FIXME: insert proper C++ library support
  10517. ld_shlibs_CXX=no
  10518. ;;
  10519. aCC*)
  10520. 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'
  10521. # Commands to make compiler produce verbose output that lists
  10522. # what "hidden" libraries, object files and flags are used when
  10523. # linking a shared library.
  10524. #
  10525. # There doesn't appear to be a way to prevent this compiler from
  10526. # explicitly linking system object files so we need to strip them
  10527. # from the output so that they don't get included in the library
  10528. # dependencies.
  10529. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10530. ;;
  10531. *)
  10532. if test "$GXX" = yes; then
  10533. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10534. else
  10535. # FIXME: insert proper C++ library support
  10536. ld_shlibs_CXX=no
  10537. fi
  10538. ;;
  10539. esac
  10540. ;;
  10541. hpux10*|hpux11*)
  10542. if test $with_gnu_ld = no; then
  10543. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10544. hardcode_libdir_separator_CXX=:
  10545. case $host_cpu in
  10546. hppa*64*|ia64*)
  10547. ;;
  10548. *)
  10549. export_dynamic_flag_spec_CXX='${wl}-E'
  10550. ;;
  10551. esac
  10552. fi
  10553. case $host_cpu in
  10554. hppa*64*|ia64*)
  10555. hardcode_direct_CXX=no
  10556. hardcode_shlibpath_var_CXX=no
  10557. ;;
  10558. *)
  10559. hardcode_direct_CXX=yes
  10560. hardcode_direct_absolute_CXX=yes
  10561. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10562. # but as the default
  10563. # location of the library.
  10564. ;;
  10565. esac
  10566. case $cc_basename in
  10567. CC*)
  10568. # FIXME: insert proper C++ library support
  10569. ld_shlibs_CXX=no
  10570. ;;
  10571. aCC*)
  10572. case $host_cpu in
  10573. hppa*64*)
  10574. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10575. ;;
  10576. ia64*)
  10577. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10578. ;;
  10579. *)
  10580. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10581. ;;
  10582. esac
  10583. # Commands to make compiler produce verbose output that lists
  10584. # what "hidden" libraries, object files and flags are used when
  10585. # linking a shared library.
  10586. #
  10587. # There doesn't appear to be a way to prevent this compiler from
  10588. # explicitly linking system object files so we need to strip them
  10589. # from the output so that they don't get included in the library
  10590. # dependencies.
  10591. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10592. ;;
  10593. *)
  10594. if test "$GXX" = yes; then
  10595. if test $with_gnu_ld = no; then
  10596. case $host_cpu in
  10597. hppa*64*)
  10598. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10599. ;;
  10600. ia64*)
  10601. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10602. ;;
  10603. *)
  10604. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10605. ;;
  10606. esac
  10607. fi
  10608. else
  10609. # FIXME: insert proper C++ library support
  10610. ld_shlibs_CXX=no
  10611. fi
  10612. ;;
  10613. esac
  10614. ;;
  10615. interix[3-9]*)
  10616. hardcode_direct_CXX=no
  10617. hardcode_shlibpath_var_CXX=no
  10618. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10619. export_dynamic_flag_spec_CXX='${wl}-E'
  10620. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10621. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10622. # default) and relocated if they conflict, which is a slow very memory
  10623. # consuming and fragmenting process. To avoid this, we pick a random,
  10624. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10625. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10626. 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'
  10627. 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'
  10628. ;;
  10629. irix5* | irix6*)
  10630. case $cc_basename in
  10631. CC*)
  10632. # SGI C++
  10633. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10634. # Archives containing C++ object files must be created using
  10635. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10636. # necessary to make sure instantiated templates are included
  10637. # in the archive.
  10638. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10639. ;;
  10640. *)
  10641. if test "$GXX" = yes; then
  10642. if test "$with_gnu_ld" = no; then
  10643. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10644. else
  10645. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10646. fi
  10647. fi
  10648. link_all_deplibs_CXX=yes
  10649. ;;
  10650. esac
  10651. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10652. hardcode_libdir_separator_CXX=:
  10653. inherit_rpath_CXX=yes
  10654. ;;
  10655. linux* | k*bsd*-gnu)
  10656. case $cc_basename in
  10657. KCC*)
  10658. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10659. # KCC will only create a shared library if the output file
  10660. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10661. # to its proper name (with version) after linking.
  10662. 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'
  10663. 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'
  10664. # Commands to make compiler produce verbose output that lists
  10665. # what "hidden" libraries, object files and flags are used when
  10666. # linking a shared library.
  10667. #
  10668. # There doesn't appear to be a way to prevent this compiler from
  10669. # explicitly linking system object files so we need to strip them
  10670. # from the output so that they don't get included in the library
  10671. # dependencies.
  10672. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10673. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10674. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10675. # Archives containing C++ object files must be created using
  10676. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10677. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10678. ;;
  10679. icpc* | ecpc* )
  10680. # Intel C++
  10681. with_gnu_ld=yes
  10682. # version 8.0 and above of icpc choke on multiply defined symbols
  10683. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10684. # earlier do not add the objects themselves.
  10685. case `$CC -V 2>&1` in
  10686. *"Version 7."*)
  10687. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10688. 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'
  10689. ;;
  10690. *) # Version 8.0 or newer
  10691. tmp_idyn=
  10692. case $host_cpu in
  10693. ia64*) tmp_idyn=' -i_dynamic';;
  10694. esac
  10695. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10696. 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'
  10697. ;;
  10698. esac
  10699. archive_cmds_need_lc_CXX=no
  10700. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10701. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10702. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10703. ;;
  10704. pgCC* | pgcpp*)
  10705. # Portland Group C++ compiler
  10706. case `$CC -V` in
  10707. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10708. prelink_cmds_CXX='tpldir=Template.dir~
  10709. rm -rf $tpldir~
  10710. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10711. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10712. old_archive_cmds_CXX='tpldir=Template.dir~
  10713. rm -rf $tpldir~
  10714. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10715. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10716. $RANLIB $oldlib'
  10717. archive_cmds_CXX='tpldir=Template.dir~
  10718. rm -rf $tpldir~
  10719. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10720. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10721. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10722. rm -rf $tpldir~
  10723. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10724. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10725. ;;
  10726. *) # Version 6 will use weak symbols
  10727. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10728. 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'
  10729. ;;
  10730. esac
  10731. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10732. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10733. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10734. ;;
  10735. cxx*)
  10736. # Compaq C++
  10737. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10738. 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'
  10739. runpath_var=LD_RUN_PATH
  10740. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10741. hardcode_libdir_separator_CXX=:
  10742. # Commands to make compiler produce verbose output that lists
  10743. # what "hidden" libraries, object files and flags are used when
  10744. # linking a shared library.
  10745. #
  10746. # There doesn't appear to be a way to prevent this compiler from
  10747. # explicitly linking system object files so we need to strip them
  10748. # from the output so that they don't get included in the library
  10749. # dependencies.
  10750. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10751. ;;
  10752. xl*)
  10753. # IBM XL 8.0 on PPC, with GNU ld
  10754. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10755. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10756. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10757. if test "x$supports_anon_versioning" = xyes; then
  10758. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10759. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10760. echo "local: *; };" >> $output_objdir/$libname.ver~
  10761. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10762. fi
  10763. ;;
  10764. *)
  10765. case `$CC -V 2>&1 | sed 5q` in
  10766. *Sun\ C*)
  10767. # Sun C++ 5.9
  10768. no_undefined_flag_CXX=' -zdefs'
  10769. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10770. 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'
  10771. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10772. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10773. compiler_needs_object_CXX=yes
  10774. # Not sure whether something based on
  10775. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10776. # would be better.
  10777. output_verbose_link_cmd='echo'
  10778. # Archives containing C++ object files must be created using
  10779. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10780. # necessary to make sure instantiated templates are included
  10781. # in the archive.
  10782. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10783. ;;
  10784. esac
  10785. ;;
  10786. esac
  10787. ;;
  10788. lynxos*)
  10789. # FIXME: insert proper C++ library support
  10790. ld_shlibs_CXX=no
  10791. ;;
  10792. m88k*)
  10793. # FIXME: insert proper C++ library support
  10794. ld_shlibs_CXX=no
  10795. ;;
  10796. mvs*)
  10797. case $cc_basename in
  10798. cxx*)
  10799. # FIXME: insert proper C++ library support
  10800. ld_shlibs_CXX=no
  10801. ;;
  10802. *)
  10803. # FIXME: insert proper C++ library support
  10804. ld_shlibs_CXX=no
  10805. ;;
  10806. esac
  10807. ;;
  10808. netbsd*)
  10809. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10810. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10811. wlarc=
  10812. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10813. hardcode_direct_CXX=yes
  10814. hardcode_shlibpath_var_CXX=no
  10815. fi
  10816. # Workaround some broken pre-1.5 toolchains
  10817. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10818. ;;
  10819. *nto* | *qnx*)
  10820. ld_shlibs_CXX=yes
  10821. ;;
  10822. openbsd2*)
  10823. # C++ shared libraries are fairly broken
  10824. ld_shlibs_CXX=no
  10825. ;;
  10826. openbsd*)
  10827. if test -f /usr/libexec/ld.so; then
  10828. hardcode_direct_CXX=yes
  10829. hardcode_shlibpath_var_CXX=no
  10830. hardcode_direct_absolute_CXX=yes
  10831. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10832. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10833. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10834. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10835. export_dynamic_flag_spec_CXX='${wl}-E'
  10836. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10837. fi
  10838. output_verbose_link_cmd=echo
  10839. else
  10840. ld_shlibs_CXX=no
  10841. fi
  10842. ;;
  10843. osf3* | osf4* | osf5*)
  10844. case $cc_basename in
  10845. KCC*)
  10846. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10847. # KCC will only create a shared library if the output file
  10848. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10849. # to its proper name (with version) after linking.
  10850. 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'
  10851. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10852. hardcode_libdir_separator_CXX=:
  10853. # Archives containing C++ object files must be created using
  10854. # the KAI C++ compiler.
  10855. case $host in
  10856. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10857. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10858. esac
  10859. ;;
  10860. RCC*)
  10861. # Rational C++ 2.4.1
  10862. # FIXME: insert proper C++ library support
  10863. ld_shlibs_CXX=no
  10864. ;;
  10865. cxx*)
  10866. case $host in
  10867. osf3*)
  10868. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10869. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10870. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10871. ;;
  10872. *)
  10873. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10874. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10875. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10876. echo "-hidden">> $lib.exp~
  10877. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10878. $RM $lib.exp'
  10879. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10880. ;;
  10881. esac
  10882. hardcode_libdir_separator_CXX=:
  10883. # Commands to make compiler produce verbose output that lists
  10884. # what "hidden" libraries, object files and flags are used when
  10885. # linking a shared library.
  10886. #
  10887. # There doesn't appear to be a way to prevent this compiler from
  10888. # explicitly linking system object files so we need to strip them
  10889. # from the output so that they don't get included in the library
  10890. # dependencies.
  10891. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10892. ;;
  10893. *)
  10894. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10895. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10896. case $host in
  10897. osf3*)
  10898. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10899. ;;
  10900. *)
  10901. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10902. ;;
  10903. esac
  10904. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10905. hardcode_libdir_separator_CXX=:
  10906. # Commands to make compiler produce verbose output that lists
  10907. # what "hidden" libraries, object files and flags are used when
  10908. # linking a shared library.
  10909. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10910. else
  10911. # FIXME: insert proper C++ library support
  10912. ld_shlibs_CXX=no
  10913. fi
  10914. ;;
  10915. esac
  10916. ;;
  10917. psos*)
  10918. # FIXME: insert proper C++ library support
  10919. ld_shlibs_CXX=no
  10920. ;;
  10921. sunos4*)
  10922. case $cc_basename in
  10923. CC*)
  10924. # Sun C++ 4.x
  10925. # FIXME: insert proper C++ library support
  10926. ld_shlibs_CXX=no
  10927. ;;
  10928. lcc*)
  10929. # Lucid
  10930. # FIXME: insert proper C++ library support
  10931. ld_shlibs_CXX=no
  10932. ;;
  10933. *)
  10934. # FIXME: insert proper C++ library support
  10935. ld_shlibs_CXX=no
  10936. ;;
  10937. esac
  10938. ;;
  10939. solaris*)
  10940. case $cc_basename in
  10941. CC*)
  10942. # Sun C++ 4.2, 5.x and Centerline C++
  10943. archive_cmds_need_lc_CXX=yes
  10944. no_undefined_flag_CXX=' -zdefs'
  10945. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10946. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10947. $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'
  10948. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10949. hardcode_shlibpath_var_CXX=no
  10950. case $host_os in
  10951. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10952. *)
  10953. # The compiler driver will combine and reorder linker options,
  10954. # but understands `-z linker_flag'.
  10955. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10956. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10957. ;;
  10958. esac
  10959. link_all_deplibs_CXX=yes
  10960. output_verbose_link_cmd='echo'
  10961. # Archives containing C++ object files must be created using
  10962. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10963. # necessary to make sure instantiated templates are included
  10964. # in the archive.
  10965. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10966. ;;
  10967. gcx*)
  10968. # Green Hills C++ Compiler
  10969. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10970. # The C++ compiler must be used to create the archive.
  10971. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10972. ;;
  10973. *)
  10974. # GNU C++ compiler with Solaris linker
  10975. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10976. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10977. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10978. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10979. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10980. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10981. # Commands to make compiler produce verbose output that lists
  10982. # what "hidden" libraries, object files and flags are used when
  10983. # linking a shared library.
  10984. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10985. else
  10986. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10987. # platform.
  10988. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10989. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10990. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10991. # Commands to make compiler produce verbose output that lists
  10992. # what "hidden" libraries, object files and flags are used when
  10993. # linking a shared library.
  10994. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10995. fi
  10996. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10997. case $host_os in
  10998. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10999. *)
  11000. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11001. ;;
  11002. esac
  11003. fi
  11004. ;;
  11005. esac
  11006. ;;
  11007. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11008. no_undefined_flag_CXX='${wl}-z,text'
  11009. archive_cmds_need_lc_CXX=no
  11010. hardcode_shlibpath_var_CXX=no
  11011. runpath_var='LD_RUN_PATH'
  11012. case $cc_basename in
  11013. CC*)
  11014. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11015. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11016. ;;
  11017. *)
  11018. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11019. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11020. ;;
  11021. esac
  11022. ;;
  11023. sysv5* | sco3.2v5* | sco5v6*)
  11024. # Note: We can NOT use -z defs as we might desire, because we do not
  11025. # link with -lc, and that would cause any symbols used from libc to
  11026. # always be unresolved, which means just about no library would
  11027. # ever link correctly. If we're not using GNU ld we use -z text
  11028. # though, which does catch some bad symbols but isn't as heavy-handed
  11029. # as -z defs.
  11030. no_undefined_flag_CXX='${wl}-z,text'
  11031. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11032. archive_cmds_need_lc_CXX=no
  11033. hardcode_shlibpath_var_CXX=no
  11034. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11035. hardcode_libdir_separator_CXX=':'
  11036. link_all_deplibs_CXX=yes
  11037. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11038. runpath_var='LD_RUN_PATH'
  11039. case $cc_basename in
  11040. CC*)
  11041. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11042. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11043. ;;
  11044. *)
  11045. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11046. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11047. ;;
  11048. esac
  11049. ;;
  11050. tandem*)
  11051. case $cc_basename in
  11052. NCC*)
  11053. # NonStop-UX NCC 3.20
  11054. # FIXME: insert proper C++ library support
  11055. ld_shlibs_CXX=no
  11056. ;;
  11057. *)
  11058. # FIXME: insert proper C++ library support
  11059. ld_shlibs_CXX=no
  11060. ;;
  11061. esac
  11062. ;;
  11063. vxworks*)
  11064. # FIXME: insert proper C++ library support
  11065. ld_shlibs_CXX=no
  11066. ;;
  11067. *)
  11068. # FIXME: insert proper C++ library support
  11069. ld_shlibs_CXX=no
  11070. ;;
  11071. esac
  11072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11073. $as_echo "$ld_shlibs_CXX" >&6; }
  11074. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11075. GCC_CXX="$GXX"
  11076. LD_CXX="$LD"
  11077. ## CAVEAT EMPTOR:
  11078. ## There is no encapsulation within the following macros, do not change
  11079. ## the running order or otherwise move them around unless you know exactly
  11080. ## what you are doing...
  11081. # Dependencies to place before and after the object being linked:
  11082. predep_objects_CXX=
  11083. postdep_objects_CXX=
  11084. predeps_CXX=
  11085. postdeps_CXX=
  11086. compiler_lib_search_path_CXX=
  11087. cat > conftest.$ac_ext <<_LT_EOF
  11088. class Foo
  11089. {
  11090. public:
  11091. Foo (void) { a = 0; }
  11092. private:
  11093. int a;
  11094. };
  11095. _LT_EOF
  11096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11097. (eval $ac_compile) 2>&5
  11098. ac_status=$?
  11099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11100. test $ac_status = 0; }; then
  11101. # Parse the compiler output and extract the necessary
  11102. # objects, libraries and library flags.
  11103. # Sentinel used to keep track of whether or not we are before
  11104. # the conftest object file.
  11105. pre_test_object_deps_done=no
  11106. for p in `eval "$output_verbose_link_cmd"`; do
  11107. case $p in
  11108. -L* | -R* | -l*)
  11109. # Some compilers place space between "-{L,R}" and the path.
  11110. # Remove the space.
  11111. if test $p = "-L" ||
  11112. test $p = "-R"; then
  11113. prev=$p
  11114. continue
  11115. else
  11116. prev=
  11117. fi
  11118. if test "$pre_test_object_deps_done" = no; then
  11119. case $p in
  11120. -L* | -R*)
  11121. # Internal compiler library paths should come after those
  11122. # provided the user. The postdeps already come after the
  11123. # user supplied libs so there is no need to process them.
  11124. if test -z "$compiler_lib_search_path_CXX"; then
  11125. compiler_lib_search_path_CXX="${prev}${p}"
  11126. else
  11127. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11128. fi
  11129. ;;
  11130. # The "-l" case would never come before the object being
  11131. # linked, so don't bother handling this case.
  11132. esac
  11133. else
  11134. if test -z "$postdeps_CXX"; then
  11135. postdeps_CXX="${prev}${p}"
  11136. else
  11137. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11138. fi
  11139. fi
  11140. ;;
  11141. *.$objext)
  11142. # This assumes that the test object file only shows up
  11143. # once in the compiler output.
  11144. if test "$p" = "conftest.$objext"; then
  11145. pre_test_object_deps_done=yes
  11146. continue
  11147. fi
  11148. if test "$pre_test_object_deps_done" = no; then
  11149. if test -z "$predep_objects_CXX"; then
  11150. predep_objects_CXX="$p"
  11151. else
  11152. predep_objects_CXX="$predep_objects_CXX $p"
  11153. fi
  11154. else
  11155. if test -z "$postdep_objects_CXX"; then
  11156. postdep_objects_CXX="$p"
  11157. else
  11158. postdep_objects_CXX="$postdep_objects_CXX $p"
  11159. fi
  11160. fi
  11161. ;;
  11162. *) ;; # Ignore the rest.
  11163. esac
  11164. done
  11165. # Clean up.
  11166. rm -f a.out a.exe
  11167. else
  11168. echo "libtool.m4: error: problem compiling CXX test program"
  11169. fi
  11170. $RM -f confest.$objext
  11171. # PORTME: override above test on systems where it is broken
  11172. case $host_os in
  11173. interix[3-9]*)
  11174. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11175. # hack all around it, let's just trust "g++" to DTRT.
  11176. predep_objects_CXX=
  11177. postdep_objects_CXX=
  11178. postdeps_CXX=
  11179. ;;
  11180. linux*)
  11181. case `$CC -V 2>&1 | sed 5q` in
  11182. *Sun\ C*)
  11183. # Sun C++ 5.9
  11184. # The more standards-conforming stlport4 library is
  11185. # incompatible with the Cstd library. Avoid specifying
  11186. # it if it's in CXXFLAGS. Ignore libCrun as
  11187. # -library=stlport4 depends on it.
  11188. case " $CXX $CXXFLAGS " in
  11189. *" -library=stlport4 "*)
  11190. solaris_use_stlport4=yes
  11191. ;;
  11192. esac
  11193. if test "$solaris_use_stlport4" != yes; then
  11194. postdeps_CXX='-library=Cstd -library=Crun'
  11195. fi
  11196. ;;
  11197. esac
  11198. ;;
  11199. solaris*)
  11200. case $cc_basename in
  11201. CC*)
  11202. # The more standards-conforming stlport4 library is
  11203. # incompatible with the Cstd library. Avoid specifying
  11204. # it if it's in CXXFLAGS. Ignore libCrun as
  11205. # -library=stlport4 depends on it.
  11206. case " $CXX $CXXFLAGS " in
  11207. *" -library=stlport4 "*)
  11208. solaris_use_stlport4=yes
  11209. ;;
  11210. esac
  11211. # Adding this requires a known-good setup of shared libraries for
  11212. # Sun compiler versions before 5.6, else PIC objects from an old
  11213. # archive will be linked into the output, leading to subtle bugs.
  11214. if test "$solaris_use_stlport4" != yes; then
  11215. postdeps_CXX='-library=Cstd -library=Crun'
  11216. fi
  11217. ;;
  11218. esac
  11219. ;;
  11220. esac
  11221. case " $postdeps_CXX " in
  11222. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11223. esac
  11224. compiler_lib_search_dirs_CXX=
  11225. if test -n "${compiler_lib_search_path_CXX}"; then
  11226. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11227. fi
  11228. lt_prog_compiler_wl_CXX=
  11229. lt_prog_compiler_pic_CXX=
  11230. lt_prog_compiler_static_CXX=
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11232. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11233. # C++ specific cases for pic, static, wl, etc.
  11234. if test "$GXX" = yes; then
  11235. lt_prog_compiler_wl_CXX='-Wl,'
  11236. lt_prog_compiler_static_CXX='-static'
  11237. case $host_os in
  11238. aix*)
  11239. # All AIX code is PIC.
  11240. if test "$host_cpu" = ia64; then
  11241. # AIX 5 now supports IA64 processor
  11242. lt_prog_compiler_static_CXX='-Bstatic'
  11243. fi
  11244. ;;
  11245. amigaos*)
  11246. case $host_cpu in
  11247. powerpc)
  11248. # see comment about AmigaOS4 .so support
  11249. lt_prog_compiler_pic_CXX='-fPIC'
  11250. ;;
  11251. m68k)
  11252. # FIXME: we need at least 68020 code to build shared libraries, but
  11253. # adding the `-m68020' flag to GCC prevents building anything better,
  11254. # like `-m68040'.
  11255. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11256. ;;
  11257. esac
  11258. ;;
  11259. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11260. # PIC is the default for these OSes.
  11261. ;;
  11262. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11263. # This hack is so that the source file can tell whether it is being
  11264. # built for inclusion in a dll (and should export symbols for example).
  11265. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11266. # (--disable-auto-import) libraries
  11267. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11268. ;;
  11269. darwin* | rhapsody*)
  11270. # PIC is the default on this platform
  11271. # Common symbols not allowed in MH_DYLIB files
  11272. lt_prog_compiler_pic_CXX='-fno-common'
  11273. ;;
  11274. *djgpp*)
  11275. # DJGPP does not support shared libraries at all
  11276. lt_prog_compiler_pic_CXX=
  11277. ;;
  11278. interix[3-9]*)
  11279. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11280. # Instead, we relocate shared libraries at runtime.
  11281. ;;
  11282. sysv4*MP*)
  11283. if test -d /usr/nec; then
  11284. lt_prog_compiler_pic_CXX=-Kconform_pic
  11285. fi
  11286. ;;
  11287. hpux*)
  11288. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11289. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11290. # sets the default TLS model and affects inlining.
  11291. case $host_cpu in
  11292. hppa*64*)
  11293. ;;
  11294. *)
  11295. lt_prog_compiler_pic_CXX='-fPIC'
  11296. ;;
  11297. esac
  11298. ;;
  11299. *qnx* | *nto*)
  11300. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11301. # it will coredump.
  11302. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11303. ;;
  11304. *)
  11305. lt_prog_compiler_pic_CXX='-fPIC'
  11306. ;;
  11307. esac
  11308. else
  11309. case $host_os in
  11310. aix[4-9]*)
  11311. # All AIX code is PIC.
  11312. if test "$host_cpu" = ia64; then
  11313. # AIX 5 now supports IA64 processor
  11314. lt_prog_compiler_static_CXX='-Bstatic'
  11315. else
  11316. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11317. fi
  11318. ;;
  11319. chorus*)
  11320. case $cc_basename in
  11321. cxch68*)
  11322. # Green Hills C++ Compiler
  11323. # _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"
  11324. ;;
  11325. esac
  11326. ;;
  11327. dgux*)
  11328. case $cc_basename in
  11329. ec++*)
  11330. lt_prog_compiler_pic_CXX='-KPIC'
  11331. ;;
  11332. ghcx*)
  11333. # Green Hills C++ Compiler
  11334. lt_prog_compiler_pic_CXX='-pic'
  11335. ;;
  11336. *)
  11337. ;;
  11338. esac
  11339. ;;
  11340. freebsd* | dragonfly*)
  11341. # FreeBSD uses GNU C++
  11342. ;;
  11343. hpux9* | hpux10* | hpux11*)
  11344. case $cc_basename in
  11345. CC*)
  11346. lt_prog_compiler_wl_CXX='-Wl,'
  11347. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11348. if test "$host_cpu" != ia64; then
  11349. lt_prog_compiler_pic_CXX='+Z'
  11350. fi
  11351. ;;
  11352. aCC*)
  11353. lt_prog_compiler_wl_CXX='-Wl,'
  11354. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11355. case $host_cpu in
  11356. hppa*64*|ia64*)
  11357. # +Z the default
  11358. ;;
  11359. *)
  11360. lt_prog_compiler_pic_CXX='+Z'
  11361. ;;
  11362. esac
  11363. ;;
  11364. *)
  11365. ;;
  11366. esac
  11367. ;;
  11368. interix*)
  11369. # This is c89, which is MS Visual C++ (no shared libs)
  11370. # Anyone wants to do a port?
  11371. ;;
  11372. irix5* | irix6* | nonstopux*)
  11373. case $cc_basename in
  11374. CC*)
  11375. lt_prog_compiler_wl_CXX='-Wl,'
  11376. lt_prog_compiler_static_CXX='-non_shared'
  11377. # CC pic flag -KPIC is the default.
  11378. ;;
  11379. *)
  11380. ;;
  11381. esac
  11382. ;;
  11383. linux* | k*bsd*-gnu)
  11384. case $cc_basename in
  11385. KCC*)
  11386. # KAI C++ Compiler
  11387. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11388. lt_prog_compiler_pic_CXX='-fPIC'
  11389. ;;
  11390. ecpc* )
  11391. # old Intel C++ for x86_64 which still supported -KPIC.
  11392. lt_prog_compiler_wl_CXX='-Wl,'
  11393. lt_prog_compiler_pic_CXX='-KPIC'
  11394. lt_prog_compiler_static_CXX='-static'
  11395. ;;
  11396. icpc* )
  11397. # Intel C++, used to be incompatible with GCC.
  11398. # ICC 10 doesn't accept -KPIC any more.
  11399. lt_prog_compiler_wl_CXX='-Wl,'
  11400. lt_prog_compiler_pic_CXX='-fPIC'
  11401. lt_prog_compiler_static_CXX='-static'
  11402. ;;
  11403. pgCC* | pgcpp*)
  11404. # Portland Group C++ compiler
  11405. lt_prog_compiler_wl_CXX='-Wl,'
  11406. lt_prog_compiler_pic_CXX='-fpic'
  11407. lt_prog_compiler_static_CXX='-Bstatic'
  11408. ;;
  11409. cxx*)
  11410. # Compaq C++
  11411. # Make sure the PIC flag is empty. It appears that all Alpha
  11412. # Linux and Compaq Tru64 Unix objects are PIC.
  11413. lt_prog_compiler_pic_CXX=
  11414. lt_prog_compiler_static_CXX='-non_shared'
  11415. ;;
  11416. xlc* | xlC*)
  11417. # IBM XL 8.0 on PPC
  11418. lt_prog_compiler_wl_CXX='-Wl,'
  11419. lt_prog_compiler_pic_CXX='-qpic'
  11420. lt_prog_compiler_static_CXX='-qstaticlink'
  11421. ;;
  11422. *)
  11423. case `$CC -V 2>&1 | sed 5q` in
  11424. *Sun\ C*)
  11425. # Sun C++ 5.9
  11426. lt_prog_compiler_pic_CXX='-KPIC'
  11427. lt_prog_compiler_static_CXX='-Bstatic'
  11428. lt_prog_compiler_wl_CXX='-Qoption ld '
  11429. ;;
  11430. esac
  11431. ;;
  11432. esac
  11433. ;;
  11434. lynxos*)
  11435. ;;
  11436. m88k*)
  11437. ;;
  11438. mvs*)
  11439. case $cc_basename in
  11440. cxx*)
  11441. lt_prog_compiler_pic_CXX='-W c,exportall'
  11442. ;;
  11443. *)
  11444. ;;
  11445. esac
  11446. ;;
  11447. netbsd* | netbsdelf*-gnu)
  11448. ;;
  11449. *qnx* | *nto*)
  11450. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11451. # it will coredump.
  11452. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11453. ;;
  11454. osf3* | osf4* | osf5*)
  11455. case $cc_basename in
  11456. KCC*)
  11457. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11458. ;;
  11459. RCC*)
  11460. # Rational C++ 2.4.1
  11461. lt_prog_compiler_pic_CXX='-pic'
  11462. ;;
  11463. cxx*)
  11464. # Digital/Compaq C++
  11465. lt_prog_compiler_wl_CXX='-Wl,'
  11466. # Make sure the PIC flag is empty. It appears that all Alpha
  11467. # Linux and Compaq Tru64 Unix objects are PIC.
  11468. lt_prog_compiler_pic_CXX=
  11469. lt_prog_compiler_static_CXX='-non_shared'
  11470. ;;
  11471. *)
  11472. ;;
  11473. esac
  11474. ;;
  11475. psos*)
  11476. ;;
  11477. solaris*)
  11478. case $cc_basename in
  11479. CC*)
  11480. # Sun C++ 4.2, 5.x and Centerline C++
  11481. lt_prog_compiler_pic_CXX='-KPIC'
  11482. lt_prog_compiler_static_CXX='-Bstatic'
  11483. lt_prog_compiler_wl_CXX='-Qoption ld '
  11484. ;;
  11485. gcx*)
  11486. # Green Hills C++ Compiler
  11487. lt_prog_compiler_pic_CXX='-PIC'
  11488. ;;
  11489. *)
  11490. ;;
  11491. esac
  11492. ;;
  11493. sunos4*)
  11494. case $cc_basename in
  11495. CC*)
  11496. # Sun C++ 4.x
  11497. lt_prog_compiler_pic_CXX='-pic'
  11498. lt_prog_compiler_static_CXX='-Bstatic'
  11499. ;;
  11500. lcc*)
  11501. # Lucid
  11502. lt_prog_compiler_pic_CXX='-pic'
  11503. ;;
  11504. *)
  11505. ;;
  11506. esac
  11507. ;;
  11508. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11509. case $cc_basename in
  11510. CC*)
  11511. lt_prog_compiler_wl_CXX='-Wl,'
  11512. lt_prog_compiler_pic_CXX='-KPIC'
  11513. lt_prog_compiler_static_CXX='-Bstatic'
  11514. ;;
  11515. esac
  11516. ;;
  11517. tandem*)
  11518. case $cc_basename in
  11519. NCC*)
  11520. # NonStop-UX NCC 3.20
  11521. lt_prog_compiler_pic_CXX='-KPIC'
  11522. ;;
  11523. *)
  11524. ;;
  11525. esac
  11526. ;;
  11527. vxworks*)
  11528. ;;
  11529. *)
  11530. lt_prog_compiler_can_build_shared_CXX=no
  11531. ;;
  11532. esac
  11533. fi
  11534. case $host_os in
  11535. # For platforms which do not support PIC, -DPIC is meaningless:
  11536. *djgpp*)
  11537. lt_prog_compiler_pic_CXX=
  11538. ;;
  11539. *)
  11540. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11541. ;;
  11542. esac
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11544. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11545. #
  11546. # Check to make sure the PIC flag actually works.
  11547. #
  11548. if test -n "$lt_prog_compiler_pic_CXX"; then
  11549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11550. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11551. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11552. $as_echo_n "(cached) " >&6
  11553. else
  11554. lt_cv_prog_compiler_pic_works_CXX=no
  11555. ac_outfile=conftest.$ac_objext
  11556. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11557. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11558. # Insert the option either (1) after the last *FLAGS variable, or
  11559. # (2) before a word containing "conftest.", or (3) at the end.
  11560. # Note that $ac_compile itself does not contain backslashes and begins
  11561. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11562. # The option is referenced via a variable to avoid confusing sed.
  11563. lt_compile=`echo "$ac_compile" | $SED \
  11564. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11565. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11566. -e 's:$: $lt_compiler_flag:'`
  11567. (eval echo "\"\$as_me:13355: $lt_compile\"" >&5)
  11568. (eval "$lt_compile" 2>conftest.err)
  11569. ac_status=$?
  11570. cat conftest.err >&5
  11571. echo "$as_me:13359: \$? = $ac_status" >&5
  11572. if (exit $ac_status) && test -s "$ac_outfile"; then
  11573. # The compiler can only warn and ignore the option if not recognized
  11574. # So say no if there are warnings other than the usual output.
  11575. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11576. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11577. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11578. lt_cv_prog_compiler_pic_works_CXX=yes
  11579. fi
  11580. fi
  11581. $RM conftest*
  11582. fi
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11584. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11585. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11586. case $lt_prog_compiler_pic_CXX in
  11587. "" | " "*) ;;
  11588. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11589. esac
  11590. else
  11591. lt_prog_compiler_pic_CXX=
  11592. lt_prog_compiler_can_build_shared_CXX=no
  11593. fi
  11594. fi
  11595. #
  11596. # Check to make sure the static flag actually works.
  11597. #
  11598. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11600. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11601. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11602. $as_echo_n "(cached) " >&6
  11603. else
  11604. lt_cv_prog_compiler_static_works_CXX=no
  11605. save_LDFLAGS="$LDFLAGS"
  11606. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11607. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11608. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11609. # The linker can only warn and ignore the option if not recognized
  11610. # So say no if there are warnings
  11611. if test -s conftest.err; then
  11612. # Append any errors to the config.log.
  11613. cat conftest.err 1>&5
  11614. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11615. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11616. if diff conftest.exp conftest.er2 >/dev/null; then
  11617. lt_cv_prog_compiler_static_works_CXX=yes
  11618. fi
  11619. else
  11620. lt_cv_prog_compiler_static_works_CXX=yes
  11621. fi
  11622. fi
  11623. $RM -r conftest*
  11624. LDFLAGS="$save_LDFLAGS"
  11625. fi
  11626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11627. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11628. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11629. :
  11630. else
  11631. lt_prog_compiler_static_CXX=
  11632. fi
  11633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11634. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11635. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11636. $as_echo_n "(cached) " >&6
  11637. else
  11638. lt_cv_prog_compiler_c_o_CXX=no
  11639. $RM -r conftest 2>/dev/null
  11640. mkdir conftest
  11641. cd conftest
  11642. mkdir out
  11643. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11644. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11645. # Insert the option either (1) after the last *FLAGS variable, or
  11646. # (2) before a word containing "conftest.", or (3) at the end.
  11647. # Note that $ac_compile itself does not contain backslashes and begins
  11648. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11649. lt_compile=`echo "$ac_compile" | $SED \
  11650. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11651. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11652. -e 's:$: $lt_compiler_flag:'`
  11653. (eval echo "\"\$as_me:13454: $lt_compile\"" >&5)
  11654. (eval "$lt_compile" 2>out/conftest.err)
  11655. ac_status=$?
  11656. cat out/conftest.err >&5
  11657. echo "$as_me:13458: \$? = $ac_status" >&5
  11658. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11659. then
  11660. # The compiler can only warn and ignore the option if not recognized
  11661. # So say no if there are warnings
  11662. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11663. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11664. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11665. lt_cv_prog_compiler_c_o_CXX=yes
  11666. fi
  11667. fi
  11668. chmod u+w . 2>&5
  11669. $RM conftest*
  11670. # SGI C++ compiler will create directory out/ii_files/ for
  11671. # template instantiation
  11672. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11673. $RM out/* && rmdir out
  11674. cd ..
  11675. $RM -r conftest
  11676. $RM conftest*
  11677. fi
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11679. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11681. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11682. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11683. $as_echo_n "(cached) " >&6
  11684. else
  11685. lt_cv_prog_compiler_c_o_CXX=no
  11686. $RM -r conftest 2>/dev/null
  11687. mkdir conftest
  11688. cd conftest
  11689. mkdir out
  11690. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11691. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11692. # Insert the option either (1) after the last *FLAGS variable, or
  11693. # (2) before a word containing "conftest.", or (3) at the end.
  11694. # Note that $ac_compile itself does not contain backslashes and begins
  11695. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11696. lt_compile=`echo "$ac_compile" | $SED \
  11697. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11698. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11699. -e 's:$: $lt_compiler_flag:'`
  11700. (eval echo "\"\$as_me:13506: $lt_compile\"" >&5)
  11701. (eval "$lt_compile" 2>out/conftest.err)
  11702. ac_status=$?
  11703. cat out/conftest.err >&5
  11704. echo "$as_me:13510: \$? = $ac_status" >&5
  11705. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11706. then
  11707. # The compiler can only warn and ignore the option if not recognized
  11708. # So say no if there are warnings
  11709. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11710. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11711. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11712. lt_cv_prog_compiler_c_o_CXX=yes
  11713. fi
  11714. fi
  11715. chmod u+w . 2>&5
  11716. $RM conftest*
  11717. # SGI C++ compiler will create directory out/ii_files/ for
  11718. # template instantiation
  11719. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11720. $RM out/* && rmdir out
  11721. cd ..
  11722. $RM -r conftest
  11723. $RM conftest*
  11724. fi
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11726. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11727. hard_links="nottested"
  11728. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11729. # do not overwrite the value of need_locks provided by the user
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11731. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11732. hard_links=yes
  11733. $RM conftest*
  11734. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11735. touch conftest.a
  11736. ln conftest.a conftest.b 2>&5 || hard_links=no
  11737. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11739. $as_echo "$hard_links" >&6; }
  11740. if test "$hard_links" = no; then
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11742. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11743. need_locks=warn
  11744. fi
  11745. else
  11746. need_locks=no
  11747. fi
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11749. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11750. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11751. case $host_os in
  11752. aix[4-9]*)
  11753. # If we're using GNU nm, then we don't want the "-C" option.
  11754. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11755. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11756. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11757. else
  11758. 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'
  11759. fi
  11760. ;;
  11761. pw32*)
  11762. export_symbols_cmds_CXX="$ltdll_cmds"
  11763. ;;
  11764. cygwin* | mingw* | cegcc*)
  11765. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11766. ;;
  11767. linux* | k*bsd*-gnu)
  11768. link_all_deplibs_CXX=no
  11769. ;;
  11770. *)
  11771. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11772. ;;
  11773. esac
  11774. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11776. $as_echo "$ld_shlibs_CXX" >&6; }
  11777. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11778. with_gnu_ld_CXX=$with_gnu_ld
  11779. #
  11780. # Do we need to explicitly link libc?
  11781. #
  11782. case "x$archive_cmds_need_lc_CXX" in
  11783. x|xyes)
  11784. # Assume -lc should be added
  11785. archive_cmds_need_lc_CXX=yes
  11786. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11787. case $archive_cmds_CXX in
  11788. *'~'*)
  11789. # FIXME: we may have to deal with multi-command sequences.
  11790. ;;
  11791. '$CC '*)
  11792. # Test whether the compiler implicitly links with -lc since on some
  11793. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11794. # to ld, don't add -lc before -lgcc.
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11796. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11797. $RM conftest*
  11798. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11800. (eval $ac_compile) 2>&5
  11801. ac_status=$?
  11802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11803. test $ac_status = 0; } 2>conftest.err; then
  11804. soname=conftest
  11805. lib=conftest
  11806. libobjs=conftest.$ac_objext
  11807. deplibs=
  11808. wl=$lt_prog_compiler_wl_CXX
  11809. pic_flag=$lt_prog_compiler_pic_CXX
  11810. compiler_flags=-v
  11811. linker_flags=-v
  11812. verstring=
  11813. output_objdir=.
  11814. libname=conftest
  11815. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11816. allow_undefined_flag_CXX=
  11817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11818. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11819. ac_status=$?
  11820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11821. test $ac_status = 0; }
  11822. then
  11823. archive_cmds_need_lc_CXX=no
  11824. else
  11825. archive_cmds_need_lc_CXX=yes
  11826. fi
  11827. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11828. else
  11829. cat conftest.err 1>&5
  11830. fi
  11831. $RM conftest*
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11833. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11834. ;;
  11835. esac
  11836. fi
  11837. ;;
  11838. esac
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11840. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11841. library_names_spec=
  11842. libname_spec='lib$name'
  11843. soname_spec=
  11844. shrext_cmds=".so"
  11845. postinstall_cmds=
  11846. postuninstall_cmds=
  11847. finish_cmds=
  11848. finish_eval=
  11849. shlibpath_var=
  11850. shlibpath_overrides_runpath=unknown
  11851. version_type=none
  11852. dynamic_linker="$host_os ld.so"
  11853. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11854. need_lib_prefix=unknown
  11855. hardcode_into_libs=no
  11856. # when you set need_version to no, make sure it does not cause -set_version
  11857. # flags to be left without arguments
  11858. need_version=unknown
  11859. case $host_os in
  11860. aix3*)
  11861. version_type=linux
  11862. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11863. shlibpath_var=LIBPATH
  11864. # AIX 3 has no versioning support, so we append a major version to the name.
  11865. soname_spec='${libname}${release}${shared_ext}$major'
  11866. ;;
  11867. aix[4-9]*)
  11868. version_type=linux
  11869. need_lib_prefix=no
  11870. need_version=no
  11871. hardcode_into_libs=yes
  11872. if test "$host_cpu" = ia64; then
  11873. # AIX 5 supports IA64
  11874. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11875. shlibpath_var=LD_LIBRARY_PATH
  11876. else
  11877. # With GCC up to 2.95.x, collect2 would create an import file
  11878. # for dependence libraries. The import file would start with
  11879. # the line `#! .'. This would cause the generated library to
  11880. # depend on `.', always an invalid library. This was fixed in
  11881. # development snapshots of GCC prior to 3.0.
  11882. case $host_os in
  11883. aix4 | aix4.[01] | aix4.[01].*)
  11884. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11885. echo ' yes '
  11886. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11887. :
  11888. else
  11889. can_build_shared=no
  11890. fi
  11891. ;;
  11892. esac
  11893. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11894. # soname into executable. Probably we can add versioning support to
  11895. # collect2, so additional links can be useful in future.
  11896. if test "$aix_use_runtimelinking" = yes; then
  11897. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11898. # instead of lib<name>.a to let people know that these are not
  11899. # typical AIX shared libraries.
  11900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11901. else
  11902. # We preserve .a as extension for shared libraries through AIX4.2
  11903. # and later when we are not doing run time linking.
  11904. library_names_spec='${libname}${release}.a $libname.a'
  11905. soname_spec='${libname}${release}${shared_ext}$major'
  11906. fi
  11907. shlibpath_var=LIBPATH
  11908. fi
  11909. ;;
  11910. amigaos*)
  11911. case $host_cpu in
  11912. powerpc)
  11913. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11914. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11916. ;;
  11917. m68k)
  11918. library_names_spec='$libname.ixlibrary $libname.a'
  11919. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11920. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11921. ;;
  11922. esac
  11923. ;;
  11924. beos*)
  11925. library_names_spec='${libname}${shared_ext}'
  11926. dynamic_linker="$host_os ld.so"
  11927. shlibpath_var=LIBRARY_PATH
  11928. ;;
  11929. bsdi[45]*)
  11930. version_type=linux
  11931. need_version=no
  11932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11933. soname_spec='${libname}${release}${shared_ext}$major'
  11934. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11935. shlibpath_var=LD_LIBRARY_PATH
  11936. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11937. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11938. # the default ld.so.conf also contains /usr/contrib/lib and
  11939. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11940. # libtool to hard-code these into programs
  11941. ;;
  11942. cygwin* | mingw* | pw32* | cegcc*)
  11943. version_type=windows
  11944. shrext_cmds=".dll"
  11945. need_version=no
  11946. need_lib_prefix=no
  11947. case $GCC,$host_os in
  11948. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11949. library_names_spec='$libname.dll.a'
  11950. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11951. postinstall_cmds='base_file=`basename \${file}`~
  11952. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11953. dldir=$destdir/`dirname \$dlpath`~
  11954. test -d \$dldir || mkdir -p \$dldir~
  11955. $install_prog $dir/$dlname \$dldir/$dlname~
  11956. chmod a+x \$dldir/$dlname~
  11957. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11958. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11959. fi'
  11960. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11961. dlpath=$dir/\$dldll~
  11962. $RM \$dlpath'
  11963. shlibpath_overrides_runpath=yes
  11964. case $host_os in
  11965. cygwin*)
  11966. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11967. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11968. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11969. ;;
  11970. mingw* | cegcc*)
  11971. # MinGW DLLs use traditional 'lib' prefix
  11972. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11973. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11974. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11975. # It is most probably a Windows format PATH printed by
  11976. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11977. # path with ; separators, and with drive letters. We can handle the
  11978. # drive letters (cygwin fileutils understands them), so leave them,
  11979. # especially as we might pass files found there to a mingw objdump,
  11980. # which wouldn't understand a cygwinified path. Ahh.
  11981. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11982. else
  11983. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11984. fi
  11985. ;;
  11986. pw32*)
  11987. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11988. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11989. ;;
  11990. esac
  11991. ;;
  11992. *)
  11993. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11994. ;;
  11995. esac
  11996. dynamic_linker='Win32 ld.exe'
  11997. # FIXME: first we should search . and the directory the executable is in
  11998. shlibpath_var=PATH
  11999. ;;
  12000. darwin* | rhapsody*)
  12001. dynamic_linker="$host_os dyld"
  12002. version_type=darwin
  12003. need_lib_prefix=no
  12004. need_version=no
  12005. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12006. soname_spec='${libname}${release}${major}$shared_ext'
  12007. shlibpath_overrides_runpath=yes
  12008. shlibpath_var=DYLD_LIBRARY_PATH
  12009. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12010. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12011. ;;
  12012. dgux*)
  12013. version_type=linux
  12014. need_lib_prefix=no
  12015. need_version=no
  12016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12017. soname_spec='${libname}${release}${shared_ext}$major'
  12018. shlibpath_var=LD_LIBRARY_PATH
  12019. ;;
  12020. freebsd1*)
  12021. dynamic_linker=no
  12022. ;;
  12023. freebsd* | dragonfly*)
  12024. # DragonFly does not have aout. When/if they implement a new
  12025. # versioning mechanism, adjust this.
  12026. if test -x /usr/bin/objformat; then
  12027. objformat=`/usr/bin/objformat`
  12028. else
  12029. case $host_os in
  12030. freebsd[123]*) objformat=aout ;;
  12031. *) objformat=elf ;;
  12032. esac
  12033. fi
  12034. version_type=freebsd-$objformat
  12035. case $version_type in
  12036. freebsd-elf*)
  12037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12038. need_version=no
  12039. need_lib_prefix=no
  12040. ;;
  12041. freebsd-*)
  12042. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12043. need_version=yes
  12044. ;;
  12045. esac
  12046. shlibpath_var=LD_LIBRARY_PATH
  12047. case $host_os in
  12048. freebsd2*)
  12049. shlibpath_overrides_runpath=yes
  12050. ;;
  12051. freebsd3.[01]* | freebsdelf3.[01]*)
  12052. shlibpath_overrides_runpath=yes
  12053. hardcode_into_libs=yes
  12054. ;;
  12055. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12056. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12057. shlibpath_overrides_runpath=no
  12058. hardcode_into_libs=yes
  12059. ;;
  12060. *) # from 4.6 on, and DragonFly
  12061. shlibpath_overrides_runpath=yes
  12062. hardcode_into_libs=yes
  12063. ;;
  12064. esac
  12065. ;;
  12066. gnu*)
  12067. version_type=linux
  12068. need_lib_prefix=no
  12069. need_version=no
  12070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12071. soname_spec='${libname}${release}${shared_ext}$major'
  12072. shlibpath_var=LD_LIBRARY_PATH
  12073. hardcode_into_libs=yes
  12074. ;;
  12075. hpux9* | hpux10* | hpux11*)
  12076. # Give a soname corresponding to the major version so that dld.sl refuses to
  12077. # link against other versions.
  12078. version_type=sunos
  12079. need_lib_prefix=no
  12080. need_version=no
  12081. case $host_cpu in
  12082. ia64*)
  12083. shrext_cmds='.so'
  12084. hardcode_into_libs=yes
  12085. dynamic_linker="$host_os dld.so"
  12086. shlibpath_var=LD_LIBRARY_PATH
  12087. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12089. soname_spec='${libname}${release}${shared_ext}$major'
  12090. if test "X$HPUX_IA64_MODE" = X32; then
  12091. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12092. else
  12093. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12094. fi
  12095. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12096. ;;
  12097. hppa*64*)
  12098. shrext_cmds='.sl'
  12099. hardcode_into_libs=yes
  12100. dynamic_linker="$host_os dld.sl"
  12101. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12102. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12104. soname_spec='${libname}${release}${shared_ext}$major'
  12105. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12106. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12107. ;;
  12108. *)
  12109. shrext_cmds='.sl'
  12110. dynamic_linker="$host_os dld.sl"
  12111. shlibpath_var=SHLIB_PATH
  12112. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12114. soname_spec='${libname}${release}${shared_ext}$major'
  12115. ;;
  12116. esac
  12117. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12118. postinstall_cmds='chmod 555 $lib'
  12119. ;;
  12120. interix[3-9]*)
  12121. version_type=linux
  12122. need_lib_prefix=no
  12123. need_version=no
  12124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12125. soname_spec='${libname}${release}${shared_ext}$major'
  12126. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12127. shlibpath_var=LD_LIBRARY_PATH
  12128. shlibpath_overrides_runpath=no
  12129. hardcode_into_libs=yes
  12130. ;;
  12131. irix5* | irix6* | nonstopux*)
  12132. case $host_os in
  12133. nonstopux*) version_type=nonstopux ;;
  12134. *)
  12135. if test "$lt_cv_prog_gnu_ld" = yes; then
  12136. version_type=linux
  12137. else
  12138. version_type=irix
  12139. fi ;;
  12140. esac
  12141. need_lib_prefix=no
  12142. need_version=no
  12143. soname_spec='${libname}${release}${shared_ext}$major'
  12144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12145. case $host_os in
  12146. irix5* | nonstopux*)
  12147. libsuff= shlibsuff=
  12148. ;;
  12149. *)
  12150. case $LD in # libtool.m4 will add one of these switches to LD
  12151. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12152. libsuff= shlibsuff= libmagic=32-bit;;
  12153. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12154. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12155. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12156. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12157. *) libsuff= shlibsuff= libmagic=never-match;;
  12158. esac
  12159. ;;
  12160. esac
  12161. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12162. shlibpath_overrides_runpath=no
  12163. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12164. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12165. hardcode_into_libs=yes
  12166. ;;
  12167. # No shared lib support for Linux oldld, aout, or coff.
  12168. linux*oldld* | linux*aout* | linux*coff*)
  12169. dynamic_linker=no
  12170. ;;
  12171. # This must be Linux ELF.
  12172. linux* | k*bsd*-gnu)
  12173. version_type=linux
  12174. need_lib_prefix=no
  12175. need_version=no
  12176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12177. soname_spec='${libname}${release}${shared_ext}$major'
  12178. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12179. shlibpath_var=LD_LIBRARY_PATH
  12180. shlibpath_overrides_runpath=no
  12181. # Some binutils ld are patched to set DT_RUNPATH
  12182. save_LDFLAGS=$LDFLAGS
  12183. save_libdir=$libdir
  12184. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12185. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12187. /* end confdefs.h. */
  12188. int
  12189. main ()
  12190. {
  12191. ;
  12192. return 0;
  12193. }
  12194. _ACEOF
  12195. if ac_fn_cxx_try_link "$LINENO"; then :
  12196. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12197. shlibpath_overrides_runpath=yes
  12198. fi
  12199. fi
  12200. rm -f core conftest.err conftest.$ac_objext \
  12201. conftest$ac_exeext conftest.$ac_ext
  12202. LDFLAGS=$save_LDFLAGS
  12203. libdir=$save_libdir
  12204. # This implies no fast_install, which is unacceptable.
  12205. # Some rework will be needed to allow for fast_install
  12206. # before this can be enabled.
  12207. hardcode_into_libs=yes
  12208. # Append ld.so.conf contents to the search path
  12209. if test -f /etc/ld.so.conf; then
  12210. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12211. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12212. fi
  12213. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12214. # powerpc, because MkLinux only supported shared libraries with the
  12215. # GNU dynamic linker. Since this was broken with cross compilers,
  12216. # most powerpc-linux boxes support dynamic linking these days and
  12217. # people can always --disable-shared, the test was removed, and we
  12218. # assume the GNU/Linux dynamic linker is in use.
  12219. dynamic_linker='GNU/Linux ld.so'
  12220. ;;
  12221. netbsdelf*-gnu)
  12222. version_type=linux
  12223. need_lib_prefix=no
  12224. need_version=no
  12225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12226. soname_spec='${libname}${release}${shared_ext}$major'
  12227. shlibpath_var=LD_LIBRARY_PATH
  12228. shlibpath_overrides_runpath=no
  12229. hardcode_into_libs=yes
  12230. dynamic_linker='NetBSD ld.elf_so'
  12231. ;;
  12232. netbsd*)
  12233. version_type=sunos
  12234. need_lib_prefix=no
  12235. need_version=no
  12236. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12238. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12239. dynamic_linker='NetBSD (a.out) ld.so'
  12240. else
  12241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12242. soname_spec='${libname}${release}${shared_ext}$major'
  12243. dynamic_linker='NetBSD ld.elf_so'
  12244. fi
  12245. shlibpath_var=LD_LIBRARY_PATH
  12246. shlibpath_overrides_runpath=yes
  12247. hardcode_into_libs=yes
  12248. ;;
  12249. newsos6)
  12250. version_type=linux
  12251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12252. shlibpath_var=LD_LIBRARY_PATH
  12253. shlibpath_overrides_runpath=yes
  12254. ;;
  12255. *nto* | *qnx*)
  12256. version_type=qnx
  12257. need_lib_prefix=no
  12258. need_version=no
  12259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12260. soname_spec='${libname}${release}${shared_ext}$major'
  12261. shlibpath_var=LD_LIBRARY_PATH
  12262. shlibpath_overrides_runpath=no
  12263. hardcode_into_libs=yes
  12264. dynamic_linker='ldqnx.so'
  12265. ;;
  12266. openbsd*)
  12267. version_type=sunos
  12268. sys_lib_dlsearch_path_spec="/usr/lib"
  12269. need_lib_prefix=no
  12270. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12271. case $host_os in
  12272. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12273. *) need_version=no ;;
  12274. esac
  12275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12276. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12277. shlibpath_var=LD_LIBRARY_PATH
  12278. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12279. case $host_os in
  12280. openbsd2.[89] | openbsd2.[89].*)
  12281. shlibpath_overrides_runpath=no
  12282. ;;
  12283. *)
  12284. shlibpath_overrides_runpath=yes
  12285. ;;
  12286. esac
  12287. else
  12288. shlibpath_overrides_runpath=yes
  12289. fi
  12290. ;;
  12291. os2*)
  12292. libname_spec='$name'
  12293. shrext_cmds=".dll"
  12294. need_lib_prefix=no
  12295. library_names_spec='$libname${shared_ext} $libname.a'
  12296. dynamic_linker='OS/2 ld.exe'
  12297. shlibpath_var=LIBPATH
  12298. ;;
  12299. osf3* | osf4* | osf5*)
  12300. version_type=osf
  12301. need_lib_prefix=no
  12302. need_version=no
  12303. soname_spec='${libname}${release}${shared_ext}$major'
  12304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12305. shlibpath_var=LD_LIBRARY_PATH
  12306. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12307. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12308. ;;
  12309. rdos*)
  12310. dynamic_linker=no
  12311. ;;
  12312. solaris*)
  12313. version_type=linux
  12314. need_lib_prefix=no
  12315. need_version=no
  12316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12317. soname_spec='${libname}${release}${shared_ext}$major'
  12318. shlibpath_var=LD_LIBRARY_PATH
  12319. shlibpath_overrides_runpath=yes
  12320. hardcode_into_libs=yes
  12321. # ldd complains unless libraries are executable
  12322. postinstall_cmds='chmod +x $lib'
  12323. ;;
  12324. sunos4*)
  12325. version_type=sunos
  12326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12327. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12328. shlibpath_var=LD_LIBRARY_PATH
  12329. shlibpath_overrides_runpath=yes
  12330. if test "$with_gnu_ld" = yes; then
  12331. need_lib_prefix=no
  12332. fi
  12333. need_version=yes
  12334. ;;
  12335. sysv4 | sysv4.3*)
  12336. version_type=linux
  12337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12338. soname_spec='${libname}${release}${shared_ext}$major'
  12339. shlibpath_var=LD_LIBRARY_PATH
  12340. case $host_vendor in
  12341. sni)
  12342. shlibpath_overrides_runpath=no
  12343. need_lib_prefix=no
  12344. runpath_var=LD_RUN_PATH
  12345. ;;
  12346. siemens)
  12347. need_lib_prefix=no
  12348. ;;
  12349. motorola)
  12350. need_lib_prefix=no
  12351. need_version=no
  12352. shlibpath_overrides_runpath=no
  12353. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12354. ;;
  12355. esac
  12356. ;;
  12357. sysv4*MP*)
  12358. if test -d /usr/nec ;then
  12359. version_type=linux
  12360. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12361. soname_spec='$libname${shared_ext}.$major'
  12362. shlibpath_var=LD_LIBRARY_PATH
  12363. fi
  12364. ;;
  12365. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12366. version_type=freebsd-elf
  12367. need_lib_prefix=no
  12368. need_version=no
  12369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12370. soname_spec='${libname}${release}${shared_ext}$major'
  12371. shlibpath_var=LD_LIBRARY_PATH
  12372. shlibpath_overrides_runpath=yes
  12373. hardcode_into_libs=yes
  12374. if test "$with_gnu_ld" = yes; then
  12375. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12376. else
  12377. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12378. case $host_os in
  12379. sco3.2v5*)
  12380. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12381. ;;
  12382. esac
  12383. fi
  12384. sys_lib_dlsearch_path_spec='/usr/lib'
  12385. ;;
  12386. tpf*)
  12387. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12388. version_type=linux
  12389. need_lib_prefix=no
  12390. need_version=no
  12391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12392. shlibpath_var=LD_LIBRARY_PATH
  12393. shlibpath_overrides_runpath=no
  12394. hardcode_into_libs=yes
  12395. ;;
  12396. uts4*)
  12397. version_type=linux
  12398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12399. soname_spec='${libname}${release}${shared_ext}$major'
  12400. shlibpath_var=LD_LIBRARY_PATH
  12401. ;;
  12402. *)
  12403. dynamic_linker=no
  12404. ;;
  12405. esac
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12407. $as_echo "$dynamic_linker" >&6; }
  12408. test "$dynamic_linker" = no && can_build_shared=no
  12409. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12410. if test "$GCC" = yes; then
  12411. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12412. fi
  12413. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12414. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12415. fi
  12416. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12417. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12418. fi
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12420. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12421. hardcode_action_CXX=
  12422. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12423. test -n "$runpath_var_CXX" ||
  12424. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12425. # We can hardcode non-existent directories.
  12426. if test "$hardcode_direct_CXX" != no &&
  12427. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12428. # have to relink, otherwise we might link with an installed library
  12429. # when we should be linking with a yet-to-be-installed one
  12430. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12431. test "$hardcode_minus_L_CXX" != no; then
  12432. # Linking always hardcodes the temporary library directory.
  12433. hardcode_action_CXX=relink
  12434. else
  12435. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12436. hardcode_action_CXX=immediate
  12437. fi
  12438. else
  12439. # We cannot hardcode anything, or else we can only hardcode existing
  12440. # directories.
  12441. hardcode_action_CXX=unsupported
  12442. fi
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12444. $as_echo "$hardcode_action_CXX" >&6; }
  12445. if test "$hardcode_action_CXX" = relink ||
  12446. test "$inherit_rpath_CXX" = yes; then
  12447. # Fast installation is not supported
  12448. enable_fast_install=no
  12449. elif test "$shlibpath_overrides_runpath" = yes ||
  12450. test "$enable_shared" = no; then
  12451. # Fast installation is not necessary
  12452. enable_fast_install=needless
  12453. fi
  12454. fi # test -n "$compiler"
  12455. CC=$lt_save_CC
  12456. LDCXX=$LD
  12457. LD=$lt_save_LD
  12458. GCC=$lt_save_GCC
  12459. with_gnu_ld=$lt_save_with_gnu_ld
  12460. lt_cv_path_LDCXX=$lt_cv_path_LD
  12461. lt_cv_path_LD=$lt_save_path_LD
  12462. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12463. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12464. fi # test "$_lt_caught_CXX_error" != yes
  12465. ac_ext=cpp
  12466. ac_cpp='$CXXCPP $CPPFLAGS'
  12467. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12468. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12469. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12470. ac_config_commands="$ac_config_commands libtool"
  12471. # Only expand once:
  12472. # Use silent rules if supported.
  12473. # Check whether --enable-silent-rules was given.
  12474. if test "${enable_silent_rules+set}" = set; then :
  12475. enableval=$enable_silent_rules;
  12476. fi
  12477. case $enable_silent_rules in
  12478. yes) AM_DEFAULT_VERBOSITY=0;;
  12479. no) AM_DEFAULT_VERBOSITY=1;;
  12480. *) AM_DEFAULT_VERBOSITY=0;;
  12481. esac
  12482. AM_BACKSLASH='\'
  12483. # Check whether --enable-debug was given.
  12484. if test "${enable_debug+set}" = set; then :
  12485. enableval=$enable_debug; if test x$enableval = xyes ; then
  12486. enable_debug="yes"
  12487. else
  12488. enable_debug="no"
  12489. fi
  12490. else
  12491. enable_debug="yes"
  12492. fi
  12493. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12494. CXXFLAGS="-O0 -ggdb"
  12495. fi
  12496. if test "x$GXX" = "xyes" ; then
  12497. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith"
  12498. fi
  12499. # For clang only. Need an autoconf test.
  12500. # CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-unknown-pragmas -Wno-cast-align"
  12501. # Check for Boost libraries
  12502. # Check whether --with-boost was given.
  12503. if test "${with_boost+set}" = set; then :
  12504. withval=$with_boost;
  12505. if test "$withval" = "no"; then
  12506. want_boost="no"
  12507. elif test "$withval" = "yes"; then
  12508. want_boost="yes"
  12509. ac_boost_path=""
  12510. else
  12511. want_boost="yes"
  12512. ac_boost_path="$withval"
  12513. fi
  12514. else
  12515. want_boost="yes"
  12516. fi
  12517. # Check whether --with-boost-libdir was given.
  12518. if test "${with_boost_libdir+set}" = set; then :
  12519. withval=$with_boost_libdir;
  12520. if test -d $withval
  12521. then
  12522. ac_boost_lib_path="$withval"
  12523. else
  12524. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  12525. fi
  12526. else
  12527. ac_boost_lib_path=""
  12528. fi
  12529. if test "x$want_boost" = "xyes"; then
  12530. boost_lib_version_req=1.36
  12531. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12532. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12533. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12534. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12535. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12536. boost_lib_version_req_sub_minor="0"
  12537. fi
  12538. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12540. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12541. succeeded=no
  12542. if test "$ac_boost_path" != ""; then
  12543. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  12544. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12545. else
  12546. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12547. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12548. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  12549. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12550. break;
  12551. fi
  12552. done
  12553. fi
  12554. if test "$ac_boost_lib_path" != ""; then
  12555. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12556. fi
  12557. CPPFLAGS_SAVED="$CPPFLAGS"
  12558. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12559. export CPPFLAGS
  12560. LDFLAGS_SAVED="$LDFLAGS"
  12561. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12562. export LDFLAGS
  12563. ac_ext=cpp
  12564. ac_cpp='$CXXCPP $CPPFLAGS'
  12565. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12566. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12567. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12569. /* end confdefs.h. */
  12570. #include <boost/version.hpp>
  12571. int
  12572. main ()
  12573. {
  12574. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12575. // Everything is okay
  12576. #else
  12577. # error Boost version is too old
  12578. #endif
  12579. ;
  12580. return 0;
  12581. }
  12582. _ACEOF
  12583. if ac_fn_cxx_try_compile "$LINENO"; then :
  12584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12585. $as_echo "yes" >&6; }
  12586. succeeded=yes
  12587. found_system=yes
  12588. fi
  12589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12590. ac_ext=cpp
  12591. ac_cpp='$CXXCPP $CPPFLAGS'
  12592. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12593. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12594. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12595. if test "x$succeeded" != "xyes"; then
  12596. _version=0
  12597. if test "$ac_boost_path" != ""; then
  12598. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12599. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12600. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12601. V_CHECK=`expr $_version_tmp \> $_version`
  12602. if test "$V_CHECK" = "1" ; then
  12603. _version=$_version_tmp
  12604. fi
  12605. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12606. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12607. done
  12608. fi
  12609. else
  12610. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12611. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12612. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12613. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12614. V_CHECK=`expr $_version_tmp \> $_version`
  12615. if test "$V_CHECK" = "1" ; then
  12616. _version=$_version_tmp
  12617. best_path=$ac_boost_path
  12618. fi
  12619. done
  12620. fi
  12621. done
  12622. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12623. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12624. if test "$ac_boost_lib_path" = ""
  12625. then
  12626. BOOST_LDFLAGS="-L$best_path/lib"
  12627. fi
  12628. if test "x$BOOST_ROOT" != "x"; then
  12629. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  12630. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12631. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12632. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12633. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12634. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12636. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12637. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12638. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  12639. fi
  12640. fi
  12641. fi
  12642. fi
  12643. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12644. export CPPFLAGS
  12645. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12646. export LDFLAGS
  12647. ac_ext=cpp
  12648. ac_cpp='$CXXCPP $CPPFLAGS'
  12649. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12650. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12651. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12653. /* end confdefs.h. */
  12654. #include <boost/version.hpp>
  12655. int
  12656. main ()
  12657. {
  12658. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12659. // Everything is okay
  12660. #else
  12661. # error Boost version is too old
  12662. #endif
  12663. ;
  12664. return 0;
  12665. }
  12666. _ACEOF
  12667. if ac_fn_cxx_try_compile "$LINENO"; then :
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12669. $as_echo "yes" >&6; }
  12670. succeeded=yes
  12671. found_system=yes
  12672. fi
  12673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12674. ac_ext=cpp
  12675. ac_cpp='$CXXCPP $CPPFLAGS'
  12676. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12677. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12678. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12679. fi
  12680. if test "$succeeded" != "yes" ; then
  12681. if test "$_version" = "0" ; then
  12682. as_fn_error $? "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5
  12683. else
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12685. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12686. fi
  12687. else
  12688. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12689. fi
  12690. CPPFLAGS="$CPPFLAGS_SAVED"
  12691. LDFLAGS="$LDFLAGS_SAVED"
  12692. fi
  12693. # Check whether --with-boost-system was given.
  12694. if test "${with_boost_system+set}" = set; then :
  12695. withval=$with_boost_system;
  12696. if test "$withval" = "no"; then
  12697. want_boost="no"
  12698. elif test "$withval" = "yes"; then
  12699. want_boost="yes"
  12700. ax_boost_user_system_lib=""
  12701. else
  12702. want_boost="yes"
  12703. ax_boost_user_system_lib="$withval"
  12704. fi
  12705. else
  12706. want_boost="yes"
  12707. fi
  12708. if test "x$want_boost" = "xyes"; then
  12709. CPPFLAGS_SAVED="$CPPFLAGS"
  12710. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12711. export CPPFLAGS
  12712. LDFLAGS_SAVED="$LDFLAGS"
  12713. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12714. export LDFLAGS
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12716. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12717. if test "${ax_cv_boost_system+set}" = set; then :
  12718. $as_echo_n "(cached) " >&6
  12719. else
  12720. ac_ext=cpp
  12721. ac_cpp='$CXXCPP $CPPFLAGS'
  12722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12725. CXXFLAGS_SAVE=$CXXFLAGS
  12726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12727. /* end confdefs.h. */
  12728. #include <boost/system/error_code.hpp>
  12729. int
  12730. main ()
  12731. {
  12732. boost::system::system_category
  12733. ;
  12734. return 0;
  12735. }
  12736. _ACEOF
  12737. if ac_fn_cxx_try_compile "$LINENO"; then :
  12738. ax_cv_boost_system=yes
  12739. else
  12740. ax_cv_boost_system=no
  12741. fi
  12742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12743. CXXFLAGS=$CXXFLAGS_SAVE
  12744. ac_ext=cpp
  12745. ac_cpp='$CXXCPP $CPPFLAGS'
  12746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12749. fi
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12751. $as_echo "$ax_cv_boost_system" >&6; }
  12752. if test "x$ax_cv_boost_system" = "xyes"; then
  12753. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12754. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12755. LDFLAGS_SAVE=$LDFLAGS
  12756. if test "x$ax_boost_user_system_lib" = "x"; then
  12757. for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  12758. ax_lib=${libextension}
  12759. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12761. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12762. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12763. $as_echo_n "(cached) " >&6
  12764. else
  12765. ac_check_lib_save_LIBS=$LIBS
  12766. LIBS="-l$ax_lib $LIBS"
  12767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12768. /* end confdefs.h. */
  12769. /* Override any GCC internal prototype to avoid an error.
  12770. Use char because int might match the return type of a GCC
  12771. builtin and then its argument prototype would still apply. */
  12772. #ifdef __cplusplus
  12773. extern "C"
  12774. #endif
  12775. char exit ();
  12776. int
  12777. main ()
  12778. {
  12779. return exit ();
  12780. ;
  12781. return 0;
  12782. }
  12783. _ACEOF
  12784. if ac_fn_cxx_try_link "$LINENO"; then :
  12785. eval "$as_ac_Lib=yes"
  12786. else
  12787. eval "$as_ac_Lib=no"
  12788. fi
  12789. rm -f core conftest.err conftest.$ac_objext \
  12790. conftest$ac_exeext conftest.$ac_ext
  12791. LIBS=$ac_check_lib_save_LIBS
  12792. fi
  12793. eval ac_res=\$$as_ac_Lib
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12795. $as_echo "$ac_res" >&6; }
  12796. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12797. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12798. else
  12799. link_system="no"
  12800. fi
  12801. done
  12802. if test "x$link_system" != "xyes"; then
  12803. 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
  12804. ax_lib=${libextension}
  12805. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12807. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12808. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12809. $as_echo_n "(cached) " >&6
  12810. else
  12811. ac_check_lib_save_LIBS=$LIBS
  12812. LIBS="-l$ax_lib $LIBS"
  12813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12814. /* end confdefs.h. */
  12815. /* Override any GCC internal prototype to avoid an error.
  12816. Use char because int might match the return type of a GCC
  12817. builtin and then its argument prototype would still apply. */
  12818. #ifdef __cplusplus
  12819. extern "C"
  12820. #endif
  12821. char exit ();
  12822. int
  12823. main ()
  12824. {
  12825. return exit ();
  12826. ;
  12827. return 0;
  12828. }
  12829. _ACEOF
  12830. if ac_fn_cxx_try_link "$LINENO"; then :
  12831. eval "$as_ac_Lib=yes"
  12832. else
  12833. eval "$as_ac_Lib=no"
  12834. fi
  12835. rm -f core conftest.err conftest.$ac_objext \
  12836. conftest$ac_exeext conftest.$ac_ext
  12837. LIBS=$ac_check_lib_save_LIBS
  12838. fi
  12839. eval ac_res=\$$as_ac_Lib
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12841. $as_echo "$ac_res" >&6; }
  12842. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12843. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12844. else
  12845. link_system="no"
  12846. fi
  12847. done
  12848. fi
  12849. else
  12850. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12851. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12853. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12854. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12855. $as_echo_n "(cached) " >&6
  12856. else
  12857. ac_check_lib_save_LIBS=$LIBS
  12858. LIBS="-l$ax_lib $LIBS"
  12859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12860. /* end confdefs.h. */
  12861. /* Override any GCC internal prototype to avoid an error.
  12862. Use char because int might match the return type of a GCC
  12863. builtin and then its argument prototype would still apply. */
  12864. #ifdef __cplusplus
  12865. extern "C"
  12866. #endif
  12867. char exit ();
  12868. int
  12869. main ()
  12870. {
  12871. return exit ();
  12872. ;
  12873. return 0;
  12874. }
  12875. _ACEOF
  12876. if ac_fn_cxx_try_link "$LINENO"; then :
  12877. eval "$as_ac_Lib=yes"
  12878. else
  12879. eval "$as_ac_Lib=no"
  12880. fi
  12881. rm -f core conftest.err conftest.$ac_objext \
  12882. conftest$ac_exeext conftest.$ac_ext
  12883. LIBS=$ac_check_lib_save_LIBS
  12884. fi
  12885. eval ac_res=\$$as_ac_Lib
  12886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12887. $as_echo "$ac_res" >&6; }
  12888. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12889. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12890. else
  12891. link_system="no"
  12892. fi
  12893. done
  12894. fi
  12895. if test "x$link_system" = "xno"; then
  12896. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  12897. fi
  12898. fi
  12899. CPPFLAGS="$CPPFLAGS_SAVED"
  12900. LDFLAGS="$LDFLAGS_SAVED"
  12901. fi
  12902. # Check whether --with-boost-filesystem was given.
  12903. if test "${with_boost_filesystem+set}" = set; then :
  12904. withval=$with_boost_filesystem;
  12905. if test "$withval" = "no"; then
  12906. want_boost="no"
  12907. elif test "$withval" = "yes"; then
  12908. want_boost="yes"
  12909. ax_boost_user_filesystem_lib=""
  12910. else
  12911. want_boost="yes"
  12912. ax_boost_user_filesystem_lib="$withval"
  12913. fi
  12914. else
  12915. want_boost="yes"
  12916. fi
  12917. if test "x$want_boost" = "xyes"; then
  12918. CPPFLAGS_SAVED="$CPPFLAGS"
  12919. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12920. export CPPFLAGS
  12921. LDFLAGS_SAVED="$LDFLAGS"
  12922. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12923. export LDFLAGS
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12925. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12926. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12927. $as_echo_n "(cached) " >&6
  12928. else
  12929. ac_ext=cpp
  12930. ac_cpp='$CXXCPP $CPPFLAGS'
  12931. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12932. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12933. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12935. /* end confdefs.h. */
  12936. #include <boost/filesystem/path.hpp>
  12937. int
  12938. main ()
  12939. {
  12940. using namespace boost::filesystem;
  12941. path my_path( "foo/bar/data.txt" );
  12942. return 0;
  12943. ;
  12944. return 0;
  12945. }
  12946. _ACEOF
  12947. if ac_fn_cxx_try_compile "$LINENO"; then :
  12948. ax_cv_boost_filesystem=yes
  12949. else
  12950. ax_cv_boost_filesystem=no
  12951. fi
  12952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12953. ac_ext=cpp
  12954. ac_cpp='$CXXCPP $CPPFLAGS'
  12955. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12956. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12957. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12958. fi
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  12960. $as_echo "$ax_cv_boost_filesystem" >&6; }
  12961. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  12962. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  12963. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12964. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  12965. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;'` ; do
  12966. ax_lib=${libextension}
  12967. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12969. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12970. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12971. $as_echo_n "(cached) " >&6
  12972. else
  12973. ac_check_lib_save_LIBS=$LIBS
  12974. LIBS="-l$ax_lib $LIBS"
  12975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12976. /* end confdefs.h. */
  12977. /* Override any GCC internal prototype to avoid an error.
  12978. Use char because int might match the return type of a GCC
  12979. builtin and then its argument prototype would still apply. */
  12980. #ifdef __cplusplus
  12981. extern "C"
  12982. #endif
  12983. char exit ();
  12984. int
  12985. main ()
  12986. {
  12987. return exit ();
  12988. ;
  12989. return 0;
  12990. }
  12991. _ACEOF
  12992. if ac_fn_cxx_try_link "$LINENO"; then :
  12993. eval "$as_ac_Lib=yes"
  12994. else
  12995. eval "$as_ac_Lib=no"
  12996. fi
  12997. rm -f core conftest.err conftest.$ac_objext \
  12998. conftest$ac_exeext conftest.$ac_ext
  12999. LIBS=$ac_check_lib_save_LIBS
  13000. fi
  13001. eval ac_res=\$$as_ac_Lib
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13003. $as_echo "$ac_res" >&6; }
  13004. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13005. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13006. else
  13007. link_filesystem="no"
  13008. fi
  13009. done
  13010. if test "x$link_program_options" != "xyes"; then
  13011. 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
  13012. ax_lib=${libextension}
  13013. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13015. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13016. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13017. $as_echo_n "(cached) " >&6
  13018. else
  13019. ac_check_lib_save_LIBS=$LIBS
  13020. LIBS="-l$ax_lib $LIBS"
  13021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13022. /* end confdefs.h. */
  13023. /* Override any GCC internal prototype to avoid an error.
  13024. Use char because int might match the return type of a GCC
  13025. builtin and then its argument prototype would still apply. */
  13026. #ifdef __cplusplus
  13027. extern "C"
  13028. #endif
  13029. char exit ();
  13030. int
  13031. main ()
  13032. {
  13033. return exit ();
  13034. ;
  13035. return 0;
  13036. }
  13037. _ACEOF
  13038. if ac_fn_cxx_try_link "$LINENO"; then :
  13039. eval "$as_ac_Lib=yes"
  13040. else
  13041. eval "$as_ac_Lib=no"
  13042. fi
  13043. rm -f core conftest.err conftest.$ac_objext \
  13044. conftest$ac_exeext conftest.$ac_ext
  13045. LIBS=$ac_check_lib_save_LIBS
  13046. fi
  13047. eval ac_res=\$$as_ac_Lib
  13048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13049. $as_echo "$ac_res" >&6; }
  13050. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13051. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13052. else
  13053. link_filesystem="no"
  13054. fi
  13055. done
  13056. fi
  13057. else
  13058. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13059. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13061. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13062. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13063. $as_echo_n "(cached) " >&6
  13064. else
  13065. ac_check_lib_save_LIBS=$LIBS
  13066. LIBS="-l$ax_lib $LIBS"
  13067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13068. /* end confdefs.h. */
  13069. /* Override any GCC internal prototype to avoid an error.
  13070. Use char because int might match the return type of a GCC
  13071. builtin and then its argument prototype would still apply. */
  13072. #ifdef __cplusplus
  13073. extern "C"
  13074. #endif
  13075. char exit ();
  13076. int
  13077. main ()
  13078. {
  13079. return exit ();
  13080. ;
  13081. return 0;
  13082. }
  13083. _ACEOF
  13084. if ac_fn_cxx_try_link "$LINENO"; then :
  13085. eval "$as_ac_Lib=yes"
  13086. else
  13087. eval "$as_ac_Lib=no"
  13088. fi
  13089. rm -f core conftest.err conftest.$ac_objext \
  13090. conftest$ac_exeext conftest.$ac_ext
  13091. LIBS=$ac_check_lib_save_LIBS
  13092. fi
  13093. eval ac_res=\$$as_ac_Lib
  13094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13095. $as_echo "$ac_res" >&6; }
  13096. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13097. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13098. else
  13099. link_filesystem="no"
  13100. fi
  13101. done
  13102. fi
  13103. if test "x$link_filesystem" != "xyes"; then
  13104. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13105. fi
  13106. fi
  13107. CPPFLAGS="$CPPFLAGS_SAVED"
  13108. LDFLAGS="$LDFLAGS_SAVED"
  13109. fi
  13110. # Check whether --with-boost-thread was given.
  13111. if test "${with_boost_thread+set}" = set; then :
  13112. withval=$with_boost_thread;
  13113. if test "$withval" = "no"; then
  13114. want_boost="no"
  13115. elif test "$withval" = "yes"; then
  13116. want_boost="yes"
  13117. ax_boost_user_thread_lib=""
  13118. else
  13119. want_boost="yes"
  13120. ax_boost_user_thread_lib="$withval"
  13121. fi
  13122. else
  13123. want_boost="yes"
  13124. fi
  13125. if test "x$want_boost" = "xyes"; then
  13126. CPPFLAGS_SAVED="$CPPFLAGS"
  13127. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13128. export CPPFLAGS
  13129. LDFLAGS_SAVED="$LDFLAGS"
  13130. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13131. export LDFLAGS
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13133. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13134. if test "${ax_cv_boost_thread+set}" = set; then :
  13135. $as_echo_n "(cached) " >&6
  13136. else
  13137. ac_ext=cpp
  13138. ac_cpp='$CXXCPP $CPPFLAGS'
  13139. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13140. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13141. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13142. CXXFLAGS_SAVE=$CXXFLAGS
  13143. if test "x$build_os" = "xsolaris" ; then
  13144. CXXFLAGS="-pthreads $CXXFLAGS"
  13145. elif test "x$build_os" = "xming32" ; then
  13146. CXXFLAGS="-mthreads $CXXFLAGS"
  13147. else
  13148. CXXFLAGS="-pthread $CXXFLAGS"
  13149. fi
  13150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13151. /* end confdefs.h. */
  13152. #include <boost/thread/thread.hpp>
  13153. int
  13154. main ()
  13155. {
  13156. boost::thread_group thrds;
  13157. return 0;
  13158. ;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_cxx_try_compile "$LINENO"; then :
  13163. ax_cv_boost_thread=yes
  13164. else
  13165. ax_cv_boost_thread=no
  13166. fi
  13167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13168. CXXFLAGS=$CXXFLAGS_SAVE
  13169. ac_ext=cpp
  13170. ac_cpp='$CXXCPP $CPPFLAGS'
  13171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13174. fi
  13175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13176. $as_echo "$ax_cv_boost_thread" >&6; }
  13177. if test "x$ax_cv_boost_thread" = "xyes"; then
  13178. if test "x$build_os" = "xsolaris" ; then
  13179. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13180. elif test "x$build_os" = "xming32" ; then
  13181. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13182. else
  13183. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13184. fi
  13185. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13186. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13187. LDFLAGS_SAVE=$LDFLAGS
  13188. case "x$build_os" in
  13189. *bsd* )
  13190. LDFLAGS="-pthread $LDFLAGS"
  13191. break;
  13192. ;;
  13193. esac
  13194. if test "x$ax_boost_user_thread_lib" = "x"; then
  13195. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;' -e 's;^lib\(boost_thread.*\)\.a*$;\1;'` ; do
  13196. ax_lib=${libextension}
  13197. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13199. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13200. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13201. $as_echo_n "(cached) " >&6
  13202. else
  13203. ac_check_lib_save_LIBS=$LIBS
  13204. LIBS="-l$ax_lib $LIBS"
  13205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13206. /* end confdefs.h. */
  13207. /* Override any GCC internal prototype to avoid an error.
  13208. Use char because int might match the return type of a GCC
  13209. builtin and then its argument prototype would still apply. */
  13210. #ifdef __cplusplus
  13211. extern "C"
  13212. #endif
  13213. char exit ();
  13214. int
  13215. main ()
  13216. {
  13217. return exit ();
  13218. ;
  13219. return 0;
  13220. }
  13221. _ACEOF
  13222. if ac_fn_cxx_try_link "$LINENO"; then :
  13223. eval "$as_ac_Lib=yes"
  13224. else
  13225. eval "$as_ac_Lib=no"
  13226. fi
  13227. rm -f core conftest.err conftest.$ac_objext \
  13228. conftest$ac_exeext conftest.$ac_ext
  13229. LIBS=$ac_check_lib_save_LIBS
  13230. fi
  13231. eval ac_res=\$$as_ac_Lib
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13233. $as_echo "$ac_res" >&6; }
  13234. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13235. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13236. else
  13237. link_thread="no"
  13238. fi
  13239. done
  13240. if test "x$link_thread" != "xyes"; then
  13241. for libextension in `ls $BOOSTLIBDIR/boost_thread*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;' -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  13242. ax_lib=${libextension}
  13243. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13245. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13246. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13247. $as_echo_n "(cached) " >&6
  13248. else
  13249. ac_check_lib_save_LIBS=$LIBS
  13250. LIBS="-l$ax_lib $LIBS"
  13251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13252. /* end confdefs.h. */
  13253. /* Override any GCC internal prototype to avoid an error.
  13254. Use char because int might match the return type of a GCC
  13255. builtin and then its argument prototype would still apply. */
  13256. #ifdef __cplusplus
  13257. extern "C"
  13258. #endif
  13259. char exit ();
  13260. int
  13261. main ()
  13262. {
  13263. return exit ();
  13264. ;
  13265. return 0;
  13266. }
  13267. _ACEOF
  13268. if ac_fn_cxx_try_link "$LINENO"; then :
  13269. eval "$as_ac_Lib=yes"
  13270. else
  13271. eval "$as_ac_Lib=no"
  13272. fi
  13273. rm -f core conftest.err conftest.$ac_objext \
  13274. conftest$ac_exeext conftest.$ac_ext
  13275. LIBS=$ac_check_lib_save_LIBS
  13276. fi
  13277. eval ac_res=\$$as_ac_Lib
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13279. $as_echo "$ac_res" >&6; }
  13280. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13281. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13282. else
  13283. link_thread="no"
  13284. fi
  13285. done
  13286. fi
  13287. else
  13288. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13289. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13291. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13292. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13293. $as_echo_n "(cached) " >&6
  13294. else
  13295. ac_check_lib_save_LIBS=$LIBS
  13296. LIBS="-l$ax_lib $LIBS"
  13297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13298. /* end confdefs.h. */
  13299. /* Override any GCC internal prototype to avoid an error.
  13300. Use char because int might match the return type of a GCC
  13301. builtin and then its argument prototype would still apply. */
  13302. #ifdef __cplusplus
  13303. extern "C"
  13304. #endif
  13305. char exit ();
  13306. int
  13307. main ()
  13308. {
  13309. return exit ();
  13310. ;
  13311. return 0;
  13312. }
  13313. _ACEOF
  13314. if ac_fn_cxx_try_link "$LINENO"; then :
  13315. eval "$as_ac_Lib=yes"
  13316. else
  13317. eval "$as_ac_Lib=no"
  13318. fi
  13319. rm -f core conftest.err conftest.$ac_objext \
  13320. conftest$ac_exeext conftest.$ac_ext
  13321. LIBS=$ac_check_lib_save_LIBS
  13322. fi
  13323. eval ac_res=\$$as_ac_Lib
  13324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13325. $as_echo "$ac_res" >&6; }
  13326. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13327. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13328. else
  13329. link_thread="no"
  13330. fi
  13331. done
  13332. fi
  13333. if test "x$link_thread" = "xno"; then
  13334. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13335. else
  13336. case "x$build_os" in
  13337. *bsd* )
  13338. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13339. break;
  13340. ;;
  13341. esac
  13342. fi
  13343. fi
  13344. CPPFLAGS="$CPPFLAGS_SAVED"
  13345. LDFLAGS="$LDFLAGS_SAVED"
  13346. fi
  13347. # Check whether --with-boost-iostreams was given.
  13348. if test "${with_boost_iostreams+set}" = set; then :
  13349. withval=$with_boost_iostreams;
  13350. if test "$withval" = "no"; then
  13351. want_boost="no"
  13352. elif test "$withval" = "yes"; then
  13353. want_boost="yes"
  13354. ax_boost_user_iostreams_lib=""
  13355. else
  13356. want_boost="yes"
  13357. ax_boost_user_iostreams_lib="$withval"
  13358. fi
  13359. else
  13360. want_boost="yes"
  13361. fi
  13362. if test "x$want_boost" = "xyes"; then
  13363. CPPFLAGS_SAVED="$CPPFLAGS"
  13364. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13365. export CPPFLAGS
  13366. LDFLAGS_SAVED="$LDFLAGS"
  13367. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13368. export LDFLAGS
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13370. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13371. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13372. $as_echo_n "(cached) " >&6
  13373. else
  13374. ac_ext=cpp
  13375. ac_cpp='$CXXCPP $CPPFLAGS'
  13376. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13377. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13378. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13380. /* end confdefs.h. */
  13381. #include <boost/iostreams/filtering_stream.hpp>
  13382. #include <boost/range/iterator_range.hpp>
  13383. int
  13384. main ()
  13385. {
  13386. std::string input = "Hello World!";
  13387. namespace io = boost::iostreams;
  13388. io::filtering_istream in(boost::make_iterator_range(input));
  13389. return 0;
  13390. ;
  13391. return 0;
  13392. }
  13393. _ACEOF
  13394. if ac_fn_cxx_try_compile "$LINENO"; then :
  13395. ax_cv_boost_iostreams=yes
  13396. else
  13397. ax_cv_boost_iostreams=no
  13398. fi
  13399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13400. ac_ext=cpp
  13401. ac_cpp='$CXXCPP $CPPFLAGS'
  13402. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13403. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13404. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13405. fi
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13407. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13408. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13409. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13410. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13411. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13412. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13413. ax_lib=${libextension}
  13414. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13416. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13417. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13418. $as_echo_n "(cached) " >&6
  13419. else
  13420. ac_check_lib_save_LIBS=$LIBS
  13421. LIBS="-l$ax_lib $LIBS"
  13422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13423. /* end confdefs.h. */
  13424. /* Override any GCC internal prototype to avoid an error.
  13425. Use char because int might match the return type of a GCC
  13426. builtin and then its argument prototype would still apply. */
  13427. #ifdef __cplusplus
  13428. extern "C"
  13429. #endif
  13430. char exit ();
  13431. int
  13432. main ()
  13433. {
  13434. return exit ();
  13435. ;
  13436. return 0;
  13437. }
  13438. _ACEOF
  13439. if ac_fn_cxx_try_link "$LINENO"; then :
  13440. eval "$as_ac_Lib=yes"
  13441. else
  13442. eval "$as_ac_Lib=no"
  13443. fi
  13444. rm -f core conftest.err conftest.$ac_objext \
  13445. conftest$ac_exeext conftest.$ac_ext
  13446. LIBS=$ac_check_lib_save_LIBS
  13447. fi
  13448. eval ac_res=\$$as_ac_Lib
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13450. $as_echo "$ac_res" >&6; }
  13451. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13452. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13453. else
  13454. link_iostreams="no"
  13455. fi
  13456. done
  13457. if test "x$link_iostreams" != "xyes"; then
  13458. 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
  13459. ax_lib=${libextension}
  13460. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13462. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13463. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13464. $as_echo_n "(cached) " >&6
  13465. else
  13466. ac_check_lib_save_LIBS=$LIBS
  13467. LIBS="-l$ax_lib $LIBS"
  13468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13469. /* end confdefs.h. */
  13470. /* Override any GCC internal prototype to avoid an error.
  13471. Use char because int might match the return type of a GCC
  13472. builtin and then its argument prototype would still apply. */
  13473. #ifdef __cplusplus
  13474. extern "C"
  13475. #endif
  13476. char exit ();
  13477. int
  13478. main ()
  13479. {
  13480. return exit ();
  13481. ;
  13482. return 0;
  13483. }
  13484. _ACEOF
  13485. if ac_fn_cxx_try_link "$LINENO"; then :
  13486. eval "$as_ac_Lib=yes"
  13487. else
  13488. eval "$as_ac_Lib=no"
  13489. fi
  13490. rm -f core conftest.err conftest.$ac_objext \
  13491. conftest$ac_exeext conftest.$ac_ext
  13492. LIBS=$ac_check_lib_save_LIBS
  13493. fi
  13494. eval ac_res=\$$as_ac_Lib
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13496. $as_echo "$ac_res" >&6; }
  13497. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13498. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13499. else
  13500. link_iostreams="no"
  13501. fi
  13502. done
  13503. fi
  13504. else
  13505. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13506. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13508. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13509. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13510. $as_echo_n "(cached) " >&6
  13511. else
  13512. ac_check_lib_save_LIBS=$LIBS
  13513. LIBS="-l$ax_lib $LIBS"
  13514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13515. /* end confdefs.h. */
  13516. int
  13517. main ()
  13518. {
  13519. return main ();
  13520. ;
  13521. return 0;
  13522. }
  13523. _ACEOF
  13524. if ac_fn_cxx_try_link "$LINENO"; then :
  13525. eval "$as_ac_Lib=yes"
  13526. else
  13527. eval "$as_ac_Lib=no"
  13528. fi
  13529. rm -f core conftest.err conftest.$ac_objext \
  13530. conftest$ac_exeext conftest.$ac_ext
  13531. LIBS=$ac_check_lib_save_LIBS
  13532. fi
  13533. eval ac_res=\$$as_ac_Lib
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13535. $as_echo "$ac_res" >&6; }
  13536. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13537. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13538. else
  13539. link_iostreams="no"
  13540. fi
  13541. done
  13542. fi
  13543. if test "x$link_iostreams" != "xyes"; then
  13544. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13545. fi
  13546. fi
  13547. CPPFLAGS="$CPPFLAGS_SAVED"
  13548. LDFLAGS="$LDFLAGS_SAVED"
  13549. fi
  13550. # Check whether --with-boost-program-options was given.
  13551. if test "${with_boost_program_options+set}" = set; then :
  13552. withval=$with_boost_program_options;
  13553. if test "$withval" = "no"; then
  13554. want_boost="no"
  13555. elif test "$withval" = "yes"; then
  13556. want_boost="yes"
  13557. ax_boost_user_program_options_lib=""
  13558. else
  13559. want_boost="yes"
  13560. ax_boost_user_program_options_lib="$withval"
  13561. fi
  13562. else
  13563. want_boost="yes"
  13564. fi
  13565. if test "x$want_boost" = "xyes"; then
  13566. export want_boost
  13567. CPPFLAGS_SAVED="$CPPFLAGS"
  13568. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13569. export CPPFLAGS
  13570. LDFLAGS_SAVED="$LDFLAGS"
  13571. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13572. export LDFLAGS
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  13574. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  13575. if test "${ax_cv_boost_program_options+set}" = set; then :
  13576. $as_echo_n "(cached) " >&6
  13577. else
  13578. ac_ext=cpp
  13579. ac_cpp='$CXXCPP $CPPFLAGS'
  13580. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13581. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13582. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13584. /* end confdefs.h. */
  13585. #include <boost/program_options.hpp>
  13586. int
  13587. main ()
  13588. {
  13589. boost::program_options::options_description generic("Generic options");
  13590. return 0;
  13591. ;
  13592. return 0;
  13593. }
  13594. _ACEOF
  13595. if ac_fn_cxx_try_compile "$LINENO"; then :
  13596. ax_cv_boost_program_options=yes
  13597. else
  13598. ax_cv_boost_program_options=no
  13599. fi
  13600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13601. ac_ext=cpp
  13602. ac_cpp='$CXXCPP $CPPFLAGS'
  13603. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13604. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13605. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13606. fi
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  13608. $as_echo "$ax_cv_boost_program_options" >&6; }
  13609. if test "$ax_cv_boost_program_options" = yes; then
  13610. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  13611. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13612. if test "x$ax_boost_user_program_options_lib" = "x"; then
  13613. 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
  13614. ax_lib=${libextension}
  13615. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13617. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13618. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13619. $as_echo_n "(cached) " >&6
  13620. else
  13621. ac_check_lib_save_LIBS=$LIBS
  13622. LIBS="-l$ax_lib $LIBS"
  13623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13624. /* end confdefs.h. */
  13625. /* Override any GCC internal prototype to avoid an error.
  13626. Use char because int might match the return type of a GCC
  13627. builtin and then its argument prototype would still apply. */
  13628. #ifdef __cplusplus
  13629. extern "C"
  13630. #endif
  13631. char exit ();
  13632. int
  13633. main ()
  13634. {
  13635. return exit ();
  13636. ;
  13637. return 0;
  13638. }
  13639. _ACEOF
  13640. if ac_fn_cxx_try_link "$LINENO"; then :
  13641. eval "$as_ac_Lib=yes"
  13642. else
  13643. eval "$as_ac_Lib=no"
  13644. fi
  13645. rm -f core conftest.err conftest.$ac_objext \
  13646. conftest$ac_exeext conftest.$ac_ext
  13647. LIBS=$ac_check_lib_save_LIBS
  13648. fi
  13649. eval ac_res=\$$as_ac_Lib
  13650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13651. $as_echo "$ac_res" >&6; }
  13652. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13653. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13654. else
  13655. link_program_options="no"
  13656. fi
  13657. done
  13658. if test "x$link_program_options" != "xyes"; then
  13659. 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
  13660. ax_lib=${libextension}
  13661. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13663. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13664. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13665. $as_echo_n "(cached) " >&6
  13666. else
  13667. ac_check_lib_save_LIBS=$LIBS
  13668. LIBS="-l$ax_lib $LIBS"
  13669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13670. /* end confdefs.h. */
  13671. /* Override any GCC internal prototype to avoid an error.
  13672. Use char because int might match the return type of a GCC
  13673. builtin and then its argument prototype would still apply. */
  13674. #ifdef __cplusplus
  13675. extern "C"
  13676. #endif
  13677. char exit ();
  13678. int
  13679. main ()
  13680. {
  13681. return exit ();
  13682. ;
  13683. return 0;
  13684. }
  13685. _ACEOF
  13686. if ac_fn_cxx_try_link "$LINENO"; then :
  13687. eval "$as_ac_Lib=yes"
  13688. else
  13689. eval "$as_ac_Lib=no"
  13690. fi
  13691. rm -f core conftest.err conftest.$ac_objext \
  13692. conftest$ac_exeext conftest.$ac_ext
  13693. LIBS=$ac_check_lib_save_LIBS
  13694. fi
  13695. eval ac_res=\$$as_ac_Lib
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13697. $as_echo "$ac_res" >&6; }
  13698. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13699. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13700. else
  13701. link_program_options="no"
  13702. fi
  13703. done
  13704. fi
  13705. else
  13706. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  13707. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13709. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13710. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13711. $as_echo_n "(cached) " >&6
  13712. else
  13713. ac_check_lib_save_LIBS=$LIBS
  13714. LIBS="-l$ax_lib $LIBS"
  13715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13716. /* end confdefs.h. */
  13717. int
  13718. main ()
  13719. {
  13720. return main ();
  13721. ;
  13722. return 0;
  13723. }
  13724. _ACEOF
  13725. if ac_fn_cxx_try_link "$LINENO"; then :
  13726. eval "$as_ac_Lib=yes"
  13727. else
  13728. eval "$as_ac_Lib=no"
  13729. fi
  13730. rm -f core conftest.err conftest.$ac_objext \
  13731. conftest$ac_exeext conftest.$ac_ext
  13732. LIBS=$ac_check_lib_save_LIBS
  13733. fi
  13734. eval ac_res=\$$as_ac_Lib
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13736. $as_echo "$ac_res" >&6; }
  13737. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13738. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13739. else
  13740. link_program_options="no"
  13741. fi
  13742. done
  13743. fi
  13744. if test "x$ax_lib" = "x"; then
  13745. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13746. fi
  13747. if test "x$link_program_options" != "xyes"; then
  13748. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13749. fi
  13750. fi
  13751. CPPFLAGS="$CPPFLAGS_SAVED"
  13752. LDFLAGS="$LDFLAGS_SAVED"
  13753. fi
  13754. # Check for SDL libraries
  13755. saved_LIBS=$LIBS
  13756. # Extract the first word of "sdl-config", so it can be a program name with args.
  13757. set dummy sdl-config; ac_word=$2
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13759. $as_echo_n "checking for $ac_word... " >&6; }
  13760. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13761. $as_echo_n "(cached) " >&6
  13762. else
  13763. if test -n "$HAVE_SDL_CONFIG"; then
  13764. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13765. else
  13766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13767. for as_dir in $PATH
  13768. do
  13769. IFS=$as_save_IFS
  13770. test -z "$as_dir" && as_dir=.
  13771. for ac_exec_ext in '' $ac_executable_extensions; do
  13772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13773. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13775. break 2
  13776. fi
  13777. done
  13778. done
  13779. IFS=$as_save_IFS
  13780. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13781. fi
  13782. fi
  13783. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13784. if test -n "$HAVE_SDL_CONFIG"; then
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13786. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13787. else
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13789. $as_echo "no" >&6; }
  13790. fi
  13791. if test "$HAVE_SDL_CONFIG" = no; then
  13792. as_fn_error $? "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13793. fi
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13795. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13796. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13797. $as_echo_n "(cached) " >&6
  13798. else
  13799. ac_check_lib_save_LIBS=$LIBS
  13800. LIBS="-lSDL $LIBS"
  13801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13802. /* end confdefs.h. */
  13803. /* Override any GCC internal prototype to avoid an error.
  13804. Use char because int might match the return type of a GCC
  13805. builtin and then its argument prototype would still apply. */
  13806. #ifdef __cplusplus
  13807. extern "C"
  13808. #endif
  13809. char SDL_Init ();
  13810. int
  13811. main ()
  13812. {
  13813. return SDL_Init ();
  13814. ;
  13815. return 0;
  13816. }
  13817. _ACEOF
  13818. if ac_fn_cxx_try_link "$LINENO"; then :
  13819. ac_cv_lib_SDL_SDL_Init=yes
  13820. else
  13821. ac_cv_lib_SDL_SDL_Init=no
  13822. fi
  13823. rm -f core conftest.err conftest.$ac_objext \
  13824. conftest$ac_exeext conftest.$ac_ext
  13825. LIBS=$ac_check_lib_save_LIBS
  13826. fi
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13828. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13829. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13830. cat >>confdefs.h <<_ACEOF
  13831. #define HAVE_LIBSDL 1
  13832. _ACEOF
  13833. LIBS="-lSDL $LIBS"
  13834. else
  13835. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  13836. fi
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13838. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13839. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13840. $as_echo_n "(cached) " >&6
  13841. else
  13842. ac_check_lib_save_LIBS=$LIBS
  13843. LIBS="-lSDL_mixer $LIBS"
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. int
  13847. main ()
  13848. {
  13849. return main ();
  13850. ;
  13851. return 0;
  13852. }
  13853. _ACEOF
  13854. if ac_fn_cxx_try_link "$LINENO"; then :
  13855. ac_cv_lib_SDL_mixer_main=yes
  13856. else
  13857. ac_cv_lib_SDL_mixer_main=no
  13858. fi
  13859. rm -f core conftest.err conftest.$ac_objext \
  13860. conftest$ac_exeext conftest.$ac_ext
  13861. LIBS=$ac_check_lib_save_LIBS
  13862. fi
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13864. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13865. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13866. cat >>confdefs.h <<_ACEOF
  13867. #define HAVE_LIBSDL_MIXER 1
  13868. _ACEOF
  13869. LIBS="-lSDL_mixer $LIBS"
  13870. else
  13871. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  13872. fi
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13874. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13875. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13876. $as_echo_n "(cached) " >&6
  13877. else
  13878. ac_check_lib_save_LIBS=$LIBS
  13879. LIBS="-lSDL_image $LIBS"
  13880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13881. /* end confdefs.h. */
  13882. /* Override any GCC internal prototype to avoid an error.
  13883. Use char because int might match the return type of a GCC
  13884. builtin and then its argument prototype would still apply. */
  13885. #ifdef __cplusplus
  13886. extern "C"
  13887. #endif
  13888. char IMG_Load ();
  13889. int
  13890. main ()
  13891. {
  13892. return IMG_Load ();
  13893. ;
  13894. return 0;
  13895. }
  13896. _ACEOF
  13897. if ac_fn_cxx_try_link "$LINENO"; then :
  13898. ac_cv_lib_SDL_image_IMG_Load=yes
  13899. else
  13900. ac_cv_lib_SDL_image_IMG_Load=no
  13901. fi
  13902. rm -f core conftest.err conftest.$ac_objext \
  13903. conftest$ac_exeext conftest.$ac_ext
  13904. LIBS=$ac_check_lib_save_LIBS
  13905. fi
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13907. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13908. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13909. cat >>confdefs.h <<_ACEOF
  13910. #define HAVE_LIBSDL_IMAGE 1
  13911. _ACEOF
  13912. LIBS="-lSDL_image $LIBS"
  13913. else
  13914. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  13915. fi
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13917. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13918. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. ac_check_lib_save_LIBS=$LIBS
  13922. LIBS="-lSDL_ttf $LIBS"
  13923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13924. /* end confdefs.h. */
  13925. int
  13926. main ()
  13927. {
  13928. return main ();
  13929. ;
  13930. return 0;
  13931. }
  13932. _ACEOF
  13933. if ac_fn_cxx_try_link "$LINENO"; then :
  13934. ac_cv_lib_SDL_ttf_main=yes
  13935. else
  13936. ac_cv_lib_SDL_ttf_main=no
  13937. fi
  13938. rm -f core conftest.err conftest.$ac_objext \
  13939. conftest$ac_exeext conftest.$ac_ext
  13940. LIBS=$ac_check_lib_save_LIBS
  13941. fi
  13942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  13943. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  13944. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  13945. cat >>confdefs.h <<_ACEOF
  13946. #define HAVE_LIBSDL_TTF 1
  13947. _ACEOF
  13948. LIBS="-lSDL_ttf $LIBS"
  13949. else
  13950. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  13951. fi
  13952. SDL_CXXFLAGS=`sdl-config --cflags`
  13953. SDL_LIBS="`sdl-config --libs` $LIBS"
  13954. LIBS=$saved_LIBS
  13955. # Check for ffmpeg libraries
  13956. saved_LIBS=$LIBS
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
  13958. $as_echo_n "checking for main in -lavformat... " >&6; }
  13959. if test "${ac_cv_lib_avformat_main+set}" = set; then :
  13960. $as_echo_n "(cached) " >&6
  13961. else
  13962. ac_check_lib_save_LIBS=$LIBS
  13963. LIBS="-lavformat $LIBS"
  13964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13965. /* end confdefs.h. */
  13966. int
  13967. main ()
  13968. {
  13969. return main ();
  13970. ;
  13971. return 0;
  13972. }
  13973. _ACEOF
  13974. if ac_fn_cxx_try_link "$LINENO"; then :
  13975. ac_cv_lib_avformat_main=yes
  13976. else
  13977. ac_cv_lib_avformat_main=no
  13978. fi
  13979. rm -f core conftest.err conftest.$ac_objext \
  13980. conftest$ac_exeext conftest.$ac_ext
  13981. LIBS=$ac_check_lib_save_LIBS
  13982. fi
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
  13984. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  13985. if test "x$ac_cv_lib_avformat_main" = x""yes; then :
  13986. cat >>confdefs.h <<_ACEOF
  13987. #define HAVE_LIBAVFORMAT 1
  13988. _ACEOF
  13989. LIBS="-lavformat $LIBS"
  13990. else
  13991. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
  13994. $as_echo_n "checking for main in -lswscale... " >&6; }
  13995. if test "${ac_cv_lib_swscale_main+set}" = set; then :
  13996. $as_echo_n "(cached) " >&6
  13997. else
  13998. ac_check_lib_save_LIBS=$LIBS
  13999. LIBS="-lswscale $LIBS"
  14000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14001. /* end confdefs.h. */
  14002. int
  14003. main ()
  14004. {
  14005. return main ();
  14006. ;
  14007. return 0;
  14008. }
  14009. _ACEOF
  14010. if ac_fn_cxx_try_link "$LINENO"; then :
  14011. ac_cv_lib_swscale_main=yes
  14012. else
  14013. ac_cv_lib_swscale_main=no
  14014. fi
  14015. rm -f core conftest.err conftest.$ac_objext \
  14016. conftest$ac_exeext conftest.$ac_ext
  14017. LIBS=$ac_check_lib_save_LIBS
  14018. fi
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
  14020. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  14021. if test "x$ac_cv_lib_swscale_main" = x""yes; then :
  14022. cat >>confdefs.h <<_ACEOF
  14023. #define HAVE_LIBSWSCALE 1
  14024. _ACEOF
  14025. LIBS="-lswscale $LIBS"
  14026. else
  14027. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14028. fi
  14029. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  14030. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  14031. LIBS=$saved_LIBS
  14032. # Checks for header files.
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14034. $as_echo_n "checking for ANSI C header files... " >&6; }
  14035. if test "${ac_cv_header_stdc+set}" = set; then :
  14036. $as_echo_n "(cached) " >&6
  14037. else
  14038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14039. /* end confdefs.h. */
  14040. #include <stdlib.h>
  14041. #include <stdarg.h>
  14042. #include <string.h>
  14043. #include <float.h>
  14044. int
  14045. main ()
  14046. {
  14047. ;
  14048. return 0;
  14049. }
  14050. _ACEOF
  14051. if ac_fn_cxx_try_compile "$LINENO"; then :
  14052. ac_cv_header_stdc=yes
  14053. else
  14054. ac_cv_header_stdc=no
  14055. fi
  14056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14057. if test $ac_cv_header_stdc = yes; then
  14058. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14060. /* end confdefs.h. */
  14061. #include <string.h>
  14062. _ACEOF
  14063. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14064. $EGREP "memchr" >/dev/null 2>&1; then :
  14065. else
  14066. ac_cv_header_stdc=no
  14067. fi
  14068. rm -f conftest*
  14069. fi
  14070. if test $ac_cv_header_stdc = yes; then
  14071. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14073. /* end confdefs.h. */
  14074. #include <stdlib.h>
  14075. _ACEOF
  14076. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14077. $EGREP "free" >/dev/null 2>&1; then :
  14078. else
  14079. ac_cv_header_stdc=no
  14080. fi
  14081. rm -f conftest*
  14082. fi
  14083. if test $ac_cv_header_stdc = yes; then
  14084. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14085. if test "$cross_compiling" = yes; then :
  14086. :
  14087. else
  14088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14089. /* end confdefs.h. */
  14090. #include <ctype.h>
  14091. #include <stdlib.h>
  14092. #if ((' ' & 0x0FF) == 0x020)
  14093. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14094. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14095. #else
  14096. # define ISLOWER(c) \
  14097. (('a' <= (c) && (c) <= 'i') \
  14098. || ('j' <= (c) && (c) <= 'r') \
  14099. || ('s' <= (c) && (c) <= 'z'))
  14100. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14101. #endif
  14102. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14103. int
  14104. main ()
  14105. {
  14106. int i;
  14107. for (i = 0; i < 256; i++)
  14108. if (XOR (islower (i), ISLOWER (i))
  14109. || toupper (i) != TOUPPER (i))
  14110. return 2;
  14111. return 0;
  14112. }
  14113. _ACEOF
  14114. if ac_fn_cxx_try_run "$LINENO"; then :
  14115. else
  14116. ac_cv_header_stdc=no
  14117. fi
  14118. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14119. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14120. fi
  14121. fi
  14122. fi
  14123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14124. $as_echo "$ac_cv_header_stdc" >&6; }
  14125. if test $ac_cv_header_stdc = yes; then
  14126. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14127. fi
  14128. for ac_header in fcntl.h stdlib.h string.h
  14129. do :
  14130. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14131. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14132. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14133. cat >>confdefs.h <<_ACEOF
  14134. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14135. _ACEOF
  14136. fi
  14137. done
  14138. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14139. 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
  14140. do :
  14141. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14142. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14143. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14144. cat >>confdefs.h <<_ACEOF
  14145. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14146. _ACEOF
  14147. else
  14148. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  14149. fi
  14150. done
  14151. # Checks for library functions.
  14152. for ac_func in atexit memset pow select sqrt
  14153. do :
  14154. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14155. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14156. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14157. cat >>confdefs.h <<_ACEOF
  14158. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14159. _ACEOF
  14160. fi
  14161. done
  14162. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  14163. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  14164. cat >confcache <<\_ACEOF
  14165. # This file is a shell script that caches the results of configure
  14166. # tests run on this system so they can be shared between configure
  14167. # scripts and configure runs, see configure's option --config-cache.
  14168. # It is not useful on other systems. If it contains results you don't
  14169. # want to keep, you may remove or edit it.
  14170. #
  14171. # config.status only pays attention to the cache file if you give it
  14172. # the --recheck option to rerun configure.
  14173. #
  14174. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14175. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14176. # following values.
  14177. _ACEOF
  14178. # The following way of writing the cache mishandles newlines in values,
  14179. # but we know of no workaround that is simple, portable, and efficient.
  14180. # So, we kill variables containing newlines.
  14181. # Ultrix sh set writes to stderr and can't be redirected directly,
  14182. # and sets the high bit in the cache file unless we assign to the vars.
  14183. (
  14184. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14185. eval ac_val=\$$ac_var
  14186. case $ac_val in #(
  14187. *${as_nl}*)
  14188. case $ac_var in #(
  14189. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14190. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14191. esac
  14192. case $ac_var in #(
  14193. _ | IFS | as_nl) ;; #(
  14194. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14195. *) { eval $ac_var=; unset $ac_var;} ;;
  14196. esac ;;
  14197. esac
  14198. done
  14199. (set) 2>&1 |
  14200. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14201. *${as_nl}ac_space=\ *)
  14202. # `set' does not quote correctly, so add quotes: double-quote
  14203. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14204. sed -n \
  14205. "s/'/'\\\\''/g;
  14206. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14207. ;; #(
  14208. *)
  14209. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14210. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14211. ;;
  14212. esac |
  14213. sort
  14214. ) |
  14215. sed '
  14216. /^ac_cv_env_/b end
  14217. t clear
  14218. :clear
  14219. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14220. t end
  14221. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14222. :end' >>confcache
  14223. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14224. if test -w "$cache_file"; then
  14225. test "x$cache_file" != "x/dev/null" &&
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14227. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14228. cat confcache >$cache_file
  14229. else
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14231. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14232. fi
  14233. fi
  14234. rm -f confcache
  14235. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14236. # Let make expand exec_prefix.
  14237. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14238. # Transform confdefs.h into DEFS.
  14239. # Protect against shell expansion while executing Makefile rules.
  14240. # Protect against Makefile macro expansion.
  14241. #
  14242. # If the first sed substitution is executed (which looks for macros that
  14243. # take arguments), then branch to the quote section. Otherwise,
  14244. # look for a macro that doesn't take arguments.
  14245. ac_script='
  14246. :mline
  14247. /\\$/{
  14248. N
  14249. s,\\\n,,
  14250. b mline
  14251. }
  14252. t clear
  14253. :clear
  14254. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14255. t quote
  14256. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14257. t quote
  14258. b any
  14259. :quote
  14260. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14261. s/\[/\\&/g
  14262. s/\]/\\&/g
  14263. s/\$/$$/g
  14264. H
  14265. :any
  14266. ${
  14267. g
  14268. s/^\n//
  14269. s/\n/ /g
  14270. p
  14271. }
  14272. '
  14273. DEFS=`sed -n "$ac_script" confdefs.h`
  14274. ac_libobjs=
  14275. ac_ltlibobjs=
  14276. U=
  14277. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14278. # 1. Remove the extension, and $U if already installed.
  14279. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14280. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14281. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14282. # will be set to the directory where LIBOBJS objects are built.
  14283. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14284. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14285. done
  14286. LIBOBJS=$ac_libobjs
  14287. LTLIBOBJS=$ac_ltlibobjs
  14288. if test -n "$EXEEXT"; then
  14289. am__EXEEXT_TRUE=
  14290. am__EXEEXT_FALSE='#'
  14291. else
  14292. am__EXEEXT_TRUE='#'
  14293. am__EXEEXT_FALSE=
  14294. fi
  14295. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14296. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14298. fi
  14299. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14300. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14302. fi
  14303. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14304. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14306. fi
  14307. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14308. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14310. fi
  14311. : ${CONFIG_STATUS=./config.status}
  14312. ac_write_fail=0
  14313. ac_clean_files_save=$ac_clean_files
  14314. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14316. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14317. as_write_fail=0
  14318. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14319. #! $SHELL
  14320. # Generated by $as_me.
  14321. # Run this file to recreate the current configuration.
  14322. # Compiler output produced by configure, useful for debugging
  14323. # configure, is in config.log if it exists.
  14324. debug=false
  14325. ac_cs_recheck=false
  14326. ac_cs_silent=false
  14327. SHELL=\${CONFIG_SHELL-$SHELL}
  14328. export SHELL
  14329. _ASEOF
  14330. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14331. ## -------------------- ##
  14332. ## M4sh Initialization. ##
  14333. ## -------------------- ##
  14334. # Be more Bourne compatible
  14335. DUALCASE=1; export DUALCASE # for MKS sh
  14336. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14337. emulate sh
  14338. NULLCMD=:
  14339. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14340. # is contrary to our usage. Disable this feature.
  14341. alias -g '${1+"$@"}'='"$@"'
  14342. setopt NO_GLOB_SUBST
  14343. else
  14344. case `(set -o) 2>/dev/null` in #(
  14345. *posix*) :
  14346. set -o posix ;; #(
  14347. *) :
  14348. ;;
  14349. esac
  14350. fi
  14351. as_nl='
  14352. '
  14353. export as_nl
  14354. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14355. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14356. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14357. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14358. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14359. # but without wasting forks for bash or zsh.
  14360. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14361. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14362. as_echo='print -r --'
  14363. as_echo_n='print -rn --'
  14364. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14365. as_echo='printf %s\n'
  14366. as_echo_n='printf %s'
  14367. else
  14368. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14369. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14370. as_echo_n='/usr/ucb/echo -n'
  14371. else
  14372. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14373. as_echo_n_body='eval
  14374. arg=$1;
  14375. case $arg in #(
  14376. *"$as_nl"*)
  14377. expr "X$arg" : "X\\(.*\\)$as_nl";
  14378. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14379. esac;
  14380. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14381. '
  14382. export as_echo_n_body
  14383. as_echo_n='sh -c $as_echo_n_body as_echo'
  14384. fi
  14385. export as_echo_body
  14386. as_echo='sh -c $as_echo_body as_echo'
  14387. fi
  14388. # The user is always right.
  14389. if test "${PATH_SEPARATOR+set}" != set; then
  14390. PATH_SEPARATOR=:
  14391. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14392. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14393. PATH_SEPARATOR=';'
  14394. }
  14395. fi
  14396. # IFS
  14397. # We need space, tab and new line, in precisely that order. Quoting is
  14398. # there to prevent editors from complaining about space-tab.
  14399. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14400. # splitting by setting IFS to empty value.)
  14401. IFS=" "" $as_nl"
  14402. # Find who we are. Look in the path if we contain no directory separator.
  14403. case $0 in #((
  14404. *[\\/]* ) as_myself=$0 ;;
  14405. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14406. for as_dir in $PATH
  14407. do
  14408. IFS=$as_save_IFS
  14409. test -z "$as_dir" && as_dir=.
  14410. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14411. done
  14412. IFS=$as_save_IFS
  14413. ;;
  14414. esac
  14415. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14416. # in which case we are not to be found in the path.
  14417. if test "x$as_myself" = x; then
  14418. as_myself=$0
  14419. fi
  14420. if test ! -f "$as_myself"; then
  14421. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14422. exit 1
  14423. fi
  14424. # Unset variables that we do not need and which cause bugs (e.g. in
  14425. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14426. # suppresses any "Segmentation fault" message there. '((' could
  14427. # trigger a bug in pdksh 5.2.14.
  14428. for as_var in BASH_ENV ENV MAIL MAILPATH
  14429. do eval test x\${$as_var+set} = xset \
  14430. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14431. done
  14432. PS1='$ '
  14433. PS2='> '
  14434. PS4='+ '
  14435. # NLS nuisances.
  14436. LC_ALL=C
  14437. export LC_ALL
  14438. LANGUAGE=C
  14439. export LANGUAGE
  14440. # CDPATH.
  14441. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14442. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14443. # ----------------------------------------
  14444. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14445. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14446. # script with STATUS, using 1 if that was 0.
  14447. as_fn_error ()
  14448. {
  14449. as_status=$1; test $as_status -eq 0 && as_status=1
  14450. if test "$4"; then
  14451. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14452. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14453. fi
  14454. $as_echo "$as_me: error: $2" >&2
  14455. as_fn_exit $as_status
  14456. } # as_fn_error
  14457. # as_fn_set_status STATUS
  14458. # -----------------------
  14459. # Set $? to STATUS, without forking.
  14460. as_fn_set_status ()
  14461. {
  14462. return $1
  14463. } # as_fn_set_status
  14464. # as_fn_exit STATUS
  14465. # -----------------
  14466. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14467. as_fn_exit ()
  14468. {
  14469. set +e
  14470. as_fn_set_status $1
  14471. exit $1
  14472. } # as_fn_exit
  14473. # as_fn_unset VAR
  14474. # ---------------
  14475. # Portably unset VAR.
  14476. as_fn_unset ()
  14477. {
  14478. { eval $1=; unset $1;}
  14479. }
  14480. as_unset=as_fn_unset
  14481. # as_fn_append VAR VALUE
  14482. # ----------------------
  14483. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14484. # advantage of any shell optimizations that allow amortized linear growth over
  14485. # repeated appends, instead of the typical quadratic growth present in naive
  14486. # implementations.
  14487. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14488. eval 'as_fn_append ()
  14489. {
  14490. eval $1+=\$2
  14491. }'
  14492. else
  14493. as_fn_append ()
  14494. {
  14495. eval $1=\$$1\$2
  14496. }
  14497. fi # as_fn_append
  14498. # as_fn_arith ARG...
  14499. # ------------------
  14500. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14501. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14502. # must be portable across $(()) and expr.
  14503. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14504. eval 'as_fn_arith ()
  14505. {
  14506. as_val=$(( $* ))
  14507. }'
  14508. else
  14509. as_fn_arith ()
  14510. {
  14511. as_val=`expr "$@" || test $? -eq 1`
  14512. }
  14513. fi # as_fn_arith
  14514. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14515. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14516. as_expr=expr
  14517. else
  14518. as_expr=false
  14519. fi
  14520. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14521. as_basename=basename
  14522. else
  14523. as_basename=false
  14524. fi
  14525. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14526. as_dirname=dirname
  14527. else
  14528. as_dirname=false
  14529. fi
  14530. as_me=`$as_basename -- "$0" ||
  14531. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14532. X"$0" : 'X\(//\)$' \| \
  14533. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14534. $as_echo X/"$0" |
  14535. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14536. s//\1/
  14537. q
  14538. }
  14539. /^X\/\(\/\/\)$/{
  14540. s//\1/
  14541. q
  14542. }
  14543. /^X\/\(\/\).*/{
  14544. s//\1/
  14545. q
  14546. }
  14547. s/.*/./; q'`
  14548. # Avoid depending upon Character Ranges.
  14549. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14550. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14551. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14552. as_cr_digits='0123456789'
  14553. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14554. ECHO_C= ECHO_N= ECHO_T=
  14555. case `echo -n x` in #(((((
  14556. -n*)
  14557. case `echo 'xy\c'` in
  14558. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14559. xy) ECHO_C='\c';;
  14560. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14561. ECHO_T=' ';;
  14562. esac;;
  14563. *)
  14564. ECHO_N='-n';;
  14565. esac
  14566. rm -f conf$$ conf$$.exe conf$$.file
  14567. if test -d conf$$.dir; then
  14568. rm -f conf$$.dir/conf$$.file
  14569. else
  14570. rm -f conf$$.dir
  14571. mkdir conf$$.dir 2>/dev/null
  14572. fi
  14573. if (echo >conf$$.file) 2>/dev/null; then
  14574. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14575. as_ln_s='ln -s'
  14576. # ... but there are two gotchas:
  14577. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14578. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14579. # In both cases, we have to default to `cp -p'.
  14580. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14581. as_ln_s='cp -p'
  14582. elif ln conf$$.file conf$$ 2>/dev/null; then
  14583. as_ln_s=ln
  14584. else
  14585. as_ln_s='cp -p'
  14586. fi
  14587. else
  14588. as_ln_s='cp -p'
  14589. fi
  14590. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14591. rmdir conf$$.dir 2>/dev/null
  14592. # as_fn_mkdir_p
  14593. # -------------
  14594. # Create "$as_dir" as a directory, including parents if necessary.
  14595. as_fn_mkdir_p ()
  14596. {
  14597. case $as_dir in #(
  14598. -*) as_dir=./$as_dir;;
  14599. esac
  14600. test -d "$as_dir" || eval $as_mkdir_p || {
  14601. as_dirs=
  14602. while :; do
  14603. case $as_dir in #(
  14604. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14605. *) as_qdir=$as_dir;;
  14606. esac
  14607. as_dirs="'$as_qdir' $as_dirs"
  14608. as_dir=`$as_dirname -- "$as_dir" ||
  14609. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14610. X"$as_dir" : 'X\(//\)[^/]' \| \
  14611. X"$as_dir" : 'X\(//\)$' \| \
  14612. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14613. $as_echo X"$as_dir" |
  14614. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14615. s//\1/
  14616. q
  14617. }
  14618. /^X\(\/\/\)[^/].*/{
  14619. s//\1/
  14620. q
  14621. }
  14622. /^X\(\/\/\)$/{
  14623. s//\1/
  14624. q
  14625. }
  14626. /^X\(\/\).*/{
  14627. s//\1/
  14628. q
  14629. }
  14630. s/.*/./; q'`
  14631. test -d "$as_dir" && break
  14632. done
  14633. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14634. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14635. } # as_fn_mkdir_p
  14636. if mkdir -p . 2>/dev/null; then
  14637. as_mkdir_p='mkdir -p "$as_dir"'
  14638. else
  14639. test -d ./-p && rmdir ./-p
  14640. as_mkdir_p=false
  14641. fi
  14642. if test -x / >/dev/null 2>&1; then
  14643. as_test_x='test -x'
  14644. else
  14645. if ls -dL / >/dev/null 2>&1; then
  14646. as_ls_L_option=L
  14647. else
  14648. as_ls_L_option=
  14649. fi
  14650. as_test_x='
  14651. eval sh -c '\''
  14652. if test -d "$1"; then
  14653. test -d "$1/.";
  14654. else
  14655. case $1 in #(
  14656. -*)set "./$1";;
  14657. esac;
  14658. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14659. ???[sx]*):;;*)false;;esac;fi
  14660. '\'' sh
  14661. '
  14662. fi
  14663. as_executable_p=$as_test_x
  14664. # Sed expression to map a string onto a valid CPP name.
  14665. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14666. # Sed expression to map a string onto a valid variable name.
  14667. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14668. exec 6>&1
  14669. ## ----------------------------------- ##
  14670. ## Main body of $CONFIG_STATUS script. ##
  14671. ## ----------------------------------- ##
  14672. _ASEOF
  14673. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14675. # Save the log message, to keep $0 and so on meaningful, and to
  14676. # report actual input values of CONFIG_FILES etc. instead of their
  14677. # values after options handling.
  14678. ac_log="
  14679. This file was extended by vcmi $as_me 0.83, which was
  14680. generated by GNU Autoconf 2.67. Invocation command line was
  14681. CONFIG_FILES = $CONFIG_FILES
  14682. CONFIG_HEADERS = $CONFIG_HEADERS
  14683. CONFIG_LINKS = $CONFIG_LINKS
  14684. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14685. $ $0 $@
  14686. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14687. "
  14688. _ACEOF
  14689. case $ac_config_files in *"
  14690. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14691. esac
  14692. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14693. # Files that config.status was made for.
  14694. config_files="$ac_config_files"
  14695. config_commands="$ac_config_commands"
  14696. _ACEOF
  14697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14698. ac_cs_usage="\
  14699. \`$as_me' instantiates files and other configuration actions
  14700. from templates according to the current configuration. Unless the files
  14701. and actions are specified as TAGs, all are instantiated by default.
  14702. Usage: $0 [OPTION]... [TAG]...
  14703. -h, --help print this help, then exit
  14704. -V, --version print version number and configuration settings, then exit
  14705. --config print configuration, then exit
  14706. -q, --quiet, --silent
  14707. do not print progress messages
  14708. -d, --debug don't remove temporary files
  14709. --recheck update $as_me by reconfiguring in the same conditions
  14710. --file=FILE[:TEMPLATE]
  14711. instantiate the configuration file FILE
  14712. Configuration files:
  14713. $config_files
  14714. Configuration commands:
  14715. $config_commands
  14716. Report bugs to the package provider."
  14717. _ACEOF
  14718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14719. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14720. ac_cs_version="\\
  14721. vcmi config.status 0.83
  14722. configured by $0, generated by GNU Autoconf 2.67,
  14723. with options \\"\$ac_cs_config\\"
  14724. Copyright (C) 2010 Free Software Foundation, Inc.
  14725. This config.status script is free software; the Free Software Foundation
  14726. gives unlimited permission to copy, distribute and modify it."
  14727. ac_pwd='$ac_pwd'
  14728. srcdir='$srcdir'
  14729. INSTALL='$INSTALL'
  14730. MKDIR_P='$MKDIR_P'
  14731. AWK='$AWK'
  14732. test -n "\$AWK" || AWK=awk
  14733. _ACEOF
  14734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14735. # The default lists apply if the user does not specify any file.
  14736. ac_need_defaults=:
  14737. while test $# != 0
  14738. do
  14739. case $1 in
  14740. --*=?*)
  14741. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14742. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14743. ac_shift=:
  14744. ;;
  14745. --*=)
  14746. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14747. ac_optarg=
  14748. ac_shift=:
  14749. ;;
  14750. *)
  14751. ac_option=$1
  14752. ac_optarg=$2
  14753. ac_shift=shift
  14754. ;;
  14755. esac
  14756. case $ac_option in
  14757. # Handling of the options.
  14758. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14759. ac_cs_recheck=: ;;
  14760. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14761. $as_echo "$ac_cs_version"; exit ;;
  14762. --config | --confi | --conf | --con | --co | --c )
  14763. $as_echo "$ac_cs_config"; exit ;;
  14764. --debug | --debu | --deb | --de | --d | -d )
  14765. debug=: ;;
  14766. --file | --fil | --fi | --f )
  14767. $ac_shift
  14768. case $ac_optarg in
  14769. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14770. '') as_fn_error $? "missing file argument" ;;
  14771. esac
  14772. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14773. ac_need_defaults=false;;
  14774. --he | --h | --help | --hel | -h )
  14775. $as_echo "$ac_cs_usage"; exit ;;
  14776. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14777. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14778. ac_cs_silent=: ;;
  14779. # This is an error.
  14780. -*) as_fn_error $? "unrecognized option: \`$1'
  14781. Try \`$0 --help' for more information." ;;
  14782. *) as_fn_append ac_config_targets " $1"
  14783. ac_need_defaults=false ;;
  14784. esac
  14785. shift
  14786. done
  14787. ac_configure_extra_args=
  14788. if $ac_cs_silent; then
  14789. exec 6>/dev/null
  14790. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14791. fi
  14792. _ACEOF
  14793. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14794. if \$ac_cs_recheck; then
  14795. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14796. shift
  14797. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14798. CONFIG_SHELL='$SHELL'
  14799. export CONFIG_SHELL
  14800. exec "\$@"
  14801. fi
  14802. _ACEOF
  14803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14804. exec 5>>config.log
  14805. {
  14806. echo
  14807. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14808. ## Running $as_me. ##
  14809. _ASBOX
  14810. $as_echo "$ac_log"
  14811. } >&5
  14812. _ACEOF
  14813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14814. #
  14815. # INIT-COMMANDS
  14816. #
  14817. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14818. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14819. # if CDPATH is set.
  14820. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14821. sed_quote_subst='$sed_quote_subst'
  14822. double_quote_subst='$double_quote_subst'
  14823. delay_variable_subst='$delay_variable_subst'
  14824. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14825. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14826. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14827. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14828. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14829. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14830. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14831. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14832. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14833. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14834. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14835. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14836. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14837. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14838. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14839. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14840. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14841. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14842. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14843. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14844. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14845. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14846. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14847. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14848. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14849. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14850. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14851. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14852. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14853. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14854. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14855. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14856. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14857. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14858. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14859. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14860. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14861. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14862. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14863. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14864. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14865. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14866. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14867. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14868. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  14869. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14870. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14871. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14872. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14873. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14874. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14875. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14876. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14877. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14878. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14879. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14880. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14881. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14882. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14883. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14884. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14885. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14886. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14887. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14888. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14889. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14890. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14891. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14892. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14893. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14894. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14895. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14896. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14897. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14898. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14899. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14900. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14901. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14902. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14903. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14904. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14905. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14906. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14907. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14908. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14909. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14910. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14911. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14912. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14913. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14914. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14915. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14916. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14917. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14918. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14919. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14920. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14921. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14922. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14923. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14924. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14925. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14926. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14927. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14928. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14929. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14930. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14931. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14932. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14933. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14934. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14935. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14936. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14937. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14938. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14939. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14940. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14941. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14942. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  14943. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14944. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14945. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14946. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14947. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14948. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14949. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14950. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14951. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14952. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14953. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14954. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14955. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14956. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14957. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14958. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14959. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14960. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14961. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14962. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14963. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14964. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14965. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14966. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14967. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14968. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14969. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14970. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14971. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14972. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14973. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14974. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14975. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14976. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14977. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14978. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14979. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14980. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14981. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14982. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14983. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14984. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14985. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14986. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14987. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14988. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14989. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14990. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14991. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14992. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14993. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14994. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14995. LTCC='$LTCC'
  14996. LTCFLAGS='$LTCFLAGS'
  14997. compiler='$compiler_DEFAULT'
  14998. # Quote evaled strings.
  14999. for var in SED \
  15000. GREP \
  15001. EGREP \
  15002. FGREP \
  15003. LD \
  15004. NM \
  15005. LN_S \
  15006. lt_SP2NL \
  15007. lt_NL2SP \
  15008. reload_flag \
  15009. OBJDUMP \
  15010. deplibs_check_method \
  15011. file_magic_cmd \
  15012. AR \
  15013. AR_FLAGS \
  15014. STRIP \
  15015. RANLIB \
  15016. CC \
  15017. CFLAGS \
  15018. compiler \
  15019. lt_cv_sys_global_symbol_pipe \
  15020. lt_cv_sys_global_symbol_to_cdecl \
  15021. lt_cv_sys_global_symbol_to_c_name_address \
  15022. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15023. SHELL \
  15024. ECHO \
  15025. lt_prog_compiler_no_builtin_flag \
  15026. lt_prog_compiler_wl \
  15027. lt_prog_compiler_pic \
  15028. lt_prog_compiler_static \
  15029. lt_cv_prog_compiler_c_o \
  15030. need_locks \
  15031. DSYMUTIL \
  15032. NMEDIT \
  15033. LIPO \
  15034. OTOOL \
  15035. OTOOL64 \
  15036. shrext_cmds \
  15037. export_dynamic_flag_spec \
  15038. whole_archive_flag_spec \
  15039. compiler_needs_object \
  15040. with_gnu_ld \
  15041. allow_undefined_flag \
  15042. no_undefined_flag \
  15043. hardcode_libdir_flag_spec \
  15044. hardcode_libdir_flag_spec_ld \
  15045. hardcode_libdir_separator \
  15046. fix_srcfile_path \
  15047. exclude_expsyms \
  15048. include_expsyms \
  15049. file_list_spec \
  15050. variables_saved_for_relink \
  15051. libname_spec \
  15052. library_names_spec \
  15053. soname_spec \
  15054. finish_eval \
  15055. old_striplib \
  15056. striplib \
  15057. compiler_lib_search_dirs \
  15058. predep_objects \
  15059. postdep_objects \
  15060. predeps \
  15061. postdeps \
  15062. compiler_lib_search_path \
  15063. LD_CXX \
  15064. compiler_CXX \
  15065. lt_prog_compiler_no_builtin_flag_CXX \
  15066. lt_prog_compiler_wl_CXX \
  15067. lt_prog_compiler_pic_CXX \
  15068. lt_prog_compiler_static_CXX \
  15069. lt_cv_prog_compiler_c_o_CXX \
  15070. export_dynamic_flag_spec_CXX \
  15071. whole_archive_flag_spec_CXX \
  15072. compiler_needs_object_CXX \
  15073. with_gnu_ld_CXX \
  15074. allow_undefined_flag_CXX \
  15075. no_undefined_flag_CXX \
  15076. hardcode_libdir_flag_spec_CXX \
  15077. hardcode_libdir_flag_spec_ld_CXX \
  15078. hardcode_libdir_separator_CXX \
  15079. fix_srcfile_path_CXX \
  15080. exclude_expsyms_CXX \
  15081. include_expsyms_CXX \
  15082. file_list_spec_CXX \
  15083. compiler_lib_search_dirs_CXX \
  15084. predep_objects_CXX \
  15085. postdep_objects_CXX \
  15086. predeps_CXX \
  15087. postdeps_CXX \
  15088. compiler_lib_search_path_CXX; do
  15089. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15090. *[\\\\\\\`\\"\\\$]*)
  15091. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15092. ;;
  15093. *)
  15094. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15095. ;;
  15096. esac
  15097. done
  15098. # Double-quote double-evaled strings.
  15099. for var in reload_cmds \
  15100. old_postinstall_cmds \
  15101. old_postuninstall_cmds \
  15102. old_archive_cmds \
  15103. extract_expsyms_cmds \
  15104. old_archive_from_new_cmds \
  15105. old_archive_from_expsyms_cmds \
  15106. archive_cmds \
  15107. archive_expsym_cmds \
  15108. module_cmds \
  15109. module_expsym_cmds \
  15110. export_symbols_cmds \
  15111. prelink_cmds \
  15112. postinstall_cmds \
  15113. postuninstall_cmds \
  15114. finish_cmds \
  15115. sys_lib_search_path_spec \
  15116. sys_lib_dlsearch_path_spec \
  15117. old_archive_cmds_CXX \
  15118. old_archive_from_new_cmds_CXX \
  15119. old_archive_from_expsyms_cmds_CXX \
  15120. archive_cmds_CXX \
  15121. archive_expsym_cmds_CXX \
  15122. module_cmds_CXX \
  15123. module_expsym_cmds_CXX \
  15124. export_symbols_cmds_CXX \
  15125. prelink_cmds_CXX; do
  15126. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15127. *[\\\\\\\`\\"\\\$]*)
  15128. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15129. ;;
  15130. *)
  15131. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15132. ;;
  15133. esac
  15134. done
  15135. # Fix-up fallback echo if it was mangled by the above quoting rules.
  15136. case \$lt_ECHO in
  15137. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  15138. ;;
  15139. esac
  15140. ac_aux_dir='$ac_aux_dir'
  15141. xsi_shell='$xsi_shell'
  15142. lt_shell_append='$lt_shell_append'
  15143. # See if we are running on zsh, and set the options which allow our
  15144. # commands through without removal of \ escapes INIT.
  15145. if test -n "\${ZSH_VERSION+set}" ; then
  15146. setopt NO_GLOB_SUBST
  15147. fi
  15148. PACKAGE='$PACKAGE'
  15149. VERSION='$VERSION'
  15150. TIMESTAMP='$TIMESTAMP'
  15151. RM='$RM'
  15152. ofile='$ofile'
  15153. _ACEOF
  15154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15155. # Handling of arguments.
  15156. for ac_config_target in $ac_config_targets
  15157. do
  15158. case $ac_config_target in
  15159. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15160. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15161. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15162. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  15163. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  15164. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  15165. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  15166. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  15167. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  15168. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  15169. esac
  15170. done
  15171. # If the user did not use the arguments to specify the items to instantiate,
  15172. # then the envvar interface is used. Set only those that are not.
  15173. # We use the long form for the default assignment because of an extremely
  15174. # bizarre bug on SunOS 4.1.3.
  15175. if $ac_need_defaults; then
  15176. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15177. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15178. fi
  15179. # Have a temporary directory for convenience. Make it in the build tree
  15180. # simply because there is no reason against having it here, and in addition,
  15181. # creating and moving files from /tmp can sometimes cause problems.
  15182. # Hook for its removal unless debugging.
  15183. # Note that there is a small window in which the directory will not be cleaned:
  15184. # after its creation but before its name has been assigned to `$tmp'.
  15185. $debug ||
  15186. {
  15187. tmp=
  15188. trap 'exit_status=$?
  15189. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15190. ' 0
  15191. trap 'as_fn_exit 1' 1 2 13 15
  15192. }
  15193. # Create a (secure) tmp directory for tmp files.
  15194. {
  15195. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15196. test -n "$tmp" && test -d "$tmp"
  15197. } ||
  15198. {
  15199. tmp=./conf$$-$RANDOM
  15200. (umask 077 && mkdir "$tmp")
  15201. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15202. # Set up the scripts for CONFIG_FILES section.
  15203. # No need to generate them if there are no CONFIG_FILES.
  15204. # This happens for instance with `./config.status config.h'.
  15205. if test -n "$CONFIG_FILES"; then
  15206. ac_cr=`echo X | tr X '\015'`
  15207. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15208. # But we know of no other shell where ac_cr would be empty at this
  15209. # point, so we can use a bashism as a fallback.
  15210. if test "x$ac_cr" = x; then
  15211. eval ac_cr=\$\'\\r\'
  15212. fi
  15213. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15214. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15215. ac_cs_awk_cr='\\r'
  15216. else
  15217. ac_cs_awk_cr=$ac_cr
  15218. fi
  15219. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15220. _ACEOF
  15221. {
  15222. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15223. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15224. echo "_ACEOF"
  15225. } >conf$$subs.sh ||
  15226. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15227. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15228. ac_delim='%!_!# '
  15229. for ac_last_try in false false false false false :; do
  15230. . ./conf$$subs.sh ||
  15231. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15232. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15233. if test $ac_delim_n = $ac_delim_num; then
  15234. break
  15235. elif $ac_last_try; then
  15236. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15237. else
  15238. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15239. fi
  15240. done
  15241. rm -f conf$$subs.sh
  15242. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15243. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15244. _ACEOF
  15245. sed -n '
  15246. h
  15247. s/^/S["/; s/!.*/"]=/
  15248. p
  15249. g
  15250. s/^[^!]*!//
  15251. :repl
  15252. t repl
  15253. s/'"$ac_delim"'$//
  15254. t delim
  15255. :nl
  15256. h
  15257. s/\(.\{148\}\)..*/\1/
  15258. t more1
  15259. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15260. p
  15261. n
  15262. b repl
  15263. :more1
  15264. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15265. p
  15266. g
  15267. s/.\{148\}//
  15268. t nl
  15269. :delim
  15270. h
  15271. s/\(.\{148\}\)..*/\1/
  15272. t more2
  15273. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15274. p
  15275. b
  15276. :more2
  15277. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15278. p
  15279. g
  15280. s/.\{148\}//
  15281. t delim
  15282. ' <conf$$subs.awk | sed '
  15283. /^[^""]/{
  15284. N
  15285. s/\n//
  15286. }
  15287. ' >>$CONFIG_STATUS || ac_write_fail=1
  15288. rm -f conf$$subs.awk
  15289. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15290. _ACAWK
  15291. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15292. for (key in S) S_is_set[key] = 1
  15293. FS = ""
  15294. }
  15295. {
  15296. line = $ 0
  15297. nfields = split(line, field, "@")
  15298. substed = 0
  15299. len = length(field[1])
  15300. for (i = 2; i < nfields; i++) {
  15301. key = field[i]
  15302. keylen = length(key)
  15303. if (S_is_set[key]) {
  15304. value = S[key]
  15305. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15306. len += length(value) + length(field[++i])
  15307. substed = 1
  15308. } else
  15309. len += 1 + keylen
  15310. }
  15311. print line
  15312. }
  15313. _ACAWK
  15314. _ACEOF
  15315. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15316. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15317. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15318. else
  15319. cat
  15320. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15321. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15322. _ACEOF
  15323. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15324. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15325. # trailing colons and then remove the whole line if VPATH becomes empty
  15326. # (actually we leave an empty line to preserve line numbers).
  15327. if test "x$srcdir" = x.; then
  15328. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15329. h
  15330. s///
  15331. s/^/:/
  15332. s/[ ]*$/:/
  15333. s/:\$(srcdir):/:/g
  15334. s/:\${srcdir}:/:/g
  15335. s/:@srcdir@:/:/g
  15336. s/^:*//
  15337. s/:*$//
  15338. x
  15339. s/\(=[ ]*\).*/\1/
  15340. G
  15341. s/\n//
  15342. s/^[^=]*=[ ]*$//
  15343. }'
  15344. fi
  15345. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15346. fi # test -n "$CONFIG_FILES"
  15347. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15348. shift
  15349. for ac_tag
  15350. do
  15351. case $ac_tag in
  15352. :[FHLC]) ac_mode=$ac_tag; continue;;
  15353. esac
  15354. case $ac_mode$ac_tag in
  15355. :[FHL]*:*);;
  15356. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  15357. :[FH]-) ac_tag=-:-;;
  15358. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15359. esac
  15360. ac_save_IFS=$IFS
  15361. IFS=:
  15362. set x $ac_tag
  15363. IFS=$ac_save_IFS
  15364. shift
  15365. ac_file=$1
  15366. shift
  15367. case $ac_mode in
  15368. :L) ac_source=$1;;
  15369. :[FH])
  15370. ac_file_inputs=
  15371. for ac_f
  15372. do
  15373. case $ac_f in
  15374. -) ac_f="$tmp/stdin";;
  15375. *) # Look for the file first in the build tree, then in the source tree
  15376. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15377. # because $ac_f cannot contain `:'.
  15378. test -f "$ac_f" ||
  15379. case $ac_f in
  15380. [\\/$]*) false;;
  15381. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15382. esac ||
  15383. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  15384. esac
  15385. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15386. as_fn_append ac_file_inputs " '$ac_f'"
  15387. done
  15388. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15389. # use $as_me), people would be surprised to read:
  15390. # /* config.h. Generated by config.status. */
  15391. configure_input='Generated from '`
  15392. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15393. `' by configure.'
  15394. if test x"$ac_file" != x-; then
  15395. configure_input="$ac_file. $configure_input"
  15396. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15397. $as_echo "$as_me: creating $ac_file" >&6;}
  15398. fi
  15399. # Neutralize special characters interpreted by sed in replacement strings.
  15400. case $configure_input in #(
  15401. *\&* | *\|* | *\\* )
  15402. ac_sed_conf_input=`$as_echo "$configure_input" |
  15403. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15404. *) ac_sed_conf_input=$configure_input;;
  15405. esac
  15406. case $ac_tag in
  15407. *:-:* | *:-) cat >"$tmp/stdin" \
  15408. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15409. esac
  15410. ;;
  15411. esac
  15412. ac_dir=`$as_dirname -- "$ac_file" ||
  15413. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15414. X"$ac_file" : 'X\(//\)[^/]' \| \
  15415. X"$ac_file" : 'X\(//\)$' \| \
  15416. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15417. $as_echo X"$ac_file" |
  15418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15419. s//\1/
  15420. q
  15421. }
  15422. /^X\(\/\/\)[^/].*/{
  15423. s//\1/
  15424. q
  15425. }
  15426. /^X\(\/\/\)$/{
  15427. s//\1/
  15428. q
  15429. }
  15430. /^X\(\/\).*/{
  15431. s//\1/
  15432. q
  15433. }
  15434. s/.*/./; q'`
  15435. as_dir="$ac_dir"; as_fn_mkdir_p
  15436. ac_builddir=.
  15437. case "$ac_dir" in
  15438. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15439. *)
  15440. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15441. # A ".." for each directory in $ac_dir_suffix.
  15442. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15443. case $ac_top_builddir_sub in
  15444. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15445. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15446. esac ;;
  15447. esac
  15448. ac_abs_top_builddir=$ac_pwd
  15449. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15450. # for backward compatibility:
  15451. ac_top_builddir=$ac_top_build_prefix
  15452. case $srcdir in
  15453. .) # We are building in place.
  15454. ac_srcdir=.
  15455. ac_top_srcdir=$ac_top_builddir_sub
  15456. ac_abs_top_srcdir=$ac_pwd ;;
  15457. [\\/]* | ?:[\\/]* ) # Absolute name.
  15458. ac_srcdir=$srcdir$ac_dir_suffix;
  15459. ac_top_srcdir=$srcdir
  15460. ac_abs_top_srcdir=$srcdir ;;
  15461. *) # Relative name.
  15462. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15463. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15464. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15465. esac
  15466. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15467. case $ac_mode in
  15468. :F)
  15469. #
  15470. # CONFIG_FILE
  15471. #
  15472. case $INSTALL in
  15473. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15474. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15475. esac
  15476. ac_MKDIR_P=$MKDIR_P
  15477. case $MKDIR_P in
  15478. [\\/$]* | ?:[\\/]* ) ;;
  15479. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15480. esac
  15481. _ACEOF
  15482. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15483. # If the template does not know about datarootdir, expand it.
  15484. # FIXME: This hack should be removed a few years after 2.60.
  15485. ac_datarootdir_hack=; ac_datarootdir_seen=
  15486. ac_sed_dataroot='
  15487. /datarootdir/ {
  15488. p
  15489. q
  15490. }
  15491. /@datadir@/p
  15492. /@docdir@/p
  15493. /@infodir@/p
  15494. /@localedir@/p
  15495. /@mandir@/p'
  15496. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15497. *datarootdir*) ac_datarootdir_seen=yes;;
  15498. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15500. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15501. _ACEOF
  15502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15503. ac_datarootdir_hack='
  15504. s&@datadir@&$datadir&g
  15505. s&@docdir@&$docdir&g
  15506. s&@infodir@&$infodir&g
  15507. s&@localedir@&$localedir&g
  15508. s&@mandir@&$mandir&g
  15509. s&\\\${datarootdir}&$datarootdir&g' ;;
  15510. esac
  15511. _ACEOF
  15512. # Neutralize VPATH when `$srcdir' = `.'.
  15513. # Shell code in configure.ac might set extrasub.
  15514. # FIXME: do we really want to maintain this feature?
  15515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15516. ac_sed_extra="$ac_vpsub
  15517. $extrasub
  15518. _ACEOF
  15519. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15520. :t
  15521. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15522. s|@configure_input@|$ac_sed_conf_input|;t t
  15523. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15524. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15525. s&@srcdir@&$ac_srcdir&;t t
  15526. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15527. s&@top_srcdir@&$ac_top_srcdir&;t t
  15528. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15529. s&@builddir@&$ac_builddir&;t t
  15530. s&@abs_builddir@&$ac_abs_builddir&;t t
  15531. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15532. s&@INSTALL@&$ac_INSTALL&;t t
  15533. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15534. $ac_datarootdir_hack
  15535. "
  15536. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15537. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15538. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15539. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15540. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15542. which seems to be undefined. Please make sure it is defined" >&5
  15543. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15544. which seems to be undefined. Please make sure it is defined" >&2;}
  15545. rm -f "$tmp/stdin"
  15546. case $ac_file in
  15547. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15548. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15549. esac \
  15550. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15551. ;;
  15552. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15553. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15554. ;;
  15555. esac
  15556. case $ac_file$ac_mode in
  15557. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15558. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15559. # are listed without --file. Let's play safe and only enable the eval
  15560. # if we detect the quoting.
  15561. case $CONFIG_FILES in
  15562. *\'*) eval set x "$CONFIG_FILES" ;;
  15563. *) set x $CONFIG_FILES ;;
  15564. esac
  15565. shift
  15566. for mf
  15567. do
  15568. # Strip MF so we end up with the name of the file.
  15569. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15570. # Check whether this is an Automake generated Makefile or not.
  15571. # We used to match only the files named `Makefile.in', but
  15572. # some people rename them; so instead we look at the file content.
  15573. # Grep'ing the first line is not enough: some people post-process
  15574. # each Makefile.in and add a new line on top of each file to say so.
  15575. # Grep'ing the whole file is not good either: AIX grep has a line
  15576. # limit of 2048, but all sed's we know have understand at least 4000.
  15577. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15578. dirpart=`$as_dirname -- "$mf" ||
  15579. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15580. X"$mf" : 'X\(//\)[^/]' \| \
  15581. X"$mf" : 'X\(//\)$' \| \
  15582. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15583. $as_echo X"$mf" |
  15584. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15585. s//\1/
  15586. q
  15587. }
  15588. /^X\(\/\/\)[^/].*/{
  15589. s//\1/
  15590. q
  15591. }
  15592. /^X\(\/\/\)$/{
  15593. s//\1/
  15594. q
  15595. }
  15596. /^X\(\/\).*/{
  15597. s//\1/
  15598. q
  15599. }
  15600. s/.*/./; q'`
  15601. else
  15602. continue
  15603. fi
  15604. # Extract the definition of DEPDIR, am__include, and am__quote
  15605. # from the Makefile without running `make'.
  15606. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15607. test -z "$DEPDIR" && continue
  15608. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15609. test -z "am__include" && continue
  15610. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15611. # When using ansi2knr, U may be empty or an underscore; expand it
  15612. U=`sed -n 's/^U = //p' < "$mf"`
  15613. # Find all dependency output files, they are included files with
  15614. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15615. # simplest approach to changing $(DEPDIR) to its actual value in the
  15616. # expansion.
  15617. for file in `sed -n "
  15618. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15619. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15620. # Make sure the directory exists.
  15621. test -f "$dirpart/$file" && continue
  15622. fdir=`$as_dirname -- "$file" ||
  15623. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15624. X"$file" : 'X\(//\)[^/]' \| \
  15625. X"$file" : 'X\(//\)$' \| \
  15626. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15627. $as_echo X"$file" |
  15628. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15629. s//\1/
  15630. q
  15631. }
  15632. /^X\(\/\/\)[^/].*/{
  15633. s//\1/
  15634. q
  15635. }
  15636. /^X\(\/\/\)$/{
  15637. s//\1/
  15638. q
  15639. }
  15640. /^X\(\/\).*/{
  15641. s//\1/
  15642. q
  15643. }
  15644. s/.*/./; q'`
  15645. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15646. # echo "creating $dirpart/$file"
  15647. echo '# dummy' > "$dirpart/$file"
  15648. done
  15649. done
  15650. }
  15651. ;;
  15652. "libtool":C)
  15653. # See if we are running on zsh, and set the options which allow our
  15654. # commands through without removal of \ escapes.
  15655. if test -n "${ZSH_VERSION+set}" ; then
  15656. setopt NO_GLOB_SUBST
  15657. fi
  15658. cfgfile="${ofile}T"
  15659. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15660. $RM "$cfgfile"
  15661. cat <<_LT_EOF >> "$cfgfile"
  15662. #! $SHELL
  15663. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15664. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15665. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15666. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15667. #
  15668. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15669. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15670. # Written by Gordon Matzigkeit, 1996
  15671. #
  15672. # This file is part of GNU Libtool.
  15673. #
  15674. # GNU Libtool is free software; you can redistribute it and/or
  15675. # modify it under the terms of the GNU General Public License as
  15676. # published by the Free Software Foundation; either version 2 of
  15677. # the License, or (at your option) any later version.
  15678. #
  15679. # As a special exception to the GNU General Public License,
  15680. # if you distribute this file as part of a program or library that
  15681. # is built using GNU Libtool, you may include this file under the
  15682. # same distribution terms that you use for the rest of that program.
  15683. #
  15684. # GNU Libtool is distributed in the hope that it will be useful,
  15685. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15686. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15687. # GNU General Public License for more details.
  15688. #
  15689. # You should have received a copy of the GNU General Public License
  15690. # along with GNU Libtool; see the file COPYING. If not, a copy
  15691. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15692. # obtained by writing to the Free Software Foundation, Inc.,
  15693. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15694. # The names of the tagged configurations supported by this script.
  15695. available_tags="CXX "
  15696. # ### BEGIN LIBTOOL CONFIG
  15697. # Whether or not to build shared libraries.
  15698. build_libtool_libs=$enable_shared
  15699. # Whether or not to build static libraries.
  15700. build_old_libs=$enable_static
  15701. # Which release of libtool.m4 was used?
  15702. macro_version=$macro_version
  15703. macro_revision=$macro_revision
  15704. # What type of objects to build.
  15705. pic_mode=$pic_mode
  15706. # Whether or not to optimize for fast installation.
  15707. fast_install=$enable_fast_install
  15708. # The host system.
  15709. host_alias=$host_alias
  15710. host=$host
  15711. host_os=$host_os
  15712. # The build system.
  15713. build_alias=$build_alias
  15714. build=$build
  15715. build_os=$build_os
  15716. # A sed program that does not truncate output.
  15717. SED=$lt_SED
  15718. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15719. Xsed="\$SED -e 1s/^X//"
  15720. # A grep program that handles long lines.
  15721. GREP=$lt_GREP
  15722. # An ERE matcher.
  15723. EGREP=$lt_EGREP
  15724. # A literal string matcher.
  15725. FGREP=$lt_FGREP
  15726. # A BSD- or MS-compatible name lister.
  15727. NM=$lt_NM
  15728. # Whether we need soft or hard links.
  15729. LN_S=$lt_LN_S
  15730. # What is the maximum length of a command?
  15731. max_cmd_len=$max_cmd_len
  15732. # Object file suffix (normally "o").
  15733. objext=$ac_objext
  15734. # Executable file suffix (normally "").
  15735. exeext=$exeext
  15736. # whether the shell understands "unset".
  15737. lt_unset=$lt_unset
  15738. # turn spaces into newlines.
  15739. SP2NL=$lt_lt_SP2NL
  15740. # turn newlines into spaces.
  15741. NL2SP=$lt_lt_NL2SP
  15742. # How to create reloadable object files.
  15743. reload_flag=$lt_reload_flag
  15744. reload_cmds=$lt_reload_cmds
  15745. # An object symbol dumper.
  15746. OBJDUMP=$lt_OBJDUMP
  15747. # Method to check whether dependent libraries are shared objects.
  15748. deplibs_check_method=$lt_deplibs_check_method
  15749. # Command to use when deplibs_check_method == "file_magic".
  15750. file_magic_cmd=$lt_file_magic_cmd
  15751. # The archiver.
  15752. AR=$lt_AR
  15753. AR_FLAGS=$lt_AR_FLAGS
  15754. # A symbol stripping program.
  15755. STRIP=$lt_STRIP
  15756. # Commands used to install an old-style archive.
  15757. RANLIB=$lt_RANLIB
  15758. old_postinstall_cmds=$lt_old_postinstall_cmds
  15759. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15760. # A C compiler.
  15761. LTCC=$lt_CC
  15762. # LTCC compiler flags.
  15763. LTCFLAGS=$lt_CFLAGS
  15764. # Take the output of nm and produce a listing of raw symbols and C names.
  15765. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15766. # Transform the output of nm in a proper C declaration.
  15767. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15768. # Transform the output of nm in a C name address pair.
  15769. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15770. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15771. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15772. # The name of the directory that contains temporary libtool files.
  15773. objdir=$objdir
  15774. # Shell to use when invoking shell scripts.
  15775. SHELL=$lt_SHELL
  15776. # An echo program that does not interpret backslashes.
  15777. ECHO=$lt_ECHO
  15778. # Used to examine libraries when file_magic_cmd begins with "file".
  15779. MAGIC_CMD=$MAGIC_CMD
  15780. # Must we lock files when doing compilation?
  15781. need_locks=$lt_need_locks
  15782. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15783. DSYMUTIL=$lt_DSYMUTIL
  15784. # Tool to change global to local symbols on Mac OS X.
  15785. NMEDIT=$lt_NMEDIT
  15786. # Tool to manipulate fat objects and archives on Mac OS X.
  15787. LIPO=$lt_LIPO
  15788. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15789. OTOOL=$lt_OTOOL
  15790. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15791. OTOOL64=$lt_OTOOL64
  15792. # Old archive suffix (normally "a").
  15793. libext=$libext
  15794. # Shared library suffix (normally ".so").
  15795. shrext_cmds=$lt_shrext_cmds
  15796. # The commands to extract the exported symbol list from a shared archive.
  15797. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15798. # Variables whose values should be saved in libtool wrapper scripts and
  15799. # restored at link time.
  15800. variables_saved_for_relink=$lt_variables_saved_for_relink
  15801. # Do we need the "lib" prefix for modules?
  15802. need_lib_prefix=$need_lib_prefix
  15803. # Do we need a version for libraries?
  15804. need_version=$need_version
  15805. # Library versioning type.
  15806. version_type=$version_type
  15807. # Shared library runtime path variable.
  15808. runpath_var=$runpath_var
  15809. # Shared library path variable.
  15810. shlibpath_var=$shlibpath_var
  15811. # Is shlibpath searched before the hard-coded library search path?
  15812. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15813. # Format of library name prefix.
  15814. libname_spec=$lt_libname_spec
  15815. # List of archive names. First name is the real one, the rest are links.
  15816. # The last name is the one that the linker finds with -lNAME
  15817. library_names_spec=$lt_library_names_spec
  15818. # The coded name of the library, if different from the real name.
  15819. soname_spec=$lt_soname_spec
  15820. # Command to use after installation of a shared archive.
  15821. postinstall_cmds=$lt_postinstall_cmds
  15822. # Command to use after uninstallation of a shared archive.
  15823. postuninstall_cmds=$lt_postuninstall_cmds
  15824. # Commands used to finish a libtool library installation in a directory.
  15825. finish_cmds=$lt_finish_cmds
  15826. # As "finish_cmds", except a single script fragment to be evaled but
  15827. # not shown.
  15828. finish_eval=$lt_finish_eval
  15829. # Whether we should hardcode library paths into libraries.
  15830. hardcode_into_libs=$hardcode_into_libs
  15831. # Compile-time system search path for libraries.
  15832. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15833. # Run-time system search path for libraries.
  15834. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15835. # Whether dlopen is supported.
  15836. dlopen_support=$enable_dlopen
  15837. # Whether dlopen of programs is supported.
  15838. dlopen_self=$enable_dlopen_self
  15839. # Whether dlopen of statically linked programs is supported.
  15840. dlopen_self_static=$enable_dlopen_self_static
  15841. # Commands to strip libraries.
  15842. old_striplib=$lt_old_striplib
  15843. striplib=$lt_striplib
  15844. # The linker used to build libraries.
  15845. LD=$lt_LD
  15846. # Commands used to build an old-style archive.
  15847. old_archive_cmds=$lt_old_archive_cmds
  15848. # A language specific compiler.
  15849. CC=$lt_compiler
  15850. # Is the compiler the GNU compiler?
  15851. with_gcc=$GCC
  15852. # Compiler flag to turn off builtin functions.
  15853. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15854. # How to pass a linker flag through the compiler.
  15855. wl=$lt_lt_prog_compiler_wl
  15856. # Additional compiler flags for building library objects.
  15857. pic_flag=$lt_lt_prog_compiler_pic
  15858. # Compiler flag to prevent dynamic linking.
  15859. link_static_flag=$lt_lt_prog_compiler_static
  15860. # Does compiler simultaneously support -c and -o options?
  15861. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15862. # Whether or not to add -lc for building shared libraries.
  15863. build_libtool_need_lc=$archive_cmds_need_lc
  15864. # Whether or not to disallow shared libs when runtime libs are static.
  15865. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15866. # Compiler flag to allow reflexive dlopens.
  15867. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15868. # Compiler flag to generate shared objects directly from archives.
  15869. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15870. # Whether the compiler copes with passing no objects directly.
  15871. compiler_needs_object=$lt_compiler_needs_object
  15872. # Create an old-style archive from a shared archive.
  15873. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15874. # Create a temporary old-style archive to link instead of a shared archive.
  15875. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15876. # Commands used to build a shared archive.
  15877. archive_cmds=$lt_archive_cmds
  15878. archive_expsym_cmds=$lt_archive_expsym_cmds
  15879. # Commands used to build a loadable module if different from building
  15880. # a shared archive.
  15881. module_cmds=$lt_module_cmds
  15882. module_expsym_cmds=$lt_module_expsym_cmds
  15883. # Whether we are building with GNU ld or not.
  15884. with_gnu_ld=$lt_with_gnu_ld
  15885. # Flag that allows shared libraries with undefined symbols to be built.
  15886. allow_undefined_flag=$lt_allow_undefined_flag
  15887. # Flag that enforces no undefined symbols.
  15888. no_undefined_flag=$lt_no_undefined_flag
  15889. # Flag to hardcode \$libdir into a binary during linking.
  15890. # This must work even if \$libdir does not exist
  15891. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15892. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15893. # during linking. This must work even if \$libdir does not exist.
  15894. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15895. # Whether we need a single "-rpath" flag with a separated argument.
  15896. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15897. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15898. # DIR into the resulting binary.
  15899. hardcode_direct=$hardcode_direct
  15900. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15901. # DIR into the resulting binary and the resulting library dependency is
  15902. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15903. # library is relocated.
  15904. hardcode_direct_absolute=$hardcode_direct_absolute
  15905. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15906. # into the resulting binary.
  15907. hardcode_minus_L=$hardcode_minus_L
  15908. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15909. # into the resulting binary.
  15910. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15911. # Set to "yes" if building a shared library automatically hardcodes DIR
  15912. # into the library and all subsequent libraries and executables linked
  15913. # against it.
  15914. hardcode_automatic=$hardcode_automatic
  15915. # Set to yes if linker adds runtime paths of dependent libraries
  15916. # to runtime path list.
  15917. inherit_rpath=$inherit_rpath
  15918. # Whether libtool must link a program against all its dependency libraries.
  15919. link_all_deplibs=$link_all_deplibs
  15920. # Fix the shell variable \$srcfile for the compiler.
  15921. fix_srcfile_path=$lt_fix_srcfile_path
  15922. # Set to "yes" if exported symbols are required.
  15923. always_export_symbols=$always_export_symbols
  15924. # The commands to list exported symbols.
  15925. export_symbols_cmds=$lt_export_symbols_cmds
  15926. # Symbols that should not be listed in the preloaded symbols.
  15927. exclude_expsyms=$lt_exclude_expsyms
  15928. # Symbols that must always be exported.
  15929. include_expsyms=$lt_include_expsyms
  15930. # Commands necessary for linking programs (against libraries) with templates.
  15931. prelink_cmds=$lt_prelink_cmds
  15932. # Specify filename containing input files.
  15933. file_list_spec=$lt_file_list_spec
  15934. # How to hardcode a shared library path into an executable.
  15935. hardcode_action=$hardcode_action
  15936. # The directories searched by this compiler when creating a shared library.
  15937. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15938. # Dependencies to place before and after the objects being linked to
  15939. # create a shared library.
  15940. predep_objects=$lt_predep_objects
  15941. postdep_objects=$lt_postdep_objects
  15942. predeps=$lt_predeps
  15943. postdeps=$lt_postdeps
  15944. # The library search path used internally by the compiler when linking
  15945. # a shared library.
  15946. compiler_lib_search_path=$lt_compiler_lib_search_path
  15947. # ### END LIBTOOL CONFIG
  15948. _LT_EOF
  15949. case $host_os in
  15950. aix3*)
  15951. cat <<\_LT_EOF >> "$cfgfile"
  15952. # AIX sometimes has problems with the GCC collect2 program. For some
  15953. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15954. # vanish in a puff of smoke.
  15955. if test "X${COLLECT_NAMES+set}" != Xset; then
  15956. COLLECT_NAMES=
  15957. export COLLECT_NAMES
  15958. fi
  15959. _LT_EOF
  15960. ;;
  15961. esac
  15962. ltmain="$ac_aux_dir/ltmain.sh"
  15963. # We use sed instead of cat because bash on DJGPP gets confused if
  15964. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15965. # text mode, it properly converts lines to CR/LF. This bash problem
  15966. # is reportedly fixed, but why not run on old versions too?
  15967. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15968. || (rm -f "$cfgfile"; exit 1)
  15969. case $xsi_shell in
  15970. yes)
  15971. cat << \_LT_EOF >> "$cfgfile"
  15972. # func_dirname file append nondir_replacement
  15973. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15974. # otherwise set result to NONDIR_REPLACEMENT.
  15975. func_dirname ()
  15976. {
  15977. case ${1} in
  15978. */*) func_dirname_result="${1%/*}${2}" ;;
  15979. * ) func_dirname_result="${3}" ;;
  15980. esac
  15981. }
  15982. # func_basename file
  15983. func_basename ()
  15984. {
  15985. func_basename_result="${1##*/}"
  15986. }
  15987. # func_dirname_and_basename file append nondir_replacement
  15988. # perform func_basename and func_dirname in a single function
  15989. # call:
  15990. # dirname: Compute the dirname of FILE. If nonempty,
  15991. # add APPEND to the result, otherwise set result
  15992. # to NONDIR_REPLACEMENT.
  15993. # value returned in "$func_dirname_result"
  15994. # basename: Compute filename of FILE.
  15995. # value retuned in "$func_basename_result"
  15996. # Implementation must be kept synchronized with func_dirname
  15997. # and func_basename. For efficiency, we do not delegate to
  15998. # those functions but instead duplicate the functionality here.
  15999. func_dirname_and_basename ()
  16000. {
  16001. case ${1} in
  16002. */*) func_dirname_result="${1%/*}${2}" ;;
  16003. * ) func_dirname_result="${3}" ;;
  16004. esac
  16005. func_basename_result="${1##*/}"
  16006. }
  16007. # func_stripname prefix suffix name
  16008. # strip PREFIX and SUFFIX off of NAME.
  16009. # PREFIX and SUFFIX must not contain globbing or regex special
  16010. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16011. # dot (in which case that matches only a dot).
  16012. func_stripname ()
  16013. {
  16014. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16015. # positional parameters, so assign one to ordinary parameter first.
  16016. func_stripname_result=${3}
  16017. func_stripname_result=${func_stripname_result#"${1}"}
  16018. func_stripname_result=${func_stripname_result%"${2}"}
  16019. }
  16020. # func_opt_split
  16021. func_opt_split ()
  16022. {
  16023. func_opt_split_opt=${1%%=*}
  16024. func_opt_split_arg=${1#*=}
  16025. }
  16026. # func_lo2o object
  16027. func_lo2o ()
  16028. {
  16029. case ${1} in
  16030. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16031. *) func_lo2o_result=${1} ;;
  16032. esac
  16033. }
  16034. # func_xform libobj-or-source
  16035. func_xform ()
  16036. {
  16037. func_xform_result=${1%.*}.lo
  16038. }
  16039. # func_arith arithmetic-term...
  16040. func_arith ()
  16041. {
  16042. func_arith_result=$(( $* ))
  16043. }
  16044. # func_len string
  16045. # STRING may not start with a hyphen.
  16046. func_len ()
  16047. {
  16048. func_len_result=${#1}
  16049. }
  16050. _LT_EOF
  16051. ;;
  16052. *) # Bourne compatible functions.
  16053. cat << \_LT_EOF >> "$cfgfile"
  16054. # func_dirname file append nondir_replacement
  16055. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16056. # otherwise set result to NONDIR_REPLACEMENT.
  16057. func_dirname ()
  16058. {
  16059. # Extract subdirectory from the argument.
  16060. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16061. if test "X$func_dirname_result" = "X${1}"; then
  16062. func_dirname_result="${3}"
  16063. else
  16064. func_dirname_result="$func_dirname_result${2}"
  16065. fi
  16066. }
  16067. # func_basename file
  16068. func_basename ()
  16069. {
  16070. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16071. }
  16072. # func_stripname prefix suffix name
  16073. # strip PREFIX and SUFFIX off of NAME.
  16074. # PREFIX and SUFFIX must not contain globbing or regex special
  16075. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16076. # dot (in which case that matches only a dot).
  16077. # func_strip_suffix prefix name
  16078. func_stripname ()
  16079. {
  16080. case ${2} in
  16081. .*) func_stripname_result=`$ECHO "X${3}" \
  16082. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  16083. *) func_stripname_result=`$ECHO "X${3}" \
  16084. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  16085. esac
  16086. }
  16087. # sed scripts:
  16088. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16089. my_sed_long_arg='1s/^-[^=]*=//'
  16090. # func_opt_split
  16091. func_opt_split ()
  16092. {
  16093. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  16094. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  16095. }
  16096. # func_lo2o object
  16097. func_lo2o ()
  16098. {
  16099. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  16100. }
  16101. # func_xform libobj-or-source
  16102. func_xform ()
  16103. {
  16104. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  16105. }
  16106. # func_arith arithmetic-term...
  16107. func_arith ()
  16108. {
  16109. func_arith_result=`expr "$@"`
  16110. }
  16111. # func_len string
  16112. # STRING may not start with a hyphen.
  16113. func_len ()
  16114. {
  16115. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16116. }
  16117. _LT_EOF
  16118. esac
  16119. case $lt_shell_append in
  16120. yes)
  16121. cat << \_LT_EOF >> "$cfgfile"
  16122. # func_append var value
  16123. # Append VALUE to the end of shell variable VAR.
  16124. func_append ()
  16125. {
  16126. eval "$1+=\$2"
  16127. }
  16128. _LT_EOF
  16129. ;;
  16130. *)
  16131. cat << \_LT_EOF >> "$cfgfile"
  16132. # func_append var value
  16133. # Append VALUE to the end of shell variable VAR.
  16134. func_append ()
  16135. {
  16136. eval "$1=\$$1\$2"
  16137. }
  16138. _LT_EOF
  16139. ;;
  16140. esac
  16141. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16142. || (rm -f "$cfgfile"; exit 1)
  16143. mv -f "$cfgfile" "$ofile" ||
  16144. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16145. chmod +x "$ofile"
  16146. cat <<_LT_EOF >> "$ofile"
  16147. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16148. # The linker used to build libraries.
  16149. LD=$lt_LD_CXX
  16150. # Commands used to build an old-style archive.
  16151. old_archive_cmds=$lt_old_archive_cmds_CXX
  16152. # A language specific compiler.
  16153. CC=$lt_compiler_CXX
  16154. # Is the compiler the GNU compiler?
  16155. with_gcc=$GCC_CXX
  16156. # Compiler flag to turn off builtin functions.
  16157. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16158. # How to pass a linker flag through the compiler.
  16159. wl=$lt_lt_prog_compiler_wl_CXX
  16160. # Additional compiler flags for building library objects.
  16161. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16162. # Compiler flag to prevent dynamic linking.
  16163. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16164. # Does compiler simultaneously support -c and -o options?
  16165. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16166. # Whether or not to add -lc for building shared libraries.
  16167. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16168. # Whether or not to disallow shared libs when runtime libs are static.
  16169. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16170. # Compiler flag to allow reflexive dlopens.
  16171. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16172. # Compiler flag to generate shared objects directly from archives.
  16173. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16174. # Whether the compiler copes with passing no objects directly.
  16175. compiler_needs_object=$lt_compiler_needs_object_CXX
  16176. # Create an old-style archive from a shared archive.
  16177. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16178. # Create a temporary old-style archive to link instead of a shared archive.
  16179. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16180. # Commands used to build a shared archive.
  16181. archive_cmds=$lt_archive_cmds_CXX
  16182. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16183. # Commands used to build a loadable module if different from building
  16184. # a shared archive.
  16185. module_cmds=$lt_module_cmds_CXX
  16186. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16187. # Whether we are building with GNU ld or not.
  16188. with_gnu_ld=$lt_with_gnu_ld_CXX
  16189. # Flag that allows shared libraries with undefined symbols to be built.
  16190. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16191. # Flag that enforces no undefined symbols.
  16192. no_undefined_flag=$lt_no_undefined_flag_CXX
  16193. # Flag to hardcode \$libdir into a binary during linking.
  16194. # This must work even if \$libdir does not exist
  16195. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16196. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16197. # during linking. This must work even if \$libdir does not exist.
  16198. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16199. # Whether we need a single "-rpath" flag with a separated argument.
  16200. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16201. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16202. # DIR into the resulting binary.
  16203. hardcode_direct=$hardcode_direct_CXX
  16204. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16205. # DIR into the resulting binary and the resulting library dependency is
  16206. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16207. # library is relocated.
  16208. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16209. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16210. # into the resulting binary.
  16211. hardcode_minus_L=$hardcode_minus_L_CXX
  16212. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16213. # into the resulting binary.
  16214. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16215. # Set to "yes" if building a shared library automatically hardcodes DIR
  16216. # into the library and all subsequent libraries and executables linked
  16217. # against it.
  16218. hardcode_automatic=$hardcode_automatic_CXX
  16219. # Set to yes if linker adds runtime paths of dependent libraries
  16220. # to runtime path list.
  16221. inherit_rpath=$inherit_rpath_CXX
  16222. # Whether libtool must link a program against all its dependency libraries.
  16223. link_all_deplibs=$link_all_deplibs_CXX
  16224. # Fix the shell variable \$srcfile for the compiler.
  16225. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16226. # Set to "yes" if exported symbols are required.
  16227. always_export_symbols=$always_export_symbols_CXX
  16228. # The commands to list exported symbols.
  16229. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16230. # Symbols that should not be listed in the preloaded symbols.
  16231. exclude_expsyms=$lt_exclude_expsyms_CXX
  16232. # Symbols that must always be exported.
  16233. include_expsyms=$lt_include_expsyms_CXX
  16234. # Commands necessary for linking programs (against libraries) with templates.
  16235. prelink_cmds=$lt_prelink_cmds_CXX
  16236. # Specify filename containing input files.
  16237. file_list_spec=$lt_file_list_spec_CXX
  16238. # How to hardcode a shared library path into an executable.
  16239. hardcode_action=$hardcode_action_CXX
  16240. # The directories searched by this compiler when creating a shared library.
  16241. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16242. # Dependencies to place before and after the objects being linked to
  16243. # create a shared library.
  16244. predep_objects=$lt_predep_objects_CXX
  16245. postdep_objects=$lt_postdep_objects_CXX
  16246. predeps=$lt_predeps_CXX
  16247. postdeps=$lt_postdeps_CXX
  16248. # The library search path used internally by the compiler when linking
  16249. # a shared library.
  16250. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16251. # ### END LIBTOOL TAG CONFIG: CXX
  16252. _LT_EOF
  16253. ;;
  16254. esac
  16255. done # for ac_tag
  16256. as_fn_exit 0
  16257. _ACEOF
  16258. ac_clean_files=$ac_clean_files_save
  16259. test $ac_write_fail = 0 ||
  16260. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16261. # configure is writing to config.log, and then calls config.status.
  16262. # config.status does its own redirection, appending to config.log.
  16263. # Unfortunately, on DOS this fails, as config.log is still kept open
  16264. # by configure, so config.status won't be able to write to it; its
  16265. # output is simply discarded. So we exec the FD to /dev/null,
  16266. # effectively closing config.log, so it can be properly (re)opened and
  16267. # appended to by config.status. When coming back to configure, we
  16268. # need to make the FD available again.
  16269. if test "$no_create" != yes; then
  16270. ac_cs_success=:
  16271. ac_config_status_args=
  16272. test "$silent" = yes &&
  16273. ac_config_status_args="$ac_config_status_args --quiet"
  16274. exec 5>/dev/null
  16275. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16276. exec 5>>config.log
  16277. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16278. # would make configure fail if this is the last instruction.
  16279. $ac_cs_success || as_fn_exit 1
  16280. fi
  16281. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16283. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16284. fi